@azure/communication-react 1.4.2-alpha-202211100016.0 → 1.4.2-alpha-202211150040.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.
@@ -0,0 +1,287 @@
1
+ # Change Log - @azure/communication-react
2
+
3
+ This log was last generated on Fri, 21 Oct 2022 23:01:52 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## [1.4.0](https://github.com/azure/communication-ui-library/tree/1.4.0)
8
+
9
+ Fri, 21 Oct 2022 23:01:52 GMT
10
+ [Compare changes](https://github.com/azure/communication-ui-library/compare/1.3.1...1.4.0)
11
+
12
+ This stable release contains a slew of bug fixes, some of them for bugs filed by our users in our GitHub repository. Thanks!
13
+ The release also contains some small API additions to support these fixes.
14
+
15
+ ### Minor changes
16
+
17
+ - `@internal/react-composites`
18
+ - Add callEndReason to the onCallEnded event and fix the event to trigger before the composite page transition. ([PR #2201](https://github.com/azure/communication-ui-library/pull/2201) by 2684369+JamesBurnside@users.noreply.github.com)
19
+ - BugFix: Add missing foreveryone logic for leaveCall ([PR #2399](https://github.com/azure/communication-ui-library/pull/2399) by carolinecao@microsoft.com)
20
+ - Introduce a typename `ParticipantState`. Permissible values unchanged. ([PR #2161](https://github.com/Azure/communication-ui-library/pull/2161))
21
+ - `@internal/react-components`
22
+ - Remove onFocus callback that focuses directly on content in Chat Message. Added string for aria label of local user's message content. ([PR #2153](https://github.com/azure/communication-ui-library/pull/2153) by miguelgamis@microsoft.com)
23
+
24
+ ### Patches
25
+
26
+ - `@internal/react-composites`
27
+ - Fixes issue where you can start a call if you unplug it on the configuration screen. ([PR #2061](https://github.com/azure/communication-ui-library/pull/2061) by 94866715+dmceachernmsft@users.noreply.github.com)
28
+ - Fix adapter logic to join Teams meeting. ([PR #2253](https://github.com/azure/communication-ui-library/pull/2253) by miguelgamis@microsoft.com)
29
+ - Fix custom menu items being triggered as a flyout and as a drawer menu item on mobile. Fix custom menu items not triggering on callwithchat composite at all. ([PR #2239](https://github.com/azure/communication-ui-library/pull/2239) by 2684369+JamesBurnside@users.noreply.github.com)
30
+ - Fix React hook order console errors for LocalDeviceSettings. ([PR #2198](https://github.com/azure/communication-ui-library/pull/2198) by miguelgamis@microsoft.com)
31
+ - Message thread background color in composites matches composite background color ([PR #2126](https://github.com/azure/communication-ui-library/pull/2126) by anjulgarg@live.com)
32
+ - Fixed bug where drawer on mobile does not get dismissed after making a selection ([PR #2115](https://github.com/azure/communication-ui-library/pull/2115) by carolinecao@microsoft.com)
33
+ - Fix running render passes on people pane on every render ([PR #2240](https://github.com/azure/communication-ui-library/pull/2240) by 2684369+JamesBurnside@users.noreply.github.com)
34
+ - Fix Calling Composite's control bar buttons incorrectly showing as disabled when the control bar button is set to `true` in the control bar options ([PR #2325](https://github.com/azure/communication-ui-library/pull/2325) by 2684369+JamesBurnside@users.noreply.github.com)
35
+ - Fix local device settings dropdowns to be disabled until device permissions are granted ([PR #2351](https://github.com/azure/communication-ui-library/pull/2351) by miguelgamis@microsoft.com)
36
+ - Autofocus on back button when initially opening People and Chat pane ([PR #2045](https://github.com/azure/communication-ui-library/pull/2045) by edwardlee@microsoft.com)
37
+ - Update documentation for onFetchAvatarPersonaData property on BaseComposite to drive clarity to what it does and does not do. ([PR #2027](https://github.com/azure/communication-ui-library/pull/2027) by 94866715+dmceachernmsft@users.noreply.github.com)
38
+ - fix: joinCall set correct mute state based on microphoneOn parameter ([PR #2131](https://github.com/azure/communication-ui-library/pull/2131) by fanjin1989@gmail.com)
39
+ - Fix call adapter joinCall logic bug. ([PR #2199](https://github.com/azure/communication-ui-library/pull/2199) by miguelgamis@microsoft.com)
40
+ - Composites now using theme.semanticColors.bodyBackground as background color ([PR #2117](https://github.com/azure/communication-ui-library/pull/2117) by anjulgarg@live.com)
41
+ - Add Announcer to copy invite link button to announce action on button. ([PR #2289](https://github.com/azure/communication-ui-library/pull/2289) by 94866715+dmceachernmsft@users.noreply.github.com)
42
+ - Bugfix: Actually show provided participant menu items in CallComposite ([PR #2154](https://github.com/azure/communication-ui-library/pull/2154) by prprabhu@microsoft.com)
43
+ - Introduces animations to is speaking when muted indicator ([PR #2312](https://github.com/azure/communication-ui-library/pull/2312) by 94866715+dmceachernmsft@users.noreply.github.com)
44
+ - Fix scrollbar showing incorrectly in landscape mobile view due to absolutely positioned participant pane in Chat Composite ([PR #2038](https://github.com/azure/communication-ui-library/pull/2038) by anjulgarg@live.com)
45
+ - Fix Participants and ScreenShare buttons being disabled when unrelated options are passed into the call composite ([PR #2181](https://github.com/azure/communication-ui-library/pull/2181) by 2684369+JamesBurnside@users.noreply.github.com)
46
+ - Add permissions for Camera and Microphone in devices options ([PR #2402](https://github.com/azure/communication-ui-library/pull/2402) by 97124699+prabhjot-msft@users.noreply.github.com)
47
+ - Fix CallWithChat control bar disappearing while the call is in the disconnecting state ([PR #2392](https://github.com/azure/communication-ui-library/pull/2392) by 2684369+JamesBurnside@users.noreply.github.com)
48
+ - Fix logic to show label of MoreButton in ControlBar ([PR #2388](https://github.com/azure/communication-ui-library/pull/2388) by miguelgamis@microsoft.com)
49
+ - Bump @fluentui/react dependency to 8.98.3 ([PR #2415](https://github.com/azure/communication-ui-library/pull/2415) by 2684369+JamesBurnside@users.noreply.github.com)
50
+ - bugfix: Avoid blank screen on mobile when call ends with a side pane open ([PR #2407](https://github.com/azure/communication-ui-library/pull/2407) by 82062616+prprabhu-ms@users.noreply.github.com)
51
+ - Remove end call reason from adapter.onCallEnded ([PR #2371](https://github.com/azure/communication-ui-library/pull/2371) by 2684369+JamesBurnside@users.noreply.github.com)
52
+ - `@internal/react-components`
53
+ - Fixed flaky file sharing tests for upload cards by awaiting file type icons ([PR #2023](https://github.com/azure/communication-ui-library/pull/2023) by 97124699+prabhjot-msft@users.noreply.github.com)
54
+ - Chat message bubble shows border in high contrast modes making each message distinguishable. ([PR #2106](https://github.com/azure/communication-ui-library/pull/2106) by anjulgarg@live.com)
55
+ - Fix for file card navigation issue when multiple files are uploaded ([PR #2165](https://github.com/azure/communication-ui-library/pull/2165) by 97124699+prabhjot-msft@users.noreply.github.com)
56
+ - Fixed bug where voice over does not annouce menu item selected in both calling and callwithchat ([PR #2060](https://github.com/azure/communication-ui-library/pull/2060) by carolinecao@microsoft.com)
57
+ - Memoize ParticipantList callback functions ([PR #2240](https://github.com/azure/communication-ui-library/pull/2240) by 2684369+JamesBurnside@users.noreply.github.com)
58
+ - Add CSS to show/hide menu button on hover/focus ([PR #2319](https://github.com/azure/communication-ui-library/pull/2319) by carolinecao@microsoft.com)
59
+ - Load new messages only when scroll bar is at the top ([PR #2355](https://github.com/azure/communication-ui-library/pull/2355) by edwardlee@microsoft.com)
60
+ - Fix React hook order console errors for CameraButton. ([PR #2198](https://github.com/azure/communication-ui-library/pull/2198) by miguelgamis@microsoft.com)
61
+ - Hotfix: infinite spinner for screenShare in stable ([PR #2191](https://github.com/azure/communication-ui-library/pull/2191) by jinan@microsoft.com)
62
+ - changed z-index so new message button shows ontop of chat bubble ([PR #2046](https://github.com/azure/communication-ui-library/pull/2046) by carolinecao@microsoft.com)
63
+ - Fix invalid scrollbars when gif images are shared in chat ([PR #2037](https://github.com/azure/communication-ui-library/pull/2037) by anjulgarg@live.com)
64
+ - Make participant items tab navigable ([PR #2045](https://github.com/azure/communication-ui-library/pull/2045) by edwardlee@microsoft.com)
65
+ - Fix bug of dismissed menu when scrolling ([PR #2069](https://github.com/azure/communication-ui-library/pull/2069) by jinan@microsoft.com)
66
+ - Control Bar uses theme.semanticColors.bodyBackground instead of theme.palette.white ([PR #2117](https://github.com/azure/communication-ui-library/pull/2117) by anjulgarg@live.com)
67
+ - Updated tooltip strings to not be title case ([PR #2350](https://github.com/azure/communication-ui-library/pull/2350) by miguelgamis@microsoft.com)
68
+ - Fix voiceover tab navigation of messages including system messages. Hide message action flyout when focus blurs. ([PR #2042](https://github.com/azure/communication-ui-library/pull/2042) by miguelgamis@microsoft.com)
69
+ - Replace floating div with border with inset border of video tile to show user is speaking. ([PR #2236](https://github.com/azure/communication-ui-library/pull/2236) by miguelgamis@microsoft.com)
70
+ - correctly setting maxHeight for people context menu ([PR #2034](https://github.com/azure/communication-ui-library/pull/2034) by 79329532+alkwa-msft@users.noreply.github.com)
71
+ - Export Announcer component to be used internally. ([PR #2289](https://github.com/azure/communication-ui-library/pull/2289) by 94866715+dmceachernmsft@users.noreply.github.com)
72
+ - Bump @fluentui/react dependency to 8.98.3 ([PR #2415](https://github.com/azure/communication-ui-library/pull/2415) by 2684369+JamesBurnside@users.noreply.github.com)
73
+ - Fix VideoGallery showing video spinners when the CallComposites are disconnecting from a call. ([PR #2392](https://github.com/azure/communication-ui-library/pull/2392) by 2684369+JamesBurnside@users.noreply.github.com)
74
+ - `@internal/calling-component-bindings`
75
+ - Fix screenshare button selector to disable button when call is InLobby or Connecting state. ([PR #2059](https://github.com/azure/communication-ui-library/pull/2059) by 94866715+dmceachernmsft@users.noreply.github.com)
76
+ - BugFix: Fix local camera getting into a bad state when the camera takes longer to turn on than the call took to connect ([PR #2412](https://github.com/azure/communication-ui-library/pull/2412) by 2684369+JamesBurnside@users.noreply.github.com)
77
+ - BugFix: Add missing foreveryone logic for leaveCall ([PR #2399](https://github.com/azure/communication-ui-library/pull/2399) by carolinecao@microsoft.com)
78
+ - `@internal/calling-stateful-client`
79
+ - Add event logs for disposing local video streams ([PR #2121](https://github.com/azure/communication-ui-library/pull/2121) by 2684369+JamesBurnside@users.noreply.github.com)
80
+ - `@internal/chat-component-bindings`
81
+ - Show datetime when there are more than 5 mins between each message ([PR #2299](https://github.com/azure/communication-ui-library/pull/2299) by carolinecao@microsoft.com)
82
+
83
+ ## [1.3.1](https://github.com/azure/communication-ui-library/tree/1.3.1)
84
+
85
+ This is a patch release for issue [#2186](https://github.com/Azure/communication-ui-library/issues/2186):
86
+ - Fix infinite spinner bug during screenshare. ([PR #2191](https://github.com/Azure/communication-ui-library/pull/2191) by jiangnanhello@live.com).
87
+
88
+ ## [1.3.0](https://github.com/azure/communication-ui-library/tree/@azure/communication-react_v1.3.0)
89
+
90
+ This stable release is mostly minor changes and bug fixes and quality of life improvements, there are no major feature introductions.
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ Mon, 13 Jun 2022 18:29:25 GMT
97
+ [Compare changes](https://github.com/azure/communication-ui-library/compare/@azure/communication-react_v1.2.2-beta.1...@azure/communication-react_v1.3.0)
98
+
99
+ ### Minor changes
100
+ - 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)
101
+ - 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)
102
+ - 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)
103
+
104
+ ### Patches
105
+ - Fix support for onDisposeLocalStreamView in `VideoGallery` ([PR #1866](https://github.com/azure/communication-ui-library/pull/1866) by 2684369+JamesBurnside@users.noreply.github.com)
106
+ - 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)
107
+ - 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)
108
+ - 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)
109
+ - 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)
110
+ - 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)
111
+ - 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)
112
+ - 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)
113
+ - 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)
114
+ - Disable hover behavior when no content in sendBox ([PR #1534](https://github.com/azure/communication-ui-library/pull/1534) by jiangnanhello@live.com)
115
+ - add placeholder participant name for unnamed participants ([PR #1978](https://github.com/azure/communication-ui-library/pull/1978) by carolinecao@microsoft.com)
116
+ - 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)
117
+ - 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)
118
+ - 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)
119
+ - 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)
120
+ - 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)
121
+ - Fix param value in callId change event ([PR #1819](https://github.com/azure/communication-ui-library/pull/1819) by jiangnanhello@live.com)
122
+ - 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)
123
+ - 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)
124
+ - 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)
125
+ - 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)
126
+ - 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)
127
+ - 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)
128
+ - 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)
129
+ - Fix whole app re-render when callId changes ([PR #1820](https://github.com/azure/communication-ui-library/pull/1820) by jiangnanhello@live.com)
130
+ - 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)
131
+ - 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)
132
+ - Remove spurius console log ([PR #1451](https://github.com/azure/communication-ui-library/pull/1451) by 82062616+prprabhu-ms@users.noreply.github.com)
133
+ - update storybook to v6.5.7 ([PR #1972](https://github.com/azure/communication-ui-library/pull/1972) by 2684369+JamesBurnside@users.noreply.github.com)
134
+ - 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)
135
+ - Resolve icon centering on SendBox storybook examples ([PR #1833](https://github.com/azure/communication-ui-library/pull/1833) by edwardlee@microsoft.com)
136
+ - patched error on storybook participant item not showing name ([PR #1844](https://github.com/azure/communication-ui-library/pull/1844) by carolinecao@microsoft.com)
137
+ - Add Best Practices documentation to Storybook ([PR #1970](https://github.com/azure/communication-ui-library/pull/1970) by 2684369+JamesBurnside@users.noreply.github.com)
138
+ - Add default replacer to do safe stringify ([PR #1921](https://github.com/azure/communication-ui-library/pull/1921) by jinan@microsoft.com)
139
+ - 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)
140
+ - 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)
141
+ - 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)
142
+ - 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)
143
+ - 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)
144
+ - 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)
145
+ - 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)
146
+ - Update the right call.id into state ([PR #1818](https://github.com/azure/communication-ui-library/pull/1818) by jiangnanhello@live.com)
147
+ - 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)
148
+ - 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)
149
+
150
+
151
+
152
+ ## [1.2.0](https://github.com/azure/communication-ui-library/tree/1.2.0)
153
+
154
+ [Changes since 1.1.0](https://github.com/azure/communication-ui-library/compare/1.1.0...1.2.0)
155
+
156
+ This stable release introduces `CallWithChatComposite`, a new out of the box experience that combines calling and chat capabilities.
157
+ The new composite provides customization API similar to `CallComposite` and `ChatComposite`. You can add custom themes, provide custom avatars and intercept communication with the Azure Communication Services using APIs you are already familiar with from he earlier composites. In addition, `CallWithChatComposite` has a mobile-optimized UX you can enable with the `mobileView` flag.
158
+
159
+ In addition to the new composite, this stable release includes various style and accessibility improvements to existing UI components. A changelog since the last public beta follows:
160
+
161
+ [Changes since 1.1.1-beta.1](https://github.com/azure/communication-ui-library/compare/1.1.0...1.1.1-beta.1)
162
+
163
+ ### Minor changes
164
+
165
+ - Added ParticipantList prop onParticipantClick and ParticipantItem prop onClick. ([PR #1515](https://github.com/azure/communication-ui-library/pull/1515) by miguelgamis@microsoft.com)
166
+ - Introduce useAzureCommunicationCallAdapter hook ([PR #1618](https://github.com/azure/communication-ui-library/pull/1618) by 82062616+prprabhu-ms@users.noreply.github.com)
167
+
168
+ - Increase the border radius of buttons in composites with call features ([PR #1609](https://github.com/azure/communication-ui-library/pull/1609) by 94866715+dmceachernmsft@users.noreply.github.com)
169
+
170
+ ### Patch changes
171
+
172
+ - Bump @azure/communication-calling to 1.4.4 ([PR #1610](https://github.com/azure/communication-ui-library/pull/1610) by 82062616+prprabhu-ms@users.noreply.github.com)
173
+ - Fix ChatMessageActionFlyout useMemo to include exhaustive dependencies to prevent missed re-renders on prop updates ([PR #1597](https://github.com/azure/communication-ui-library/pull/1597) by 2684369+JamesBurnside@users.noreply.github.com)
174
+ - Update ControlBarButton to read aria strings from other string sources ([PR #1614](https://github.com/azure/communication-ui-library/pull/1614) by 94866715+dmceachernmsft@users.noreply.github.com)
175
+ - Fix ChatMessage border color when editing a message to show inactive colors when not active ([PR #1583](https://github.com/azure/communication-ui-library/pull/1583) by 2684369+JamesBurnside@users.noreply.github.com)
176
+ - Prevent chat message flyout randomly closing itself by setting preventDismissOnResize property on the chat message flyout ([PR #1573](https://github.com/azure/communication-ui-library/pull/1573) by 2684369+JamesBurnside@users.noreply.github.com)
177
+ - Fix SendBox position shift when border size changes. Update sendbox coloring to use theme.primary instead of theme.blue ([PR #1584](https://github.com/azure/communication-ui-library/pull/1584) by 2684369+JamesBurnside@users.noreply.github.com)
178
+ - Fix: do not allow sending empty messages when editing chat messages ([PR #1575](https://github.com/azure/communication-ui-library/pull/1575) by 2684369+JamesBurnside@users.noreply.github.com)
179
+ - Sidepane copy invite link and cancel button UI style fix ([PR #1581](https://github.com/azure/communication-ui-library/pull/1581) by edwardlee@microsoft.com)
180
+ - Fix react useEffect dependencies in composites ([PR #1600](https://github.com/azure/communication-ui-library/pull/1600) by 2684369+JamesBurnside@users.noreply.github.com)
181
+ - Add soft vertical height support for unsupported mobile landscape orientation in Calling-based Composites ([PR #1572](https://github.com/azure/communication-ui-library/pull/1572) by 2684369+JamesBurnside@users.noreply.github.com)
182
+ - bugfix: Dispose adapter in hook when component unmounts ([PR #1619](https://github.com/azure/communication-ui-library/pull/1619) by 82062616+prprabhu-ms@users.noreply.github.com)
183
+ - Fix chat unread messages badge border to always be white ([PR #1608](https://github.com/azure/communication-ui-library/pull/1608) by 2684369+JamesBurnside@users.noreply.github.com)
184
+ - Fix call control bar wrapping to a new line at high zoom levels and narrow screen heights ([PR #1571](https://github.com/azure/communication-ui-library/pull/1571) by 2684369+JamesBurnside@users.noreply.github.com)
185
+
186
+ ## [1.1.0](https://github.com/azure/communication-ui-library/tree/1.1.0)
187
+
188
+ [Compare changes](https://github.com/azure/communication-ui-library/compare/1.0.0...1.1.0)
189
+
190
+ With this minor release, @azure/communication-react's Azure Communication Service core SDKs have been moved to [peerDependencies](https://nodejs.org/en/blog/npm/peer-dependencies/).
191
+ This change gives you a more consistent way to use the core SDKs in your application.
192
+
193
+ After upgrading to 1.1.0, you will need to install these core SDKs in your application:
194
+
195
+ ```bash
196
+ npm i @azure/communication-calling@1.3.2
197
+ npm i @azure/communication-chat@1.1.0
198
+ ```
199
+
200
+ This minor release also contains general bug fixes and performance improvements.
201
+
202
+ ## Changes since 1.0.0
203
+ [Compare changes](https://github.com/Azure/communication-ui-library/compare/1.0.0...1.1.0)
204
+
205
+
206
+ ### Changes
207
+ - Upgrade @azure/communication-signaling to 1.0.0.beta.12 ([PR #1352](https://github.com/azure/communication-ui-library/pull/1352) by anjulgarg@live.com)
208
+ - Moved Avatars icons to the left of messages by not displaying usernames in Storybook MessageThread ([PR #1345](https://github.com/azure/communication-ui-library/pull/1345) by edwardlee@microsoft.com)
209
+ - Allows setting min and max size of the persona avatar in the Video Tile ([PR #1406](https://github.com/azure/communication-ui-library/pull/1406) by 2684369+JamesBurnside@users.noreply.github.com)
210
+
211
+ ### Bug Fixes
212
+ - Fix CallComposite being stuck on the configuration page when using adapter.startCall ([PR #1403](https://github.com/azure/communication-ui-library/pull/1403) by 2684369+JamesBurnside@users.noreply.github.com)
213
+
214
+ ## [v1.0.0 - Release](https://github.com/azure/communication-ui-library/tree/1.0.0)
215
+
216
+ Mon, 06 Dec 2021 19:41:54 GMT
217
+
218
+ We have heard from developers that building UI is a challenge. The Azure Communication Services UI Library is here to help. It offers modern calling/chat UI features which integrate seamlessly into your application. We designed this library with attention to customizability, localization, and a11y features so that you can create immersive and inclusive experiences your users love. ❤
219
+
220
+ ### Composites
221
+
222
+ Composites are a low code, end-to-end solution to power your call and chat scenarios with Azure Communication Services. We designed them as an out-of-the box solution to be dropped into your application with the ability to integrate seamlessly with theming, styling and custom application logic.
223
+
224
+ In the future, we will continue to evolve the composites with the latest Azure Communication Services features so you can integrate them into your application with minimal effort.
225
+
226
+ Features:
227
+ - 🎁 Embed composites into your web applications with a few lines of code
228
+ - 🌈 Theme using [FluentUI style theming](https://fluentuipr.z22.web.core.windows.net/heads/master/theming-designer/index.html)
229
+ - 🎧 Listen to communication events (e.g when the call has ended)
230
+ - 💥 Take action on behalf of the user
231
+
232
+ ### UI Components
233
+
234
+ We have also added a development experience for developers that want more control over the end-user experience. By exposing our UI components and underlying state management architecture, we seek to empower developers who want granular control over how the UI components build up into the overall communication experience. Compared to composites, the UI components offer increased flexibility at the cost of additional development effort.
235
+
236
+ Along with the choice to build an open-source library, the UI components allow us to share the tools we use to make great products with you. We hope you will be excited by the level of granularity, use it in your own applications, and consider contributing back.
237
+
238
+ Features:
239
+ - ✏️ Create calling and chat clients using ReactJS
240
+ - 🎨 Style UI components using [FluentUI styling patterns](https://github.com/microsoft/fluentui/wiki/Component-Styling)
241
+ - 🏠 Layout your calling and chat components
242
+ - 🎛️ Integrate your own custom logic
243
+
244
+ ### Storybook
245
+
246
+ 📕 Check out our documentation in [storybook](https://azure.github.io/communication-ui-library/) to learn more about the UI Library.
247
+ 🚀 Try out our composites and UI components today in the "Preview" tab in Storybook.
248
+
249
+ ## Changes since 1.0.0-beta.8
250
+
251
+ [Compare changes](https://github.com/azure/communication-ui-library/compare/1.0.0-beta.8...1.0.0)
252
+
253
+ ### Changes
254
+
255
+ - Remove beta-only features for 1.0.0 release ([PR #1114](https://github.com/azure/communication-ui-library/pull/1114) by 82062616+prprabhu-ms@users.noreply.github.com)
256
+ - Immediately fetch initial chat data when creating azure communication chat adapter ([PR #1168](https://github.com/azure/communication-ui-library/pull/1168) by 2684369+JamesBurnside@users.noreply.github.com)
257
+ - Disable microphone toggle in Teams lobby as it's not supported by headless SDK ([PR #1139](https://github.com/azure/communication-ui-library/pull/1139) by anjulgarg@live.com)
258
+ - Add localized tooltip to microphone button in lobby informing users that it is disabled. ([PR #1148](https://github.com/azure/communication-ui-library/pull/1148) by anjulgarg@live.com)
259
+ - Update localized resource files. ([PR #1197](https://github.com/azure/communication-ui-library/pull/1197) by miguelgamis@microsoft.com)
260
+ - Storybook doc improvements.
261
+ - Reduce VideoGallery persona size ([PR #1129](https://github.com/azure/communication-ui-library/pull/1129) by 2684369+JamesBurnside@users.noreply.github.com)
262
+ - No longer make Local video tile draggable when horizontal gallery is showing ([PR #1163](https://github.com/azure/communication-ui-library/pull/1163) by miguelgamis@microsoft.com)
263
+ - Remove long press gesture on MessageThread messages ([PR #1118](https://github.com/azure/communication-ui-library/pull/1118) by 2684369+JamesBurnside@users.noreply.github.com)
264
+ - Add tooltip string for disabled ControlBar buttons ([PR #1166](https://github.com/azure/communication-ui-library/pull/1166) by alcail@microsoft.com)
265
+ - Add Scrollbar when editing message in chat ([PR #1158](https://github.com/azure/communication-ui-library/pull/1158) by anjulgarg@live.com)
266
+ - No longer render richtext/media messages until future support is added ([PR #1149](https://github.com/azure/communication-ui-library/pull/1149) by 79329532+alkwa-msft@users.noreply.github.com)
267
+ - GridLayoutProp styles prop type changed to GridLayoutStyles ([PR #1196](https://github.com/azure/communication-ui-library/pull/1196) by miguelgamis@microsoft.com)
268
+ - Sort to participants by name in participantListSelector ([PR #1106](https://github.com/azure/communication-ui-library/pull/1106) by anjulgarg@live.com)
269
+ - Hide users in a Teams lobby from the acs clients ([PR #1112](https://github.com/azure/communication-ui-library/pull/1112) by 79329532+alkwa-msft@users.noreply.github.com)
270
+
271
+ ### Bug Fixes
272
+ - Fix typing indicator going outside of the max width of sendbox ([PR #1191](https://github.com/azure/communication-ui-library/pull/1191) by anjulgarg@live.com)
273
+ - Fix typo in complianceBannerTranscriptionStarted ([PR #1210](https://github.com/azure/communication-ui-library/pull/1210) by 82062616+prprabhu-ms@users.noreply.github.com)
274
+ - Fix ComplianceBanner auto-dismiss ([PR #1117](https://github.com/azure/communication-ui-library/pull/1117) by 82062616+prprabhu-ms@users.noreply.github.com)
275
+ - Fix option naming to options ([PR #1173](https://github.com/azure/communication-ui-library/pull/1173) by jinan@microsoft.com)
276
+ - Fix partially clipped text in `ParticipantItem` ([PR #1145](https://github.com/azure/communication-ui-library/pull/1145) by anjulgarg@live.com)
277
+ - Fix VideoGallery to have a unique identifier for local video tile to dock. ([PR #1111](https://github.com/azure/communication-ui-library/pull/1111) by miguelgamis@microsoft.com)
278
+ - Fix 'New Messages' not clearing when the user scrolls to the bottom of the message thread' ([PR #1115](https://github.com/azure/communication-ui-library/pull/1115) by 2684369+JamesBurnside@users.noreply.github.com)
279
+ - Fix stop screen sharing label from stop to stop sharing ([PR #1164](https://github.com/azure/communication-ui-library/pull/1164) by 2684369+JamesBurnside@users.noreply.github.com)
280
+ - Fix message thread not loading all messages by setting pagesize to 50 ([PR #1183](https://github.com/azure/communication-ui-library/pull/1183) by jinan@microsoft.com)
281
+ - Fix unwanted dismissal of ParticipantsButtton and DevicesButton Callout on resize events ([PR #1138](https://github.com/azure/communication-ui-library/pull/1138) by 82062616+prprabhu-ms@users.noreply.github.com)
282
+ - Fix Screenshare being rerender on page change. ([PR #1175](https://github.com/azure/communication-ui-library/pull/1175) by miguelgamis@microsoft.com)
283
+ - Fix gap betwen GridLayout and HorizontalGallery for Safari on IPhone SE. ([PR #1162](https://github.com/azure/communication-ui-library/pull/1162) by miguelgamis@microsoft.com)
284
+ - Fix typing indicator wrapping correctly for long names ([PR #1123](https://github.com/azure/communication-ui-library/pull/1123) by 2684369+JamesBurnside@users.noreply.github.com)
285
+ - Fix text in system messages in the MessageThread to wrap when it is too long. ([PR #1120](https://github.com/azure/communication-ui-library/pull/1120) by 2684369+JamesBurnside@users.noreply.github.com)
286
+ - Fix screenshare button background when active ([PR #1178](https://github.com/azure/communication-ui-library/pull/1178) by 2684369+JamesBurnside@users.noreply.github.com)
287
+ - Remove console log when rendering video ([PR #1188](https://github.com/azure/communication-ui-library/pull/1188) by 82062616+prprabhu-ms@users.noreply.github.com)
@@ -260,6 +260,17 @@ export declare type AzureCommunicationCallAdapterArgs = {
260
260
  credential: CommunicationTokenCredential;
261
261
  locator: CallAdapterLocator;
262
262
  alternateCallerId?: string;
263
+ /**
264
+ * Optional parameters for the {@link AzureCommunicationCallAdapter} created
265
+ */
266
+ options?: {
267
+ /**
268
+ * Use this to hint the role of the user when the role is not available before a Rooms call is started. This value
269
+ * should be obtained using the Rooms API. This role will determine permissions in the configuration page of the
270
+ * {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
271
+ */
272
+ roleHint?: Role;
273
+ };
263
274
  };
264
275
 
265
276
  /**
@@ -665,6 +676,12 @@ export declare type CallAdapterClientState = {
665
676
  * Azure communications Phone number to make PSTN calls with.
666
677
  */
667
678
  alternateCallerId?: string;
679
+ /**
680
+ * Use this to hint the role of the user when the role is not available before a Rooms call is started. This value
681
+ * should be obtained using the Rooms API. This role will determine permissions in the configuration page of the
682
+ * {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
683
+ */
684
+ roleHint?: Role;
668
685
  };
669
686
 
670
687
  /**
@@ -1196,12 +1213,6 @@ export declare interface CallCompositeProps extends BaseCompositeProps<CallCompo
1196
1213
  * Flags to enable/disable or customize UI elements of the {@link CallComposite}.
1197
1214
  */
1198
1215
  options?: CallCompositeOptions;
1199
- /**
1200
- * Set the role to enable/disable capacities. This property should be properly set for Rooms calls. The role of a
1201
- * user for a room can be obtained using the Rooms API. The role of the user will be synced with ACS services when
1202
- * a Rooms call starts.
1203
- */
1204
- roleHint?: Role;
1205
1216
  }
1206
1217
 
1207
1218
  /**
@@ -3947,7 +3958,7 @@ export declare interface ControlBarProps {
3947
3958
  *
3948
3959
  * @public
3949
3960
  */
3950
- export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
3961
+ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId, options }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
3951
3962
 
3952
3963
  /**
3953
3964
  * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
@@ -3957,7 +3968,9 @@ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName
3957
3968
  *
3958
3969
  * @public
3959
3970
  */
3960
- export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator) => Promise<CallAdapter>;
3971
+ export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: {
3972
+ roleHint?: Role;
3973
+ }) => Promise<CallAdapter>;
3961
3974
 
3962
3975
  /**
3963
3976
  * Create a CallWithChatAdapter backed by Azure Communication services
@@ -202,7 +202,7 @@ const _toCommunicationIdentifier = (id) => {
202
202
  // Copyright (c) Microsoft Corporation.
203
203
  // Licensed under the MIT license.
204
204
  // GENERATED FILE. DO NOT EDIT MANUALLY.
205
- var telemetryVersion = '1.4.2-alpha-202211100016.0';
205
+ var telemetryVersion = '1.4.2-alpha-202211150040.0';
206
206
 
207
207
  // Copyright (c) Microsoft Corporation.
208
208
  /**
@@ -18849,9 +18849,9 @@ const MainScreen = (props) => {
18849
18849
  * @public
18850
18850
  */
18851
18851
  const CallComposite = (props) => {
18852
- const { adapter, callInvitationUrl, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, formFactor = 'desktop',
18852
+ const { adapter, callInvitationUrl, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, formFactor = 'desktop' } = props;
18853
18853
  /* @conditional-compile-remove(rooms) */
18854
- roleHint } = props;
18854
+ const roleHint = adapter.getState().roleHint;
18855
18855
  React.useEffect(() => {
18856
18856
  (() => __awaiter$5(void 0, void 0, void 0, function* () {
18857
18857
  var _a;
@@ -19006,8 +19006,8 @@ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments,
19006
19006
  };
19007
19007
  /** Context of call, which is a centralized context for all state updates */
19008
19008
  class CallContext {
19009
- constructor(clientState, isTeamsCall, maxListeners = 50) {
19010
- var _a;
19009
+ constructor(clientState, isTeamsCall, options) {
19010
+ var _a, _b;
19011
19011
  this.emitter = new EventEmitter.EventEmitter();
19012
19012
  this.state = {
19013
19013
  isLocalPreviewMicrophoneEnabled: false,
@@ -19018,9 +19018,10 @@ class CallContext {
19018
19018
  page: 'configuration',
19019
19019
  latestErrors: clientState.latestErrors,
19020
19020
  isTeamsCall,
19021
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: clientState.alternateCallerId
19021
+ /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: clientState.alternateCallerId,
19022
+ /* @conditional-compile-remove(rooms) */ roleHint: options === null || options === void 0 ? void 0 : options.roleHint
19022
19023
  };
19023
- this.emitter.setMaxListeners(maxListeners);
19024
+ this.emitter.setMaxListeners((_b = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _b !== void 0 ? _b : 50);
19024
19025
  }
19025
19026
  onStateChange(handler) {
19026
19027
  this.emitter.on('stateChanged', handler);
@@ -19085,7 +19086,8 @@ const findLatestEndedCall = (calls) => {
19085
19086
  * @private
19086
19087
  */
19087
19088
  class AzureCommunicationCallAdapter {
19088
- constructor(callClient, locator, callAgent, deviceManager) {
19089
+ constructor(callClient, locator, callAgent, deviceManager,
19090
+ /* @conditional-compile-remove(rooms) */ options) {
19089
19091
  this.participantSubscribers = new Map();
19090
19092
  this.emitter = new EventEmitter.EventEmitter();
19091
19093
  this.isMyMutedChanged = () => {
@@ -19101,7 +19103,8 @@ class AzureCommunicationCallAdapter {
19101
19103
  this.locator = locator;
19102
19104
  this.deviceManager = deviceManager;
19103
19105
  const isTeamsMeeting = 'meetingLink' in this.locator;
19104
- this.context = new CallContext(callClient.getState(), isTeamsMeeting);
19106
+ this.context = new CallContext(callClient.getState(), isTeamsMeeting,
19107
+ /* @conditional-compile-remove(rooms) */ options);
19105
19108
  this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
19106
19109
  const onStateChange = (clientState) => {
19107
19110
  var _a;
@@ -19549,7 +19552,8 @@ class AzureCommunicationCallAdapter {
19549
19552
  * @public
19550
19553
  */
19551
19554
  const createAzureCommunicationCallAdapter = ({ userId, displayName, credential, locator,
19552
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId }) => __awaiter$4(void 0, void 0, void 0, function* () {
19555
+ /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
19556
+ /* @conditional-compile-remove(rooms) */ options }) => __awaiter$4(void 0, void 0, void 0, function* () {
19553
19557
  const callClient = createStatefulCallClient({
19554
19558
  userId,
19555
19559
  /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId
@@ -19557,7 +19561,8 @@ const createAzureCommunicationCallAdapter = ({ userId, displayName, credential,
19557
19561
  const callAgent = yield callClient.createCallAgent(credential, {
19558
19562
  displayName
19559
19563
  });
19560
- const adapter = createAzureCommunicationCallAdapterFromClient(callClient, callAgent, locator);
19564
+ const adapter = createAzureCommunicationCallAdapterFromClient(callClient, callAgent, locator,
19565
+ /* @conditional-compile-remove(rooms) */ options);
19561
19566
  return adapter;
19562
19567
  });
19563
19568
  /**
@@ -19594,7 +19599,9 @@ afterCreate,
19594
19599
  * This is useful for clean up tasks, e.g., leaving any ongoing calls.
19595
19600
  */
19596
19601
  beforeDispose) => {
19597
- const { credential, displayName, locator, userId, /*@conditional-compile-remove(PSTN-calls) */ alternateCallerId } = args;
19602
+ const { credential, displayName, locator, userId,
19603
+ /*@conditional-compile-remove(PSTN-calls) */ alternateCallerId,
19604
+ /*@conditional-compile-remove(rooms) */ options } = args;
19598
19605
  // State update needed to rerender the parent component when a new adapter is created.
19599
19606
  const [adapter, setAdapter] = React.useState(undefined);
19600
19607
  // Ref needed for cleanup to access the old adapter created asynchronously.
@@ -19629,7 +19636,8 @@ beforeDispose) => {
19629
19636
  displayName,
19630
19637
  locator,
19631
19638
  userId,
19632
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId
19639
+ /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
19640
+ /* @conditional-compile-remove(rooms) */ options
19633
19641
  });
19634
19642
  if (afterCreateRef.current) {
19635
19643
  newAdapter = yield afterCreateRef.current(newAdapter);
@@ -19647,7 +19655,8 @@ beforeDispose) => {
19647
19655
  credential,
19648
19656
  displayName,
19649
19657
  locator,
19650
- userId
19658
+ userId,
19659
+ /* @conditional-compile-remove(PSTN-calls) */ options
19651
19660
  ]);
19652
19661
  // Dispose any existing adapter when the component unmounts.
19653
19662
  React.useEffect(() => {
@@ -19673,9 +19682,11 @@ beforeDispose) => {
19673
19682
  *
19674
19683
  * @public
19675
19684
  */
19676
- const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, locator) => __awaiter$4(void 0, void 0, void 0, function* () {
19685
+ const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, locator,
19686
+ /* @conditional-compile-remove(rooms) */ options) => __awaiter$4(void 0, void 0, void 0, function* () {
19677
19687
  const deviceManager = (yield callClient.getDeviceManager());
19678
- return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager);
19688
+ /* @conditional-compile-remove(rooms) */
19689
+ return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager, options);
19679
19690
  });
19680
19691
  const isCallError = (e) => {
19681
19692
  return e['target'] !== undefined && e['innerError'] !== undefined;