@azure/communication-react 1.18.0-alpha-202406191739 → 1.18.0-alpha-202406210015
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/dist/communication-react.d.ts +18 -0
 - package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-HBSSHZ2s.js → ChatMessageComponentAsRichTextEditBox-GKaobFzs.js} +2 -2
 - package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-HBSSHZ2s.js.map → ChatMessageComponentAsRichTextEditBox-GKaobFzs.js.map} +1 -1
 - package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DDN8Weyb.js → RichTextSendBoxWrapper-CmZES75M.js} +2 -2
 - package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DDN8Weyb.js.map → RichTextSendBoxWrapper-CmZES75M.js.map} +1 -1
 - package/dist/dist-cjs/communication-react/{index-CAm6Qb1t.js → index-DodrLCSW.js} +33 -26
 - package/dist/dist-cjs/communication-react/index-DodrLCSW.js.map +1 -0
 - package/dist/dist-cjs/communication-react/index.js +1 -1
 - package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
 - package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +1 -5
 - package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +13 -0
 - package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +2 -2
 - package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +2 -0
 - package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -2
 - package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
 - package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/index.d.ts +1 -1
 - package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js +1 -1
 - package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +3 -1
 - package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/ImageOverlay.js +3 -3
 - package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +1 -0
 - package/dist/dist-esm/react-components/src/components/InputBoxButton.js +2 -2
 - package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +1 -1
 - package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +2 -0
 - package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +5 -0
 - package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +4 -4
 - package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +3 -3
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.d.ts +1 -1
 - package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +2 -2
 - package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/common/utils.js +6 -6
 - package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
 - package/package.json +1 -1
 - package/dist/dist-cjs/communication-react/index-CAm6Qb1t.js.map +0 -1
 
| 
         @@ -6543,6 +6543,12 @@ export declare type DeclarativeCallAgent = CallAgent & IncomingCallManagement; 
     | 
|
| 
       6543 
6543 
     | 
    
         
             
             */
         
     | 
| 
       6544 
6544 
     | 
    
         
             
            export declare type DeclarativeIncomingCall = IncomingCall;
         
     | 
| 
       6545 
6545 
     | 
    
         | 
| 
      
 6546 
     | 
    
         
            +
            /**
         
     | 
| 
      
 6547 
     | 
    
         
            +
             * @public
         
     | 
| 
      
 6548 
     | 
    
         
            +
             * `DeclarativeTeamsCallAgent` extends and proxies the {@link @azure/communication-calling#TeamsCallAgent}
         
     | 
| 
      
 6549 
     | 
    
         
            +
             */
         
     | 
| 
      
 6550 
     | 
    
         
            +
            export declare type DeclarativeTeamsCallAgent = TeamsCallAgent & IncomingCallManagement;
         
     | 
| 
      
 6551 
     | 
    
         
            +
             
     | 
| 
       6546 
6552 
     | 
    
         
             
            /**
         
     | 
| 
       6547 
6553 
     | 
    
         
             
             * The default set of icons that are available to use in the UI components.
         
     | 
| 
       6548 
6554 
     | 
    
         
             
             *
         
     | 
| 
         @@ -10873,6 +10879,18 @@ export declare interface StatefulCallClient extends CallClient { 
     | 
|
| 
       10873 
10879 
     | 
    
         
             
                 * @public
         
     | 
| 
       10874 
10880 
     | 
    
         
             
                 */
         
     | 
| 
       10875 
10881 
     | 
    
         
             
                createCallAgent(...args: Parameters<CallClient['createCallAgent']>): Promise<DeclarativeCallAgent>;
         
     | 
| 
      
 10882 
     | 
    
         
            +
                /**
         
     | 
| 
      
 10883 
     | 
    
         
            +
                 * The TeamsCallAgent is used to handle calls.
         
     | 
| 
      
 10884 
     | 
    
         
            +
                 * To create the TeamsCallAgent, pass a CommunicationTokenCredential object provided from SDK.
         
     | 
| 
      
 10885 
     | 
    
         
            +
                 * - The CallClient can only have one active TeamsCallAgent instance at a time.
         
     | 
| 
      
 10886 
     | 
    
         
            +
                 * - You can create a new CallClient instance to create a new TeamsCallAgent.
         
     | 
| 
      
 10887 
     | 
    
         
            +
                 * - You can dispose of a CallClient's current active TeamsCallAgent, and call the CallClient's
         
     | 
| 
      
 10888 
     | 
    
         
            +
                 *   createTeamsCallAgent() method again to create a new TeamsCallAgent.
         
     | 
| 
      
 10889 
     | 
    
         
            +
                 * @param tokenCredential - The token credential. Use AzureCommunicationTokenCredential from `@azure/communication-common` to create a credential.
         
     | 
| 
      
 10890 
     | 
    
         
            +
                 * @param options - The TeamsCallAgentOptions for additional options like display name.
         
     | 
| 
      
 10891 
     | 
    
         
            +
                 * @public
         
     | 
| 
      
 10892 
     | 
    
         
            +
                 */
         
     | 
| 
      
 10893 
     | 
    
         
            +
                createTeamsCallAgent(...args: Parameters<CallClient['createTeamsCallAgent']>): Promise<DeclarativeTeamsCallAgent>;
         
     | 
| 
       10876 
10894 
     | 
    
         
             
            }
         
     | 
| 
       10877 
10895 
     | 
    
         | 
| 
       10878 
10896 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -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- 
     | 
| 
      
 7 
     | 
    
         
            +
            var index = require('./index-DodrLCSW.js');
         
     | 
| 
       8 
8 
     | 
    
         
             
            var React = require('react');
         
     | 
| 
       9 
9 
     | 
    
         
             
            require('reselect');
         
     | 
| 
       10 
10 
     | 
    
         
             
            require('@azure/communication-calling');
         
     | 
| 
         @@ -151,4 +151,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => { 
     | 
|
| 
       151 
151 
     | 
    
         | 
| 
       152 
152 
     | 
    
         
             
            exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
         
     | 
| 
       153 
153 
     | 
    
         
             
            exports.default = ChatMessageComponentAsRichTextEditBox;
         
     | 
| 
       154 
     | 
    
         
            -
            //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 154 
     | 
    
         
            +
            //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-GKaobFzs.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-HBSSHZ2s.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, 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';\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\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};\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  } = props;\n\n  const [textValue, setTextValue] = useState<string>(message.content || '');\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const [attachmentMetadata, handleAttachmentAction] = useReducer(\n    attachmentMetadataReducer,\n    getMessageWithAttachmentMetadata(message) ?? []\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 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            // 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            submitEnabled &&\n              onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n            e.stopPropagation();\n          }}\n          id={'submitIconWrapper'}\n          data-testId={strings.editBoxSubmitButton}\n        />\n      </Stack>\n    );\n  }, [\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata,\n    message.messageId,\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, ...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 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          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        />\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.multipleAttachments : 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":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAGC,gBAAU,CAC7DC,+BAAyB,EACzB,CAAA,EAAA,GAAAC,sCAAgC,CAAC,OAAO,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,EAAE,CAChD,CAAC;IACF,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAA6B,IAAI,CAAC,CAAC;AACxE,IAAA,MAAM,KAAK,GAAGC,cAAQ,EAAE,CAAC;AACzB,IAAA,MAAM,YAAY,GAAGC,aAAO,CAAC,MAAK;AAChC,QAAA,OAAOC,qBAAe,CAAC,SAAS,sDAAsD,kBAAkB,KAAlB,IAAA,IAAA,kBAAkB,KAAlB,KAAA,CAAA,GAAA,kBAAkB,GAAI,EAAE,CAAC,CAAC;KACjH,EAAE,qDAAqD,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;AAExF,IAAA,MAAM,aAAa,GAAG,YAAY,KAAK,IAAI,CAAC;AAE5C,IAAA,MAAM,mBAAmB,GAAGC,+CAAyC,EA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AACJ;;;;;"}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-GKaobFzs.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, 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';\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\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};\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  } = props;\n\n  const [textValue, setTextValue] = useState<string>(message.content || '');\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const [attachmentMetadata, handleAttachmentAction] = useReducer(\n    attachmentMetadataReducer,\n    getMessageWithAttachmentMetadata(message) ?? []\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 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            // 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            submitEnabled &&\n              onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n            e.stopPropagation();\n          }}\n          id={'submitIconWrapper'}\n          data-testId={strings.editBoxSubmitButton}\n        />\n      </Stack>\n    );\n  }, [\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata,\n    message.messageId,\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, ...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 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          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        />\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.multipleAttachments : 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":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,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AA0B,EAAE,IAAI;;AAEhC,gBAAA,yBAAyB,EAAE,yBAAyB;;AAEpD,gBAAA,OAAO,EAAE,OAAO,EAChB,CAAA,CACI,EACR;AACJ,KAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;AACJ,YAAA,SAAS,EAAEC,4BAAY,CACrB,mBAAmB,CAAC,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,SAAS,CAC7E;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- 
     | 
| 
      
 4 
     | 
    
         
            +
            var index = require('./index-DodrLCSW.js');
         
     | 
| 
       5 
5 
     | 
    
         
             
            require('@fluentui/react');
         
     | 
| 
       6 
6 
     | 
    
         
             
            require('@fluentui/react-components');
         
     | 
| 
       7 
7 
     | 
    
         
             
            require('@fluentui-contrib/react-chat');
         
     | 
| 
         @@ -50,4 +50,4 @@ const RichTextSendBoxWrapper = (props) => { 
     | 
|
| 
       50 
50 
     | 
    
         
             
            };
         
     | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
52 
     | 
    
         
             
            exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
         
     | 
| 
       53 
     | 
    
         
            -
            //# sourceMappingURL=RichTextSendBoxWrapper- 
     | 
| 
      
 53 
     | 
    
         
            +
            //# sourceMappingURL=RichTextSendBoxWrapper-CmZES75M.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"RichTextSendBoxWrapper- 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"RichTextSendBoxWrapper-CmZES75M.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;;;;"}
         
     | 
| 
         @@ -175,7 +175,7 @@ function getDefaultExportFromCjs (x) { 
     | 
|
| 
       175 
175 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       176 
176 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
       177 
177 
     | 
    
         
             
            // GENERATED FILE. DO NOT EDIT MANUALLY.
         
     | 
| 
       178 
     | 
    
         
            -
            var telemetryVersion = '1.18.0-alpha- 
     | 
| 
      
 178 
     | 
    
         
            +
            var telemetryVersion = '1.18.0-alpha-202406210015';
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
180 
     | 
    
         | 
| 
       181 
181 
     | 
    
         
             
            var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
         
     | 
| 
         @@ -5451,6 +5451,7 @@ class ProxyTeamsCallAgent extends ProxyCallAgentCommon { 
     | 
|
| 
       5451 
5451 
     | 
    
         
             
                    /* @conditional-compile-remove(teams-identity-support) */
         
     | 
| 
       5452 
5452 
     | 
    
         
             
                    if (_isTeamsCallAgent(agent)) {
         
     | 
| 
       5453 
5453 
     | 
    
         
             
                        agent.on(...args);
         
     | 
| 
      
 5454 
     | 
    
         
            +
                        return;
         
     | 
| 
       5454 
5455 
     | 
    
         
             
                    }
         
     | 
| 
       5455 
5456 
     | 
    
         
             
                    throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentSubscribe must be called with an TeamsCallAgent.');
         
     | 
| 
       5456 
5457 
     | 
    
         
             
                }
         
     | 
| 
         @@ -5458,6 +5459,7 @@ class ProxyTeamsCallAgent extends ProxyCallAgentCommon { 
     | 
|
| 
       5458 
5459 
     | 
    
         
             
                    /* @conditional-compile-remove(teams-identity-support) */
         
     | 
| 
       5459 
5460 
     | 
    
         
             
                    if (_isTeamsCallAgent(agent)) {
         
     | 
| 
       5460 
5461 
     | 
    
         
             
                        agent.off(...args);
         
     | 
| 
      
 5462 
     | 
    
         
            +
                        return;
         
     | 
| 
       5461 
5463 
     | 
    
         
             
                    }
         
     | 
| 
       5462 
5464 
     | 
    
         
             
                    throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentUnsubscribe must be called with an TeamsCallAgent.');
         
     | 
| 
       5463 
5465 
     | 
    
         
             
                }
         
     | 
| 
         @@ -9055,7 +9057,7 @@ const iconWrapperStyle$1 = react.mergeStyles({ 
     | 
|
| 
       9055 
9057 
     | 
    
         
             
             * @private
         
     | 
| 
       9056 
9058 
     | 
    
         
             
             */
         
     | 
| 
       9057 
9059 
     | 
    
         
             
            const InputBoxButton = (props) => {
         
     | 
| 
       9058 
     | 
    
         
            -
                const { onRenderIcon, onClick, ariaLabel, className, id, tooltipContent, 'data-testId': dataTestId, ariaDisabled = false } = props;
         
     | 
| 
      
 9060 
     | 
    
         
            +
                const { onRenderIcon, onClick, ariaLabel, className, id, tooltipContent, 'data-testId': dataTestId, ariaDisabled = false, ariaExpanded = false } = props;
         
     | 
| 
       9059 
9061 
     | 
    
         
             
                const [isHover, setIsHover] = React.useState(false);
         
     | 
| 
       9060 
9062 
     | 
    
         
             
                const mergedButtonStyle = react.mergeStyles(inputBoxButtonStyle, className);
         
     | 
| 
       9061 
9063 
     | 
    
         
             
                const theme = react.useTheme();
         
     | 
| 
         @@ -9074,7 +9076,7 @@ const InputBoxButton = (props) => { 
     | 
|
| 
       9074 
9076 
     | 
    
         
             
                                setIsHover(false);
         
     | 
| 
       9075 
9077 
     | 
    
         
             
                            }, 
         
     | 
| 
       9076 
9078 
     | 
    
         
             
                            // VoiceOver fix: Avoid icon from stealing focus when IconButton is double-tapped to send message by wrapping with Stack with pointerEvents style to none
         
     | 
| 
       9077 
     | 
    
         
            -
                            onRenderIcon: () => React.createElement(react.Stack, { className: iconWrapperStyle$1 }, onRenderIcon(isHover)), "data-testid": dataTestId }))));
         
     | 
| 
      
 9079 
     | 
    
         
            +
                            onRenderIcon: () => React.createElement(react.Stack, { className: iconWrapperStyle$1 }, onRenderIcon(isHover)), "data-testid": dataTestId, "aria-expanded": ariaExpanded }))));
         
     | 
| 
       9078 
9080 
     | 
    
         
             
            };
         
     | 
| 
       9079 
9081 
     | 
    
         | 
| 
       9080 
9082 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
         @@ -10239,14 +10241,14 @@ const ImageOverlay = (props) => { 
     | 
|
| 
       10239 
10241 
     | 
    
         
             
                }, []);
         
     | 
| 
       10240 
10242 
     | 
    
         
             
                const imageStyle = isImageLoaded ? normalImageStyle : brokenImageStyle(overlayTheme);
         
     | 
| 
       10241 
10243 
     | 
    
         
             
                const renderHeaderBar = () => {
         
     | 
| 
       10242 
     | 
    
         
            -
                    return (React.createElement(react.Stack, { className: react.mergeStyles(headerStyle) },
         
     | 
| 
      
 10244 
     | 
    
         
            +
                    return (React.createElement(react.Stack, { className: react.mergeStyles(headerStyle), role: "heading", "aria-label": title || 'Image', "aria-level": 2 },
         
     | 
| 
       10243 
10245 
     | 
    
         
             
                        React.createElement(react.Stack, { className: react.mergeStyles(titleBarContainerStyle) },
         
     | 
| 
       10244 
10246 
     | 
    
         
             
                            titleIcon,
         
     | 
| 
       10245 
     | 
    
         
            -
                            React.createElement(react.Stack.Item, { className: react.mergeStyles(titleStyle$2(overlayTheme)) 
     | 
| 
      
 10247 
     | 
    
         
            +
                            React.createElement(react.Stack.Item, { className: react.mergeStyles(titleStyle$2(overlayTheme)) }, title)),
         
     | 
| 
       10246 
10248 
     | 
    
         
             
                        React.createElement(react.Stack, { className: react.mergeStyles(controlBarContainerStyle) },
         
     | 
| 
       10247 
10249 
     | 
    
         
             
                            onDownloadButtonClicked && (React.createElement(react.DefaultButton, { className: react.mergeStyles(downloadButtonStyle), text: localeStrings.downloadButtonLabel, onClick: () => onDownloadButtonClicked && onDownloadButtonClicked(imageSrc), onRenderIcon: () => React.createElement(react.Icon, { iconName: downloadIcon.iconName, className: react.mergeStyles(downloadIconStyle) }), "aria-live": 'polite', "aria-label": localeStrings.downloadButtonLabel, disabled: imageSrc === '' })),
         
     | 
| 
       10248 
10250 
     | 
    
         
             
                            onDownloadButtonClicked && (React.createElement(react.IconButton, { iconProps: downloadIcon, className: react.mergeStyles(smallDownloadButtonContainerStyle(overlayTheme)), onClick: () => onDownloadButtonClicked && onDownloadButtonClicked(imageSrc), "aria-label": localeStrings.downloadButtonLabel, "aria-live": 'polite', disabled: imageSrc === '' })),
         
     | 
| 
       10249 
     | 
    
         
            -
                            React.createElement(react.IconButton, { iconProps: cancelIcon, className: react.mergeStyles(closeButtonStyles(overlayTheme)), onClick: onDismiss,  
     | 
| 
      
 10251 
     | 
    
         
            +
                            React.createElement(react.IconButton, { iconProps: cancelIcon, className: react.mergeStyles(closeButtonStyles(overlayTheme)), onClick: onDismiss, "aria-label": localeStrings.dismissButtonAriaLabel, "aria-live": 'polite' }))));
         
     | 
| 
       10250 
10252 
     | 
    
         
             
                };
         
     | 
| 
       10251 
10253 
     | 
    
         
             
                const renderBodyWithLightDismiss = () => {
         
     | 
| 
       10252 
10254 
     | 
    
         
             
                    return (React.createElement(react.Stack, { className: react.mergeStyles(bodyContainer), onClick: () => props.onDismiss() }, imageSrc && (React.createElement("img", { src: imageSrc, className: react.mergeStyles(imageStyle), alt: altText || 'image', "aria-label": 'image-overlay-main-image', "data-ui-id": 'image-overlay-main-image', "aria-live": 'polite', onError: () => {
         
     | 
| 
         @@ -10505,9 +10507,9 @@ const sendBoxRichTextEditorStyle = (isExpanded) => { 
     | 
|
| 
       10505 
10507 
     | 
    
         
             
             */
         
     | 
| 
       10506 
10508 
     | 
    
         
             
            const insertTableMenuCellButtonStyles = (theme) => {
         
     | 
| 
       10507 
10509 
     | 
    
         
             
                return {
         
     | 
| 
       10508 
     | 
    
         
            -
                    width: ' 
     | 
| 
       10509 
     | 
    
         
            -
                    height: ' 
     | 
| 
       10510 
     | 
    
         
            -
                    border: `solid  
     | 
| 
      
 10510 
     | 
    
         
            +
                    width: '24px',
         
     | 
| 
      
 10511 
     | 
    
         
            +
                    height: '24px',
         
     | 
| 
      
 10512 
     | 
    
         
            +
                    border: `solid 0.5px ${theme.palette.neutralSecondary}`,
         
     | 
| 
       10511 
10513 
     | 
    
         
             
                    cursor: 'pointer',
         
     | 
| 
       10512 
10514 
     | 
    
         
             
                    background: 'transparent'
         
     | 
| 
       10513 
10515 
     | 
    
         
             
                };
         
     | 
| 
         @@ -10535,7 +10537,7 @@ const insertTableMenuFocusZone = (theme) => { 
     | 
|
| 
       10535 
10537 
     | 
    
         
             
                return react.mergeStyles({
         
     | 
| 
       10536 
10538 
     | 
    
         
             
                    display: 'inline-grid',
         
     | 
| 
       10537 
10539 
     | 
    
         
             
                    gridTemplateColumns: 'auto auto auto auto auto',
         
     | 
| 
       10538 
     | 
    
         
            -
                    border: `solid  
     | 
| 
      
 10540 
     | 
    
         
            +
                    border: `solid 0.5px ${theme.palette.neutralSecondary}`
         
     | 
| 
       10539 
10541 
     | 
    
         
             
                });
         
     | 
| 
       10540 
10542 
     | 
    
         
             
            };
         
     | 
| 
       10541 
10543 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -11665,7 +11667,7 @@ const RichTextInputBoxComponent = (props) => { 
     | 
|
| 
       11665 
11667 
     | 
    
         
             
                                    const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
         
     | 
| 
       11666 
11668 
     | 
    
         
             
                                    setShowRichTextEditorFormatting(!isRichTextEditorToolbarShown);
         
     | 
| 
       11667 
11669 
     | 
    
         
             
                                    e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.
         
     | 
| 
       11668 
     | 
    
         
            -
                                }, ariaLabel: strings.richTextFormatButtonTooltip, tooltipContent: strings.richTextFormatButtonTooltip, className: richTextActionButtonsStyle, "data-testId": 'rich-text-input-box-format-button' }),
         
     | 
| 
      
 11670 
     | 
    
         
            +
                                }, ariaLabel: strings.richTextFormatButtonTooltip, tooltipContent: strings.richTextFormatButtonTooltip, className: richTextActionButtonsStyle, "data-testId": 'rich-text-input-box-format-button', ariaExpanded: showRichTextEditorFormatting }),
         
     | 
| 
       11669 
11671 
     | 
    
         
             
                            React.createElement(react.Icon, { iconName: "RichTextDividerIcon", className: richTextActionButtonsDividerStyle(theme) }),
         
     | 
| 
       11670 
11672 
     | 
    
         
             
                            actionComponents)));
         
     | 
| 
       11671 
11673 
     | 
    
         
             
                }, [
         
     | 
| 
         @@ -12340,6 +12342,11 @@ react.mergeStyles({ 
     | 
|
| 
       12340 
12342 
     | 
    
         
             
            const DownIconStyle = react.mergeStyles({
         
     | 
| 
       12341 
12343 
     | 
    
         
             
                marginRight: '0.5em'
         
     | 
| 
       12342 
12344 
     | 
    
         
             
            });
         
     | 
| 
      
 12345 
     | 
    
         
            +
            /** @private */
         
     | 
| 
      
 12346 
     | 
    
         
            +
            const dataLossIconStyle = react.mergeStyles({
         
     | 
| 
      
 12347 
     | 
    
         
            +
                width: '1.25rem',
         
     | 
| 
      
 12348 
     | 
    
         
            +
                height: '1.25rem'
         
     | 
| 
      
 12349 
     | 
    
         
            +
            });
         
     | 
| 
       12343 
12350 
     | 
    
         | 
| 
       12344 
12351 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       12345 
12352 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
         @@ -12576,7 +12583,7 @@ const AnnouncerMessage = (props) => { 
     | 
|
| 
       12576 
12583 
     | 
    
         
             
                    if (ariaLive === 'assertive') {
         
     | 
| 
       12577 
12584 
     | 
    
         
             
                        announceAssertive(message || '', uuid.v1());
         
     | 
| 
       12578 
12585 
     | 
    
         
             
                    }
         
     | 
| 
       12579 
     | 
    
         
            -
                    if (ariaLive === 'polite') {
         
     | 
| 
      
 12586 
     | 
    
         
            +
                    else if (ariaLive === 'polite') {
         
     | 
| 
       12580 
12587 
     | 
    
         
             
                        announcePolite(message || '', uuid.v1());
         
     | 
| 
       12581 
12588 
     | 
    
         
             
                    }
         
     | 
| 
       12582 
12589 
     | 
    
         
             
                }, [announceAssertive, announcePolite, ariaLive, message]);
         
     | 
| 
         @@ -13221,7 +13228,7 @@ const MessageContentAsText = (props) => { 
     | 
|
| 
       13221 
13228 
     | 
    
         
             
             */
         
     | 
| 
       13222 
13229 
     | 
    
         
             
            const BlockedMessageContent = (props) => {
         
     | 
| 
       13223 
13230 
     | 
    
         
             
                var _a;
         
     | 
| 
       13224 
     | 
    
         
            -
                const Icon = React.createElement(react.FontIcon, { iconName: 'DataLossPreventionProhibited' });
         
     | 
| 
      
 13231 
     | 
    
         
            +
                const Icon = React.createElement(react.FontIcon, { className: dataLossIconStyle, iconName: 'DataLossPreventionProhibited' });
         
     | 
| 
       13225 
13232 
     | 
    
         
             
                const blockedMessage = props.message.warningText === undefined ? props.strings.blockedWarningText : props.message.warningText;
         
     | 
| 
       13226 
13233 
     | 
    
         
             
                const blockedMessageLink = props.message.link;
         
     | 
| 
       13227 
13234 
     | 
    
         
             
                const blockedMessageLinkText = blockedMessageLink
         
     | 
| 
         @@ -13926,7 +13933,7 @@ class _ErrorBoundary extends React.Component { 
     | 
|
| 
       13926 
13933 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       13927 
13934 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
       13928 
13935 
     | 
    
         
             
            /* @conditional-compile-remove(rich-text-editor) */
         
     | 
| 
       13929 
     | 
    
         
            -
            const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 13936 
     | 
    
         
            +
            const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-GKaobFzs.js'); }));
         
     | 
| 
       13930 
13937 
     | 
    
         
             
            /**
         
     | 
| 
       13931 
13938 
     | 
    
         
             
             * @private
         
     | 
| 
       13932 
13939 
     | 
    
         
             
             * Use this function to load RoosterJS dependencies early in the lifecycle.
         
     | 
| 
         @@ -13934,7 +13941,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve() 
     | 
|
| 
       13934 
13941 
     | 
    
         
             
             *
         
     | 
| 
       13935 
13942 
     | 
    
         
             
             * @conditional-compile-remove(rich-text-editor)
         
     | 
| 
       13936 
13943 
     | 
    
         
             
             */
         
     | 
| 
       13937 
     | 
    
         
            -
            const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 13944 
     | 
    
         
            +
            const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-GKaobFzs.js'); });
         
     | 
| 
       13938 
13945 
     | 
    
         
             
            /**
         
     | 
| 
       13939 
13946 
     | 
    
         
             
             * @private
         
     | 
| 
       13940 
13947 
     | 
    
         
             
             */
         
     | 
| 
         @@ -28319,7 +28326,7 @@ const AttachmentDownloadErrorBar = (props) => { 
     | 
|
| 
       28319 
28326 
     | 
    
         
             
            /**
         
     | 
| 
       28320 
28327 
     | 
    
         
             
             * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
         
     | 
| 
       28321 
28328 
     | 
    
         
             
             */
         
     | 
| 
       28322 
     | 
    
         
            -
            const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper- 
     | 
| 
      
 28329 
     | 
    
         
            +
            const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CmZES75M.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
         
     | 
| 
       28323 
28330 
     | 
    
         
             
            /**
         
     | 
| 
       28324 
28331 
     | 
    
         
             
             * @private
         
     | 
| 
       28325 
28332 
     | 
    
         
             
             * Use this function to load RoosterJS dependencies early in the lifecycle.
         
     | 
| 
         @@ -28327,7 +28334,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function 
     | 
|
| 
       28327 
28334 
     | 
    
         
             
             *
         
     | 
| 
       28328 
28335 
     | 
    
         
             
            /* @conditional-compile-remove(rich-text-editor-composite-support)
         
     | 
| 
       28329 
28336 
     | 
    
         
             
             */
         
     | 
| 
       28330 
     | 
    
         
            -
            const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper- 
     | 
| 
      
 28337 
     | 
    
         
            +
            const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CmZES75M.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
         
     | 
| 
       28331 
28338 
     | 
    
         
             
            /**
         
     | 
| 
       28332 
28339 
     | 
    
         
             
             * @private
         
     | 
| 
       28333 
28340 
     | 
    
         
             
             */
         
     | 
| 
         @@ -31313,7 +31320,7 @@ const ExitSpotlightButton = (props) => { 
     | 
|
| 
       31313 
31320 
     | 
    
         
             
             */
         
     | 
| 
       31314 
31321 
     | 
    
         
             
            const MODAL_PIP_DEFAULT_PX = {
         
     | 
| 
       31315 
31322 
     | 
    
         
             
                rightPositionPx: 16,
         
     | 
| 
       31316 
     | 
    
         
            -
                 
     | 
| 
      
 31323 
     | 
    
         
            +
                bottomPositionPx: 64,
         
     | 
| 
       31317 
31324 
     | 
    
         
             
                widthPx: 88,
         
     | 
| 
       31318 
31325 
     | 
    
         
             
                heightPx: 128
         
     | 
| 
       31319 
31326 
     | 
    
         
             
            };
         
     | 
| 
         @@ -31326,7 +31333,7 @@ const getPipStyles = (theme) => ({ 
     | 
|
| 
       31326 
31333 
     | 
    
         
             
                        // Above the message thread / people pane.
         
     | 
| 
       31327 
31334 
     | 
    
         
             
                        zIndex: 2 }, (theme.rtl
         
     | 
| 
       31328 
31335 
     | 
    
         
             
                        ? { left: _pxToRem(MODAL_PIP_DEFAULT_PX.rightPositionPx) }
         
     | 
| 
       31329 
     | 
    
         
            -
                        : { right: _pxToRem(MODAL_PIP_DEFAULT_PX.rightPositionPx) })), {  
     | 
| 
      
 31336 
     | 
    
         
            +
                        : { right: _pxToRem(MODAL_PIP_DEFAULT_PX.rightPositionPx) })), { bottom: _pxToRem(MODAL_PIP_DEFAULT_PX.bottomPositionPx) })
         
     | 
| 
       31330 
31337 
     | 
    
         
             
                }
         
     | 
| 
       31331 
31338 
     | 
    
         
             
            });
         
     | 
| 
       31332 
31339 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -31404,22 +31411,22 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => { 
     | 
|
| 
       31404 
31411 
     | 
    
         
             
                const modalHostRef = React.useRef(document.getElementById(modalLayerHostId));
         
     | 
| 
       31405 
31412 
     | 
    
         
             
                const modalHostWidth = _useContainerWidth(modalHostRef);
         
     | 
| 
       31406 
31413 
     | 
    
         
             
                const modalHostHeight = _useContainerHeight(modalHostRef);
         
     | 
| 
       31407 
     | 
    
         
            -
                const minDragPosition = React.useMemo(() => modalHostWidth === undefined
         
     | 
| 
      
 31414 
     | 
    
         
            +
                const minDragPosition = React.useMemo(() => modalHostWidth === undefined || modalHostHeight === undefined
         
     | 
| 
       31408 
31415 
     | 
    
         
             
                    ? undefined
         
     | 
| 
       31409 
31416 
     | 
    
         
             
                    : {
         
     | 
| 
       31410 
31417 
     | 
    
         
             
                        x: rtl
         
     | 
| 
       31411 
31418 
     | 
    
         
             
                            ? -1 * MODAL_PIP_DEFAULT_PX.rightPositionPx
         
     | 
| 
       31412 
31419 
     | 
    
         
             
                            : MODAL_PIP_DEFAULT_PX.rightPositionPx - modalHostWidth + MODAL_PIP_DEFAULT_PX.widthPx,
         
     | 
| 
       31413 
     | 
    
         
            -
                        y: -1 * MODAL_PIP_DEFAULT_PX. 
     | 
| 
       31414 
     | 
    
         
            -
                    }, [modalHostWidth, rtl]);
         
     | 
| 
       31415 
     | 
    
         
            -
                const maxDragPosition = React.useMemo(() => modalHostWidth === undefined 
     | 
| 
      
 31420 
     | 
    
         
            +
                        y: -1 * modalHostHeight + MODAL_PIP_DEFAULT_PX.heightPx + MODAL_PIP_DEFAULT_PX.bottomPositionPx
         
     | 
| 
      
 31421 
     | 
    
         
            +
                    }, [modalHostHeight, modalHostWidth, rtl]);
         
     | 
| 
      
 31422 
     | 
    
         
            +
                const maxDragPosition = React.useMemo(() => modalHostWidth === undefined
         
     | 
| 
       31416 
31423 
     | 
    
         
             
                    ? undefined
         
     | 
| 
       31417 
31424 
     | 
    
         
             
                    : {
         
     | 
| 
       31418 
31425 
     | 
    
         
             
                        x: rtl
         
     | 
| 
       31419 
31426 
     | 
    
         
             
                            ? modalHostWidth - MODAL_PIP_DEFAULT_PX.rightPositionPx - MODAL_PIP_DEFAULT_PX.widthPx
         
     | 
| 
       31420 
31427 
     | 
    
         
             
                            : MODAL_PIP_DEFAULT_PX.rightPositionPx,
         
     | 
| 
       31421 
     | 
    
         
            -
                        y:  
     | 
| 
       31422 
     | 
    
         
            -
                    }, [ 
     | 
| 
      
 31428 
     | 
    
         
            +
                        y: MODAL_PIP_DEFAULT_PX.bottomPositionPx
         
     | 
| 
      
 31429 
     | 
    
         
            +
                    }, [modalHostWidth, rtl]);
         
     | 
| 
       31423 
31430 
     | 
    
         
             
                return { minDragPosition: minDragPosition, maxDragPosition: maxDragPosition };
         
     | 
| 
       31424 
31431 
     | 
    
         
             
            };
         
     | 
| 
       31425 
31432 
     | 
    
         | 
| 
         @@ -41497,4 +41504,4 @@ exports.useTeamsCall = useTeamsCall; 
     | 
|
| 
       41497 
41504 
     | 
    
         
             
            exports.useTeamsCallAdapter = useTeamsCallAdapter;
         
     | 
| 
       41498 
41505 
     | 
    
         
             
            exports.useTeamsCallAgent = useTeamsCallAgent;
         
     | 
| 
       41499 
41506 
     | 
    
         
             
            exports.useTheme = useTheme;
         
     | 
| 
       41500 
     | 
    
         
            -
            //# sourceMappingURL=index- 
     | 
| 
      
 41507 
     | 
    
         
            +
            //# sourceMappingURL=index-DodrLCSW.js.map
         
     |