@azure/communication-react 1.9.0-alpha-202310111702 → 1.9.0-alpha-202310121540

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.
@@ -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.9.0-alpha-202310111702';
180
+ var telemetryVersion = '1.9.0-alpha-202310121540';
181
181
 
182
182
  // Copyright (c) Microsoft Corporation.
183
183
  /**
@@ -8471,9 +8471,9 @@ const bodyContainer = {
8471
8471
  width: '100%',
8472
8472
  height: '100%',
8473
8473
  overflow: 'hidden',
8474
- padding: '5.75rem',
8474
+ padding: '1rem 2rem 3rem 2rem',
8475
8475
  '@media (max-width: 25rem) or (max-height: 25rem)': {
8476
- padding: '2rem'
8476
+ padding: '0rem 1rem 2rem 1rem'
8477
8477
  }
8478
8478
  };
8479
8479
  /**
@@ -9944,11 +9944,7 @@ const MessageBubble = (props) => {
9944
9944
  : props.message.status === 'failed'
9945
9945
  ? chatMessageCommonStyles.failed
9946
9946
  : undefined, attached !== 'top' ? chatMyMessageStyles.bodyAttached : undefined, react.mergeStyles(messageContainerStyle)),
9947
- style: Object.assign({}, createStyleFromV8Style(messageContainerStyle)),
9948
- // make body not focusable to remove repetitions from narrators.
9949
- // inner components are already focusable
9950
- tabIndex: -1,
9951
- role: 'presentation'
9947
+ style: Object.assign({}, createStyleFromV8Style(messageContainerStyle))
9952
9948
  }, root: {
9953
9949
  className: chatMyMessageStyles.root,
9954
9950
  onBlur: (e) => {
@@ -9969,6 +9965,7 @@ const MessageBubble = (props) => {
9969
9965
  role: 'none',
9970
9966
  tabIndex: -1
9971
9967
  }, "data-ui-id": "chat-composite-message", author: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, tabIndex: 0 }, message.senderDisplayName), timestamp: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, "data-ui-id": ids.messageTimestamp, tabIndex: 0 }, formattedTimestamp), details: getMessageDetails(), actions: {
9968
+ tabIndex: 0,
9972
9969
  children: actionMenuProps === null || actionMenuProps === void 0 ? void 0 : actionMenuProps.children,
9973
9970
  className: reactComponents.mergeClasses(chatMyMessageStyles.menu,
9974
9971
  // Make actions menu visible when the message is focused or the flyout is shown
@@ -9988,13 +9985,15 @@ const MessageBubble = (props) => {
9988
9985
  if (message.messageType === 'chat') {
9989
9986
  props.onActionButtonClick(message, setMessageReadBy);
9990
9987
  }
9991
- } }, getContent())) : (React__default["default"].createElement(reactChat.ChatMessage, { attached: attached, key: props.message.messageId, root: { className: chatMessageStyles.root }, author: React__default["default"].createElement(react.Text, { className: chatMessageAuthorStyle }, message.senderDisplayName), body: {
9992
- className: chatItemMessageContainerClassName,
9993
- style: Object.assign({}, createStyleFromV8Style(messageContainerStyle)),
9988
+ } }, getContent())) : (React__default["default"].createElement(reactChat.ChatMessage, { attached: attached, key: props.message.messageId, root: {
9989
+ className: chatMessageStyles.root,
9994
9990
  // make body not focusable to remove repetitions from narrators.
9995
9991
  // inner components are already focusable
9996
9992
  tabIndex: -1,
9997
9993
  role: 'none'
9994
+ }, author: React__default["default"].createElement(react.Text, { className: chatMessageAuthorStyle }, message.senderDisplayName), body: {
9995
+ className: chatItemMessageContainerClassName,
9996
+ style: Object.assign({}, createStyleFromV8Style(messageContainerStyle))
9998
9997
  }, "data-ui-id": "chat-composite-message", timestamp: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, "data-ui-id": ids.messageTimestamp }, formattedTimestamp) }, getContent()))),
9999
9998
  chatActionsEnabled && (React__default["default"].createElement(ChatMessageActionFlyout, { hidden: !chatMessageActionFlyoutTarget, target: chatMessageActionFlyoutTarget, increaseFlyoutItemSize: wasInteractionByTouch, onDismiss: onActionFlyoutDismiss, onEditClick: onEditClick, onRemoveClick: onRemoveClick, onResendClick: onResendClick, strings: strings, messageReadBy: messageReadBy, messageStatus: messageStatus !== null && messageStatus !== void 0 ? messageStatus : 'failed', remoteParticipantsCount: remoteParticipantsCount, onRenderAvatar: onRenderAvatar, showMessageStatus: showMessageStatus }))));
10000
9999
  return chatMessage;
@@ -30419,8 +30418,6 @@ class AzureCommunicationCallAdapter {
30419
30418
  throw new Error('You are already in the call.');
30420
30419
  }
30421
30420
  const idsToAdd = participants.map((participant) => {
30422
- // FIXME: `onStartCall` does not allow a Teams user.
30423
- // Need some way to return an error if a Teams user is provided.
30424
30421
  const backendId = _toCommunicationIdentifier(participant);
30425
30422
  if (communicationCommon.isPhoneNumberIdentifier(backendId)) {
30426
30423
  if ((options === null || options === void 0 ? void 0 : options.alternateCallerId) === undefined) {
@@ -30431,6 +30428,12 @@ class AzureCommunicationCallAdapter {
30431
30428
  else if (communicationCommon.isCommunicationUserIdentifier(backendId)) {
30432
30429
  return backendId;
30433
30430
  }
30431
+ else if (communicationCommon.isMicrosoftTeamsAppIdentifier(backendId)) {
30432
+ return backendId;
30433
+ }
30434
+ else if (communicationCommon.isMicrosoftTeamsUserIdentifier(backendId)) {
30435
+ return backendId;
30436
+ }
30434
30437
  return backendId;
30435
30438
  });
30436
30439
  const call = this.handlers.onStartCall(idsToAdd, options);