@azure/communication-react 1.10.0-alpha-202311070012 → 1.10.0-alpha-202311082116

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.
@@ -44,7 +44,7 @@ import { CommunicationIdentifier } from '@azure/communication-common';
44
44
  import { CommunicationIdentifierKind } from '@azure/communication-common';
45
45
  import { CommunicationTokenCredential } from '@azure/communication-common';
46
46
  import { CommunicationUserIdentifier } from '@azure/communication-common';
47
- import { CommunicationUserKind } from '@azure/communication-common';
47
+ import type { CommunicationUserKind } from '@azure/communication-common';
48
48
  import { CreateViewOptions } from '@azure/communication-calling';
49
49
  import { DeviceAccess } from '@azure/communication-calling';
50
50
  import { DeviceManager } from '@azure/communication-calling';
@@ -73,9 +73,7 @@ import { LatestNetworkDiagnostics } from '@azure/communication-calling';
73
73
  import { LocalVideoStream } from '@azure/communication-calling';
74
74
  import type { MediaDiagnosticChangedEventArgs } from '@azure/communication-calling';
75
75
  import { MediaStreamType } from '@azure/communication-calling';
76
- import { MicrosoftTeamsAppKind } from '@azure/communication-common';
77
76
  import { MicrosoftTeamsUserIdentifier } from '@azure/communication-common';
78
- import { MicrosoftTeamsUserKind } from '@azure/communication-common';
79
77
  import type { NetworkDiagnosticChangedEventArgs } from '@azure/communication-calling';
80
78
  import { PartialTheme } from '@fluentui/react';
81
79
  import { ParticipantCapabilities } from '@azure/communication-calling';
@@ -85,7 +83,6 @@ import { PersonaInitialsColor } from '@fluentui/react';
85
83
  import { PersonaPresence } from '@fluentui/react';
86
84
  import { PersonaSize } from '@fluentui/react';
87
85
  import { PhoneNumberIdentifier } from '@azure/communication-common';
88
- import { PhoneNumberKind } from '@azure/communication-common';
89
86
  import { PropertyChangedEvent } from '@azure/communication-calling';
90
87
  import { default as React_2 } from 'react';
91
88
  import type { RemoteParticipant } from '@azure/communication-calling';
@@ -102,7 +99,6 @@ import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
102
99
  import { Theme } from '@fluentui/react';
103
100
  import { TransferRequestedEventArgs } from '@azure/communication-calling';
104
101
  import { TypingIndicatorReceivedEvent } from '@azure/communication-chat';
105
- import { UnknownIdentifierKind } from '@azure/communication-common';
106
102
  import { VideoDeviceInfo } from '@azure/communication-calling';
107
103
  import { VideoEffectName } from '@azure/communication-calling';
108
104
  import { VideoStreamRenderer } from '@azure/communication-calling';
@@ -8651,7 +8647,7 @@ export declare interface RemoteParticipantState {
8651
8647
  /**
8652
8648
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.identifier}.
8653
8649
  */
8654
- identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind | MicrosoftTeamsAppKind;
8650
+ identifier: CommunicationIdentifierKind;
8655
8651
  /**
8656
8652
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.displayName}.
8657
8653
  */
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
177
177
  // Copyright (c) Microsoft Corporation.
178
178
  // Licensed under the MIT License.
179
179
  // GENERATED FILE. DO NOT EDIT MANUALLY.
180
- var telemetryVersion = '1.10.0-alpha-202311070012';
180
+ var telemetryVersion = '1.10.0-alpha-202311082116';
181
181
 
182
182
  // Copyright (c) Microsoft Corporation.
183
183
  /**
@@ -9711,7 +9711,12 @@ const chatMessageActionMenuProps = (menuProps) => {
9711
9711
  // Show the action button while the flyout is open (otherwise this will dismiss when the pointer is hovered over the flyout)
9712
9712
  const showActionMenu = enabled || menuExpanded;
9713
9713
  const actionMenuProps = {
9714
- children: (React__default["default"].createElement("div", { tabIndex: showActionMenu ? 0 : undefined, key: "menuButton", "data-ui-id": "chat-composite-message-action-icon", ref: menuProps.menuButtonRef, onClick: showActionMenu ? () => menuProps.onActionButtonClick() : undefined, style: { margin: showActionMenu ? '1px' : 0, minHeight: showActionMenu ? undefined : '30px' }, role: "button", "aria-label": showActionMenu ? ariaLabel : undefined, "aria-haspopup": showActionMenu, "aria-expanded": menuExpanded }, showActionMenu ? (React__default["default"].createElement(react.Icon, { iconName: "ChatMessageOptions", "aria-label": ariaLabel, styles: iconWrapperStyle(theme, menuExpanded) })) : undefined))
9714
+ children: (React__default["default"].createElement("div", { tabIndex: showActionMenu ? 0 : undefined, key: "menuButton", "data-ui-id": "chat-composite-message-action-icon", ref: menuProps.menuButtonRef, onClick: showActionMenu ? () => menuProps.onActionButtonClick() : undefined, style: { margin: showActionMenu ? '1px' : 0, minHeight: showActionMenu ? undefined : '30px' }, role: "button", "aria-label": showActionMenu ? ariaLabel : undefined, "aria-haspopup": showActionMenu, "aria-expanded": menuExpanded, onKeyDown: (e) => {
9715
+ // simulate <button> tag behavior
9716
+ if (showActionMenu && (e.key === 'Enter' || e.key === ' ')) {
9717
+ menuProps.onActionButtonClick();
9718
+ }
9719
+ } }, showActionMenu ? (React__default["default"].createElement(react.Icon, { iconName: "ChatMessageOptions", "aria-label": ariaLabel, styles: iconWrapperStyle(theme, menuExpanded) })) : undefined))
9715
9720
  };
9716
9721
  return actionMenuProps;
9717
9722
  };