@azure/communication-react 1.5.1-alpha-202304150013 → 1.5.1-alpha-202304172318
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 +294 -3
- package/dist/dist-cjs/communication-react/index.js +1576 -381
- 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 +13 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +36 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +49 -0
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +53 -0
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +12 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +25 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +68 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +8 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +81 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +57 -0
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +19 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +18 -0
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +38 -0
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -0
- package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +6 -0
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +17 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +7 -0
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +10 -0
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
- 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 +2 -0
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Caption.js +4 -3
- package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +4 -4
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +37 -0
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +88 -0
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +1 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +70 -0
- package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +52 -0
- package/dist/dist-esm/react-components/src/components/StartCaptionsButton.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 +6 -0
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +8 -0
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +17 -2
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +34 -0
- package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +85 -0
- package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/utils.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/utils.js +4 -0
- package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
- package/dist/dist-esm/react-components/src/index.d.ts +1 -0
- package/dist/dist-esm/react-components/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +4 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +11 -1
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.d.ts +48 -0
- package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js +4 -0
- package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -0
- package/dist/dist-esm/react-components/src/types/index.d.ts +1 -0
- package/dist/dist-esm/react-components/src/types/index.js +1 -0
- package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +65 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +61 -2
- 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 +54 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +17 -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/CallControls.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +17 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +41 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +7 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +10 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +46 -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 +26 -1
- 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 +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +24 -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/CaptionsBanner.d.ts +6 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +60 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +107 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +38 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +19 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +113 -6
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +103 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +6 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +24 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +20 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +55 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +25 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/utils.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +61 -1
- package/package.json +10 -10
@@ -30,6 +30,7 @@ import { CallEndReason } from '@azure/communication-calling';
|
|
30
30
|
import { CallerInfo } from '@azure/communication-calling';
|
31
31
|
import { CallKind } from '@azure/communication-calling';
|
32
32
|
import { CallState as CallState_2 } from '@azure/communication-calling';
|
33
|
+
import { CaptionsResultType } from '@azure/communication-calling';
|
33
34
|
import { ChatClient } from '@azure/communication-chat';
|
34
35
|
import { ChatClientOptions } from '@azure/communication-chat';
|
35
36
|
import { ChatMessage as ChatMessage_2 } from '@azure/communication-chat';
|
@@ -88,6 +89,7 @@ import { RoomCallLocator } from '@azure/communication-calling';
|
|
88
89
|
import { ScalingMode } from '@azure/communication-calling';
|
89
90
|
import { SendMessageOptions } from '@azure/communication-chat';
|
90
91
|
import { StartCallOptions } from '@azure/communication-calling';
|
92
|
+
import { StartCaptionsOptions } from '@azure/communication-calling';
|
91
93
|
import { TeamsCall } from '@azure/communication-calling';
|
92
94
|
import { TeamsCallAgent } from '@azure/communication-calling';
|
93
95
|
import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
|
@@ -799,6 +801,25 @@ export declare interface CallAdapterCallOperations {
|
|
799
801
|
* Continues into a call when the browser version is not supported.
|
800
802
|
*/
|
801
803
|
allowUnsupportedBrowserVersion(): void;
|
804
|
+
/**
|
805
|
+
* Function to Start captions
|
806
|
+
* @param options - options for start captions
|
807
|
+
*/
|
808
|
+
startCaptions(options?: StartCaptionsOptions): Promise<void>;
|
809
|
+
/**
|
810
|
+
* Function to set caption language
|
811
|
+
* @param language - language set for caption
|
812
|
+
*/
|
813
|
+
setCaptionLanguage(language: string): Promise<void>;
|
814
|
+
/**
|
815
|
+
* Function to set spoken language
|
816
|
+
* @param language - spoken language
|
817
|
+
*/
|
818
|
+
setSpokenLanguage(language: string): Promise<void>;
|
819
|
+
/**
|
820
|
+
* Funtion to stop captions
|
821
|
+
*/
|
822
|
+
stopCaptions(): Promise<void>;
|
802
823
|
/**
|
803
824
|
* Start the blur video background effect.
|
804
825
|
*
|
@@ -1037,6 +1058,14 @@ export declare interface CallAdapterSubscribers {
|
|
1037
1058
|
* Subscribe function for 'error' event.
|
1038
1059
|
*/
|
1039
1060
|
on(event: 'error', listener: (e: AdapterError) => void): void;
|
1061
|
+
/**
|
1062
|
+
* Subscribe function for 'captionsReceived' event.
|
1063
|
+
*/
|
1064
|
+
on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
|
1065
|
+
/**
|
1066
|
+
* Subscribe function for 'isCaptionsActiveChanged' event.
|
1067
|
+
*/
|
1068
|
+
on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
|
1040
1069
|
/**
|
1041
1070
|
* Unsubscribe function for 'participantsJoined' event.
|
1042
1071
|
*/
|
@@ -1085,6 +1114,14 @@ export declare interface CallAdapterSubscribers {
|
|
1085
1114
|
* Unsubscribe function for 'error' event.
|
1086
1115
|
*/
|
1087
1116
|
off(event: 'error', listener: (e: AdapterError) => void): void;
|
1117
|
+
/**
|
1118
|
+
* Unsubscribe function for 'captionsReceived' event.
|
1119
|
+
*/
|
1120
|
+
off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
|
1121
|
+
/**
|
1122
|
+
* Unsubscribe function for 'isCaptionsActiveChanged' event.
|
1123
|
+
*/
|
1124
|
+
off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
|
1088
1125
|
}
|
1089
1126
|
|
1090
1127
|
/**
|
@@ -1789,6 +1826,70 @@ export declare interface CallCompositeStrings {
|
|
1789
1826
|
* string to be used to announce when multiple unnamed participants have left at the same time.
|
1790
1827
|
*/
|
1791
1828
|
manyUnnamedParticipantsLeft: string;
|
1829
|
+
/**
|
1830
|
+
* string to be used to open live captions contextual menu
|
1831
|
+
*/
|
1832
|
+
liveCaptionsLabel?: string;
|
1833
|
+
/**
|
1834
|
+
* label for opening captions setting modal
|
1835
|
+
*/
|
1836
|
+
captionsSettingsLabel?: string;
|
1837
|
+
/**
|
1838
|
+
* string to be used to start captions
|
1839
|
+
*/
|
1840
|
+
startCaptionsButtonOnLabel?: string;
|
1841
|
+
/**
|
1842
|
+
* string to be used to stop captions
|
1843
|
+
*/
|
1844
|
+
startCaptionsButtonOffLabel?: string;
|
1845
|
+
/**
|
1846
|
+
* tooltip string to be used to show captions is on
|
1847
|
+
*/
|
1848
|
+
startCaptionsButtonTooltipOnContent?: string;
|
1849
|
+
/**
|
1850
|
+
*tooltip string to be used to show captions is off
|
1851
|
+
*/
|
1852
|
+
startCaptionsButtonTooltipOffContent?: string;
|
1853
|
+
/**
|
1854
|
+
* captions setting modal title
|
1855
|
+
*/
|
1856
|
+
captionsSettingsModalTitle?: string;
|
1857
|
+
/**
|
1858
|
+
* label for dropdown inside captions setting modal
|
1859
|
+
*/
|
1860
|
+
captionsSettingsDropdownLabel?: string;
|
1861
|
+
/**
|
1862
|
+
* text under captions setting dropdown indicating what the dropdown is for
|
1863
|
+
*/
|
1864
|
+
captionsSettingsDropdownInfoText?: string;
|
1865
|
+
/**
|
1866
|
+
* confirm button label in captions setting modal
|
1867
|
+
*/
|
1868
|
+
captionsSettingsConfirmButtonLabel?: string;
|
1869
|
+
/**
|
1870
|
+
* cancel button label in captions setting modal
|
1871
|
+
*/
|
1872
|
+
captionsSettingsCancelButtonLabel?: string;
|
1873
|
+
/**
|
1874
|
+
* arial label for captions setting modal
|
1875
|
+
*/
|
1876
|
+
captionsSettingsModalAriaLabel?: string;
|
1877
|
+
/**
|
1878
|
+
* arial label for captions setting modal close button
|
1879
|
+
*/
|
1880
|
+
captionsSettingsCloseModalButtonAriaLabel?: string;
|
1881
|
+
/**
|
1882
|
+
* label for more button inside captions banner
|
1883
|
+
*/
|
1884
|
+
captionsBannerMoreButtonCallingLabel?: string;
|
1885
|
+
/**
|
1886
|
+
* arial label for more button inside captions banner
|
1887
|
+
*/
|
1888
|
+
captionsBannerMoreButtonTooltip?: string;
|
1889
|
+
/**
|
1890
|
+
* list of key value pairs that pairs language code to language names
|
1891
|
+
*/
|
1892
|
+
captionsAvailableLanguageStrings?: CaptionsAvailableLanguageStrings;
|
1792
1893
|
}
|
1793
1894
|
|
1794
1895
|
/**
|
@@ -1873,7 +1974,7 @@ export declare type CallErrors = {
|
|
1873
1974
|
*
|
1874
1975
|
* @public
|
1875
1976
|
*/
|
1876
|
-
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | /* @conditional-compile-remove(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification';
|
1977
|
+
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | /* @conditional-compile-remove(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll';
|
1877
1978
|
|
1878
1979
|
/**
|
1879
1980
|
* Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
|
@@ -2049,6 +2150,10 @@ export declare interface CallState {
|
|
2049
2150
|
* Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
|
2050
2151
|
*/
|
2051
2152
|
transcription: TranscriptionCallFeature;
|
2153
|
+
/**
|
2154
|
+
* Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
|
2155
|
+
*/
|
2156
|
+
captionsFeature: CaptionsCallFeatureState;
|
2052
2157
|
/**
|
2053
2158
|
* Proxy of {@link @azure/communication-calling#RecordingCallFeature}.
|
2054
2159
|
*/
|
@@ -2370,6 +2475,25 @@ export declare interface CallWithChatAdapterManagement {
|
|
2370
2475
|
* Continues into a call when the browser version is not supported.
|
2371
2476
|
*/
|
2372
2477
|
allowUnsupportedBrowserVersion(): void;
|
2478
|
+
/**
|
2479
|
+
* Function to Start captions
|
2480
|
+
* @param options - options for start captions
|
2481
|
+
*/
|
2482
|
+
startCaptions(options?: StartCaptionsOptions): Promise<void>;
|
2483
|
+
/**
|
2484
|
+
* Function to set caption language
|
2485
|
+
* @param language - language set for caption
|
2486
|
+
*/
|
2487
|
+
setCaptionLanguage(language: string): Promise<void>;
|
2488
|
+
/**
|
2489
|
+
* Function to set spoken language
|
2490
|
+
* @param language - spoken language
|
2491
|
+
*/
|
2492
|
+
setSpokenLanguage(language: string): Promise<void>;
|
2493
|
+
/**
|
2494
|
+
* Funtion to stop captions
|
2495
|
+
*/
|
2496
|
+
stopCaptions(): Promise<void>;
|
2373
2497
|
/**
|
2374
2498
|
* Start the blur video background effect.
|
2375
2499
|
*
|
@@ -2429,6 +2553,8 @@ export declare interface CallWithChatAdapterSubscriptions {
|
|
2429
2553
|
on(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
|
2430
2554
|
on(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
|
2431
2555
|
on(event: 'callError', listener: (e: AdapterError) => void): void;
|
2556
|
+
on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
|
2557
|
+
on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
|
2432
2558
|
off(event: 'callEnded', listener: CallEndedListener): void;
|
2433
2559
|
off(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
|
2434
2560
|
off(event: 'callIdChanged', listener: CallIdChangedListener): void;
|
@@ -2440,6 +2566,8 @@ export declare interface CallWithChatAdapterSubscriptions {
|
|
2440
2566
|
off(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
|
2441
2567
|
off(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
|
2442
2568
|
off(event: 'callError', listener: (e: AdapterError) => void): void;
|
2569
|
+
off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
|
2570
|
+
off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
|
2443
2571
|
on(event: 'messageReceived', listener: MessageReceivedListener): void;
|
2444
2572
|
on(event: 'messageSent', listener: MessageSentListener): void;
|
2445
2573
|
on(event: 'messageRead', listener: MessageReadListener): void;
|
@@ -2754,6 +2882,18 @@ export declare interface CallWithChatCompositeStrings {
|
|
2754
2882
|
* Only used with `mobileView` set to `true`.
|
2755
2883
|
*/
|
2756
2884
|
moreDrawerSpeakerMenuTitle: string;
|
2885
|
+
/**
|
2886
|
+
* Title for the captions sub-menu in more button drawer.
|
2887
|
+
*
|
2888
|
+
* Only used with `mobileView` set to `true`.
|
2889
|
+
*/
|
2890
|
+
moreDrawerCaptionsMenuTitle: string;
|
2891
|
+
/**
|
2892
|
+
* Title for the spoken language sub-menu in more button drawer.
|
2893
|
+
*
|
2894
|
+
* Only used with `mobileView` set to `true`.
|
2895
|
+
*/
|
2896
|
+
moreDrawerSpokenLanguageMenuTitle: string;
|
2757
2897
|
/**
|
2758
2898
|
* {@Link CallWithChatComposite} control bar More button label
|
2759
2899
|
*/
|
@@ -2864,7 +3004,7 @@ export declare interface CallWithChatControlOptions extends CommonCallControlOpt
|
|
2864
3004
|
*
|
2865
3005
|
* @public
|
2866
3006
|
*/
|
2867
|
-
export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
|
3007
|
+
export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | /* @conditional-compile-remove(close-captions) */ 'isCaptionsActiveChanged' | /* @conditional-compile-remove(close-captions) */ 'captionsReceived' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
|
2868
3008
|
|
2869
3009
|
/**
|
2870
3010
|
* @beta
|
@@ -3080,6 +3220,136 @@ export declare type CancelEditCallback = (messageId: string, metadata?: Record<s
|
|
3080
3220
|
attachedFilesMetadata?: FileMetadata[];
|
3081
3221
|
}) => void;
|
3082
3222
|
|
3223
|
+
/**
|
3224
|
+
* @beta
|
3225
|
+
* strings for captions setting modal
|
3226
|
+
*/
|
3227
|
+
export declare interface CaptionsAvailableLanguageStrings {
|
3228
|
+
'ar-ae': string;
|
3229
|
+
'ar-sa': string;
|
3230
|
+
'da-dk': string;
|
3231
|
+
'de-de': string;
|
3232
|
+
'en-au': string;
|
3233
|
+
'en-ca': string;
|
3234
|
+
'en-gb': string;
|
3235
|
+
'en-in': string;
|
3236
|
+
'en-nz': string;
|
3237
|
+
'en-us': string;
|
3238
|
+
'es-es': string;
|
3239
|
+
'es-mx': string;
|
3240
|
+
'fi-fi': string;
|
3241
|
+
'fr-ca': string;
|
3242
|
+
'fr-fr': string;
|
3243
|
+
'hi-in': string;
|
3244
|
+
'it-it': string;
|
3245
|
+
'ja-jp': string;
|
3246
|
+
'ko-kr': string;
|
3247
|
+
'nb-no': string;
|
3248
|
+
'nl-be': string;
|
3249
|
+
'nl-nl': string;
|
3250
|
+
'pl-pl': string;
|
3251
|
+
'pt-br': string;
|
3252
|
+
'ru-ru': string;
|
3253
|
+
'sv-se': string;
|
3254
|
+
'zh-cn': string;
|
3255
|
+
'zh-hk': string;
|
3256
|
+
'cs-cz': string;
|
3257
|
+
'pt-pt': string;
|
3258
|
+
'tr-tr': string;
|
3259
|
+
'vi-vn': string;
|
3260
|
+
'th-th': string;
|
3261
|
+
'he-il': string;
|
3262
|
+
'cy-gb': string;
|
3263
|
+
'uk-ua': string;
|
3264
|
+
'el-gr': string;
|
3265
|
+
'hu-hu': string;
|
3266
|
+
'ro-ro': string;
|
3267
|
+
'sk-sk': string;
|
3268
|
+
'zh-tw': string;
|
3269
|
+
}
|
3270
|
+
|
3271
|
+
/**
|
3272
|
+
* @beta
|
3273
|
+
*/
|
3274
|
+
export declare interface CaptionsCallFeatureState {
|
3275
|
+
/**
|
3276
|
+
* supported spoken languages
|
3277
|
+
*/
|
3278
|
+
supportedSpokenLanguages: string[];
|
3279
|
+
/**
|
3280
|
+
* array of received captions
|
3281
|
+
*/
|
3282
|
+
captions: CaptionsInfo[];
|
3283
|
+
/**
|
3284
|
+
* whether captions is on/off
|
3285
|
+
*/
|
3286
|
+
isCaptionsFeatureActive: boolean;
|
3287
|
+
/**
|
3288
|
+
* supported caption languages
|
3289
|
+
*/
|
3290
|
+
supportedCaptionLanguages: string[];
|
3291
|
+
/**
|
3292
|
+
* current spoken language
|
3293
|
+
*/
|
3294
|
+
currentSpokenLanguage: string;
|
3295
|
+
/**
|
3296
|
+
* current caption language
|
3297
|
+
*/
|
3298
|
+
currentCaptionLanguage: string;
|
3299
|
+
}
|
3300
|
+
|
3301
|
+
/**
|
3302
|
+
* @beta
|
3303
|
+
*/
|
3304
|
+
export declare interface CaptionsInfo {
|
3305
|
+
/**
|
3306
|
+
* The state in which this caption data can be classified.
|
3307
|
+
*/
|
3308
|
+
resultType: CaptionsResultType;
|
3309
|
+
/**
|
3310
|
+
* The information of the call participant who spoke the captioned text.
|
3311
|
+
*/
|
3312
|
+
speaker: CallerInfo;
|
3313
|
+
/**
|
3314
|
+
* The language that the spoken words were interpretted as. Corresponds to the language specified in startCaptions / setSpokenLanguage.
|
3315
|
+
*/
|
3316
|
+
spokenLanguage: string;
|
3317
|
+
/**
|
3318
|
+
* The caption text.
|
3319
|
+
*/
|
3320
|
+
captionText: string;
|
3321
|
+
/**
|
3322
|
+
* Timestamp of when the captioned words were initially spoken.
|
3323
|
+
*/
|
3324
|
+
timestamp: Date;
|
3325
|
+
/**
|
3326
|
+
* The language that the captions are presented in. Corresponds to the captionLanguage specified in startCaptions / setCaptionLanguage.
|
3327
|
+
*/
|
3328
|
+
captionLanguage?: string;
|
3329
|
+
/**
|
3330
|
+
* The original spoken caption text prior to translating to subtitle language
|
3331
|
+
*/
|
3332
|
+
spokenText?: string;
|
3333
|
+
}
|
3334
|
+
|
3335
|
+
/**
|
3336
|
+
* options bag to start captions
|
3337
|
+
*
|
3338
|
+
* @beta
|
3339
|
+
*/
|
3340
|
+
export declare type CaptionsOptions = {
|
3341
|
+
spokenLanguage: string;
|
3342
|
+
};
|
3343
|
+
|
3344
|
+
/**
|
3345
|
+
* Callback for {@link CallAdapterSubscribers} 'captionsReceived' event.
|
3346
|
+
*
|
3347
|
+
* @beta
|
3348
|
+
*/
|
3349
|
+
export declare type CaptionsReceivedListener = (event: {
|
3350
|
+
captionsInfo: CaptionsInfo;
|
3351
|
+
}) => void;
|
3352
|
+
|
3083
3353
|
/**
|
3084
3354
|
* {@link ChatComposite} Adapter interface.
|
3085
3355
|
*
|
@@ -3792,6 +4062,10 @@ export declare interface CommonCallingHandlers {
|
|
3792
4062
|
onRemoveVideoBackgroundEffects: () => Promise<void>;
|
3793
4063
|
onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
|
3794
4064
|
onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
|
4065
|
+
onStartCaptions: (options?: CaptionsOptions) => Promise<void>;
|
4066
|
+
onStopCaptions: () => Promise<void>;
|
4067
|
+
onSetSpokenLanguage: (language: string) => Promise<void>;
|
4068
|
+
onSetCaptionLanguage: (language: string) => Promise<void>;
|
3795
4069
|
}
|
3796
4070
|
|
3797
4071
|
/**
|
@@ -4785,6 +5059,10 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4785
5059
|
VerticalGalleryLeftButton: JSX.Element;
|
4786
5060
|
VerticalGalleryRightButton: JSX.Element;
|
4787
5061
|
OptionsVideoBackgroundEffect: JSX.Element;
|
5062
|
+
CaptionsIcon: JSX.Element;
|
5063
|
+
CaptionsOffIcon: JSX.Element;
|
5064
|
+
CaptionsSettingsIcon: JSX.Element;
|
5065
|
+
ChangeSpokenLanguageIcon: JSX.Element;
|
4788
5066
|
};
|
4789
5067
|
|
4790
5068
|
/**
|
@@ -4896,6 +5174,10 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4896
5174
|
VerticalGalleryLeftButton: JSX.Element;
|
4897
5175
|
VerticalGalleryRightButton: JSX.Element;
|
4898
5176
|
OptionsVideoBackgroundEffect: JSX.Element;
|
5177
|
+
CaptionsIcon: JSX.Element;
|
5178
|
+
CaptionsOffIcon: JSX.Element;
|
5179
|
+
CaptionsSettingsIcon: JSX.Element;
|
5180
|
+
ChangeSpokenLanguageIcon: JSX.Element;
|
4899
5181
|
};
|
4900
5182
|
|
4901
5183
|
/**
|
@@ -5964,6 +6246,15 @@ export declare interface IncomingCallState {
|
|
5964
6246
|
endTime?: Date;
|
5965
6247
|
}
|
5966
6248
|
|
6249
|
+
/**
|
6250
|
+
* Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
|
6251
|
+
*
|
6252
|
+
* @beta
|
6253
|
+
*/
|
6254
|
+
export declare type IsCaptionsActiveChangedListener = (event: {
|
6255
|
+
isActive: boolean;
|
6256
|
+
}) => void;
|
6257
|
+
|
5967
6258
|
/**
|
5968
6259
|
* Callback for {@link CallAdapterSubscribers} 'isLocalScreenSharingActiveChanged' event.
|
5969
6260
|
*
|
@@ -7381,7 +7672,7 @@ export declare interface RemoteVideoTileMenuOptions {
|
|
7381
7672
|
* @beta
|
7382
7673
|
* The role of a call participant.
|
7383
7674
|
*/
|
7384
|
-
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer';
|
7675
|
+
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer' | 'Co-organizer';
|
7385
7676
|
|
7386
7677
|
/**
|
7387
7678
|
* A button to start / stop screen sharing.
|