@azure/communication-react 1.9.0-alpha-202310170013 → 1.9.0-alpha-202310181643

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-202310170013';
180
+ var telemetryVersion = '1.9.0-alpha-202310181643';
181
181
 
182
182
  // Copyright (c) Microsoft Corporation.
183
183
  /**
@@ -9057,18 +9057,23 @@ const chatMessageFailedTagStyle = (theme) => react.mergeStyles({
9057
9057
  fontSize: theme.fonts.smallPlus.fontSize,
9058
9058
  lineHeight: '1rem'
9059
9059
  });
9060
+ /**
9061
+ * @private
9062
+ */
9063
+ const editChatMessageFailedTagStyle = react.mergeStyles({
9064
+ marginBottom: '0.5rem'
9065
+ });
9060
9066
  /**
9061
9067
  * @private
9062
9068
  */
9063
9069
  const chatMessageFailedTagStackItemStyle = react.mergeStyles({
9064
- alignSelf: 'end',
9065
- paddingBottom: '0.25rem'
9070
+ alignSelf: 'end'
9066
9071
  });
9067
9072
  /**
9068
9073
  * @private
9069
9074
  */
9070
9075
  const editChatMessageButtonsStackStyle = react.mergeStyles({
9071
- padding: '0 0.5rem 0.5rem 0.5rem',
9076
+ padding: '0 0.5rem',
9072
9077
  marginTop: '-0.25rem'
9073
9078
  });
9074
9079
  /**
@@ -9198,19 +9203,21 @@ const ChatMessageComponentAsEditBox = (props) => {
9198
9203
  }, supportNewline: false, maxLength: MAXIMUM_LENGTH_OF_MESSAGE, errorMessage: textTooLongMessage, styles: editBoxStyles,
9199
9204
  /* @conditional-compile-remove(mention) */
9200
9205
  mentionLookupOptions: mentionLookupOptions }),
9201
- React__default["default"].createElement(react.Stack, { horizontal: true, horizontalAlign: "end", verticalAlign: "start", className: editChatMessageButtonsStackStyle, tokens: { childrenGap: '0.25rem' } },
9202
- message.failureReason && (React__default["default"].createElement(react.Stack.Item, { grow: true, className: chatMessageFailedTagStackItemStyle },
9203
- React__default["default"].createElement("div", { className: chatMessageFailedTagStyle(theme) }, message.failureReason))),
9204
- React__default["default"].createElement(InputBoxButton, { className: editingButtonStyle, ariaLabel: strings.editBoxCancelButton, tooltipContent: strings.editBoxCancelButton, onRenderIcon: onRenderThemedCancelIcon, onClick: () => {
9205
- onCancel && onCancel(message.messageId);
9206
- }, id: 'dismissIconWrapper' }),
9207
- React__default["default"].createElement(InputBoxButton, { className: editingButtonStyle, ariaLabel: strings.editBoxSubmitButton, tooltipContent: strings.editBoxSubmitButton, onRenderIcon: onRenderThemedSubmitIcon, onClick: (e) => {
9208
- submitEnabled &&
9209
- onSubmit(textValue, message.metadata, {
9210
- attachedFilesMetadata
9211
- });
9212
- e.stopPropagation();
9213
- }, id: 'submitIconWrapper' })),
9206
+ React__default["default"].createElement(react.Stack, { horizontal: true, horizontalAlign: "end", className: editChatMessageButtonsStackStyle, tokens: { childrenGap: '0.25rem' } },
9207
+ message.failureReason && (React__default["default"].createElement(react.Stack.Item, { grow: true, align: "stretch", className: chatMessageFailedTagStackItemStyle },
9208
+ React__default["default"].createElement("div", { className: react.mergeStyles(chatMessageFailedTagStyle(theme), editChatMessageFailedTagStyle) }, message.failureReason))),
9209
+ React__default["default"].createElement(react.Stack.Item, { align: "end" },
9210
+ React__default["default"].createElement(InputBoxButton, { className: editingButtonStyle, ariaLabel: strings.editBoxCancelButton, tooltipContent: strings.editBoxCancelButton, onRenderIcon: onRenderThemedCancelIcon, onClick: () => {
9211
+ onCancel && onCancel(message.messageId);
9212
+ }, id: 'dismissIconWrapper' })),
9213
+ React__default["default"].createElement(react.Stack.Item, { align: "end" },
9214
+ React__default["default"].createElement(InputBoxButton, { className: editingButtonStyle, ariaLabel: strings.editBoxSubmitButton, tooltipContent: strings.editBoxSubmitButton, onRenderIcon: onRenderThemedSubmitIcon, onClick: (e) => {
9215
+ submitEnabled &&
9216
+ onSubmit(textValue, message.metadata, {
9217
+ attachedFilesMetadata
9218
+ });
9219
+ e.stopPropagation();
9220
+ }, id: 'submitIconWrapper' }))),
9214
9221
  onRenderFileUploads()));
9215
9222
  };
9216
9223
  const bodyClassName = reactComponents.mergeClasses(editContainerStyles.body, message.failureReason !== undefined ? editContainerStyles.bodyError : editContainerStyles.bodyDefault);