@azure/communication-react 1.5.1-alpha-202305270013 → 1.5.1-alpha-202305310014

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/README.md CHANGED
@@ -8,7 +8,7 @@ Read more about Azure Communication Services - UI Library [here](https://azure.g
8
8
 
9
9
  - An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
10
10
  - An active Communication Services resource. [Create a Communication Services resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp).
11
- - [Node.js (14.19.0 and above)](https://nodejs.org/)
11
+ - [Node.js (16.19.0 and above)](https://nodejs.org/)
12
12
 
13
13
  ## Installing
14
14
 
@@ -165,7 +165,7 @@ const _toCommunicationIdentifier = (id) => {
165
165
  // Copyright (c) Microsoft Corporation.
166
166
  // Licensed under the MIT license.
167
167
  // GENERATED FILE. DO NOT EDIT MANUALLY.
168
- var telemetryVersion = '1.5.1-alpha-202305270013';
168
+ var telemetryVersion = '1.5.1-alpha-202305310014';
169
169
 
170
170
  // Copyright (c) Microsoft Corporation.
171
171
  /**
@@ -16974,7 +16974,7 @@ const extractInlineImageFilesMetadata = (attachments) => {
16974
16974
  return attachments.map((attachment) => {
16975
16975
  var _a, _b;
16976
16976
  return ({
16977
- attachmentType: attachment.attachmentType,
16977
+ attachmentType: mapAttachmentType(attachment.attachmentType),
16978
16978
  id: attachment.id,
16979
16979
  name: (_a = attachment.name) !== null && _a !== void 0 ? _a : '',
16980
16980
  extension: (_b = attachment.contentType) !== null && _b !== void 0 ? _b : '',
@@ -16983,6 +16983,16 @@ const extractInlineImageFilesMetadata = (attachments) => {
16983
16983
  });
16984
16984
  });
16985
16985
  };
16986
+ /* @conditional-compile-remove(teams-inline-images) */
16987
+ const mapAttachmentType = (attachmentType) => {
16988
+ if (attachmentType === 'teamsImage' || attachmentType === 'teamsInlineImage') {
16989
+ return 'teamsInlineImage';
16990
+ }
16991
+ else if (attachmentType === 'file') {
16992
+ return 'fileSharing';
16993
+ }
16994
+ return 'unknown';
16995
+ };
16986
16996
  /* @conditional-compile-remove(file-sharing) @conditional-compile-remove(teams-inline-images) */
16987
16997
  const extractFilesMetadata = (message) => {
16988
16998
  var _a, _b;
@@ -20241,6 +20251,10 @@ const scrollableContainerContents = {
20241
20251
  position: 'relative'
20242
20252
  }
20243
20253
  };
20254
+ /**
20255
+ * @private
20256
+ */
20257
+ const containerContextStyles = { root: { position: 'absolute', height: '100%', width: '100%' } };
20244
20258
  /**
20245
20259
  * @private
20246
20260
  */
@@ -22790,11 +22804,13 @@ const SidePane = (props) => {
22790
22804
  React__default['default'].createElement(react.Stack.Item, { verticalFill: true, grow: true, styles: paneBodyContainer },
22791
22805
  React__default['default'].createElement(react.Stack, { verticalFill: true, styles: scrollableContainer },
22792
22806
  ContentRender && (React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: scrollableContainerContents },
22793
- React__default['default'].createElement(ContentRender, null))),
22807
+ React__default['default'].createElement(react.Stack, { styles: containerContextStyles },
22808
+ React__default['default'].createElement(ContentRender, null)))),
22794
22809
  OverrideContentRender && (React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: !(overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.isActive) && (overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.persistRenderingWhenClosed)
22795
22810
  ? hiddenStyles
22796
22811
  : scrollableContainerContents },
22797
- React__default['default'].createElement(OverrideContentRender, null)))))));
22812
+ React__default['default'].createElement(react.Stack, { styles: containerContextStyles },
22813
+ React__default['default'].createElement(OverrideContentRender, null))))))));
22798
22814
  };
22799
22815
  // eslint-disable-next-line @typescript-eslint/no-empty-function
22800
22816
  const noop = () => { };