@azure/communication-react 1.8.0-alpha-202309020012 → 1.8.0-alpha-202309060012
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 +12 -12
- package/dist/dist-cjs/communication-react/index.js +24 -12
- 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/handlers/createCommonHandlers.d.ts +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +3 -3
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +3 -3
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +12 -4
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.d.ts +2 -2
- package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +1 -1
- 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 +5 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionSettingsDrawer.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionSettingsDrawer.js.map +1 -1
- package/package.json +8 -8
@@ -3560,14 +3560,14 @@ export declare type CancelEditCallback = (messageId: string) => void;
|
|
3560
3560
|
/**
|
3561
3561
|
* Callback for {@link CallAdapterSubscribers} 'capabilitiesChanged' event.
|
3562
3562
|
*
|
3563
|
-
* @
|
3563
|
+
* @public
|
3564
3564
|
*/
|
3565
3565
|
export declare type CapabilitiesChangedListener = (data: CapabilitiesChangeInfo) => void;
|
3566
3566
|
|
3567
3567
|
/**
|
3568
3568
|
* State only version of {@link @azure/communication-calling#CapabilitiesFeature}
|
3569
3569
|
*
|
3570
|
-
* @
|
3570
|
+
* @public
|
3571
3571
|
*/
|
3572
3572
|
export declare interface CapabilitiesFeatureState {
|
3573
3573
|
/**
|
@@ -3582,7 +3582,7 @@ export declare interface CapabilitiesFeatureState {
|
|
3582
3582
|
|
3583
3583
|
/**
|
3584
3584
|
* Strings for capability changed notification
|
3585
|
-
* @
|
3585
|
+
* @public
|
3586
3586
|
*/
|
3587
3587
|
export declare interface CapabilityChangedNotificationStrings {
|
3588
3588
|
/**
|
@@ -3627,7 +3627,7 @@ export declare interface CapabilityChangedNotificationStrings {
|
|
3627
3627
|
}
|
3628
3628
|
|
3629
3629
|
/**
|
3630
|
-
* @
|
3630
|
+
* @public
|
3631
3631
|
* caption language strings for captions setting modal
|
3632
3632
|
*/
|
3633
3633
|
export declare interface CaptionLanguageStrings {
|
@@ -3666,7 +3666,7 @@ export declare interface CaptionLanguageStrings {
|
|
3666
3666
|
}
|
3667
3667
|
|
3668
3668
|
/**
|
3669
|
-
* @
|
3669
|
+
* @public
|
3670
3670
|
*/
|
3671
3671
|
export declare interface CaptionsCallFeatureState {
|
3672
3672
|
/**
|
@@ -3700,7 +3700,7 @@ export declare interface CaptionsCallFeatureState {
|
|
3700
3700
|
}
|
3701
3701
|
|
3702
3702
|
/**
|
3703
|
-
* @
|
3703
|
+
* @public
|
3704
3704
|
*/
|
3705
3705
|
export declare interface CaptionsInfo {
|
3706
3706
|
/**
|
@@ -3736,7 +3736,7 @@ export declare interface CaptionsInfo {
|
|
3736
3736
|
/**
|
3737
3737
|
* options bag to start captions
|
3738
3738
|
*
|
3739
|
-
* @
|
3739
|
+
* @public
|
3740
3740
|
*/
|
3741
3741
|
export declare type CaptionsOptions = {
|
3742
3742
|
spokenLanguage: string;
|
@@ -3745,7 +3745,7 @@ export declare type CaptionsOptions = {
|
|
3745
3745
|
/**
|
3746
3746
|
* Callback for {@link CallAdapterSubscribers} 'captionsReceived' event.
|
3747
3747
|
*
|
3748
|
-
* @
|
3748
|
+
* @public
|
3749
3749
|
*/
|
3750
3750
|
export declare type CaptionsReceivedListener = (event: {
|
3751
3751
|
captionsInfo: CaptionsInfo;
|
@@ -6947,7 +6947,7 @@ export declare interface IncomingCallState {
|
|
6947
6947
|
/**
|
6948
6948
|
* Callback for {@link CallAdapterSubscribers} 'isCaptionLanguageChanged' event.
|
6949
6949
|
*
|
6950
|
-
* @
|
6950
|
+
* @public
|
6951
6951
|
*/
|
6952
6952
|
export declare type IsCaptionLanguageChangedListener = (event: {
|
6953
6953
|
activeCaptionLanguage: string;
|
@@ -6956,7 +6956,7 @@ export declare type IsCaptionLanguageChangedListener = (event: {
|
|
6956
6956
|
/**
|
6957
6957
|
* Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
|
6958
6958
|
*
|
6959
|
-
* @
|
6959
|
+
* @public
|
6960
6960
|
*/
|
6961
6961
|
export declare type IsCaptionsActiveChangedListener = (event: {
|
6962
6962
|
isActive: boolean;
|
@@ -6994,7 +6994,7 @@ export declare type IsSpeakingChangedListener = (event: {
|
|
6994
6994
|
/**
|
6995
6995
|
* Callback for {@link CallAdapterSubscribers} 'isSpokenLanguageChanged' event.
|
6996
6996
|
*
|
6997
|
-
* @
|
6997
|
+
* @public
|
6998
6998
|
*/
|
6999
6999
|
export declare type IsSpokenLanguageChangedListener = (event: {
|
7000
7000
|
activeSpokenLanguage: string;
|
@@ -8927,7 +8927,7 @@ export declare interface SitePermissionsStyles extends BaseCustomStyles {
|
|
8927
8927
|
}
|
8928
8928
|
|
8929
8929
|
/**
|
8930
|
-
* @
|
8930
|
+
* @public
|
8931
8931
|
* spoken language strings for captions setting modal
|
8932
8932
|
*/
|
8933
8933
|
export declare interface SpokenLanguageStrings {
|
@@ -178,7 +178,7 @@ const _isValidIdentifier = (identifier) => {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT license.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.8.0-alpha-
|
181
|
+
var telemetryVersion = '1.8.0-alpha-202309060012';
|
182
182
|
|
183
183
|
// Copyright (c) Microsoft Corporation.
|
184
184
|
/**
|
@@ -1955,7 +1955,7 @@ class CallContext$2 {
|
|
1955
1955
|
}
|
1956
1956
|
});
|
1957
1957
|
}
|
1958
|
-
/* @conditional-compile-remove(rooms) */
|
1958
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
1959
1959
|
setRole(callId, role) {
|
1960
1960
|
this.modifyState((draft) => {
|
1961
1961
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -3586,7 +3586,7 @@ class CallSubscriber {
|
|
3586
3586
|
this._call.on('remoteParticipantsUpdated', this.remoteParticipantsUpdated);
|
3587
3587
|
this._call.on('localVideoStreamsUpdated', this.localVideoStreamsUpdated);
|
3588
3588
|
this._call.on('isMutedChanged', this.isMuteChanged);
|
3589
|
-
/* @conditional-compile-remove(rooms) */
|
3589
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
3590
3590
|
this._call.on('roleChanged', this.callRoleChangedHandler);
|
3591
3591
|
this._call.feature(communicationCalling.Features.DominantSpeakers).on('dominantSpeakersChanged', this.dominantSpeakersChanged);
|
3592
3592
|
/* @conditional-compile-remove(total-participant-count) */
|
@@ -3612,7 +3612,7 @@ class CallSubscriber {
|
|
3612
3612
|
this._call.off('remoteParticipantsUpdated', this.remoteParticipantsUpdated);
|
3613
3613
|
this._call.off('localVideoStreamsUpdated', this.localVideoStreamsUpdated);
|
3614
3614
|
this._call.off('isMutedChanged', this.isMuteChanged);
|
3615
|
-
/* @conditional-compile-remove(rooms) */
|
3615
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
3616
3616
|
this._call.off('roleChanged', this.callRoleChangedHandler);
|
3617
3617
|
/* @conditional-compile-remove(total-participant-count) */
|
3618
3618
|
this._call.off('totalParticipantCountChanged', this.totalParticipantCountChangedHandler);
|
@@ -3662,7 +3662,7 @@ class CallSubscriber {
|
|
3662
3662
|
this.isMuteChanged = () => {
|
3663
3663
|
this._context.setCallIsMicrophoneMuted(this._callIdRef.callId, this._call.isMuted);
|
3664
3664
|
};
|
3665
|
-
/* @conditional-compile-remove(rooms) */
|
3665
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
3666
3666
|
this.callRoleChangedHandler = () => {
|
3667
3667
|
this._context.setRole(this._callIdRef.callId, this._call.role);
|
3668
3668
|
};
|
@@ -17667,6 +17667,14 @@ const _CaptionsSettingsModal = (props) => {
|
|
17667
17667
|
};
|
17668
17668
|
});
|
17669
17669
|
}, [supportedCaptionLanguages, captionLanguageStrings]);
|
17670
|
+
const sortedSpokenLanguageDropdownOptions = React.useMemo(() => {
|
17671
|
+
const copy = [...spokenLanguageDropdownOptions];
|
17672
|
+
return copy.sort((a, b) => (a.text > b.text ? 1 : -1));
|
17673
|
+
}, [spokenLanguageDropdownOptions]);
|
17674
|
+
const sortedCaptionLanguageDropdownOptions = React.useMemo(() => {
|
17675
|
+
const copy = [...captionLanguageDropdownOptions];
|
17676
|
+
return copy.sort((a, b) => (a.text > b.text ? 1 : -1));
|
17677
|
+
}, [captionLanguageDropdownOptions]);
|
17670
17678
|
const onSpokenLanguageChange = (event, option) => {
|
17671
17679
|
if (option) {
|
17672
17680
|
setSelectedSpokenLanguage(option);
|
@@ -17686,17 +17694,17 @@ const _CaptionsSettingsModal = (props) => {
|
|
17686
17694
|
? currentCaptionLanguage
|
17687
17695
|
: _spokenLanguageToCaptionLanguage[placeholderSpokenLanguage];
|
17688
17696
|
return (React__default['default'].createElement(react.Stack, null,
|
17689
|
-
React__default['default'].createElement(react.Dropdown, { label: strings === null || strings === void 0 ? void 0 : strings.captionsSettingsSpokenLanguageDropdownLabel, selectedKey: selectedSpokenLanguage ? selectedSpokenLanguage.key : undefined, onChange: onSpokenLanguageChange, calloutProps: calloutProps, placeholder: placeholderSpokenLanguage, options:
|
17697
|
+
React__default['default'].createElement(react.Dropdown, { label: strings === null || strings === void 0 ? void 0 : strings.captionsSettingsSpokenLanguageDropdownLabel, selectedKey: selectedSpokenLanguage ? selectedSpokenLanguage.key : undefined, onChange: onSpokenLanguageChange, calloutProps: calloutProps, placeholder: placeholderSpokenLanguage, options: sortedSpokenLanguageDropdownOptions, styles: dropdownStyles }),
|
17690
17698
|
React__default['default'].createElement(react.Text, { className: dropdownInfoTextStyle(theme) }, strings === null || strings === void 0 ? void 0 : strings.captionsSettingsSpokenLanguageDropdownInfoText),
|
17691
17699
|
changeCaptionLanguage && (React__default['default'].createElement(React__default['default'].Fragment, null,
|
17692
|
-
React__default['default'].createElement(react.Dropdown, { label: strings === null || strings === void 0 ? void 0 : strings.captionsSettingsCaptionLanguageDropdownLabel, selectedKey: selectedCaptionLanguage ? selectedCaptionLanguage.key : undefined, onChange: onCaptionLanguageChange, calloutProps: calloutProps, placeholder: placeholderCaptionLanguage, options:
|
17700
|
+
React__default['default'].createElement(react.Dropdown, { label: strings === null || strings === void 0 ? void 0 : strings.captionsSettingsCaptionLanguageDropdownLabel, selectedKey: selectedCaptionLanguage ? selectedCaptionLanguage.key : undefined, onChange: onCaptionLanguageChange, calloutProps: calloutProps, placeholder: placeholderCaptionLanguage, options: sortedCaptionLanguageDropdownOptions, styles: dropdownStyles }),
|
17693
17701
|
React__default['default'].createElement(react.Text, { className: dropdownInfoTextStyle(theme) }, strings === null || strings === void 0 ? void 0 : strings.captionsSettingsCaptionLanguageDropdownInfoText)))));
|
17694
17702
|
}, [
|
17695
17703
|
calloutProps,
|
17696
17704
|
currentSpokenLanguage,
|
17697
17705
|
currentCaptionLanguage,
|
17698
|
-
|
17699
|
-
|
17706
|
+
sortedSpokenLanguageDropdownOptions,
|
17707
|
+
sortedCaptionLanguageDropdownOptions,
|
17700
17708
|
selectedCaptionLanguage,
|
17701
17709
|
selectedSpokenLanguage,
|
17702
17710
|
strings === null || strings === void 0 ? void 0 : strings.captionsSettingsSpokenLanguageDropdownInfoText,
|
@@ -23146,7 +23154,7 @@ const Camera = (props) => {
|
|
23146
23154
|
var _a, _b, _c;
|
23147
23155
|
const cameraButtonProps = usePropsFor$1(CameraButton);
|
23148
23156
|
const styles = React.useMemo(() => { var _a; return concatButtonBaseStyles((_a = props.styles) !== null && _a !== void 0 ? _a : {}); }, [props.styles]);
|
23149
|
-
/* @conditional-compile-remove(rooms) */
|
23157
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
23150
23158
|
const adapter = useAdapter();
|
23151
23159
|
/* @conditional-compile-remove(rooms) */
|
23152
23160
|
const isRoomsCall = adapter.getState().isRoomsCall;
|
@@ -23377,7 +23385,7 @@ const Microphone = (props) => {
|
|
23377
23385
|
const callStatus = useSelector$1(getCallStatus);
|
23378
23386
|
const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
|
23379
23387
|
const strings = useLocale().strings.call;
|
23380
|
-
/* @conditional-compile-remove(rooms) */
|
23388
|
+
/* @conditional-compile-remove(rooms) */ /* @conditional-compile-remove(capabilities) */
|
23381
23389
|
const adapter = useAdapter();
|
23382
23390
|
/* @conditional-compile-remove(rooms) */
|
23383
23391
|
const isRoomsCall = adapter.getState().isRoomsCall;
|
@@ -24654,8 +24662,12 @@ const CaptionSettingsDrawer = (props) => {
|
|
24654
24662
|
secondaryIconProps: props.currentLanguage === languageCode ? { iconName: 'Accept' } : undefined
|
24655
24663
|
}));
|
24656
24664
|
}, [props.currentLanguage, props.supportedLanguageStrings, onDrawerItemClick]);
|
24665
|
+
const sortedDrawerItems = React.useMemo(() => {
|
24666
|
+
const copy = [...drawerItems];
|
24667
|
+
return copy.sort((a, b) => (a.text && b.text && a.text > b.text ? 1 : -1));
|
24668
|
+
}, [drawerItems]);
|
24657
24669
|
/* @conditional-compile-remove(close-captions) */
|
24658
|
-
return (React__default['default'].createElement(_DrawerMenu, { heading: (_a = props.strings) === null || _a === void 0 ? void 0 : _a.menuTitle, items:
|
24670
|
+
return (React__default['default'].createElement(_DrawerMenu, { heading: (_a = props.strings) === null || _a === void 0 ? void 0 : _a.menuTitle, items: sortedDrawerItems !== null && sortedDrawerItems !== void 0 ? sortedDrawerItems : [], onLightDismiss: () => {
|
24659
24671
|
props.setCurrentLanguage(props.currentLanguage);
|
24660
24672
|
props.onLightDismiss();
|
24661
24673
|
}, styles: captionSettingsDrawerStyles(theme) }));
|