@azure/communication-react 1.18.0-alpha-202407162016 → 1.18.0-alpha-202407170014

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.
Files changed (90) hide show
  1. package/dist/communication-react.d.ts +18 -12
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-Dkm1akf7.js → ChatMessageComponentAsRichTextEditBox-BZ2Y7hMk.js} +29 -4
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BZ2Y7hMk.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BnmvwF_1.js → RichTextSendBoxWrapper-DHxkzYTL.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BnmvwF_1.js.map → RichTextSendBoxWrapper-DHxkzYTL.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-BF8P6_ls.js → index-BCy65nmk.js} +168 -86
  7. package/dist/dist-cjs/communication-react/index-BCy65nmk.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/common.js +10 -2
  10. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +3 -3
  15. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +2 -2
  17. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
  18. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +3 -1
  19. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +2 -2
  21. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/Converter.js +1 -1
  23. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  24. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +10 -0
  25. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +31 -3
  27. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  28. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +6 -1
  29. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  30. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +8 -8
  31. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +4 -4
  32. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +5 -1
  34. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +5 -1
  36. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +21 -1
  38. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +1 -1
  40. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +2 -1
  41. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +8 -4
  43. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +1 -1
  45. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +9 -15
  46. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +4 -0
  48. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +19 -0
  49. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/utils/responsive.js +12 -2
  51. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +1 -1
  53. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +1 -1
  55. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +1 -1
  56. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +1 -1
  57. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +1 -1
  58. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +1 -1
  59. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +1 -1
  60. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +1 -1
  61. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +1 -1
  62. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +1 -1
  63. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +1 -1
  64. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +1 -1
  65. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +1 -1
  66. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +1 -1
  67. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +1 -1
  68. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +1 -1
  69. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +1 -1
  70. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +1 -1
  71. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +1 -1
  72. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +1 -1
  73. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +1 -1
  74. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +4 -4
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js +1 -1
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +1 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +10 -10
  82. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js +4 -4
  84. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js.map +1 -1
  85. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +6 -2
  86. package/dist/dist-esm/react-composites/src/composites/common/icons.js +5 -1
  87. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  88. package/package.json +2 -2
  89. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-Dkm1akf7.js.map +0 -1
  90. package/dist/dist-cjs/communication-react/index-BF8P6_ls.js.map +0 -1
@@ -1734,7 +1734,9 @@ export declare type CallCompositeIcons = {
1734
1734
  DefaultCustomButton?: JSX.Element;
1735
1735
  DtmfDialpadButton?: JSX.Element;
1736
1736
  PhoneNumberButton?: JSX.Element;
1737
- PhoneInfoWait?: JSX.Element;
1737
+ JoinByPhoneDialStepIcon?: JSX.Element;
1738
+ JoinByPhoneConferenceIdIcon?: JSX.Element;
1739
+ JoinByPhoneWaitToBeAdmittedIcon?: JSX.Element;
1738
1740
  PeoplePaneMoreButton?: JSX.Element;
1739
1741
  StopAllSpotlightMenuButton?: JSX.Element;
1740
1742
  };
@@ -3176,7 +3178,9 @@ export declare interface CallState {
3176
3178
  /**
3177
3179
  * Proxy of {@link @azure/communication-calling#TeamsMeetingAudioConferencingCallFeature}.
3178
3180
  */
3179
- teamsMeetingConference?: ConferencePhoneInfo[];
3181
+ meetingConference?: {
3182
+ conferencePhones: ConferencePhoneInfo[];
3183
+ };
3180
3184
  }
3181
3185
 
3182
3186
  /**
@@ -5872,7 +5876,7 @@ export declare interface ComponentStrings {
5872
5876
  /** Strings for the participant list component */
5873
5877
  ParticipantList: ParticipantListStrings;
5874
5878
  /** Strings for the MeetingConferencePhoneInfoModal */
5875
- MeetingConferencePhoneInfo: MeetingConferencePhoneInfoModalStrings;
5879
+ meetingConferencePhoneInfo: MeetingConferencePhoneInfoModalStrings;
5876
5880
  IncomingCallNotification: IncomingCallNotificationStrings;
5877
5881
  }
5878
5882
 
@@ -6836,7 +6840,9 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6836
6840
  DefaultCustomButton?: JSX.Element | undefined;
6837
6841
  DtmfDialpadButton?: JSX.Element | undefined;
6838
6842
  PhoneNumberButton?: JSX.Element | undefined;
6839
- PhoneInfoWait?: JSX.Element | undefined;
6843
+ JoinByPhoneDialStepIcon?: JSX.Element | undefined;
6844
+ JoinByPhoneConferenceIdIcon?: JSX.Element | undefined;
6845
+ JoinByPhoneWaitToBeAdmittedIcon?: JSX.Element | undefined;
6840
6846
  PeoplePaneMoreButton?: JSX.Element | undefined;
6841
6847
  StopAllSpotlightMenuButton?: JSX.Element | undefined;
6842
6848
  ChevronLeft?: JSX.Element | undefined;
@@ -8328,35 +8334,35 @@ export declare interface MeetingConferencePhoneInfoModalStrings {
8328
8334
  /**
8329
8335
  * Header for the phone info modal
8330
8336
  */
8331
- meetingConferencePhoneInfoModalTitle?: string;
8337
+ meetingConferencePhoneInfoModalTitle: string;
8332
8338
  /**
8333
8339
  * Phone number instruction
8334
8340
  */
8335
- meetingConferencePhoneInfoModalDialIn?: string;
8341
+ meetingConferencePhoneInfoModalDialIn: string;
8336
8342
  /**
8337
8343
  * Meeting ID instruction
8338
8344
  */
8339
- meetingConferencePhoneInfoModalMeetingId?: string;
8345
+ meetingConferencePhoneInfoModalMeetingId: string;
8340
8346
  /**
8341
8347
  * Wait for phone connection
8342
8348
  */
8343
- meetingConferencePhoneInfoModalWait?: string;
8349
+ meetingConferencePhoneInfoModalWait: string;
8344
8350
  /**
8345
8351
  * Toll Free Phone Label
8346
8352
  */
8347
- meetingConferencePhoneInfoModalTollFree?: string;
8353
+ meetingConferencePhoneInfoModalTollFree: string;
8348
8354
  /**
8349
8355
  * Toll Phone Label
8350
8356
  */
8351
- meetingConferencePhoneInfoModalToll?: string;
8357
+ meetingConferencePhoneInfoModalToll: string;
8352
8358
  /**
8353
8359
  * Toll Phone Label without geo data
8354
8360
  */
8355
- meetingConferencePhoneInfoModalTollGeoData?: string;
8361
+ meetingConferencePhoneInfoModalTollGeoData: string;
8356
8362
  /**
8357
8363
  * No phone number available message
8358
8364
  */
8359
- meetingConferencePhoneInfoModalNoPhoneAvailable?: string;
8365
+ meetingConferencePhoneInfoModalNoPhoneAvailable: string;
8360
8366
  }
8361
8367
 
8362
8368
  /**
@@ -4,7 +4,7 @@ var react = require('@fluentui/react');
4
4
  var reactChat = require('@fluentui-contrib/react-chat');
5
5
  var reactComponents = require('@fluentui/react-components');
6
6
  require('@azure/communication-common');
7
- var index = require('./index-BF8P6_ls.js');
7
+ var index = require('./index-BCy65nmk.js');
8
8
  var React = require('react');
9
9
  require('react-dom/client');
10
10
  require('@azure/communication-chat');
@@ -51,7 +51,30 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
51
51
  imageUploadsInProgress,
52
52
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
53
53
  onCancelInlineImageUpload } = props;
54
- const [textValue, setTextValue] = React.useState(message.content || '');
54
+ const initialContent = React.useMemo(() => {
55
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
56
+ const content = message.content;
57
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
58
+ const document = new DOMParser().parseFromString(content !== null && content !== void 0 ? content : '', 'text/html');
59
+ // The broken image element is a div element with all the attributes of the original image element.
60
+ // We need to convert it to a img element so the Rooster knows how to render it.
61
+ // And we need to copy over all the attributes such as id, width, etc.
62
+ // which is needed for sending the message with the images correctly.
63
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
64
+ document.querySelectorAll('.broken-image-wrapper').forEach((brokenImage) => {
65
+ var _a;
66
+ const imageElement = document.createElement('img');
67
+ const attributes = brokenImage.attributes;
68
+ for (const attribute of attributes) {
69
+ imageElement.setAttribute(attribute.name, attribute.value);
70
+ }
71
+ imageElement.src = index.BROKEN_IMAGE_SVG_DATA;
72
+ (_a = brokenImage.parentElement) === null || _a === void 0 ? void 0 : _a.replaceChild(imageElement, brokenImage);
73
+ });
74
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
75
+ return document.body.innerHTML;
76
+ }, [message]);
77
+ const [textValue, setTextValue] = React.useState(initialContent || '');
55
78
  /* @conditional-compile-remove(file-sharing-acs) */
56
79
  const [attachmentMetadata, handleAttachmentAction] = React.useReducer(index.attachmentMetadataReducer, (_a = index.getMessageWithAttachmentMetadata(message)) !== null && _a !== void 0 ? _a : []);
57
80
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
@@ -105,6 +128,8 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
105
128
  }
106
129
  let content = textValue;
107
130
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
131
+ content = index.removeBrokenImageContent(textValue);
132
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
108
133
  if (index.isAttachmentUploadCompleted(imageUploadsInProgress)) {
109
134
  content = index.insertImagesToContentString(textValue, imageUploadsInProgress);
110
135
  }
@@ -177,7 +202,7 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
177
202
  return (React.createElement(react.Stack, { className: react.mergeStyles(index.editBoxWidthStyles) },
178
203
  React.createElement(index.RichTextSendBoxErrors, { textTooLongMessage: textTooLongMessage, systemMessage: message.failureReason,
179
204
  /* @conditional-compile-remove(rich-text-editor-image-upload) */ attachmentUploadsPendingError: attachmentUploadsPendingError }),
180
- React.createElement(index.RichTextInputBoxComponent, { placeholderText: strings.editBoxPlaceholderText, onChange: onChangeHandler, editorComponentRef: editTextFieldRef, initialContent: message.content, strings: richTextLocaleStrings, disabled: false, actionComponents: actionButtons, richTextEditorStyleProps: index.editBoxRichTextEditorStyle, isHorizontalLayoutDisabled: true,
205
+ React.createElement(index.RichTextInputBoxComponent, { placeholderText: strings.editBoxPlaceholderText, onChange: onChangeHandler, editorComponentRef: editTextFieldRef, initialContent: initialContent, strings: richTextLocaleStrings, disabled: false, actionComponents: actionButtons, richTextEditorStyleProps: index.editBoxRichTextEditorStyle, isHorizontalLayoutDisabled: true,
181
206
  /* @conditional-compile-remove(file-sharing-acs) */
182
207
  onRenderAttachmentUploads: onRenderAttachmentUploads,
183
208
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
@@ -197,4 +222,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
197
222
 
198
223
  exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
199
224
  exports.default = ChatMessageComponentAsRichTextEditBox;
200
- //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-Dkm1akf7.js.map
225
+ //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-BZ2Y7hMk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-BZ2Y7hMk.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(rich-text-editor-image-upload) */\nimport { AttachmentMetadataInProgress } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\n/* @conditional-compile-remove(rich-text-editor-image-upload) */\nimport {\n cancelInlineImageUpload,\n hasIncompleteAttachmentUploads,\n insertImagesToContentString,\n isAttachmentUploadCompleted,\n removeBrokenImageContent\n} from '../../utils/SendBoxUtils';\nimport {\n getMessageState,\n onRenderCancelIcon,\n onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata,\n doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n/* @conditional-compile-remove(rich-text-editor-image-upload) */\nimport { SendBoxErrorBarError } from '../../SendBoxErrorBar';\n/* @conditional-compile-remove(rich-text-editor-image-upload) */\nimport { BROKEN_IMAGE_SVG_DATA } from '../../styles/Common.style';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata?: AttachmentMetadata[]\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste?: (event: { content: DocumentFragment }) => void;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onCancelInlineImageUpload?: (imageId: string) => void;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onUploadInlineImage?: (imageUrl: string, imageFileName: string) => void;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n imageUploadsInProgress?: AttachmentMetadataInProgress[];\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const {\n onCancel,\n onSubmit,\n strings,\n message,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onUploadInlineImage,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n imageUploadsInProgress,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onCancelInlineImageUpload\n } = props;\n\n const initialContent = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n const content = message.content;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n const document = new DOMParser().parseFromString(content ?? '', 'text/html');\n // The broken image element is a div element with all the attributes of the original image element.\n // We need to convert it to a img element so the Rooster knows how to render it.\n // And we need to copy over all the attributes such as id, width, etc.\n // which is needed for sending the message with the images correctly.\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n document.querySelectorAll('.broken-image-wrapper').forEach((brokenImage) => {\n const imageElement = document.createElement('img');\n const attributes = brokenImage.attributes;\n for (const attribute of attributes) {\n imageElement.setAttribute(attribute.name, attribute.value);\n }\n\n imageElement.src = BROKEN_IMAGE_SVG_DATA;\n brokenImage.parentElement?.replaceChild(imageElement, brokenImage);\n });\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n return document.body.innerHTML;\n return message.content;\n }, [message]);\n\n const [textValue, setTextValue] = useState<string>(initialContent || '');\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const [attachmentMetadata, handleAttachmentAction] = useReducer(\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata(message) ?? []\n );\n\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n const [attachmentUploadsPendingError, setAttachmentUploadsPendingError] = useState<SendBoxErrorBarError | undefined>(\n undefined\n );\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = useMemo(() => {\n return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = useCallback((newValue?: string): void => {\n setTextValue(newValue ?? '');\n }, []);\n\n useEffect(() => {\n editTextFieldRef.current?.focus();\n }, []);\n\n const textTooLongMessage = useMemo(() => {\n return messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\n }, [messageState, strings.editBoxTextLimit]);\n\n const iconClassName = useCallback(\n (isHover: boolean) => {\n const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n },\n [theme.palette.accent, theme.palette.neutralSecondary]\n );\n\n const onRenderThemedCancelIcon = useCallback(\n (isHover: boolean) => {\n return onRenderCancelIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n const onRenderThemedSubmitIcon = useCallback(\n (isHover: boolean) => {\n return onRenderSubmitIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const hasMultipleAttachments = useMemo(() => {\n return doesMessageContainMultipleAttachments(message);\n }, [message]);\n\n const onSubmitHandler = useCallback((): void => {\n if (!submitEnabled) {\n return;\n }\n // Don't send message until all attachments have been uploaded successfully\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n setAttachmentUploadsPendingError(undefined);\n\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n if (hasIncompleteAttachmentUploads(imageUploadsInProgress)) {\n setAttachmentUploadsPendingError({ message: strings.attachmentUploadsPendingError, timestamp: Date.now() });\n return;\n }\n\n let content = textValue;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n content = removeBrokenImageContent(textValue);\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n if (isAttachmentUploadCompleted(imageUploadsInProgress)) {\n content = insertImagesToContentString(textValue, imageUploadsInProgress);\n }\n // it's very important to pass an empty attachment here\n // so when user removes all attachments, UI can reflect it instantly\n // if you set it to undefined, the attachments pre-edited would still be there\n // until edit message event is received\n onSubmit(content, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata || []);\n }, [\n submitEnabled,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n imageUploadsInProgress,\n textValue,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n strings.attachmentUploadsPendingError,\n onSubmit,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata\n ]);\n\n const actionButtons = useMemo(() => {\n return (\n <Stack horizontal>\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxCancelButton}\n tooltipContent={strings.editBoxCancelButton}\n onRenderIcon={onRenderThemedCancelIcon}\n onClick={() => {\n onCancel && onCancel(message.messageId);\n }}\n id={'dismissIconWrapper'}\n data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n onSubmitHandler();\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n data-testId={strings.editBoxSubmitButton}\n />\n </Stack>\n );\n }, [\n message.messageId,\n onCancel,\n onRenderThemedCancelIcon,\n onRenderThemedSubmitIcon,\n strings.editBoxCancelButton,\n strings.editBoxSubmitButton,\n onSubmitHandler\n ]);\n const richTextLocaleStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return { ...locale.richTextSendBox, ...strings };\n return locale.sendBox;\n }, [\n /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n /* @conditional-compile-remove(rich-text-editor) */ strings,\n locale.sendBox\n ]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n // edit box only capable of removing attachments\n // we need to expand attachment actions\n // if we want to support more actions e.g. add\n handleAttachmentAction({ type: 'remove', id: attachmentId });\n }, []);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n attachments={attachmentMetadata}\n onCancelAttachmentUpload={onCancelAttachmentUpload}\n />\n </FluentV9ThemeProvider>\n </Stack>\n );\n }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n const onChangeHandler = useCallback(\n (\n content: string | undefined,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */ imageSrcArray?: Array<string>\n ) => {\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n cancelInlineImageUpload(imageSrcArray, imageUploadsInProgress, onCancelInlineImageUpload);\n setText(content);\n },\n [\n setText,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */ imageUploadsInProgress,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */ onCancelInlineImageUpload\n ]\n );\n\n const getContent = (): JSX.Element => {\n return (\n <Stack className={mergeStyles(editBoxWidthStyles)}>\n <RichTextSendBoxErrors\n textTooLongMessage={textTooLongMessage}\n systemMessage={message.failureReason}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */ attachmentUploadsPendingError={\n attachmentUploadsPendingError\n }\n />\n <RichTextInputBoxComponent\n placeholderText={strings.editBoxPlaceholderText}\n onChange={onChangeHandler}\n editorComponentRef={editTextFieldRef}\n initialContent={initialContent}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste={onPaste}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onUploadInlineImage={onUploadInlineImage}\n />\n </Stack>\n );\n };\n\n const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n return (\n <ChatMyMessage\n attached={attached}\n root={{\n className: mergeClasses(\n chatMyMessageStyles.root,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasMultipleAttachments ? chatMyMessageStyles.multipleAttachmentsInEditing : undefined\n )\n }}\n body={{\n className: mergeClasses(\n editContainerStyles.body,\n attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n )\n }}\n >\n {getContent()}\n </ChatMyMessage>\n );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useMemo","BROKEN_IMAGE_SVG_DATA","useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","hasIncompleteAttachmentUploads","removeBrokenImageContent","isAttachmentUploadCompleted","insertImagesToContentString","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","cancelInlineImageUpload","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AA2EA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO;;IAEP,mBAAmB;;IAEnB,sBAAsB;;IAEtB,yBAAyB,EAC1B,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,cAAc,GAAGA,aAAO,CAAC,MAAK;;AAElC,QAAA,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;AAEhC,QAAA,MAAM,QAAQ,GAAG,IAAI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C,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,4BAA4B,GAAG,SAAS,CACtF;AACF,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEA,4BAAY,CACrB,mBAAmB,CAAC,IAAI,EACxB,QAAQ,KAAK,KAAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var index = require('./index-BF8P6_ls.js');
4
+ var index = require('./index-BCy65nmk.js');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-components');
7
7
  require('@fluentui-contrib/react-chat');
@@ -51,4 +51,4 @@ const RichTextSendBoxWrapper = (props) => {
51
51
  };
52
52
 
53
53
  exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
54
- //# sourceMappingURL=RichTextSendBoxWrapper-BnmvwF_1.js.map
54
+ //# sourceMappingURL=RichTextSendBoxWrapper-DHxkzYTL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextSendBoxWrapper-BnmvwF_1.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}
1
+ {"version":3,"file":"RichTextSendBoxWrapper-DHxkzYTL.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}