@azure/communication-react 1.11.1-alpha-202401110013 → 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.
- package/dist/communication-react.d.ts +95 -0
- package/dist/dist-cjs/communication-react/index.js +183 -25
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +5 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +8 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +17 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +3 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +15 -3
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +31 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +21 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +3 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.d.ts +16 -0
- package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js +27 -0
- package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js.map +1 -0
- package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +1 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +9 -8
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ReactionButton.d.ts +39 -0
- package/dist/dist-esm/react-components/src/components/ReactionButton.js +65 -0
- package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/index.js +2 -0
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +36 -12
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.d.ts +14 -0
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js +44 -0
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -0
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +4 -0
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- 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
|
/**
|
@@ -1408,6 +1421,7 @@ export declare type CallCompositeIcons = {
|
|
1408
1421
|
ControlButtonLowerHand?: JSX.Element;
|
1409
1422
|
RaiseHandContextualMenuItem?: JSX.Element;
|
1410
1423
|
LowerHandContextualMenuItem?: JSX.Element;
|
1424
|
+
ReactionButtonIcon?: JSX.Element;
|
1411
1425
|
ErrorBarCallCameraAccessDenied?: JSX.Element;
|
1412
1426
|
ErrorBarCallCameraAlreadyInUse?: JSX.Element;
|
1413
1427
|
ErrorBarCallLocalVideoFreeze?: JSX.Element;
|
@@ -2677,6 +2691,10 @@ export declare interface CallState {
|
|
2677
2691
|
* Hide attendee names in teams meeting
|
2678
2692
|
*/
|
2679
2693
|
hideAttendeeNames?: boolean;
|
2694
|
+
/**
|
2695
|
+
* Proxy of {@link @azure/communication-calling#SpotlightCallFeature}.
|
2696
|
+
*/
|
2697
|
+
spotlight?: SpotlightCallFeatureState;
|
2680
2698
|
}
|
2681
2699
|
|
2682
2700
|
/**
|
@@ -3086,6 +3104,18 @@ export declare interface CallWithChatAdapterManagement {
|
|
3086
3104
|
* @beta
|
3087
3105
|
*/
|
3088
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>;
|
3089
3119
|
}
|
3090
3120
|
|
3091
3121
|
/**
|
@@ -4905,6 +4935,8 @@ export declare interface CommonCallingHandlers {
|
|
4905
4935
|
onSetSpokenLanguage: (language: string) => Promise<void>;
|
4906
4936
|
onSetCaptionLanguage: (language: string) => Promise<void>;
|
4907
4937
|
onSubmitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
|
4938
|
+
onStartSpotlight: (userId: string) => Promise<void>;
|
4939
|
+
onStopSpotlight: (userId: string) => Promise<void>;
|
4908
4940
|
}
|
4909
4941
|
|
4910
4942
|
/**
|
@@ -5171,6 +5203,8 @@ export declare interface ComponentStrings {
|
|
5171
5203
|
screenShareButton: ScreenShareButtonStrings;
|
5172
5204
|
/** Strings for RaiseHandButton */
|
5173
5205
|
raiseHandButton: RaiseHandButtonStrings;
|
5206
|
+
/** Strings for ReactionButton */
|
5207
|
+
reactionButton: ReactionButtonStrings;
|
5174
5208
|
/** Strings for TypingIndicator */
|
5175
5209
|
typingIndicator: TypingIndicatorStrings;
|
5176
5210
|
/** Strings for SendBox */
|
@@ -5947,6 +5981,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
5947
5981
|
ControlButtonLowerHand: React_2.JSX.Element;
|
5948
5982
|
RaiseHandContextualMenuItem: React_2.JSX.Element;
|
5949
5983
|
LowerHandContextualMenuItem: React_2.JSX.Element;
|
5984
|
+
ReactionButtonIcon: React_2.JSX.Element;
|
5950
5985
|
CancelFileUpload: React_2.JSX.Element;
|
5951
5986
|
DownloadFile: React_2.JSX.Element;
|
5952
5987
|
DataLossPreventionProhibited: React_2.JSX.Element;
|
@@ -6057,6 +6092,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
6057
6092
|
ControlButtonLowerHand: JSX.Element;
|
6058
6093
|
RaiseHandContextualMenuItem: JSX.Element;
|
6059
6094
|
LowerHandContextualMenuItem: JSX.Element;
|
6095
|
+
ReactionButtonIcon: JSX.Element;
|
6060
6096
|
ErrorBarCallCameraAccessDenied: JSX.Element;
|
6061
6097
|
ErrorBarCallCameraAlreadyInUse: JSX.Element;
|
6062
6098
|
ErrorBarCallLocalVideoFreeze: JSX.Element;
|
@@ -8973,6 +9009,36 @@ export declare type Reaction = {
|
|
8973
9009
|
receivedAt: Date;
|
8974
9010
|
};
|
8975
9011
|
|
9012
|
+
/**
|
9013
|
+
* Props for {@link ReactionButton}.
|
9014
|
+
*
|
9015
|
+
* @beta
|
9016
|
+
*/
|
9017
|
+
export declare interface ReactionButtonProps extends ControlBarButtonProps {
|
9018
|
+
/**
|
9019
|
+
* Optional strings to override in component
|
9020
|
+
*/
|
9021
|
+
strings?: Partial<ReactionButtonStrings>;
|
9022
|
+
/**
|
9023
|
+
* Click event to send reaction to meeting
|
9024
|
+
*/
|
9025
|
+
onReactionClicked: (emoji: string) => Promise<void>;
|
9026
|
+
}
|
9027
|
+
|
9028
|
+
/**
|
9029
|
+
* Strings of {@link ReactionButton} that can be overridden.
|
9030
|
+
*
|
9031
|
+
* @beta
|
9032
|
+
*/
|
9033
|
+
export declare interface ReactionButtonStrings {
|
9034
|
+
/** Label of the button. */
|
9035
|
+
label: string;
|
9036
|
+
/** * Tooltip content when the button is disabled. */
|
9037
|
+
tooltipDisabledContent?: string;
|
9038
|
+
/** Tooltip content when the button is enabled. */
|
9039
|
+
tooltipContent?: string;
|
9040
|
+
}
|
9041
|
+
|
8976
9042
|
/**
|
8977
9043
|
* State only version of {@link @azure/communication-calling#Call.ReactionMessage} with UI helper props receivedAt.
|
8978
9044
|
* Reaction state with a timestamp which helps UI to decide to render the reaction accordingly.
|
@@ -9068,6 +9134,10 @@ export declare interface RemoteParticipantState {
|
|
9068
9134
|
* @beta
|
9069
9135
|
*/
|
9070
9136
|
reactionState?: ReactionState;
|
9137
|
+
/**
|
9138
|
+
* Proxy of {@link @azure/communication-calling#SpotlightCallFeature.spotlightedParticipants}.
|
9139
|
+
*/
|
9140
|
+
spotlighted?: SpotlightState;
|
9071
9141
|
}
|
9072
9142
|
|
9073
9143
|
/**
|
@@ -9448,6 +9518,30 @@ export declare interface SpokenLanguageStrings {
|
|
9448
9518
|
'zh-tw': string;
|
9449
9519
|
}
|
9450
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
|
+
|
9451
9545
|
/**
|
9452
9546
|
* Defines the methods that allow CallClient {@link @azure/communication-calling#CallClient} to be used statefully.
|
9453
9547
|
* The interface provides access to proxied state and also allows registering a handler for state change events. For
|
@@ -10679,6 +10773,7 @@ export declare type VideoGallerySelector = (state: CallClientState, props: Calli
|
|
10679
10773
|
remoteParticipants: VideoGalleryRemoteParticipant[];
|
10680
10774
|
dominantSpeakers?: string[];
|
10681
10775
|
optimalVideoCount?: number;
|
10776
|
+
spotlightedParticipants?: string[];
|
10682
10777
|
};
|
10683
10778
|
|
10684
10779
|
/**
|