@azure/communication-react 1.2.3-alpha-202206280015.0 → 1.3.2-alpha-202206290013.0

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.
Files changed (55) hide show
  1. package/CHANGELOG.json +957 -0
  2. package/CHANGELOG.md +65 -1
  3. package/dist/communication-react.d.ts +30 -1
  4. package/dist/dist-cjs/communication-react/index.js +67 -29
  5. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts.map +1 -1
  8. package/dist/dist-esm/react-components/src/components/ErrorBar.js +16 -1
  9. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  10. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +37 -6
  11. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +37 -6
  12. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +38 -7
  13. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +37 -6
  14. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +37 -6
  15. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +37 -6
  16. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +37 -6
  17. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +37 -6
  18. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +37 -6
  19. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +37 -6
  20. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +37 -6
  21. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +37 -6
  22. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +37 -6
  23. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  24. package/dist/dist-esm/react-components/src/theming/icons.d.ts.map +1 -1
  25. package/dist/dist-esm/react-components/src/theming/icons.js +3 -2
  26. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  27. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +6 -1
  28. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts.map +1 -1
  29. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +10 -0
  30. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +21 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts.map +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts.map +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +12 -0
  36. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +6 -2
  38. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts.map +1 -1
  39. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +3 -0
  40. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts.map +1 -1
  41. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +10 -5
  43. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +10 -5
  44. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +10 -5
  45. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +10 -5
  46. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +10 -5
  47. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +10 -5
  48. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +10 -5
  49. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +10 -5
  50. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +10 -5
  51. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +10 -5
  52. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +10 -5
  53. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +10 -5
  54. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +10 -5
  55. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,9 +1,73 @@
1
1
  # Change Log - @azure/communication-react
2
2
 
3
- This log was last generated on Tue, 19 Apr 2022 20:46:13 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 13 Jun 2022 18:29:25 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [1.3.0](https://github.com/azure/communication-ui-library/tree/@azure/communication-react_v1.3.0)
8
+
9
+ This stable release is mostly minor changes and bug fixes and quality of life improvements, there are no major feature introductions.
10
+
11
+ A lot of bug fixes in this stable release are related to accessibility. Fixes include improved narration from screen readers in CallWithChat composite as well as improved keyboard navigation.
12
+
13
+ Also included are updates to the video streams with new features like a loading spinner in the remote stream when the remote participants connection is loading. Available in the components now and coming soon to the composites.
14
+
15
+ Mon, 13 Jun 2022 18:29:25 GMT
16
+ [Compare changes](https://github.com/azure/communication-ui-library/compare/@azure/communication-react_v1.2.2-beta.1...@azure/communication-react_v1.3.0)
17
+
18
+ ### Minor changes
19
+ - Video Gallery supports a loading spinner to indicate a video stream is incoming but has not yet loaded. This feature will be enabled in the Composites soon. ([PR #1954](https://github.com/azure/communication-ui-library/pull/1954) by chwhilar@microsoft.com)
20
+ - Support updateScalingMode in the VideoGallery to avoid having to destroy and recreate the stream when the localVideoViewOption scaling mode is changed ([PR #1890](https://github.com/azure/communication-ui-library/pull/1890) by 2684369+JamesBurnside@users.noreply.github.com)
21
+ - Announce when microphone is turned on/off and video is turned on/off to screen readers and narrator tools ([PR #1772](https://github.com/azure/communication-ui-library/pull/1772) by 94866715+dmceachernmsft@users.noreply.github.com)
22
+
23
+ ### Patches
24
+ - Fix support for onDisposeLocalStreamView in `VideoGallery` ([PR #1866](https://github.com/azure/communication-ui-library/pull/1866) by 2684369+JamesBurnside@users.noreply.github.com)
25
+ - Fixed theming of links for html and richtext/html messages in MessageThread. ([PR #1824](https://github.com/azure/communication-ui-library/pull/1824) by miguelgamis@microsoft.com)
26
+ - Added error text color in light and dark themes in semanticColors property. ([PR #1861](https://github.com/azure/communication-ui-library/pull/1861) by 79475487+mgamis-msft@users.noreply.github.com)
27
+ - Change Microphone Contextual Menu header text to Audio Device when no speakers are detected ([PR #1883](https://github.com/azure/communication-ui-library/pull/1883) by edwardlee@microsoft.com)
28
+ - when there is no menu items, participant item should not be clickable ([PR #1844](https://github.com/azure/communication-ui-library/pull/1844) by carolinecao@microsoft.com)
29
+ - Fix inverted host element when local video plays in picture-in-picture window ([PR #1933](https://github.com/azure/communication-ui-library/pull/1933) by 82062616+prprabhu-ms@users.noreply.github.com)
30
+ - Add split button aria labels to the microphone and camera buttons. Remove the aria-role of menu from the split buttons. ([PR #1829](https://github.com/azure/communication-ui-library/pull/1829) by 94866715+dmceachernmsft@users.noreply.github.com)
31
+ - Fixed chat status not annoucing on voice over on iphone bug ([PR #1939](https://github.com/azure/communication-ui-library/pull/1939) by 96077406+carocao-msft@users.noreply.github.com)
32
+ - Delay consecutive messages in _ComplianceBanner to give user time to read the message ([PR #1878](https://github.com/azure/communication-ui-library/pull/1878) by 82062616+prprabhu-ms@users.noreply.github.com)
33
+ - Disable hover behavior when no content in sendBox ([PR #1534](https://github.com/azure/communication-ui-library/pull/1534) by jiangnanhello@live.com)
34
+ - add placeholder participant name for unnamed participants ([PR #1978](https://github.com/azure/communication-ui-library/pull/1978) by carolinecao@microsoft.com)
35
+ - Code refactor: Update remote video tile to use the useVideoStreamLifecycleMaintainer ([PR #1906](https://github.com/azure/communication-ui-library/pull/1906) by 2684369+JamesBurnside@users.noreply.github.com)
36
+ - Fix local preview in the VideoGallery not re-rendering when localVideoViewOptions property changed ([PR #1841](https://github.com/azure/communication-ui-library/pull/1841) by 2684369+JamesBurnside@users.noreply.github.com)
37
+ - Fix tab ordering of the New Messages button in the Chat Composite ([PR #1961](https://github.com/azure/communication-ui-library/pull/1961) by 2684369+JamesBurnside@users.noreply.github.com)
38
+ - Add a default host layer in base provider 1. make our lib compatible with react-full-screen 2. avoid polluting global dom tree ([PR #1950](https://github.com/azure/communication-ui-library/pull/1950) by jinan@microsoft.com)
39
+ - Refactor: Ensure the LocalAndRemotePiP reuses the same LocalVideoTile and RemoteVideoTile the VideoGallery component uses ([PR #1930](https://github.com/azure/communication-ui-library/pull/1930) by 2684369+JamesBurnside@users.noreply.github.com)
40
+ - Fix param value in callId change event ([PR #1819](https://github.com/azure/communication-ui-library/pull/1819) by jiangnanhello@live.com)
41
+ - Fixed font of LocalPreview label that indicates camera is off. ([PR #1827](https://github.com/azure/communication-ui-library/pull/1827) by 79475487+mgamis-msft@users.noreply.github.com)
42
+ - Fix a memoization in Call-based composites to prevent onRenderAvatar triggering unecessary re-renders ([PR #1935](https://github.com/azure/communication-ui-library/pull/1935) by 2684369+JamesBurnside@users.noreply.github.com)
43
+ - Update createStreamView to return the created stream view result ([PR #1891](https://github.com/azure/communication-ui-library/pull/1891) by 2684369+JamesBurnside@users.noreply.github.com)
44
+ - Fixed contextual menus in CallWithChatComposite and CallComposite to be responsive to window resize. ([PR #1800](https://github.com/azure/communication-ui-library/pull/1800) by miguelgamis@microsoft.com)
45
+ - Ensure referential ID of callwithchatcomposite is unique among call with chat instances ([PR #1869](https://github.com/azure/communication-ui-library/pull/1869) by 2684369+JamesBurnside@users.noreply.github.com)
46
+ - Introduce tests to support new custom data model behaviors. ([PR #1836](https://github.com/azure/communication-ui-library/pull/1836) by 94866715+dmceachernmsft@users.noreply.github.com)
47
+ - Introduce the usage of the adapters error handling to the fetchInitialData function. ([PR #1845](https://github.com/azure/communication-ui-library/pull/1845) by 94866715+dmceachernmsft@users.noreply.github.com)
48
+ - Fix whole app re-render when callId changes ([PR #1820](https://github.com/azure/communication-ui-library/pull/1820) by jiangnanhello@live.com)
49
+ - Fix the display name of the remote participants when they provide onFetchAvatarPersonaData prop. ([PR #1822](https://github.com/azure/communication-ui-library/pull/1822) by 94866715+dmceachernmsft@users.noreply.github.com)
50
+ - Change Microphone Contextual Menu header text to Audio Device when no speakers are detected ([PR #1883](https://github.com/azure/communication-ui-library/pull/1883) by edwardlee@microsoft.com)
51
+ - Remove spurius console log ([PR #1451](https://github.com/azure/communication-ui-library/pull/1451) by 82062616+prprabhu-ms@users.noreply.github.com)
52
+ - update storybook to v6.5.7 ([PR #1972](https://github.com/azure/communication-ui-library/pull/1972) by 2684369+JamesBurnside@users.noreply.github.com)
53
+ - Fix video freeze in LocalPreview story ([PR #1949](https://github.com/azure/communication-ui-library/pull/1949) by 82062616+prprabhu-ms@users.noreply.github.com)
54
+ - Resolve icon centering on SendBox storybook examples ([PR #1833](https://github.com/azure/communication-ui-library/pull/1833) by edwardlee@microsoft.com)
55
+ - patched error on storybook participant item not showing name ([PR #1844](https://github.com/azure/communication-ui-library/pull/1844) by carolinecao@microsoft.com)
56
+ - Add Best Practices documentation to Storybook ([PR #1970](https://github.com/azure/communication-ui-library/pull/1970) by 2684369+JamesBurnside@users.noreply.github.com)
57
+ - Add default replacer to do safe stringify ([PR #1921](https://github.com/azure/communication-ui-library/pull/1921) by jinan@microsoft.com)
58
+ - Update VideoGallery bindings to return the created view when starting a local video stream ([PR #1891](https://github.com/azure/communication-ui-library/pull/1891) by 2684369+JamesBurnside@users.noreply.github.com)
59
+ - When participant doesnt have a name, set the name to unnamed participant ([PR #1978](https://github.com/azure/communication-ui-library/pull/1978) by carolinecao@microsoft.com)
60
+ - Fix Calling handler to correctly dispose a local view when view is attached to a call ([PR #1867](https://github.com/azure/communication-ui-library/pull/1867) by 2684369+JamesBurnside@users.noreply.github.com)
61
+ - Support calling `updateScalingMode` in the Video Gallery with remote video streams instead of recreating the stream when the scaling mode changes ([PR #1907](https://github.com/azure/communication-ui-library/pull/1907) by 2684369+JamesBurnside@users.noreply.github.com)
62
+ - Fixed onCreateLocalStreamView handler default videostream options to be cropped and mirrored. ([PR #1909](https://github.com/azure/communication-ui-library/pull/1909) by miguelgamis@microsoft.com)
63
+ - Return the renderer and view created when statefulCallClient.createView is called ([PR #1889](https://github.com/azure/communication-ui-library/pull/1889) by 2684369+JamesBurnside@users.noreply.github.com)
64
+ - Add callIdHistory to context + internal context - Update all visit to callId using latestCallId - Encapsule the access to internalMap directly to ensure no leaks ([PR #1817](https://github.com/azure/communication-ui-library/pull/1817) by jiangnanhello@live.com)
65
+ - Update the right call.id into state ([PR #1818](https://github.com/azure/communication-ui-library/pull/1818) by jiangnanhello@live.com)
66
+ - Remove dependency on azure/communication-signalling, instead use types from azure/communication-chat ([PR #1895](https://github.com/azure/communication-ui-library/pull/1895) by 2684369+JamesBurnside@users.noreply.github.com)
67
+ - Only emit stateChanged events where there is an actual change ([PR #1449](https://github.com/azure/communication-ui-library/pull/1449) by 82062616+prprabhu-ms@users.noreply.github.com)
68
+
69
+
70
+
7
71
  ## [1.2.2-beta.1](https://github.com/azure/communication-ui-library/tree/@azure/communication-react_v1.2.2-beta.1)
8
72
 
9
73
  Tue, 19 Apr 2022 20:46:13 GMT
@@ -71,6 +71,7 @@ import { PersonaPresence } from '@fluentui/react';
71
71
  import { PersonaSize } from '@fluentui/react';
72
72
  import { PhoneNumberIdentifier } from '@azure/communication-common';
73
73
  import { PhoneNumberKind } from '@azure/communication-common';
74
+ import { PropertyChangedEvent } from '@azure/communication-calling';
74
75
  import { default as React_2 } from 'react';
75
76
  import type { RemoteParticipant } from '@azure/communication-calling';
76
77
  import { RemoteParticipantState as RemoteParticipantState_2 } from '@azure/communication-calling';
@@ -636,6 +637,18 @@ export declare interface CallAdapterSubscribers {
636
637
  * This event fires whenever there is a change in user facing diagnostics about the ongoing call.
637
638
  */
638
639
  on(event: 'diagnosticChanged', listener: DiagnosticChangedEventListner): void;
640
+ /**
641
+ * Subscribe function for 'selectedMicrophoneChanged' event.
642
+ *
643
+ * This event fires whenever the user selects a new microphone device.
644
+ */
645
+ on(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
646
+ /**
647
+ * Subscribe function for 'selectedSpeakerChanged' event.
648
+ *
649
+ * This event fires whenever the user selects a new speaker device.
650
+ */
651
+ on(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
639
652
  /**
640
653
  * Subscribe function for 'error' event.
641
654
  */
@@ -676,6 +689,14 @@ export declare interface CallAdapterSubscribers {
676
689
  * Unsubscribe function for 'diagnosticChanged' event.
677
690
  */
678
691
  off(event: 'diagnosticChanged', listener: DiagnosticChangedEventListner): void;
692
+ /**
693
+ * Unsubscribe function for 'selectedMicrophoneChanged' event.
694
+ */
695
+ off(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
696
+ /**
697
+ * Unsubscribe function for 'selectedSpeakerChanged' event.
698
+ */
699
+ off(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
679
700
  /**
680
701
  * Unsubscribe function for 'error' event.
681
702
  */
@@ -859,6 +880,7 @@ export declare type CallCompositeIcons = {
859
880
  ErrorBarCallNetworkQualityLow?: JSX.Element;
860
881
  ErrorBarCallNoMicrophoneFound?: JSX.Element;
861
882
  ErrorBarCallNoSpeakerFound?: JSX.Element;
883
+ ErrorBarClear?: JSX.Element;
862
884
  HorizontalGalleryLeftButton?: JSX.Element;
863
885
  HorizontalGalleryRightButton?: JSX.Element;
864
886
  LobbyScreenConnectingToCall?: JSX.Element;
@@ -1740,6 +1762,8 @@ export declare interface CallWithChatAdapterSubscriptions {
1740
1762
  on(event: 'isSpeakingChanged', listener: IsSpeakingChangedListener): void;
1741
1763
  on(event: 'callParticipantsJoined', listener: ParticipantsJoinedListener): void;
1742
1764
  on(event: 'callParticipantsLeft', listener: ParticipantsLeftListener): void;
1765
+ on(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
1766
+ on(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
1743
1767
  on(event: 'callError', listener: (e: AdapterError) => void): void;
1744
1768
  off(event: 'callEnded', listener: CallEndedListener): void;
1745
1769
  off(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
@@ -1749,6 +1773,8 @@ export declare interface CallWithChatAdapterSubscriptions {
1749
1773
  off(event: 'isSpeakingChanged', listener: IsSpeakingChangedListener): void;
1750
1774
  off(event: 'callParticipantsJoined', listener: ParticipantsJoinedListener): void;
1751
1775
  off(event: 'callParticipantsLeft', listener: ParticipantsLeftListener): void;
1776
+ off(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
1777
+ off(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
1752
1778
  off(event: 'callError', listener: (e: AdapterError) => void): void;
1753
1779
  on(event: 'messageReceived', listener: MessageReceivedListener): void;
1754
1780
  on(event: 'messageSent', listener: MessageSentListener): void;
@@ -1858,6 +1884,7 @@ export declare type CallWithChatCompositeIcons = {
1858
1884
  ErrorBarCallNetworkQualityLow?: JSX.Element;
1859
1885
  ErrorBarCallNoMicrophoneFound?: JSX.Element;
1860
1886
  ErrorBarCallNoSpeakerFound?: JSX.Element;
1887
+ ErrorBarClear?: JSX.Element;
1861
1888
  HorizontalGalleryLeftButton?: JSX.Element;
1862
1889
  HorizontalGalleryRightButton?: JSX.Element;
1863
1890
  LobbyScreenConnectingToCall?: JSX.Element;
@@ -2111,7 +2138,7 @@ export declare interface CallWithChatControlOptions {
2111
2138
  *
2112
2139
  * @public
2113
2140
  */
2114
- export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
2141
+ export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
2115
2142
 
2116
2143
  /**
2117
2144
  * A button to turn camera on / off.
@@ -3650,6 +3677,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
3650
3677
  ErrorBarCallNetworkQualityLow: JSX.Element;
3651
3678
  ErrorBarCallNoMicrophoneFound: JSX.Element;
3652
3679
  ErrorBarCallNoSpeakerFound: JSX.Element;
3680
+ ErrorBarClear: JSX.Element;
3653
3681
  ErrorBarCallVideoRecoveredBySystem: JSX.Element;
3654
3682
  ErrorBarCallVideoStoppedBySystem: JSX.Element;
3655
3683
  HorizontalGalleryLeftButton: JSX.Element;
@@ -3714,6 +3742,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
3714
3742
  ErrorBarCallNetworkQualityLow: JSX.Element;
3715
3743
  ErrorBarCallNoMicrophoneFound: JSX.Element;
3716
3744
  ErrorBarCallNoSpeakerFound: JSX.Element;
3745
+ ErrorBarClear: JSX.Element;
3717
3746
  HorizontalGalleryLeftButton: JSX.Element;
3718
3747
  HorizontalGalleryRightButton: JSX.Element;
3719
3748
  LobbyScreenConnectingToCall?: JSX.Element | undefined;