@azure/communication-react 1.11.1-alpha-202401120013 → 1.11.1-alpha-202401130013

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/communication-react.d.ts +60 -0
  2. package/dist/dist-cjs/communication-react/index.js +137 -6
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +5 -0
  7. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +8 -0
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -0
  10. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +17 -1
  11. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -0
  13. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +3 -0
  14. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  15. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +1 -0
  16. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +15 -3
  17. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  18. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +31 -0
  19. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -0
  21. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +21 -0
  22. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  23. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
  24. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -0
  25. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  26. package/dist/dist-esm/calling-stateful-client/src/Converter.js +3 -1
  27. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.d.ts +16 -0
  29. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js +27 -0
  30. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js.map +1 -0
  31. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  32. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -0
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +12 -0
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +12 -0
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +8 -0
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
  41. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +12 -0
  42. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  43. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +12 -0
  44. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  45. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
  46. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +12 -0
  47. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  48. package/package.json +1 -1
@@ -93,6 +93,7 @@ import { RemoteParticipantState as RemoteParticipantState_2 } from '@azure/commu
93
93
  import { RoomCallLocator } from '@azure/communication-calling';
94
94
  import { ScalingMode } from '@azure/communication-calling';
95
95
  import { SendMessageOptions } from '@azure/communication-chat';
96
+ import { SpotlightedParticipant } from '@azure/communication-calling';
96
97
  import { StartCallOptions } from '@azure/communication-calling';
97
98
  import { StartCaptionsOptions } from '@azure/communication-calling';
98
99
  import { SyntheticEvent } from 'react';
@@ -893,6 +894,18 @@ export declare interface CallAdapterCallOperations {
893
894
  * @beta
894
895
  */
895
896
  submitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
897
+ /**
898
+ * Start spotlight
899
+ *
900
+ * @beta
901
+ */
902
+ startSpotlight(userId: string): Promise<void>;
903
+ /**
904
+ * Stop spotlight
905
+ *
906
+ * @beta
907
+ */
908
+ stopSpotlight(userId: string): Promise<void>;
896
909
  }
897
910
 
898
911
  /**
@@ -2678,6 +2691,10 @@ export declare interface CallState {
2678
2691
  * Hide attendee names in teams meeting
2679
2692
  */
2680
2693
  hideAttendeeNames?: boolean;
2694
+ /**
2695
+ * Proxy of {@link @azure/communication-calling#SpotlightCallFeature}.
2696
+ */
2697
+ spotlight?: SpotlightCallFeatureState;
2681
2698
  }
2682
2699
 
2683
2700
  /**
@@ -3087,6 +3104,18 @@ export declare interface CallWithChatAdapterManagement {
3087
3104
  * @beta
3088
3105
  */
3089
3106
  submitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
3107
+ /**
3108
+ * Start spotlight
3109
+ *
3110
+ * @beta
3111
+ */
3112
+ startSpotlight(userId: string): Promise<void>;
3113
+ /**
3114
+ * Stop spotlight
3115
+ *
3116
+ * @beta
3117
+ */
3118
+ stopSpotlight(userId: string): Promise<void>;
3090
3119
  }
3091
3120
 
3092
3121
  /**
@@ -4906,6 +4935,8 @@ export declare interface CommonCallingHandlers {
4906
4935
  onSetSpokenLanguage: (language: string) => Promise<void>;
4907
4936
  onSetCaptionLanguage: (language: string) => Promise<void>;
4908
4937
  onSubmitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
4938
+ onStartSpotlight: (userId: string) => Promise<void>;
4939
+ onStopSpotlight: (userId: string) => Promise<void>;
4909
4940
  }
4910
4941
 
4911
4942
  /**
@@ -9103,6 +9134,10 @@ export declare interface RemoteParticipantState {
9103
9134
  * @beta
9104
9135
  */
9105
9136
  reactionState?: ReactionState;
9137
+ /**
9138
+ * Proxy of {@link @azure/communication-calling#SpotlightCallFeature.spotlightedParticipants}.
9139
+ */
9140
+ spotlighted?: SpotlightState;
9106
9141
  }
9107
9142
 
9108
9143
  /**
@@ -9483,6 +9518,30 @@ export declare interface SpokenLanguageStrings {
9483
9518
  'zh-tw': string;
9484
9519
  }
9485
9520
 
9521
+ /**
9522
+ * State only version of {@link @azure/communication-calling#SpotlightCallFeature}
9523
+ *
9524
+ * @beta
9525
+ */
9526
+ export declare interface SpotlightCallFeatureState {
9527
+ /**
9528
+ * Ordered array of spotlighted participants in call
9529
+ */
9530
+ spotlightedParticipants: SpotlightedParticipant[];
9531
+ }
9532
+
9533
+ /**
9534
+ * Spotlight state with order
9535
+ *
9536
+ * @beta
9537
+ */
9538
+ export declare interface SpotlightState {
9539
+ /**
9540
+ * Order position of spotlight in call
9541
+ */
9542
+ spotlightedOrderPosition?: number;
9543
+ }
9544
+
9486
9545
  /**
9487
9546
  * Defines the methods that allow CallClient {@link @azure/communication-calling#CallClient} to be used statefully.
9488
9547
  * The interface provides access to proxied state and also allows registering a handler for state change events. For
@@ -10714,6 +10773,7 @@ export declare type VideoGallerySelector = (state: CallClientState, props: Calli
10714
10773
  remoteParticipants: VideoGalleryRemoteParticipant[];
10715
10774
  dominantSpeakers?: string[];
10716
10775
  optimalVideoCount?: number;
10776
+ spotlightedParticipants?: string[];
10717
10777
  };
10718
10778
 
10719
10779
  /**
@@ -170,7 +170,7 @@ function getDefaultExportFromCjs (x) {
170
170
  // Copyright (c) Microsoft Corporation.
171
171
  // Licensed under the MIT License.
172
172
  // GENERATED FILE. DO NOT EDIT MANUALLY.
173
- var telemetryVersion = '1.11.1-alpha-202401120013';
173
+ var telemetryVersion = '1.11.1-alpha-202401130013';
174
174
 
175
175
 
176
176
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -406,6 +406,14 @@ const getLocalParticipantRaisedHand$1 = (state, props) => {
406
406
  var _a, _b;
407
407
  return (_b = (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.raiseHand) === null || _b === void 0 ? void 0 : _b.localParticipantRaisedHand;
408
408
  };
409
+ /* @conditional-compile-remove(spotlight) */
410
+ /**
411
+ * @private
412
+ */
413
+ const getSpotlightedParticipants = (state, props) => {
414
+ var _a, _b;
415
+ return (_b = (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.spotlight) === null || _b === void 0 ? void 0 : _b.spotlightedParticipants;
416
+ };
409
417
  /* @conditional-compile-remove(reaction) */
410
418
  /**
411
419
  * @private
@@ -1114,6 +1122,16 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1114
1122
  });
1115
1123
  /* @conditional-compile-remove(end-of-call-survey) */
1116
1124
  const onSubmitSurvey = (survey) => __awaiter$M(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
1125
+ /* @conditional-compile-remove(spotlight) */
1126
+ const onStartSpotlight = (userId) => __awaiter$M(void 0, void 0, void 0, function* () {
1127
+ const participant = _toCommunicationIdentifier(userId);
1128
+ yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight([participant]));
1129
+ });
1130
+ /* @conditional-compile-remove(spotlight) */
1131
+ const onStopSpotlight = (userId) => __awaiter$M(void 0, void 0, void 0, function* () {
1132
+ const participant = _toCommunicationIdentifier(userId);
1133
+ yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight([participant]));
1134
+ });
1117
1135
  return {
1118
1136
  onHangUp,
1119
1137
  /* @conditional-compile-remove(PSTN-calls) */
@@ -1161,7 +1179,11 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1161
1179
  /* @conditional-compile-remove(close-captions) */
1162
1180
  onSetSpokenLanguage,
1163
1181
  /* @conditional-compile-remove(end-of-call-survey) */
1164
- onSubmitSurvey
1182
+ onSubmitSurvey,
1183
+ /* @conditional-compile-remove(spotlight) */
1184
+ onStartSpotlight,
1185
+ /* @conditional-compile-remove(spotlight) */
1186
+ onStopSpotlight
1165
1187
  };
1166
1188
  });
1167
1189
 
@@ -1688,7 +1710,9 @@ function convertSdkParticipantToDeclarativeParticipant(participant) {
1688
1710
  /* @conditional-compile-remove(raise-hand) */
1689
1711
  raisedHand: undefined,
1690
1712
  /* @conditional-compile-remove(hide-attendee-name) */
1691
- role: participant.role
1713
+ role: participant.role,
1714
+ /* @conditional-compile-remove(spotlight) */
1715
+ spotlighted: undefined
1692
1716
  };
1693
1717
  }
1694
1718
  /**
@@ -2170,6 +2194,27 @@ let CallContext$2 = class CallContext {
2170
2194
  }
2171
2195
  });
2172
2196
  }
2197
+ /* @conditional-compile-remove(spotlight) */
2198
+ setSpotlight(callId, spotlightedParticipants) {
2199
+ this.modifyState((draft) => {
2200
+ const call = draft.calls[this._callIdHistory.latestCallId(callId)];
2201
+ if (call) {
2202
+ call.spotlight = { spotlightedParticipants };
2203
+ }
2204
+ });
2205
+ }
2206
+ /* @conditional-compile-remove(spotlight) */
2207
+ setParticipantSpotlighted(callId, spotlightedParticipant) {
2208
+ this.modifyState((draft) => {
2209
+ const call = draft.calls[this._callIdHistory.latestCallId(callId)];
2210
+ if (call) {
2211
+ const participant = call.remoteParticipants[toFlatCommunicationIdentifier(spotlightedParticipant.identifier)];
2212
+ if (participant) {
2213
+ participant.spotlighted = { spotlightedOrderPosition: spotlightedParticipant.order };
2214
+ }
2215
+ }
2216
+ });
2217
+ }
2173
2218
  setCallScreenShareParticipant(callId, participantKey) {
2174
2219
  this.modifyState((draft) => {
2175
2220
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -3752,6 +3797,33 @@ class ReactionSubscriber {
3752
3797
  }
3753
3798
  }
3754
3799
 
3800
+ // Copyright (c) Microsoft Corporation.
3801
+ // Licensed under the MIT License.
3802
+ /* @conditional-compile-remove(spotlight) */
3803
+ /**
3804
+ * @private
3805
+ */
3806
+ class SpotlightSubscriber {
3807
+ constructor(callIdRef, context, spotlight) {
3808
+ this.subscribe = () => {
3809
+ this._spotlightFeature.on('spotlightChanged', this.spotlightChanged);
3810
+ };
3811
+ this.unsubscribe = () => {
3812
+ this._spotlightFeature.off('spotlightChanged', this.spotlightChanged);
3813
+ };
3814
+ this.spotlightChanged = () => {
3815
+ this._context.setSpotlight(this._callIdRef.callId, this._spotlightFeature.getSpotlightedParticipants());
3816
+ for (const addedParticipant of this._spotlightFeature.getSpotlightedParticipants()) {
3817
+ this._context.setParticipantSpotlighted(this._callIdRef.callId, addedParticipant);
3818
+ }
3819
+ };
3820
+ this._callIdRef = callIdRef;
3821
+ this._context = context;
3822
+ this._spotlightFeature = spotlight;
3823
+ this.subscribe();
3824
+ }
3825
+ }
3826
+
3755
3827
  // Copyright (c) Microsoft Corporation.
3756
3828
  // Licensed under the MIT License.
3757
3829
  /**
@@ -3823,6 +3895,8 @@ class CallSubscriber {
3823
3895
  this._capabilitiesSubscriber.unsubscribe();
3824
3896
  /* @conditional-compile-remove(reaction) */
3825
3897
  (_c = this._reactionSubscriber) === null || _c === void 0 ? void 0 : _c.unsubscribe();
3898
+ /* @conditional-compile-remove(spotlight) */
3899
+ this._spotlightSubscriber.unsubscribe();
3826
3900
  };
3827
3901
  this.stateChanged = () => {
3828
3902
  this._context.setCallState(this._callIdRef.callId, this._call.state);
@@ -3923,6 +3997,8 @@ class CallSubscriber {
3923
3997
  this._localVideoStreamVideoEffectsSubscribers = new Map();
3924
3998
  /* @conditional-compile-remove(capabilities) */
3925
3999
  this._capabilitiesSubscriber = new CapabilitiesSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Capabilities));
4000
+ /* @conditional-compile-remove(spotlight) */
4001
+ this._spotlightSubscriber = new SpotlightSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Spotlight));
3926
4002
  this.subscribe();
3927
4003
  }
3928
4004
  addParticipantListener(participant) {
@@ -19648,6 +19724,9 @@ const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, is
19648
19724
  reaction: reaction
19649
19725
  });
19650
19726
  });
19727
+ /* @conditional-compile-remove(spotlight) */
19728
+ /** @private */
19729
+ const memoizeSpotlightedParticipantIds = memoizeOne((spotlightedParticipants) => spotlightedParticipants === null || spotlightedParticipants === void 0 ? void 0 : spotlightedParticipants.map((p) => toFlatCommunicationIdentifier(p.identifier)));
19651
19730
 
19652
19731
  // Copyright (c) Microsoft Corporation.
19653
19732
  // Licensed under the MIT License.
@@ -19691,7 +19770,9 @@ const videoGallerySelector = reselect.createSelector([
19691
19770
  /* @conditional-compile-remove(hide-attendee-name) */
19692
19771
  isHideAttendeeNamesEnabled,
19693
19772
  /* @conditional-compile-remove(reaction) */
19694
- getLocalParticipantReactionState
19773
+ getLocalParticipantReactionState,
19774
+ /* @conditional-compile-remove(spotlight) */
19775
+ getSpotlightedParticipants
19695
19776
  ], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers,
19696
19777
  /* @conditional-compile-remove(optimal-video-count) */
19697
19778
  optimalVideoCount,
@@ -19702,7 +19783,9 @@ raisedHand,
19702
19783
  /* @conditional-compile-remove(hide-attendee-name) */
19703
19784
  isHideAttendeeNamesEnabled,
19704
19785
  /* @conditional-compile-remove(reaction) */
19705
- localParticipantReaction) => {
19786
+ localParticipantReaction,
19787
+ /* @conditional-compile-remove(spotlight) */
19788
+ spotlightedParticipants) => {
19706
19789
  const screenShareRemoteParticipant = screenShareRemoteParticipantId && remoteParticipants
19707
19790
  ? remoteParticipants[screenShareRemoteParticipantId]
19708
19791
  : undefined;
@@ -19712,6 +19795,8 @@ localParticipantReaction) => {
19712
19795
  const noRemoteParticipants = [];
19713
19796
  /* @conditional-compile-remove(reaction) */
19714
19797
  const localParticipantReactionState = memoizedConvertToVideoTileReaction(localParticipantReaction);
19798
+ /* @conditional-compile-remove(spotlight) */
19799
+ const spotlightedParticipantIds = memoizeSpotlightedParticipantIds(spotlightedParticipants);
19715
19800
  return {
19716
19801
  screenShareParticipant: screenShareRemoteParticipant
19717
19802
  ? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName,
@@ -19732,7 +19817,9 @@ localParticipantReaction) => {
19732
19817
  role),
19733
19818
  dominantSpeakers: dominantSpeakerIds,
19734
19819
  /* @conditional-compile-remove(optimal-video-count) */
19735
- maxRemoteVideoStreams: optimalVideoCount
19820
+ maxRemoteVideoStreams: optimalVideoCount,
19821
+ /* @conditional-compile-remove(spotlight) */
19822
+ spotlightedParticipants: spotlightedParticipantIds
19736
19823
  };
19737
19824
  });
19738
19825
  const updateUserDisplayNamesTrampoline$2 = (remoteParticipants) => {
@@ -24704,6 +24791,14 @@ const createCompositeHandlers = memoizeOne((adapter) => ({
24704
24791
  /* @conditional-compile-remove(end-of-call-survey) */
24705
24792
  onSubmitSurvey: (survey) => __awaiter$g(void 0, void 0, void 0, function* () {
24706
24793
  return yield adapter.submitSurvey(survey);
24794
+ }),
24795
+ /* @conditional-compile-remove(spotlight) */
24796
+ onStartSpotlight: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
24797
+ yield adapter.startSpotlight(userId);
24798
+ }),
24799
+ /* @conditional-compile-remove(spotlight) */
24800
+ onStopSpotlight: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
24801
+ yield adapter.stopSpotlight(userId);
24707
24802
  })
24708
24803
  }));
24709
24804
 
@@ -32656,6 +32751,18 @@ class AzureCommunicationCallAdapter {
32656
32751
  return this.handlers.onSubmitSurvey(survey);
32657
32752
  });
32658
32753
  }
32754
+ /* @conditional-compile-remove(spotlight) */
32755
+ startSpotlight(userId) {
32756
+ return __awaiter$5(this, void 0, void 0, function* () {
32757
+ return this.handlers.onStartSpotlight(userId);
32758
+ });
32759
+ }
32760
+ /* @conditional-compile-remove(spotlight) */
32761
+ stopSpotlight(userId) {
32762
+ return __awaiter$5(this, void 0, void 0, function* () {
32763
+ return this.handlers.onStopSpotlight(userId);
32764
+ });
32765
+ }
32659
32766
  getState() {
32660
32767
  return this.context.getState();
32661
32768
  }
@@ -33381,6 +33488,18 @@ class CallWithChatBackedCallAdapter {
33381
33488
  return this.callWithChatAdapter.submitSurvey(survey);
33382
33489
  });
33383
33490
  }
33491
+ /* @conditional-compile-remove(spotlight) */
33492
+ startSpotlight(userId) {
33493
+ return __awaiter$4(this, void 0, void 0, function* () {
33494
+ return this.callWithChatAdapter.startSpotlight(userId);
33495
+ });
33496
+ }
33497
+ /* @conditional-compile-remove(spotlight) */
33498
+ stopSpotlight(userId) {
33499
+ return __awaiter$4(this, void 0, void 0, function* () {
33500
+ return this.callWithChatAdapter.stopSpotlight(userId);
33501
+ });
33502
+ }
33384
33503
  }
33385
33504
  function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState) {
33386
33505
  return {
@@ -34491,6 +34610,18 @@ class AzureCommunicationCallWithChatAdapter {
34491
34610
  return this.callAdapter.submitSurvey(survey);
34492
34611
  });
34493
34612
  }
34613
+ /* @conditional-compile-remove(spotlight) */
34614
+ startSpotlight(userId) {
34615
+ return __awaiter$2(this, void 0, void 0, function* () {
34616
+ return this.callAdapter.startSpotlight(userId);
34617
+ });
34618
+ }
34619
+ /* @conditional-compile-remove(spotlight) */
34620
+ stopSpotlight(userId) {
34621
+ return __awaiter$2(this, void 0, void 0, function* () {
34622
+ return this.callAdapter.stopSpotlight(userId);
34623
+ });
34624
+ }
34494
34625
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
34495
34626
  on(event, listener) {
34496
34627
  switch (event) {