@azure/communication-react 1.15.0-alpha-202404050013 → 1.15.0-alpha-202404060012

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 (65) hide show
  1. package/dist/communication-react.d.ts +12 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-B3cXye-F.js → ChatMessageComponentAsRichTextEditBox-CLkmWBpD.js} +18 -12
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-CLkmWBpD.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{index-C4BFVPuO.js → index-CeUuqiwO.js} +126 -50
  5. package/dist/dist-cjs/communication-react/index-CeUuqiwO.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  9. package/dist/dist-esm/react-components/src/components/AttachmentCard.js +5 -5
  10. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.d.ts +2 -0
  12. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/ChatMessage/{ChatMessageComponentAsEditBox.d.ts → MyMessageComponents/ChatMessageComponentAsEditBox.d.ts} +4 -4
  14. package/dist/dist-esm/react-components/src/components/ChatMessage/{ChatMessageComponentAsEditBox.js → MyMessageComponents/ChatMessageComponentAsEditBox.js} +11 -11
  15. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -0
  16. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +2 -2
  17. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/ChatMessage/{ChatMessageComponentAsRichTextEditBox.d.ts → MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts} +5 -5
  19. package/dist/dist-esm/react-components/src/components/ChatMessage/{ChatMessageComponentAsRichTextEditBox.js → MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js} +35 -24
  20. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -0
  21. package/dist/dist-esm/react-components/src/components/EndCallButton.js +16 -3
  22. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  23. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js +14 -0
  24. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js.map +1 -1
  25. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +1 -0
  26. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +24 -4
  27. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  28. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +1 -0
  29. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +2 -2
  30. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  31. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +10 -2
  32. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +4 -0
  34. package/dist/dist-esm/react-components/src/components/SendBox.js +5 -3
  35. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -2
  37. package/dist/dist-esm/react-components/src/components/index.js +1 -1
  38. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +3 -2
  40. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +3 -1
  42. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  43. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +8 -3
  44. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  45. package/dist/dist-esm/react-components/src/components/utils/common.d.ts +1 -1
  46. package/dist/dist-esm/react-components/src/components/utils/common.js +3 -2
  47. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -3
  49. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  50. package/dist/dist-esm/react-components/src/theming/icons.js +2 -0
  51. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +6 -2
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.d.ts +2 -0
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +4 -2
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +26 -21
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  59. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
  60. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +2 -1
  61. package/package.json +1 -1
  62. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-B3cXye-F.js.map +0 -1
  63. package/dist/dist-cjs/communication-react/index-C4BFVPuO.js.map +0 -1
  64. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +0 -1
  65. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsRichTextEditBox.js.map +0 -1
@@ -2575,9 +2575,13 @@ export declare interface CallCompositeStrings {
2575
2575
  */
2576
2576
  exitSpotlightButtonTooltip: string;
2577
2577
  /**
2578
- * Label for confirm button in hang up confirm dialog
2578
+ * Label for confirm button of hang up for everyone dialog
2579
2579
  */
2580
- hangUpConfirmButtonLabel?: string;
2580
+ leaveConfirmButtonLabel?: string;
2581
+ /**
2582
+ * Label for confirm button of leave confim dialog
2583
+ */
2584
+ endCallConfirmButtonLabel?: string;
2581
2585
  /**
2582
2586
  * Label for cancel button in hang up confirm dialog
2583
2587
  */
@@ -6357,6 +6361,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
6357
6361
  CancelAttachmentUpload: React_2.JSX.Element;
6358
6362
  DownloadAttachment: React_2.JSX.Element;
6359
6363
  OpenAttachment: React_2.JSX.Element;
6364
+ AttachmentMoreMenu: React_2.JSX.Element;
6360
6365
  DataLossPreventionProhibited: React_2.JSX.Element;
6361
6366
  EditBoxCancel: React_2.JSX.Element;
6362
6367
  EditBoxSubmit: React_2.JSX.Element;
@@ -6555,6 +6560,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6555
6560
  CancelAttachmentUpload: React_2.JSX.Element;
6556
6561
  DownloadAttachment: React_2.JSX.Element;
6557
6562
  OpenAttachment: React_2.JSX.Element;
6563
+ AttachmentMoreMenu: React_2.JSX.Element;
6558
6564
  DataLossPreventionProhibited: React_2.JSX.Element;
6559
6565
  ErrorBarCallVideoRecoveredBySystem: React_2.JSX.Element;
6560
6566
  ErrorBarCallVideoStoppedBySystem: React_2.JSX.Element;
@@ -9914,6 +9920,10 @@ export declare interface SendBoxStrings {
9914
9920
  * Aria label to notify user attachment is uploaded.
9915
9921
  */
9916
9922
  uploadCompleted: string;
9923
+ /**
9924
+ * Aria label to notify user more attachment action menu.
9925
+ */
9926
+ attachmentMoreMenu: string;
9917
9927
  }
9918
9928
 
9919
9929
  /**
@@ -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-C4BFVPuO.js');
7
+ var index = require('./index-CeUuqiwO.js');
8
8
  var React = require('react');
9
9
  require('reselect');
10
10
  require('@azure/communication-calling');
@@ -38,13 +38,13 @@ require('@azure/communication-calling-effects');
38
38
  // Copyright (c) Microsoft Corporation.
39
39
  // Licensed under the MIT License.
40
40
  /**
41
- * @beta
41
+ * @private
42
42
  */
43
43
  const ChatMessageComponentAsRichTextEditBox = (props) => {
44
44
  const { onCancel, onSubmit, strings, message } = props;
45
45
  const [textValue, setTextValue] = React.useState(message.content || '');
46
- /* @conditional-compile-remove(attachment-upload) */
47
- const [attachmentMetadata, _] = React.useState(index.getMessageWithAttachmentMetadata(message));
46
+ /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */
47
+ const [attachmentMetadata, setAttachmentMetadata] = React.useState(index.getMessageWithAttachmentMetadata(message));
48
48
  const editTextFieldRef = React.useRef(null);
49
49
  const theme = index.useTheme();
50
50
  const messageState = index.getMessageState(textValue,
@@ -53,12 +53,6 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
53
53
  const editContainerStyles = index.useChatMessageRichTextEditContainerStyles();
54
54
  const chatMyMessageStyles = index.useChatMyMessageStyles();
55
55
  const locale = index.useLocale().strings;
56
- // TODO: Check if the focus is needed, if so use `focusOnInit` prop
57
- // for Rooster component instead as this sets focus too early
58
- React.useEffect(() => {
59
- var _a;
60
- (_a = editTextFieldRef.current) === null || _a === void 0 ? void 0 : _a.focus();
61
- }, []);
62
56
  const setText = (newValue) => {
63
57
  setTextValue(newValue !== null && newValue !== void 0 ? newValue : '');
64
58
  };
@@ -105,10 +99,22 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
105
99
  /* @conditional-compile-remove(rich-text-editor) */
106
100
  return locale.richTextSendBox;
107
101
  }, [/* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox, locale.sendBox]);
102
+ /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */
103
+ const onCancelAttachmentUpload = React.useCallback((attachmentId) => {
104
+ setAttachmentMetadata(attachmentMetadata === null || attachmentMetadata === void 0 ? void 0 : attachmentMetadata.filter((attachment) => attachment.id !== attachmentId));
105
+ }, [attachmentMetadata]);
106
+ /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */
107
+ const onRenderAttachmentUploads = React.useCallback(() => {
108
+ return (React.createElement(react.Stack, { className: index.attachmentUploadCardsStyles },
109
+ React.createElement(index.FluentV9ThemeProvider, { v8Theme: theme },
110
+ React.createElement(index._AttachmentUploadCards, { activeAttachmentUploads: attachmentMetadata, onCancelAttachmentUpload: onCancelAttachmentUpload }))));
111
+ }, [attachmentMetadata, onCancelAttachmentUpload, theme]);
108
112
  const getContent = () => {
109
113
  return (React.createElement(react.Stack, { className: react.mergeStyles(index.editBoxWidthStyles) },
110
114
  React.createElement(index.RichTextSendBoxErrors, { textTooLongMessage: textTooLongMessage, systemMessage: message.failureReason }),
111
- React.createElement(index.RichTextInputBoxComponent, { placeholderText: strings.editBoxPlaceholderText, onChange: setText, editorComponentRef: editTextFieldRef, initialContent: message.content, strings: richTextLocaleStrings, disabled: false, actionComponents: actionButtons, richTextEditorStyleProps: index.editBoxRichTextEditorStyle, isHorizontalLayoutDisabled: true })));
115
+ React.createElement(index.RichTextInputBoxComponent, { placeholderText: strings.editBoxPlaceholderText, onChange: setText, editorComponentRef: editTextFieldRef, initialContent: message.content, content: textValue, strings: richTextLocaleStrings, disabled: false, actionComponents: actionButtons, richTextEditorStyleProps: index.editBoxRichTextEditorStyle, isHorizontalLayoutDisabled: true,
116
+ /* @conditional-compile-remove(attachment-upload) */
117
+ onRenderAttachmentUploads: onRenderAttachmentUploads })));
112
118
  };
113
119
  const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';
114
120
  return (React.createElement(reactChat.ChatMyMessage, { attached: attached, root: {
@@ -119,4 +125,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
119
125
  };
120
126
 
121
127
  exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
122
- //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-B3cXye-F.js.map
128
+ //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-CLkmWBpD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-CLkmWBpD.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';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useMemo, useState } 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 '../../AttachmentUploadCards';\n/* @conditional-compile-remove(attachment-upload) */\nimport { AttachmentMetadata } from '../../../types/Attachment';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n getMessageState,\n onRenderCancelIcon,\n onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(attachment-upload) */\nimport { getMessageWithAttachmentMetadata } 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(attachment-download) @conditional-compile-remove(attachment-upload) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(attachment-upload) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n metadata?: Record<string, string>,\n options?: {\n /* @conditional-compile-remove(attachment-upload) */\n attachmentMetadata?: AttachmentMetadata[];\n }\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const { onCancel, onSubmit, strings, message } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const [attachmentMetadata, setAttachmentMetadata] = useState(getMessageWithAttachmentMetadata(message));\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = getMessageState(\n textValue,\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata ?? []\n );\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = (newValue?: string): void => {\n setTextValue(newValue ?? '');\n };\n\n const textTooLongMessage =\n messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\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 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 />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n submitEnabled &&\n onSubmit(\n textValue,\n message.metadata,\n /* @conditional-compile-remove(attachment-upload) */ {\n attachmentMetadata\n }\n );\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata,\n message.messageId,\n message.metadata,\n onCancel,\n onRenderThemedCancelIcon,\n onRenderThemedSubmitIcon,\n onSubmit,\n strings.editBoxCancelButton,\n strings.editBoxSubmitButton,\n submitEnabled,\n textValue\n ]);\n const richTextLocaleStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return locale.richTextSendBox;\n return locale.sendBox;\n }, [/* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox, locale.sendBox]);\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onCancelAttachmentUpload = useCallback(\n (attachmentId: string) => {\n setAttachmentMetadata(attachmentMetadata?.filter((attachment) => attachment.id !== attachmentId));\n },\n [attachmentMetadata]\n );\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n activeAttachmentUploads={attachmentMetadata}\n onCancelAttachmentUpload={onCancelAttachmentUpload}\n />\n </FluentV9ThemeProvider>\n </Stack>\n );\n }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n const getContent = (): JSX.Element => {\n return (\n <Stack className={mergeStyles(editBoxWidthStyles)}>\n <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n <RichTextInputBoxComponent\n placeholderText={strings.editBoxPlaceholderText}\n onChange={setText}\n editorComponentRef={editTextFieldRef}\n initialContent={message.content}\n content={textValue}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\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: chatMyMessageStyles.root\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"],"names":["useState","getMessageWithAttachmentMetadata","useTheme","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","useCallback","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","useMemo","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAkDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;IACf,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAEvD,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAGA,cAAQ,CAACC,sCAAgC,CAAC,OAAO,CAAC,CAAC,CAAC;IACxG,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAA6B,IAAI,CAAC,CAAC;AACxE,IAAA,MAAM,KAAK,GAAGC,cAAQ,EAAE,CAAC;AACzB,IAAA,MAAM,YAAY,GAAGC,qBAAe,CAClC,SAAS;yDAC4C,kBAAkB,KAAlB,IAAA,IAAA,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,CAC9E,CAAC;AACF,IAAA,MAAM,aAAa,GAAG,YAAY,KAAK,IAAI,CAAC;AAE5C,IAAA,MAAM,mBAAmB,GAAGC,+CAAyC,EAAE,CAAC;AACxE,IAAA,MAAM,mBAAmB,GAAGC,4BAAsB,EAAE,CAAC;AACrD,IAAA,MAAM,MAAM,GAAGC,eAAS,EAAE,CAAC,OAAO,CAAC;AAEnC,IAAA,MAAM,OAAO,GAAG,CAAC,QAAiB,KAAU;QAC1C,YAAY,CAAC,QAAQ,KAAR,IAAA,IAAA,QAAQ,cAAR,QAAQ,GAAI,EAAE,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