@azure/communication-react 1.11.0-alpha-202312050013 → 1.11.0-alpha-202312070013
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 +63 -62
- package/dist/dist-cjs/communication-react/index.js +128 -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/getRemoteParticipantsExcludingConsumers.d.ts +1 -22
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -2
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +2 -2
- package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.d.ts +3 -3
- package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.d.ts +1 -1
- package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +1 -2
- package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/common.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +4 -4
- package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.d.ts +1 -2
- package/dist/dist-esm/react-components/src/components/utils.d.ts +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.js +4 -2
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/v9ThemeShim.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js +85 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +6 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +2 -46
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +1 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +9 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +36 -16
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +3 -10
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +1 -8
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +45 -45
- package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +1 -1
- package/package.json +1 -1
@@ -1554,11 +1554,11 @@ export declare type CallCompositeOptions = {
|
|
1554
1554
|
*/
|
1555
1555
|
alt?: string;
|
1556
1556
|
/**
|
1557
|
-
* The logo can be displayed as a circle
|
1557
|
+
* The logo can be displayed as a circle.
|
1558
1558
|
*
|
1559
|
-
* @defaultValue '
|
1559
|
+
* @defaultValue 'unset'
|
1560
1560
|
*/
|
1561
|
-
shape?: '
|
1561
|
+
shape?: 'unset' | 'circle';
|
1562
1562
|
};
|
1563
1563
|
/**
|
1564
1564
|
* Background image displayed on the configuration page.
|
@@ -2553,7 +2553,7 @@ export declare interface CallState {
|
|
2553
2553
|
*
|
2554
2554
|
* @public
|
2555
2555
|
*/
|
2556
|
-
export declare interface CallWithChatAdapter extends CallWithChatAdapterManagement, AdapterState<CallWithChatAdapterState>,
|
2556
|
+
export declare interface CallWithChatAdapter extends CallWithChatAdapterManagement, AdapterState<CallWithChatAdapterState>, Disposable_2, CallWithChatAdapterSubscriptions {
|
2557
2557
|
}
|
2558
2558
|
|
2559
2559
|
/**
|
@@ -3251,11 +3251,11 @@ export declare type CallWithChatCompositeOptions = {
|
|
3251
3251
|
*/
|
3252
3252
|
alt?: string;
|
3253
3253
|
/**
|
3254
|
-
* The logo can be displayed as a circle
|
3254
|
+
* The logo can be displayed as a circle.
|
3255
3255
|
*
|
3256
|
-
* @defaultValue '
|
3256
|
+
* @defaultValue 'unset'
|
3257
3257
|
*/
|
3258
|
-
shape?: '
|
3258
|
+
shape?: 'unset' | 'circle';
|
3259
3259
|
};
|
3260
3260
|
/**
|
3261
3261
|
* Background image displayed on the configuration page.
|
@@ -3908,7 +3908,7 @@ export declare type CaptionsReceivedListener = (event: {
|
|
3908
3908
|
*
|
3909
3909
|
* @public
|
3910
3910
|
*/
|
3911
|
-
export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> &
|
3911
|
+
export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers & FileUploadAdapter;
|
3912
3912
|
|
3913
3913
|
/**
|
3914
3914
|
* {@link ChatAdapter} state.
|
@@ -4504,7 +4504,7 @@ export declare type Common<A, B> = Pick<A, CommonProperties<A, B>>;
|
|
4504
4504
|
*
|
4505
4505
|
* @public
|
4506
4506
|
*/
|
4507
|
-
export declare interface CommonCallAdapter extends AdapterState<CallAdapterState>,
|
4507
|
+
export declare interface CommonCallAdapter extends AdapterState<CallAdapterState>, Disposable_2, CallAdapterCallOperations, CallAdapterDeviceManagement, CallAdapterSubscribers {
|
4508
4508
|
/**
|
4509
4509
|
* Join the call with microphone initially on/off.
|
4510
4510
|
* @deprecated Use joinCall(options?:JoinCallOptions) instead.
|
@@ -5475,8 +5475,8 @@ export declare const createDefaultChatHandlers: (chatClient: StatefulChatClient,
|
|
5475
5475
|
* @beta
|
5476
5476
|
*/
|
5477
5477
|
export declare const createDefaultTeamsCallingHandlers: (callClient: StatefulCallClient, callAgent: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent, deviceManager: StatefulDeviceManager | undefined, call: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall, options?: {
|
5478
|
-
onResolveVideoBackgroundEffectsDependency?: (
|
5479
|
-
}
|
5478
|
+
onResolveVideoBackgroundEffectsDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
5479
|
+
}) => never | TeamsCallingHandlers;
|
5480
5480
|
|
5481
5481
|
/**
|
5482
5482
|
* Creates a StatefulCallClient {@link StatefulCallClient} by proxying CallClient
|
@@ -5492,7 +5492,7 @@ export declare const createDefaultTeamsCallingHandlers: (callClient: StatefulCal
|
|
5492
5492
|
*
|
5493
5493
|
* @public
|
5494
5494
|
*/
|
5495
|
-
export declare const createStatefulCallClient: (args: StatefulCallClientArgs, options?: StatefulCallClientOptions
|
5495
|
+
export declare const createStatefulCallClient: (args: StatefulCallClientArgs, options?: StatefulCallClientOptions) => StatefulCallClient;
|
5496
5496
|
|
5497
5497
|
/**
|
5498
5498
|
* Creates a stateful ChatClient {@link StatefulChatClient} by proxying ChatClient
|
@@ -5501,7 +5501,7 @@ export declare const createStatefulCallClient: (args: StatefulCallClientArgs, op
|
|
5501
5501
|
*
|
5502
5502
|
* @public
|
5503
5503
|
*/
|
5504
|
-
export declare const createStatefulChatClient: (args: StatefulChatClientArgs, options?: StatefulChatClientOptions
|
5504
|
+
export declare const createStatefulChatClient: (args: StatefulChatClientArgs, options?: StatefulChatClientOptions) => StatefulChatClient;
|
5505
5505
|
|
5506
5506
|
/**
|
5507
5507
|
* @beta
|
@@ -5516,7 +5516,7 @@ export declare const createTeamsCallAdapter: ({ userId, credential, locator, opt
|
|
5516
5516
|
*
|
5517
5517
|
* @beta
|
5518
5518
|
*/
|
5519
|
-
export declare const createTeamsCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: TeamsCallAgent, locator: CallAdapterLocator, options?:
|
5519
|
+
export declare const createTeamsCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: TeamsCallAgent, locator: CallAdapterLocator, options?: TeamsAdapterOptions) => Promise<TeamsCallAdapter>;
|
5520
5520
|
|
5521
5521
|
/**
|
5522
5522
|
* Object returned after creating a local or remote VideoStream.
|
@@ -5816,49 +5816,49 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
5816
5816
|
* @public
|
5817
5817
|
*/
|
5818
5818
|
export declare const DEFAULT_COMPOSITE_ICONS: {
|
5819
|
-
EditBoxCancel: JSX.Element
|
5820
|
-
EditBoxSubmit: JSX.Element
|
5821
|
-
MessageDelivered: JSX.Element
|
5822
|
-
MessageEdit: JSX.Element
|
5823
|
-
MessageFailed: JSX.Element
|
5824
|
-
MessageRemove: JSX.Element
|
5825
|
-
MessageSeen: JSX.Element
|
5826
|
-
MessageSending: JSX.Element
|
5827
|
-
ParticipantItemOptions: JSX.Element
|
5828
|
-
ParticipantItemOptionsHovered: JSX.Element
|
5829
|
-
SendBoxSend: JSX.Element
|
5830
|
-
SendBoxSendHovered: JSX.Element
|
5819
|
+
EditBoxCancel: JSX.Element;
|
5820
|
+
EditBoxSubmit: JSX.Element;
|
5821
|
+
MessageDelivered: JSX.Element;
|
5822
|
+
MessageEdit: JSX.Element;
|
5823
|
+
MessageFailed: JSX.Element;
|
5824
|
+
MessageRemove: JSX.Element;
|
5825
|
+
MessageSeen: JSX.Element;
|
5826
|
+
MessageSending: JSX.Element;
|
5827
|
+
ParticipantItemOptions: JSX.Element;
|
5828
|
+
ParticipantItemOptionsHovered: JSX.Element;
|
5829
|
+
SendBoxSend: JSX.Element;
|
5830
|
+
SendBoxSendHovered: JSX.Element;
|
5831
5831
|
SendBoxAttachFile?: JSX.Element | undefined;
|
5832
5832
|
ControlBarPeopleButton?: JSX.Element | undefined;
|
5833
|
-
ControlButtonCameraOff: JSX.Element
|
5834
|
-
ControlButtonCameraOn: JSX.Element
|
5835
|
-
ControlButtonEndCall: JSX.Element
|
5836
|
-
ControlButtonMicOff: JSX.Element
|
5837
|
-
ControlButtonMicOn: JSX.Element
|
5838
|
-
ControlButtonOptions: JSX.Element
|
5839
|
-
ControlButtonParticipants: JSX.Element
|
5840
|
-
ControlButtonScreenShareStart: JSX.Element
|
5841
|
-
ControlButtonScreenShareStop: JSX.Element
|
5833
|
+
ControlButtonCameraOff: JSX.Element;
|
5834
|
+
ControlButtonCameraOn: JSX.Element;
|
5835
|
+
ControlButtonEndCall: JSX.Element;
|
5836
|
+
ControlButtonMicOff: JSX.Element;
|
5837
|
+
ControlButtonMicOn: JSX.Element;
|
5838
|
+
ControlButtonOptions: JSX.Element;
|
5839
|
+
ControlButtonParticipants: JSX.Element;
|
5840
|
+
ControlButtonScreenShareStart: JSX.Element;
|
5841
|
+
ControlButtonScreenShareStop: JSX.Element;
|
5842
5842
|
ControlButtonCameraProhibited?: JSX.Element | undefined;
|
5843
5843
|
ControlButtonMicProhibited?: JSX.Element | undefined;
|
5844
|
-
ControlButtonRaiseHand: JSX.Element
|
5845
|
-
ControlButtonLowerHand: JSX.Element
|
5846
|
-
RaiseHandContextualMenuItem: JSX.Element
|
5847
|
-
LowerHandContextualMenuItem: JSX.Element
|
5848
|
-
ErrorBarCallCameraAccessDenied: JSX.Element
|
5849
|
-
ErrorBarCallCameraAlreadyInUse: JSX.Element
|
5850
|
-
ErrorBarCallLocalVideoFreeze: JSX.Element
|
5851
|
-
ErrorBarCallMacOsCameraAccessDenied: JSX.Element
|
5852
|
-
ErrorBarCallMacOsMicrophoneAccessDenied: JSX.Element
|
5853
|
-
ErrorBarCallMicrophoneAccessDenied: JSX.Element
|
5854
|
-
ErrorBarCallMicrophoneMutedBySystem: JSX.Element
|
5855
|
-
ErrorBarCallMicrophoneUnmutedBySystem: JSX.Element
|
5856
|
-
ErrorBarCallNetworkQualityLow: JSX.Element
|
5857
|
-
ErrorBarCallNoMicrophoneFound: JSX.Element
|
5858
|
-
ErrorBarCallNoSpeakerFound: JSX.Element
|
5859
|
-
ErrorBarClear: JSX.Element
|
5860
|
-
HorizontalGalleryLeftButton: JSX.Element
|
5861
|
-
HorizontalGalleryRightButton: JSX.Element
|
5844
|
+
ControlButtonRaiseHand: JSX.Element;
|
5845
|
+
ControlButtonLowerHand: JSX.Element;
|
5846
|
+
RaiseHandContextualMenuItem: JSX.Element;
|
5847
|
+
LowerHandContextualMenuItem: JSX.Element;
|
5848
|
+
ErrorBarCallCameraAccessDenied: JSX.Element;
|
5849
|
+
ErrorBarCallCameraAlreadyInUse: JSX.Element;
|
5850
|
+
ErrorBarCallLocalVideoFreeze: JSX.Element;
|
5851
|
+
ErrorBarCallMacOsCameraAccessDenied: JSX.Element;
|
5852
|
+
ErrorBarCallMacOsMicrophoneAccessDenied: JSX.Element;
|
5853
|
+
ErrorBarCallMicrophoneAccessDenied: JSX.Element;
|
5854
|
+
ErrorBarCallMicrophoneMutedBySystem: JSX.Element;
|
5855
|
+
ErrorBarCallMicrophoneUnmutedBySystem: JSX.Element;
|
5856
|
+
ErrorBarCallNetworkQualityLow: JSX.Element;
|
5857
|
+
ErrorBarCallNoMicrophoneFound: JSX.Element;
|
5858
|
+
ErrorBarCallNoSpeakerFound: JSX.Element;
|
5859
|
+
ErrorBarClear: JSX.Element;
|
5860
|
+
HorizontalGalleryLeftButton: JSX.Element;
|
5861
|
+
HorizontalGalleryRightButton: JSX.Element;
|
5862
5862
|
LobbyScreenConnectingToCall?: JSX.Element | undefined;
|
5863
5863
|
LobbyScreenWaitingToBeAdmitted?: JSX.Element | undefined;
|
5864
5864
|
LocalDeviceSettingsCamera?: JSX.Element | undefined;
|
@@ -5875,12 +5875,12 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
5875
5875
|
NoticePageNotInvitedToRoom?: JSX.Element | undefined;
|
5876
5876
|
NoticePageRoomNotFound?: JSX.Element | undefined;
|
5877
5877
|
NoticePageRoomNotValid?: JSX.Element | undefined;
|
5878
|
-
OptionsCamera: JSX.Element
|
5879
|
-
OptionsMic: JSX.Element
|
5880
|
-
OptionsSpeaker: JSX.Element
|
5881
|
-
ParticipantItemMicOff: JSX.Element
|
5882
|
-
ParticipantItemScreenShareStart: JSX.Element
|
5883
|
-
VideoTileMicOff: JSX.Element
|
5878
|
+
OptionsCamera: JSX.Element;
|
5879
|
+
OptionsMic: JSX.Element;
|
5880
|
+
OptionsSpeaker: JSX.Element;
|
5881
|
+
ParticipantItemMicOff: JSX.Element;
|
5882
|
+
ParticipantItemScreenShareStart: JSX.Element;
|
5883
|
+
VideoTileMicOff: JSX.Element;
|
5884
5884
|
LocalCameraSwitch?: JSX.Element | undefined;
|
5885
5885
|
PeoplePaneAddPerson?: JSX.Element | undefined;
|
5886
5886
|
PeoplePaneOpenDialpad?: JSX.Element | undefined;
|
@@ -6258,10 +6258,11 @@ export declare type DisplayNameChangedListener = (event: {
|
|
6258
6258
|
*
|
6259
6259
|
* @public
|
6260
6260
|
*/
|
6261
|
-
|
6261
|
+
declare interface Disposable_2 {
|
6262
6262
|
/** Dispose of the Composite */
|
6263
6263
|
dispose(): void;
|
6264
6264
|
}
|
6265
|
+
export { Disposable_2 as Disposable }
|
6265
6266
|
|
6266
6267
|
/**
|
6267
6268
|
* DTMF tone for PSTN calls.
|
@@ -9961,7 +9962,7 @@ export declare const useDeviceManager: () => StatefulDeviceManager | undefined;
|
|
9961
9962
|
*
|
9962
9963
|
* @public
|
9963
9964
|
*/
|
9964
|
-
export declare const usePropsFor: <Component extends (props: any) => JSX.Element>(component: Component, type?:
|
9965
|
+
export declare const usePropsFor: <Component extends (props: any) => JSX.Element>(component: Component, type?: 'calling' | 'chat') => ComponentProps<Component>;
|
9965
9966
|
|
9966
9967
|
/**
|
9967
9968
|
* Hook to obtain a selector for a specified component.
|
@@ -9971,7 +9972,7 @@ export declare const usePropsFor: <Component extends (props: any) => JSX.Element
|
|
9971
9972
|
*
|
9972
9973
|
* @public
|
9973
9974
|
*/
|
9974
|
-
export declare const useSelector: <ParamT extends Selector | undefined>(selector: ParamT, selectorProps?: (ParamT extends Selector ? Parameters<ParamT>[1] : undefined) | undefined, type?:
|
9975
|
+
export declare const useSelector: <ParamT extends Selector | undefined>(selector: ParamT, selectorProps?: (ParamT extends Selector ? Parameters<ParamT>[1] : undefined) | undefined, type?: 'calling' | 'chat') => ParamT extends Selector ? ReturnType<ParamT> : undefined;
|
9975
9976
|
|
9976
9977
|
/**
|
9977
9978
|
* Hook to obtain {@link @azure/communication-calling#TeamsCall} from the provider.
|
@@ -176,7 +176,7 @@ const _isValidIdentifier = (identifier) => {
|
|
176
176
|
// Copyright (c) Microsoft Corporation.
|
177
177
|
// Licensed under the MIT License.
|
178
178
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
179
|
-
var telemetryVersion = '1.11.0-alpha-
|
179
|
+
var telemetryVersion = '1.11.0-alpha-202312070013';
|
180
180
|
|
181
181
|
// Copyright (c) Microsoft Corporation.
|
182
182
|
/**
|
@@ -5866,7 +5866,8 @@ const lightTheme = {
|
|
5866
5866
|
neutralPrimary: '#323130',
|
5867
5867
|
neutralDark: '#201f1e',
|
5868
5868
|
black: '#000000',
|
5869
|
-
white: '#ffffff'
|
5869
|
+
white: '#ffffff',
|
5870
|
+
whiteTranslucent40: 'rgba(255, 255, 255, 0.4)'
|
5870
5871
|
},
|
5871
5872
|
callingPalette: {
|
5872
5873
|
callRed: '#a42e43',
|
@@ -5916,7 +5917,8 @@ const darkTheme = {
|
|
5916
5917
|
neutralPrimary: '#ffffff',
|
5917
5918
|
neutralDark: '#f4f4f4',
|
5918
5919
|
black: '#f8f8f8',
|
5919
|
-
white: '#252423'
|
5920
|
+
white: '#252423',
|
5921
|
+
whiteTranslucent40: 'rgba(0, 0, 0, 0.4)'
|
5920
5922
|
},
|
5921
5923
|
callingPalette: {
|
5922
5924
|
callRed: '#c4314b',
|
@@ -11587,8 +11589,7 @@ const participantStateStringStyles$1 = {
|
|
11587
11589
|
textOverflow: 'ellipsis',
|
11588
11590
|
whiteSpace: 'nowrap',
|
11589
11591
|
lineHeight: 'normal',
|
11590
|
-
|
11591
|
-
marginLeft: 'auto',
|
11592
|
+
marginLeft: '0.5rem',
|
11592
11593
|
marginRight: 0
|
11593
11594
|
};
|
11594
11595
|
/**
|
@@ -28328,7 +28329,6 @@ const CONFIGURATION_PAGE_SECTION_MAX_WIDTH_REM = 20.625;
|
|
28328
28329
|
/** @private */
|
28329
28330
|
const CONFIGURATION_PAGE_SECTION_HEIGHT_REM = 13.625;
|
28330
28331
|
const LOGO_HEIGHT_REM = 3;
|
28331
|
-
const LOGO_MARGIN_BOTTOM_REM = 1;
|
28332
28332
|
/**
|
28333
28333
|
* @private
|
28334
28334
|
*/
|
@@ -28339,6 +28339,12 @@ const configurationStackTokensDesktop = {
|
|
28339
28339
|
* @private
|
28340
28340
|
*/
|
28341
28341
|
const configurationStackTokensMobile = {
|
28342
|
+
childrenGap: '0.5rem'
|
28343
|
+
};
|
28344
|
+
/**
|
28345
|
+
* @private
|
28346
|
+
*/
|
28347
|
+
const deviceConfigurationStackTokens = {
|
28342
28348
|
childrenGap: '1.5rem'
|
28343
28349
|
};
|
28344
28350
|
/** @private */
|
@@ -28346,7 +28352,7 @@ const configurationContainerStyle = (desktop, backgroundImageUrl) => ({
|
|
28346
28352
|
root: {
|
28347
28353
|
height: '100%',
|
28348
28354
|
width: '100%',
|
28349
|
-
padding: '2rem 1rem 2rem 1rem',
|
28355
|
+
padding: desktop ? '2rem 1rem 2rem 1rem' : '1rem 1rem 2rem 1rem',
|
28350
28356
|
minWidth: desktop
|
28351
28357
|
? '25rem' // sum of min-width from children + ChildrenGap * (nb of children - 1) + padding * 2 = (11 + 11) + (2 * 1) + 0.5 * 2
|
28352
28358
|
: '16rem',
|
@@ -28399,20 +28405,36 @@ const selectionContainerStyle = (theme) => react.mergeStyles({
|
|
28399
28405
|
/**
|
28400
28406
|
* @private
|
28401
28407
|
*/
|
28402
|
-
const titleContainerStyleDesktop = react.mergeStyles({
|
28403
|
-
fontSize: '1.
|
28404
|
-
lineHeight: '
|
28408
|
+
const titleContainerStyleDesktop = (theme) => react.mergeStyles({
|
28409
|
+
fontSize: '1.2rem',
|
28410
|
+
lineHeight: '1rem',
|
28405
28411
|
fontWeight: 600
|
28406
|
-
});
|
28412
|
+
}, configurationPageTextDecoration(theme));
|
28407
28413
|
/**
|
28408
28414
|
* @private
|
28409
28415
|
*/
|
28410
|
-
const titleContainerStyleMobile = react.mergeStyles({
|
28416
|
+
const titleContainerStyleMobile = (theme) => react.mergeStyles({
|
28411
28417
|
fontSize: '1.0625rem',
|
28412
28418
|
lineHeight: '1.375rem',
|
28413
28419
|
fontWeight: 600,
|
28414
28420
|
textAlign: 'center'
|
28415
|
-
});
|
28421
|
+
}, configurationPageTextDecoration(theme));
|
28422
|
+
/**
|
28423
|
+
* Ensure configuration page text is legible on top of a background image.
|
28424
|
+
* @private
|
28425
|
+
*/
|
28426
|
+
const configurationPageTextDecoration = (theme) => {
|
28427
|
+
return {
|
28428
|
+
textShadow: `0px 0px 8px ${theme.palette.whiteTranslucent40}`,
|
28429
|
+
fill: theme.semanticColors.bodyText,
|
28430
|
+
stroke: theme.palette.whiteTranslucent40,
|
28431
|
+
paintOrder: 'stroke fill',
|
28432
|
+
strokeWidth: _pxToRem(1.5),
|
28433
|
+
text: {
|
28434
|
+
letterSpacing: '-0.02rem' // cope with extra width due to stroke width
|
28435
|
+
}
|
28436
|
+
};
|
28437
|
+
};
|
28416
28438
|
/**
|
28417
28439
|
* @private
|
28418
28440
|
*/
|
@@ -28425,8 +28447,7 @@ const callDetailsContainerStyles = {
|
|
28425
28447
|
};
|
28426
28448
|
const callDetailsStyle = {
|
28427
28449
|
fontSize: '0.9375',
|
28428
|
-
lineHeight: '1.25rem'
|
28429
|
-
marginTop: '0.25rem'
|
28450
|
+
lineHeight: '1.25rem'
|
28430
28451
|
};
|
28431
28452
|
/**
|
28432
28453
|
* @private
|
@@ -28435,7 +28456,7 @@ const callDetailsStyleDesktop = react.mergeStyles(Object.assign({}, callDetailsS
|
|
28435
28456
|
/**
|
28436
28457
|
* @private
|
28437
28458
|
*/
|
28438
|
-
const callDetailsStyleMobile = react.mergeStyles(Object.assign(Object.assign({}, callDetailsStyle), { textAlign: 'center' }));
|
28459
|
+
const callDetailsStyleMobile = react.mergeStyles(Object.assign(Object.assign({}, callDetailsStyle), { marginBottom: '0.5rem', textAlign: 'center' }));
|
28439
28460
|
/**
|
28440
28461
|
* @private
|
28441
28462
|
*/
|
@@ -28521,7 +28542,7 @@ const configurationCenteredContent = (fillsHeight, hasLogo) => react.mergeStyles
|
|
28521
28542
|
// in and not shift the content. To exclude the logo, we subtract the logo height
|
28522
28543
|
// and margin from the actual height. This allows the flex box's natural centering
|
28523
28544
|
// to appropriately center the content.
|
28524
|
-
height: `calc(100% - ${!fillsHeight && hasLogo ? `${LOGO_HEIGHT_REM
|
28545
|
+
height: `calc(100% - ${!fillsHeight && hasLogo ? `${LOGO_HEIGHT_REM}rem` : '0rem'})`
|
28525
28546
|
});
|
28526
28547
|
/** @private */
|
28527
28548
|
const panelStyles = {
|
@@ -28551,13 +28572,13 @@ const logoStyles = (shape) => ({
|
|
28551
28572
|
root: {
|
28552
28573
|
overflow: 'initial',
|
28553
28574
|
display: 'flex',
|
28554
|
-
justifyContent: 'center'
|
28555
|
-
marginBottom: `${LOGO_MARGIN_BOTTOM_REM}rem`
|
28575
|
+
justifyContent: 'center'
|
28556
28576
|
},
|
28557
28577
|
image: {
|
28558
|
-
borderRadius: shape === 'circle' ? '100%' : undefined,
|
28559
28578
|
height: `${LOGO_HEIGHT_REM}rem`,
|
28560
|
-
|
28579
|
+
borderRadius: shape === 'circle' ? '100%' : undefined,
|
28580
|
+
aspectRatio: shape === 'circle' ? '1 / 1' : undefined,
|
28581
|
+
objectFit: shape === 'circle' ? 'cover' : undefined
|
28561
28582
|
}
|
28562
28583
|
});
|
28563
28584
|
|
@@ -29097,6 +29118,88 @@ const CallReadinessModalFallBack = (props) => {
|
|
29097
29118
|
}
|
29098
29119
|
};
|
29099
29120
|
|
29121
|
+
// Copyright (c) Microsoft Corporation.
|
29122
|
+
/**
|
29123
|
+
* An SVG element component that wraps inner text to fit the width of the SVG.
|
29124
|
+
* @private
|
29125
|
+
*/
|
29126
|
+
const SvgWithWordWrapping = (props) => {
|
29127
|
+
const { width, text, lineHeightPx, bufferHeightPx } = props;
|
29128
|
+
const svgRef = React.useRef(null);
|
29129
|
+
const calculationTextElement = React.useRef(null);
|
29130
|
+
const visibleTextElement = React.useRef(null);
|
29131
|
+
const [height, setHeight] = React.useState(0);
|
29132
|
+
// useLayoutEffect ensures that the calculationTextElement is rendered before being used for calculations.
|
29133
|
+
// Using useLayoutEffect over useEffect ensures we do not get a layout shift when the visibleTextElement is rendered
|
29134
|
+
// and the height is updated. This is because useLayoutEffect runs synchronously after DOM mutations but
|
29135
|
+
// before the browser has a chance to paint. See https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
29136
|
+
// for more details.
|
29137
|
+
React.useLayoutEffect(() => {
|
29138
|
+
if (text && calculationTextElement.current && visibleTextElement.current) {
|
29139
|
+
const numLines = convertTextToWrappedText(calculationTextElement.current, visibleTextElement.current, width, lineHeightPx);
|
29140
|
+
setHeight(numLines * lineHeightPx);
|
29141
|
+
}
|
29142
|
+
}, [width, lineHeightPx, text]);
|
29143
|
+
return (React__default["default"].createElement("svg", { width: width, height: height + bufferHeightPx, ref: svgRef, xmlns: "http://www.w3.org/2000/svg" },
|
29144
|
+
React__default["default"].createElement("text", { height: 0, ref: calculationTextElement, style: { visibility: 'hidden' } }, text),
|
29145
|
+
React__default["default"].createElement("text", { ref: visibleTextElement, x: "0", y: bufferHeightPx / 4, role: "heading", "aria-level": 1 })));
|
29146
|
+
};
|
29147
|
+
/**
|
29148
|
+
* Wrap text in tspan elements to fit the width of the SVG
|
29149
|
+
* @param baseTextElement The text element to create the wrapped text from.
|
29150
|
+
* @param outputTextElement The text element to insert the wrapped text into.
|
29151
|
+
* @param maxWidth The maximum width of the text element.
|
29152
|
+
* @param lineHeightPx The height of each line in pixels.
|
29153
|
+
* @returns The number of lines of text.
|
29154
|
+
*/
|
29155
|
+
const convertTextToWrappedText = (inputTextElement, outputTextElement, maxWidth, lineHeightPx) => {
|
29156
|
+
var _a, _b;
|
29157
|
+
const words = (_b = (_a = inputTextElement.textContent) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
29158
|
+
if (words.length === 0 || words[0] === '') {
|
29159
|
+
throw new Error('Text element must contain text');
|
29160
|
+
}
|
29161
|
+
// The current line being built.
|
29162
|
+
let line = '';
|
29163
|
+
// Running total of the number of lines.
|
29164
|
+
let numLines = 0;
|
29165
|
+
// First, clear the output text element.
|
29166
|
+
outputTextElement.textContent = '';
|
29167
|
+
// Iterate through each word and create a tspan element for each line.
|
29168
|
+
for (let i = 0; i < words.length; i++) {
|
29169
|
+
const testLine = line + words[i] + ' ';
|
29170
|
+
const testWidth = inputTextElement.getSubStringLength(0, testLine.length);
|
29171
|
+
if (testWidth > maxWidth && i > 0) {
|
29172
|
+
const newLine = constructTSpanLine(line, lineHeightPx);
|
29173
|
+
outputTextElement.appendChild(newLine);
|
29174
|
+
line = words[i] + ' ';
|
29175
|
+
numLines++;
|
29176
|
+
}
|
29177
|
+
else {
|
29178
|
+
line = testLine;
|
29179
|
+
}
|
29180
|
+
}
|
29181
|
+
// Add the last line.
|
29182
|
+
const newLine = constructTSpanLine(line, lineHeightPx);
|
29183
|
+
outputTextElement.appendChild(newLine);
|
29184
|
+
numLines++;
|
29185
|
+
// Return the number of lines to calculate the height of the SVG.
|
29186
|
+
return numLines;
|
29187
|
+
};
|
29188
|
+
/**
|
29189
|
+
* Create a tspan element for a line of text, with text set to be centered.
|
29190
|
+
* @param line The line of text.
|
29191
|
+
* @param lineHeightPx The height of each line in pixels.
|
29192
|
+
* @returns The tspan element.
|
29193
|
+
*/
|
29194
|
+
const constructTSpanLine = (line, lineHeightPx) => {
|
29195
|
+
const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
|
29196
|
+
tspan.textContent = line;
|
29197
|
+
tspan.setAttribute('x', '50%');
|
29198
|
+
tspan.setAttribute('dy', _pxToRem(lineHeightPx));
|
29199
|
+
tspan.setAttribute('text-anchor', 'middle');
|
29200
|
+
return tspan;
|
29201
|
+
};
|
29202
|
+
|
29100
29203
|
// Copyright (c) Microsoft Corporation.
|
29101
29204
|
// Licensed under the MIT License.
|
29102
29205
|
var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -29166,7 +29269,8 @@ const ConfigurationPage = (props) => {
|
|
29166
29269
|
}
|
29167
29270
|
}
|
29168
29271
|
const locale = useLocale();
|
29169
|
-
const title = (React__default["default"].createElement(react.Stack.Item, { className: mobileView ? titleContainerStyleMobile : titleContainerStyleDesktop
|
29272
|
+
const title = locale.strings.call.configurationPageTitle.length > 0 ? (React__default["default"].createElement(react.Stack.Item, { className: mobileView ? titleContainerStyleMobile(theme) : titleContainerStyleDesktop(theme) },
|
29273
|
+
React__default["default"].createElement(SvgWithWordWrapping, { width: mobileView ? 325 : 445, lineHeightPx: 16 * 1.5, bufferHeightPx: 16, text: locale.strings.call.configurationPageTitle }))) : (React__default["default"].createElement(React__default["default"].Fragment, null));
|
29170
29274
|
const callDescription = locale.strings.call.configurationPageCallDetails && (React__default["default"].createElement(react.Stack.Item, { className: mobileView ? callDetailsStyleMobile : callDetailsStyleDesktop }, locale.strings.call.configurationPageCallDetails));
|
29171
29275
|
let mobileWithPreview = mobileView;
|
29172
29276
|
/* @conditional-compile-remove(rooms) */
|
@@ -29265,7 +29369,7 @@ const ConfigurationPage = (props) => {
|
|
29265
29369
|
logo: props.logo }),
|
29266
29370
|
title,
|
29267
29371
|
callDescription),
|
29268
|
-
React__default["default"].createElement(react.Stack, { horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalFill: mobileWithPreview, tokens:
|
29372
|
+
React__default["default"].createElement(react.Stack, { horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalFill: mobileWithPreview, tokens: deviceConfigurationStackTokens },
|
29269
29373
|
localPreviewTrampoline(mobileWithPreview,
|
29270
29374
|
/* @conditional-compile-remove(rooms) */ !!(role === 'Consumer')),
|
29271
29375
|
React__default["default"].createElement(react.Stack, { styles: mobileView ? undefined : configurationSectionStyle },
|
@@ -29306,11 +29410,10 @@ const micPermissionGrantedTrampoline = (microphonePermissionGranted, audioState)
|
|
29306
29410
|
return audioState && audioState !== 'unsupported' ? audioState === 'granted' : microphonePermissionGranted;
|
29307
29411
|
};
|
29308
29412
|
const Logo = (props) => {
|
29309
|
-
var _a;
|
29310
29413
|
if (!props.logo) {
|
29311
29414
|
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
29312
29415
|
}
|
29313
|
-
return React__default["default"].createElement(react.Image, { styles: logoStyles(
|
29416
|
+
return React__default["default"].createElement(react.Image, { styles: logoStyles(props.logo.shape), src: props.logo.url, alt: props.logo.alt });
|
29314
29417
|
};
|
29315
29418
|
|
29316
29419
|
// Copyright (c) Microsoft Corporation.
|