Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
carocao-msft committed Dec 31, 2024
1 parent 07a95f6 commit 24ede3e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ export interface CallWithChatControlOptions extends CommonCallControlOptions {
}

// @public
export type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'isCaptionsActiveChanged' | 'captionsReceived' | 'isCaptionLanguageChanged' | 'isSpokenLanguageChanged' | /* conditional-compile-remove(rtt) */ 'realTimeTextReceived' | 'capabilitiesChanged' | 'spotlightChanged' | /* @conditional-compile-remove(breakout-rooms) */ 'breakoutRoomsUpdated' | 'messageReceived' | 'messageEdited' | 'messageDeleted' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved' | 'chatInitialized';
export type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'isCaptionsActiveChanged' | 'captionsReceived' | 'isCaptionLanguageChanged' | 'isSpokenLanguageChanged' | /* @conditional-compile-remove(rtt) */ 'realTimeTextReceived' | 'capabilitiesChanged' | 'spotlightChanged' | /* @conditional-compile-remove(breakout-rooms) */ 'breakoutRoomsUpdated' | 'messageReceived' | 'messageEdited' | 'messageDeleted' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved' | 'chatInitialized';

// @beta
export const CameraAndMicrophoneSitePermissions: (props: CameraAndMicrophoneSitePermissionsProps) => JSX.Element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { TeamsCaptions } from '@azure/communication-calling';
import { Captions, CaptionsInfo } from '@azure/communication-calling';
import { TransferEventArgs } from '@azure/communication-calling';
import { TeamsCaptionsInfo } from '@azure/communication-calling';
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
import type { RealTimeTextInfo } from '@azure/communication-calling';
import type { BackgroundBlurConfig, BackgroundReplacementConfig, DeviceAccess } from '@azure/communication-calling';
import type { CapabilitiesChangeInfo } from '@azure/communication-calling';
Expand Down Expand Up @@ -81,7 +81,7 @@ import {
IsCaptionLanguageChangedListener,
IsSpokenLanguageChangedListener
} from './CallAdapter';
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
import { RealTimeTextReceivedListener } from './CallAdapter';
import {
VideoBackgroundImage,
Expand Down Expand Up @@ -1272,7 +1272,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
on(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
on(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
on(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
on(event: 'transferAccepted', listener: TransferAcceptedListener): void;
on(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
Expand Down Expand Up @@ -1353,7 +1353,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
this.call?.feature(Features.Transfer).on('transferAccepted', this.transferAccepted.bind(this));
this.call?.feature(Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
this.call?.feature(Features.Spotlight).on('spotlightChanged', this.spotlightChanged.bind(this));
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
this.call?.feature(Features.RealTimeText).on('realTimeTextReceived', this.realTimeTextReceived.bind(this));
/* @conditional-compile-remove(breakout-rooms) */
const breakoutRoomsFeature = this.call?.feature(Features.BreakoutRooms);
Expand All @@ -1375,7 +1375,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
this.call?.off('roleChanged', this.roleChanged.bind(this));

this.unsubscribeFromCaptionEvents();
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
this.call?.feature(Features.RealTimeText).off('realTimeTextReceived', this.realTimeTextReceived.bind(this));
if (this.callingSoundSubscriber) {
this.callingSoundSubscriber.unsubscribeAll();
Expand Down Expand Up @@ -1443,7 +1443,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
private captionsReceived(captionsInfo: CaptionsInfo): void {
this.emitter.emit('captionsReceived', { captionsInfo });
}
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
private realTimeTextReceived(realTimeText: RealTimeTextInfo): void {
this.emitter.emit('realTimeTextReceived', { realTimeText });
}
Expand Down Expand Up @@ -1585,7 +1585,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
off(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
off(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
off(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
off(event: 'transferAccepted', listener: TransferAcceptedListener): void;
off(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { CallState, DeviceManagerState } from '@internal/calling-stateful-client';
import { CaptionsInfo } from '@internal/calling-stateful-client';
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
import { RealTimeTextInfo } from '@azure/communication-calling';
import type { BackgroundBlurConfig, BackgroundReplacementConfig, DeviceAccess } from '@azure/communication-calling';
import { Reaction } from '@azure/communication-calling';
Expand Down Expand Up @@ -395,7 +395,7 @@ export type IsCaptionLanguageChangedListener = (event: { activeCaptionLanguage:
*/
export type IsSpokenLanguageChangedListener = (event: { activeSpokenLanguage: string }) => void;

/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
/**
* Callback for {@link CallAdapterSubscribers} 'realTimeTextReceived' event.
* @beta
Expand Down Expand Up @@ -1035,7 +1035,7 @@ export interface CallAdapterSubscribers {
*/
on(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;

/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
/**
* Subscribe function for 'realTimeTextReceived' event.
*/
Expand Down Expand Up @@ -1131,7 +1131,7 @@ export interface CallAdapterSubscribers {
* Unsubscribe function for 'isSpokenLanguageChanged' event.
*/
off(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
/**
* Unsubscribe function for 'realTimeTextReceived' event.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type {
IsSpokenLanguageChangedListener
} from './CallAdapter';

/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
export type { RealTimeTextReceivedListener } from './CallAdapter';

export type { TransferAcceptedListener } from './CallAdapter';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type {
IsSpokenLanguageChangedListener
} from './adapter';

/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
export type { RealTimeTextReceivedListener } from './adapter';

export type { TransferAcceptedListener } from './adapter';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import {
IsCaptionLanguageChangedListener,
IsSpokenLanguageChangedListener
} from '../../CallComposite/adapter/CallAdapter';
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
import { RealTimeTextReceivedListener } from '../../CallComposite/adapter/CallAdapter';
import { CapabilitiesChangedListener } from '../../CallComposite/adapter/CallAdapter';
import { SpotlightChangedListener } from '../../CallComposite/adapter/CallAdapter';
Expand Down Expand Up @@ -790,7 +790,7 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
on(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
on(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
on(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
on(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
on(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
Expand Down Expand Up @@ -834,7 +834,7 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
case 'captionsReceived':
this.callAdapter.on('captionsReceived', listener);
break;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
case 'realTimeTextReceived':
this.callAdapter.on('realTimeTextReceived', listener);
break;
Expand Down Expand Up @@ -931,7 +931,7 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
off(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
off(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
off(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
off(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
off(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
Expand Down Expand Up @@ -974,7 +974,7 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
case 'captionsReceived':
this.callAdapter.off('captionsReceived', listener);
break;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
case 'realTimeTextReceived':
this.callAdapter.off('realTimeTextReceived', listener);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ParticipantsLeftListener,
CallEndedListener
} from '../../CallComposite';
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
import { RealTimeTextReceivedListener } from '../../CallComposite/adapter/CallAdapter';
import {
MessageDeletedListener,
Expand Down Expand Up @@ -619,7 +619,7 @@ export interface CallWithChatAdapterSubscriptions {
on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
on(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
on(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
on(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
on(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
on(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
Expand All @@ -640,7 +640,7 @@ export interface CallWithChatAdapterSubscriptions {
off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
off(event: 'isCaptionLanguageChanged', listener: IsCaptionLanguageChangedListener): void;
off(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
/* conditional-compile-remove(rtt) */
/* @conditional-compile-remove(rtt) */
off(event: 'realTimeTextReceived', listener: RealTimeTextReceivedListener): void;
off(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
off(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
Expand Down Expand Up @@ -711,7 +711,7 @@ export type CallWithChatEvent =
| 'captionsReceived'
| 'isCaptionLanguageChanged'
| 'isSpokenLanguageChanged'
| /* conditional-compile-remove(rtt) */ 'realTimeTextReceived'
| /* @conditional-compile-remove(rtt) */ 'realTimeTextReceived'
| 'capabilitiesChanged'
| 'spotlightChanged'
| /* @conditional-compile-remove(breakout-rooms) */ 'breakoutRoomsUpdated'
Expand Down

0 comments on commit 24ede3e

Please sign in to comment.