@azure/communication-react 1.5.1-alpha-202304150013 → 1.5.1-alpha-202304180012
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 +296 -3
- package/dist/dist-cjs/communication-react/index.js +1726 -499
- 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 +18 -3
- 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/pages/ConfigurationPage.js +1 -1
- 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/activeVideoBackgroundEffectSelector.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +21 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +22 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +46 -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 +9 -2
- 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 +27 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.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/VideoEffectsPane.d.ts +0 -2
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +20 -10
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.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;
|
@@ -2518,6 +2646,8 @@ export declare interface CallWithChatClientState {
|
|
2518
2646
|
environmentInfo?: EnvironmentInfo;
|
2519
2647
|
/** Default set of background images for background replacement effect */
|
2520
2648
|
videoBackgroundImages?: VideoBackgroundImage[];
|
2649
|
+
/** State to track the selected video background effect */
|
2650
|
+
selectedVideoBackgroundEffect?: SelectedVideoBackgroundEffect;
|
2521
2651
|
}
|
2522
2652
|
|
2523
2653
|
/**
|
@@ -2754,6 +2884,18 @@ export declare interface CallWithChatCompositeStrings {
|
|
2754
2884
|
* Only used with `mobileView` set to `true`.
|
2755
2885
|
*/
|
2756
2886
|
moreDrawerSpeakerMenuTitle: string;
|
2887
|
+
/**
|
2888
|
+
* Title for the captions sub-menu in more button drawer.
|
2889
|
+
*
|
2890
|
+
* Only used with `mobileView` set to `true`.
|
2891
|
+
*/
|
2892
|
+
moreDrawerCaptionsMenuTitle: string;
|
2893
|
+
/**
|
2894
|
+
* Title for the spoken language sub-menu in more button drawer.
|
2895
|
+
*
|
2896
|
+
* Only used with `mobileView` set to `true`.
|
2897
|
+
*/
|
2898
|
+
moreDrawerSpokenLanguageMenuTitle: string;
|
2757
2899
|
/**
|
2758
2900
|
* {@Link CallWithChatComposite} control bar More button label
|
2759
2901
|
*/
|
@@ -2864,7 +3006,7 @@ export declare interface CallWithChatControlOptions extends CommonCallControlOpt
|
|
2864
3006
|
*
|
2865
3007
|
* @public
|
2866
3008
|
*/
|
2867
|
-
export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
|
3009
|
+
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
3010
|
|
2869
3011
|
/**
|
2870
3012
|
* @beta
|
@@ -3080,6 +3222,136 @@ export declare type CancelEditCallback = (messageId: string, metadata?: Record<s
|
|
3080
3222
|
attachedFilesMetadata?: FileMetadata[];
|
3081
3223
|
}) => void;
|
3082
3224
|
|
3225
|
+
/**
|
3226
|
+
* @beta
|
3227
|
+
* strings for captions setting modal
|
3228
|
+
*/
|
3229
|
+
export declare interface CaptionsAvailableLanguageStrings {
|
3230
|
+
'ar-ae': string;
|
3231
|
+
'ar-sa': string;
|
3232
|
+
'da-dk': string;
|
3233
|
+
'de-de': string;
|
3234
|
+
'en-au': string;
|
3235
|
+
'en-ca': string;
|
3236
|
+
'en-gb': string;
|
3237
|
+
'en-in': string;
|
3238
|
+
'en-nz': string;
|
3239
|
+
'en-us': string;
|
3240
|
+
'es-es': string;
|
3241
|
+
'es-mx': string;
|
3242
|
+
'fi-fi': string;
|
3243
|
+
'fr-ca': string;
|
3244
|
+
'fr-fr': string;
|
3245
|
+
'hi-in': string;
|
3246
|
+
'it-it': string;
|
3247
|
+
'ja-jp': string;
|
3248
|
+
'ko-kr': string;
|
3249
|
+
'nb-no': string;
|
3250
|
+
'nl-be': string;
|
3251
|
+
'nl-nl': string;
|
3252
|
+
'pl-pl': string;
|
3253
|
+
'pt-br': string;
|
3254
|
+
'ru-ru': string;
|
3255
|
+
'sv-se': string;
|
3256
|
+
'zh-cn': string;
|
3257
|
+
'zh-hk': string;
|
3258
|
+
'cs-cz': string;
|
3259
|
+
'pt-pt': string;
|
3260
|
+
'tr-tr': string;
|
3261
|
+
'vi-vn': string;
|
3262
|
+
'th-th': string;
|
3263
|
+
'he-il': string;
|
3264
|
+
'cy-gb': string;
|
3265
|
+
'uk-ua': string;
|
3266
|
+
'el-gr': string;
|
3267
|
+
'hu-hu': string;
|
3268
|
+
'ro-ro': string;
|
3269
|
+
'sk-sk': string;
|
3270
|
+
'zh-tw': string;
|
3271
|
+
}
|
3272
|
+
|
3273
|
+
/**
|
3274
|
+
* @beta
|
3275
|
+
*/
|
3276
|
+
export declare interface CaptionsCallFeatureState {
|
3277
|
+
/**
|
3278
|
+
* supported spoken languages
|
3279
|
+
*/
|
3280
|
+
supportedSpokenLanguages: string[];
|
3281
|
+
/**
|
3282
|
+
* array of received captions
|
3283
|
+
*/
|
3284
|
+
captions: CaptionsInfo[];
|
3285
|
+
/**
|
3286
|
+
* whether captions is on/off
|
3287
|
+
*/
|
3288
|
+
isCaptionsFeatureActive: boolean;
|
3289
|
+
/**
|
3290
|
+
* supported caption languages
|
3291
|
+
*/
|
3292
|
+
supportedCaptionLanguages: string[];
|
3293
|
+
/**
|
3294
|
+
* current spoken language
|
3295
|
+
*/
|
3296
|
+
currentSpokenLanguage: string;
|
3297
|
+
/**
|
3298
|
+
* current caption language
|
3299
|
+
*/
|
3300
|
+
currentCaptionLanguage: string;
|
3301
|
+
}
|
3302
|
+
|
3303
|
+
/**
|
3304
|
+
* @beta
|
3305
|
+
*/
|
3306
|
+
export declare interface CaptionsInfo {
|
3307
|
+
/**
|
3308
|
+
* The state in which this caption data can be classified.
|
3309
|
+
*/
|
3310
|
+
resultType: CaptionsResultType;
|
3311
|
+
/**
|
3312
|
+
* The information of the call participant who spoke the captioned text.
|
3313
|
+
*/
|
3314
|
+
speaker: CallerInfo;
|
3315
|
+
/**
|
3316
|
+
* The language that the spoken words were interpretted as. Corresponds to the language specified in startCaptions / setSpokenLanguage.
|
3317
|
+
*/
|
3318
|
+
spokenLanguage: string;
|
3319
|
+
/**
|
3320
|
+
* The caption text.
|
3321
|
+
*/
|
3322
|
+
captionText: string;
|
3323
|
+
/**
|
3324
|
+
* Timestamp of when the captioned words were initially spoken.
|
3325
|
+
*/
|
3326
|
+
timestamp: Date;
|
3327
|
+
/**
|
3328
|
+
* The language that the captions are presented in. Corresponds to the captionLanguage specified in startCaptions / setCaptionLanguage.
|
3329
|
+
*/
|
3330
|
+
captionLanguage?: string;
|
3331
|
+
/**
|
3332
|
+
* The original spoken caption text prior to translating to subtitle language
|
3333
|
+
*/
|
3334
|
+
spokenText?: string;
|
3335
|
+
}
|
3336
|
+
|
3337
|
+
/**
|
3338
|
+
* options bag to start captions
|
3339
|
+
*
|
3340
|
+
* @beta
|
3341
|
+
*/
|
3342
|
+
export declare type CaptionsOptions = {
|
3343
|
+
spokenLanguage: string;
|
3344
|
+
};
|
3345
|
+
|
3346
|
+
/**
|
3347
|
+
* Callback for {@link CallAdapterSubscribers} 'captionsReceived' event.
|
3348
|
+
*
|
3349
|
+
* @beta
|
3350
|
+
*/
|
3351
|
+
export declare type CaptionsReceivedListener = (event: {
|
3352
|
+
captionsInfo: CaptionsInfo;
|
3353
|
+
}) => void;
|
3354
|
+
|
3083
3355
|
/**
|
3084
3356
|
* {@link ChatComposite} Adapter interface.
|
3085
3357
|
*
|
@@ -3792,6 +4064,10 @@ export declare interface CommonCallingHandlers {
|
|
3792
4064
|
onRemoveVideoBackgroundEffects: () => Promise<void>;
|
3793
4065
|
onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
|
3794
4066
|
onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
|
4067
|
+
onStartCaptions: (options?: CaptionsOptions) => Promise<void>;
|
4068
|
+
onStopCaptions: () => Promise<void>;
|
4069
|
+
onSetSpokenLanguage: (language: string) => Promise<void>;
|
4070
|
+
onSetCaptionLanguage: (language: string) => Promise<void>;
|
3795
4071
|
}
|
3796
4072
|
|
3797
4073
|
/**
|
@@ -4785,6 +5061,10 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4785
5061
|
VerticalGalleryLeftButton: JSX.Element;
|
4786
5062
|
VerticalGalleryRightButton: JSX.Element;
|
4787
5063
|
OptionsVideoBackgroundEffect: JSX.Element;
|
5064
|
+
CaptionsIcon: JSX.Element;
|
5065
|
+
CaptionsOffIcon: JSX.Element;
|
5066
|
+
CaptionsSettingsIcon: JSX.Element;
|
5067
|
+
ChangeSpokenLanguageIcon: JSX.Element;
|
4788
5068
|
};
|
4789
5069
|
|
4790
5070
|
/**
|
@@ -4896,6 +5176,10 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4896
5176
|
VerticalGalleryLeftButton: JSX.Element;
|
4897
5177
|
VerticalGalleryRightButton: JSX.Element;
|
4898
5178
|
OptionsVideoBackgroundEffect: JSX.Element;
|
5179
|
+
CaptionsIcon: JSX.Element;
|
5180
|
+
CaptionsOffIcon: JSX.Element;
|
5181
|
+
CaptionsSettingsIcon: JSX.Element;
|
5182
|
+
ChangeSpokenLanguageIcon: JSX.Element;
|
4899
5183
|
};
|
4900
5184
|
|
4901
5185
|
/**
|
@@ -5964,6 +6248,15 @@ export declare interface IncomingCallState {
|
|
5964
6248
|
endTime?: Date;
|
5965
6249
|
}
|
5966
6250
|
|
6251
|
+
/**
|
6252
|
+
* Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
|
6253
|
+
*
|
6254
|
+
* @beta
|
6255
|
+
*/
|
6256
|
+
export declare type IsCaptionsActiveChangedListener = (event: {
|
6257
|
+
isActive: boolean;
|
6258
|
+
}) => void;
|
6259
|
+
|
5967
6260
|
/**
|
5968
6261
|
* Callback for {@link CallAdapterSubscribers} 'isLocalScreenSharingActiveChanged' event.
|
5969
6262
|
*
|
@@ -7381,7 +7674,7 @@ export declare interface RemoteVideoTileMenuOptions {
|
|
7381
7674
|
* @beta
|
7382
7675
|
* The role of a call participant.
|
7383
7676
|
*/
|
7384
|
-
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer';
|
7677
|
+
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer' | 'Co-organizer';
|
7385
7678
|
|
7386
7679
|
/**
|
7387
7680
|
* A button to start / stop screen sharing.
|