@azure/communication-react 1.15.0-alpha-202404100012 → 1.15.0-alpha-202404110013
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 +5 -1
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CeSMD9E_.js → ChatMessageComponentAsRichTextEditBox-BXHOj2Z6.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CeSMD9E_.js.map → ChatMessageComponentAsRichTextEditBox-BXHOj2Z6.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-DtankK1c.js → index-D5L3GDY8.js} +88 -130
- package/dist/dist-cjs/communication-react/index-D5L3GDY8.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/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +0 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -3
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +2 -2
- package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +5 -2
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +2 -2
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js +0 -5
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +0 -16
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +2 -11
- 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/CallAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +2 -16
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +23 -22
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/package.json +3 -3
- package/dist/dist-cjs/communication-react/index-DtankK1c.js.map +0 -1
@@ -1813,7 +1813,7 @@ export declare type CallCompositeOptions = {
|
|
1813
1813
|
*
|
1814
1814
|
* @public
|
1815
1815
|
*/
|
1816
|
-
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'leaving' | 'lobby' | 'removedFromCall' | /* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment' |
|
1816
|
+
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'leaving' | 'lobby' | 'removedFromCall' | /* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment' | 'transferring';
|
1817
1817
|
|
1818
1818
|
/**
|
1819
1819
|
* Props for {@link CallComposite}.
|
@@ -9622,6 +9622,10 @@ export declare interface RichTextSendBoxProps {
|
|
9622
9622
|
* Callback function used when the send button is clicked.
|
9623
9623
|
*/
|
9624
9624
|
onSendMessage: (content: string) => Promise<void>;
|
9625
|
+
/**
|
9626
|
+
* Optional callback called when user is typing
|
9627
|
+
*/
|
9628
|
+
onTyping?: () => Promise<void>;
|
9625
9629
|
}
|
9626
9630
|
|
9627
9631
|
/**
|
@@ -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-D5L3GDY8.js');
|
8
8
|
var React = require('react');
|
9
9
|
require('reselect');
|
10
10
|
require('@azure/communication-calling');
|
@@ -125,4 +125,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
|
|
125
125
|
};
|
126
126
|
|
127
127
|
exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
|
128
|
-
//# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-
|
128
|
+
//# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-BXHOj2Z6.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChatMessageComponentAsRichTextEditBox-CeSMD9E_.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","FluentV9Theme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ACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;YACJ,SAAS,EAAE,mBAAmB,CAAC,IAAI;AACpC,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEC,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
|
+
{"version":3,"file":"ChatMessageComponentAsRichTextEditBox-BXHOj2Z6.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,CAAC,CAAC;AAC/B,KAAC,CAAC;AAEF,IAAA,MAAM,kBAAkB,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GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;YACJ,SAAS,EAAE,mBAAmB,CAAC,IAAI;AACpC,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEC,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;;;;"}
|
@@ -176,7 +176,7 @@ function getDefaultExportFromCjs (x) {
|
|
176
176
|
// Copyright (c) Microsoft Corporation.
|
177
177
|
// Licensed under the MIT License.
|
178
178
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
179
|
-
var telemetryVersion = '1.15.0-alpha-
|
179
|
+
var telemetryVersion = '1.15.0-alpha-202404110013';
|
180
180
|
|
181
181
|
|
182
182
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -1807,7 +1807,6 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
1807
1807
|
/* @conditional-compile-remove(acs-close-captions) */
|
1808
1808
|
captionsKind: _isTeamsCall(call) ? 'TeamsCaptions' : 'Captions'
|
1809
1809
|
},
|
1810
|
-
/* @conditional-compile-remove(call-transfer) */
|
1811
1810
|
transfer: {
|
1812
1811
|
acceptedTransfers: {}
|
1813
1812
|
},
|
@@ -2766,7 +2765,6 @@ let CallContext$2 = class CallContext {
|
|
2766
2765
|
}
|
2767
2766
|
});
|
2768
2767
|
}
|
2769
|
-
/* @conditional-compile-remove(call-transfer) */
|
2770
2768
|
setAcceptedTransfer(callId, acceptedTransfer) {
|
2771
2769
|
this.modifyState((draft) => {
|
2772
2770
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -4688,7 +4686,6 @@ class ProxyCallCommon {
|
|
4688
4686
|
proxyFeature = new ProxyTeamsCaptions(this._context, target);
|
4689
4687
|
return { captions: new Proxy(captionsFeature, proxyFeature) };
|
4690
4688
|
}
|
4691
|
-
/* @conditional-compile-remove(call-transfer) */
|
4692
4689
|
if (args[0] === communicationCalling.Features.Transfer) {
|
4693
4690
|
const transferFeature = target.feature(communicationCalling.Features.Transfer);
|
4694
4691
|
const proxyFeature = new ProxyTransferCallFeature(this._context, target);
|
@@ -4815,7 +4812,6 @@ class ProxySpotlightCallFeature {
|
|
4815
4812
|
}
|
4816
4813
|
}
|
4817
4814
|
}
|
4818
|
-
/* @conditional-compile-remove(call-transfer) */
|
4819
4815
|
/**
|
4820
4816
|
* @private
|
4821
4817
|
*/
|
@@ -10585,7 +10581,7 @@ const RichTextInputBoxComponent = (props) => {
|
|
10585
10581
|
/* @conditional-compile-remove(attachment-upload) */
|
10586
10582
|
onRenderAttachmentUploads,
|
10587
10583
|
/* @conditional-compile-remove(attachment-upload) */
|
10588
|
-
hasAttachments, richTextEditorStyleProps, isHorizontalLayoutDisabled = false, content, autoFocus } = props;
|
10584
|
+
hasAttachments, richTextEditorStyleProps, isHorizontalLayoutDisabled = false, content, autoFocus, onTyping } = props;
|
10589
10585
|
const theme = useTheme();
|
10590
10586
|
const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = React.useState(false);
|
10591
10587
|
const onRenderRichTextEditorIcon = React.useCallback((isHover) => (React.createElement(react.Icon, { iconName: isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon', className: richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting)) })), [disabled, showRichTextEditorFormatting, theme]);
|
@@ -10619,7 +10615,10 @@ const RichTextInputBoxComponent = (props) => {
|
|
10619
10615
|
ev.preventDefault();
|
10620
10616
|
onEnterKeyDown && onEnterKeyDown();
|
10621
10617
|
}
|
10622
|
-
|
10618
|
+
else {
|
10619
|
+
onTyping === null || onTyping === void 0 ? void 0 : onTyping();
|
10620
|
+
}
|
10621
|
+
}, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);
|
10623
10622
|
const useHorizontalLayout = React.useMemo(() => {
|
10624
10623
|
return (!isHorizontalLayoutDisabled &&
|
10625
10624
|
!showRichTextEditorFormatting &&
|
@@ -10716,7 +10715,7 @@ const isMessageEmpty$1 = (message) => {
|
|
10716
10715
|
* @beta
|
10717
10716
|
*/
|
10718
10717
|
const RichTextSendBox = (props) => {
|
10719
|
-
const { disabled = false, systemMessage, autoFocus, onSendMessage,
|
10718
|
+
const { disabled = false, systemMessage, autoFocus, onSendMessage, onTyping,
|
10720
10719
|
/* @conditional-compile-remove(attachment-upload) */
|
10721
10720
|
activeAttachmentUploads,
|
10722
10721
|
/* @conditional-compile-remove(attachment-upload) */
|
@@ -10854,7 +10853,7 @@ const RichTextSendBox = (props) => {
|
|
10854
10853
|
, {
|
10855
10854
|
// in case when format bar is shown, the editor is re-rendered that causes the content to be lost
|
10856
10855
|
// setting the content will ensure that the latest content is used when editor is re-rendered
|
10857
|
-
content: contentValue, placeholderText: strings.placeholderText, autoFocus: autoFocus, onChange: setContent, onEnterKeyDown: sendMessageOnClick, editorComponentRef: editorComponentRef, strings: strings, disabled: disabled, actionComponents: sendButton, richTextEditorStyleProps: sendBoxRichTextEditorStyle,
|
10856
|
+
content: contentValue, placeholderText: strings.placeholderText, autoFocus: autoFocus, onChange: setContent, onEnterKeyDown: sendMessageOnClick, onTyping: onTyping, editorComponentRef: editorComponentRef, strings: strings, disabled: disabled, actionComponents: sendButton, richTextEditorStyleProps: sendBoxRichTextEditorStyle,
|
10858
10857
|
/* @conditional-compile-remove(attachment-upload) */
|
10859
10858
|
onRenderAttachmentUploads: onRenderAttachmentUploads,
|
10860
10859
|
/* @conditional-compile-remove(attachment-upload) */
|
@@ -12655,7 +12654,7 @@ const ChatMessageComponentAsEditBox = (props) => {
|
|
12655
12654
|
// Copyright (c) Microsoft Corporation.
|
12656
12655
|
// Licensed under the MIT License.
|
12657
12656
|
/* @conditional-compile-remove(rich-text-editor) */
|
12658
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
12657
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-BXHOj2Z6.js'); }).then((module) => ({
|
12659
12658
|
default: module.ChatMessageComponentAsRichTextEditBox
|
12660
12659
|
})));
|
12661
12660
|
/**
|
@@ -15281,71 +15280,6 @@ function useLongPress(props) {
|
|
15281
15280
|
]);
|
15282
15281
|
}
|
15283
15282
|
|
15284
|
-
// Copyright (c) Microsoft Corporation.
|
15285
|
-
// Licensed under the MIT License.
|
15286
|
-
/**
|
15287
|
-
* @private
|
15288
|
-
*/
|
15289
|
-
const videoGalleryOuterDivStyle = react.mergeStyles({ position: 'relative', width: '100%', height: '100%' });
|
15290
|
-
/**
|
15291
|
-
* @private
|
15292
|
-
*/
|
15293
|
-
const localVideoCameraCycleButtonStyles = (theme, size) => {
|
15294
|
-
return {
|
15295
|
-
root: {
|
15296
|
-
position: 'absolute',
|
15297
|
-
width: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
15298
|
-
height: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
15299
|
-
right: '0rem',
|
15300
|
-
top: '0rem',
|
15301
|
-
color: '#FFFFFF', // only shows up on running video feed to we want to force specific colours.
|
15302
|
-
zIndex: 2, // shows the button directly over the local video feed.
|
15303
|
-
background: 'rgba(0,0,0,0.4)',
|
15304
|
-
borderRadius: theme.effects.roundedCorner2
|
15305
|
-
},
|
15306
|
-
rootFocused: {
|
15307
|
-
// styles to remove the unwanted white highlight and blue colour after tapping on button.
|
15308
|
-
color: '#FFFFFF',
|
15309
|
-
background: 'rgba(0,0,0,0.4)' // sets opacity of background to be visible on all backdrops in video stream.
|
15310
|
-
},
|
15311
|
-
rootDisabled: {
|
15312
|
-
// In the disabled state, FluentUI sets the position to relative. We need to override this to keep the button correctly positioned.
|
15313
|
-
position: 'absolute'
|
15314
|
-
},
|
15315
|
-
icon: {
|
15316
|
-
paddingLeft: _pxToRem(3),
|
15317
|
-
paddingRight: _pxToRem(3),
|
15318
|
-
margin: 0
|
15319
|
-
},
|
15320
|
-
flexContainer: {
|
15321
|
-
paddingBottom: _pxToRem(8),
|
15322
|
-
height: 'unset'
|
15323
|
-
}
|
15324
|
-
};
|
15325
|
-
};
|
15326
|
-
/**
|
15327
|
-
* @private
|
15328
|
-
*/
|
15329
|
-
const localVideoTileContainerStyles = {
|
15330
|
-
root: { width: '100%', height: '100%' }
|
15331
|
-
};
|
15332
|
-
/**
|
15333
|
-
* @private
|
15334
|
-
*/
|
15335
|
-
//TODO Can be removed once the overlay mitigation has been implemented at the SDK layer
|
15336
|
-
const pptLiveOverlayStyles = {
|
15337
|
-
root: {
|
15338
|
-
position: 'absolute',
|
15339
|
-
top: 0,
|
15340
|
-
left: 0,
|
15341
|
-
width: '100%',
|
15342
|
-
height: '100%',
|
15343
|
-
backgroundColor: 'transparent',
|
15344
|
-
pointerEvents: 'none',
|
15345
|
-
zIndex: 0
|
15346
|
-
}
|
15347
|
-
};
|
15348
|
-
|
15349
15283
|
// Copyright (c) Microsoft Corporation.
|
15350
15284
|
// Licensed under the MIT License.
|
15351
15285
|
// Coin max size is set to PersonaSize.size100
|
@@ -15467,9 +15401,6 @@ const VideoTile = (props) => {
|
|
15467
15401
|
}) }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
|
15468
15402
|
/* @conditional-compile-remove(reaction) */
|
15469
15403
|
reactionOverlay,
|
15470
|
-
/* @conditional-compile-remove(ppt-live) */
|
15471
|
-
// TODO Can be removed once the overlay mitigation has been implemented at the SDK layer
|
15472
|
-
React.createElement(react.Stack, { className: react.mergeStyles(videoContainerStyles, pptLiveOverlayStyles) }),
|
15473
15404
|
(canShowLabel || participantStateString) && (React.createElement(react.Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
|
15474
15405
|
React.createElement(react.Stack, { horizontal: true, className: tileInfoStyle },
|
15475
15406
|
canShowLabel && (React.createElement(react.Text, { className: react.mergeStyles(displayNameStyle), title: displayName, style: { color: participantStateString ? theme.palette.neutralSecondary : 'inherit' }, "data-ui-id": "video-tile-display-name" }, displayName)),
|
@@ -16202,11 +16133,11 @@ const MeetingReactionOverlay = (props) => {
|
|
16202
16133
|
return () => currentObserver.disconnect();
|
16203
16134
|
}, [videoTileRef]);
|
16204
16135
|
if (overlayMode === 'grid-tiles') {
|
16205
|
-
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
|
16136
|
+
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%', pointerEvents: 'none' } },
|
16206
16137
|
React.createElement(ParticipantVideoTileOverlay, { emojiSize: emojiSizePx, reaction: reaction, reactionResources: reactionResources })));
|
16207
16138
|
}
|
16208
16139
|
else if (props.overlayMode === 'screen-share' || props.overlayMode === 'content-share') {
|
16209
|
-
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
|
16140
|
+
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%', pointerEvents: 'none' } },
|
16210
16141
|
React.createElement(RemoteContentShareReactionOverlay, { hostDivHeight: divHeight, hostDivWidth: divWidth, reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants })));
|
16211
16142
|
}
|
16212
16143
|
else {
|
@@ -16475,6 +16406,55 @@ const LoadingSpinner = (props) => {
|
|
16475
16406
|
React.createElement(react.Spinner, { label: props.loadingMessage, size: react.SpinnerSize.xSmall, "aria-live": 'assertive' })));
|
16476
16407
|
};
|
16477
16408
|
|
16409
|
+
// Copyright (c) Microsoft Corporation.
|
16410
|
+
// Licensed under the MIT License.
|
16411
|
+
/**
|
16412
|
+
* @private
|
16413
|
+
*/
|
16414
|
+
const videoGalleryOuterDivStyle = react.mergeStyles({ position: 'relative', width: '100%', height: '100%' });
|
16415
|
+
/**
|
16416
|
+
* @private
|
16417
|
+
*/
|
16418
|
+
const localVideoCameraCycleButtonStyles = (theme, size) => {
|
16419
|
+
return {
|
16420
|
+
root: {
|
16421
|
+
position: 'absolute',
|
16422
|
+
width: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
16423
|
+
height: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
16424
|
+
right: '0rem',
|
16425
|
+
top: '0rem',
|
16426
|
+
color: '#FFFFFF', // only shows up on running video feed to we want to force specific colours.
|
16427
|
+
zIndex: 2, // shows the button directly over the local video feed.
|
16428
|
+
background: 'rgba(0,0,0,0.4)',
|
16429
|
+
borderRadius: theme.effects.roundedCorner2
|
16430
|
+
},
|
16431
|
+
rootFocused: {
|
16432
|
+
// styles to remove the unwanted white highlight and blue colour after tapping on button.
|
16433
|
+
color: '#FFFFFF',
|
16434
|
+
background: 'rgba(0,0,0,0.4)' // sets opacity of background to be visible on all backdrops in video stream.
|
16435
|
+
},
|
16436
|
+
rootDisabled: {
|
16437
|
+
// In the disabled state, FluentUI sets the position to relative. We need to override this to keep the button correctly positioned.
|
16438
|
+
position: 'absolute'
|
16439
|
+
},
|
16440
|
+
icon: {
|
16441
|
+
paddingLeft: _pxToRem(3),
|
16442
|
+
paddingRight: _pxToRem(3),
|
16443
|
+
margin: 0
|
16444
|
+
},
|
16445
|
+
flexContainer: {
|
16446
|
+
paddingBottom: _pxToRem(8),
|
16447
|
+
height: 'unset'
|
16448
|
+
}
|
16449
|
+
};
|
16450
|
+
};
|
16451
|
+
/**
|
16452
|
+
* @private
|
16453
|
+
*/
|
16454
|
+
const localVideoTileContainerStyles = {
|
16455
|
+
root: { width: '100%', height: '100%' }
|
16456
|
+
};
|
16457
|
+
|
16478
16458
|
// Copyright (c) Microsoft Corporation.
|
16479
16459
|
// Licensed under the MIT License.
|
16480
16460
|
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -27134,29 +27114,30 @@ const ChatScreen = (props) => {
|
|
27134
27114
|
setIsImageOverlayOpen(true);
|
27135
27115
|
setOverlayImageItem(overlayImage);
|
27136
27116
|
}, [adapter, onRenderAvatarCallback, userId]);
|
27137
|
-
const
|
27138
|
-
|
27139
|
-
|
27140
|
-
|
27141
|
-
|
27142
|
-
|
27143
|
-
return defaultOnRender(inlineImage);
|
27144
|
-
}
|
27145
|
-
let pointerEvents = inlineImage.imageAttributes.src === '' ? 'none' : 'auto';
|
27146
|
-
const resourceCache = message.resourceCache;
|
27147
|
-
if (resourceCache &&
|
27148
|
-
attachment.previewUrl &&
|
27149
|
-
resourceCache[attachment.previewUrl] &&
|
27150
|
-
resourceCache[attachment.previewUrl].error) {
|
27151
|
-
pointerEvents = 'none';
|
27152
|
-
}
|
27153
|
-
return (React.createElement("span", { key: inlineImage.imageAttributes.id, onClick: () => onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId), tabIndex: 0, role: "button", onKeyDown: (e) => {
|
27154
|
-
if (e.key === 'Enter') {
|
27155
|
-
onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId);
|
27156
|
-
}
|
27157
|
-
}, style: { cursor: 'pointer', pointerEvents } }, defaultOnRender(inlineImage)));
|
27117
|
+
const onRenderInlineImage = React.useCallback((inlineImage, defaultOnRender) => {
|
27118
|
+
var _a, _b;
|
27119
|
+
const message = adapter.getState().thread.chatMessages[inlineImage.messageId];
|
27120
|
+
const attachment = (_b = (_a = message === null || message === void 0 ? void 0 : message.content) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.find((attachment) => attachment.id === inlineImage.imageAttributes.id);
|
27121
|
+
if (attachment === undefined) {
|
27122
|
+
return defaultOnRender(inlineImage);
|
27158
27123
|
}
|
27159
|
-
|
27124
|
+
let pointerEvents = inlineImage.imageAttributes.src === '' ? 'none' : 'auto';
|
27125
|
+
const resourceCache = message.resourceCache;
|
27126
|
+
if (resourceCache &&
|
27127
|
+
attachment.previewUrl &&
|
27128
|
+
resourceCache[attachment.previewUrl] &&
|
27129
|
+
resourceCache[attachment.previewUrl].error) {
|
27130
|
+
pointerEvents = 'none';
|
27131
|
+
}
|
27132
|
+
return (React.createElement("span", { key: inlineImage.imageAttributes.id, onClick: () => onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId), tabIndex: 0, role: "button", onKeyDown: (e) => {
|
27133
|
+
if (e.key === 'Enter') {
|
27134
|
+
onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId);
|
27135
|
+
}
|
27136
|
+
}, style: { cursor: 'pointer', pointerEvents } }, defaultOnRender(inlineImage)));
|
27137
|
+
}, [adapter, onInlineImageClicked]);
|
27138
|
+
const inlineImageOptions = React.useMemo(() => {
|
27139
|
+
return { onRenderInlineImage: onRenderInlineImage };
|
27140
|
+
}, [onRenderInlineImage]);
|
27160
27141
|
const onDownloadButtonClicked = React.useCallback((imageSrc) => {
|
27161
27142
|
if (imageSrc === '') {
|
27162
27143
|
return;
|
@@ -27651,7 +27632,6 @@ const getCallCompositePage = (call, previousCall, transferCall, unsupportedBrows
|
|
27651
27632
|
if (isUnsupportedEnvironment(unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.environmentInfo, unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.unsupportedBrowserVersionOptedIn)) {
|
27652
27633
|
return 'unsupportedEnvironment';
|
27653
27634
|
}
|
27654
|
-
/* @conditional-compile-remove(call-transfer) */
|
27655
27635
|
if (transferCall !== undefined) {
|
27656
27636
|
return 'transferring';
|
27657
27637
|
}
|
@@ -28604,7 +28584,6 @@ const getRole = (state) => { var _a; return (_a = state.call) === null || _a ===
|
|
28604
28584
|
* @private
|
28605
28585
|
*/
|
28606
28586
|
const getPage = (state) => state.page;
|
28607
|
-
/* @conditional-compile-remove(call-transfer) */
|
28608
28587
|
/**
|
28609
28588
|
* @private
|
28610
28589
|
*/
|
@@ -34726,51 +34705,40 @@ const TransferPage = (props) => {
|
|
34726
34705
|
const errorBarProps = usePropsFor$1(ErrorBar);
|
34727
34706
|
const strings = useLocale().strings.call;
|
34728
34707
|
const remoteParticipants = useSelector$1(getRemoteParticipants);
|
34729
|
-
/* @conditional-compile-remove(call-transfer) */
|
34730
34708
|
const transferCall = useSelector$1(getTransferCall);
|
34731
|
-
/* @conditional-compile-remove(call-transfer) */
|
34732
34709
|
const [announcerString, setAnnouncerString] = React.useState(undefined);
|
34733
34710
|
// Reduce the controls shown when mobile view is enabled.
|
34734
34711
|
const callControlOptions = props.mobileView
|
34735
34712
|
? reduceCallControlsForMobile((_a = props.options) === null || _a === void 0 ? void 0 : _a.callControls)
|
34736
34713
|
: (_b = props.options) === null || _b === void 0 ? void 0 : _b.callControls;
|
34737
34714
|
const transferor = React.useMemo(() => { var _a; return (remoteParticipants ? (_a = Object.values(remoteParticipants)) === null || _a === void 0 ? void 0 : _a[0] : undefined); }, [remoteParticipants]);
|
34738
|
-
/* @conditional-compile-remove(call-transfer) */
|
34739
34715
|
const transferTarget = React.useMemo(() => { var _a; return ((transferCall === null || transferCall === void 0 ? void 0 : transferCall.remoteParticipants) ? (_a = Object.values(transferCall.remoteParticipants)) === null || _a === void 0 ? void 0 : _a[0] : undefined); }, [transferCall]);
|
34740
|
-
/* @conditional-compile-remove(call-transfer) */
|
34741
34716
|
const pageSubject = React.useMemo(() => {
|
34742
34717
|
if (transferCall && (transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName)) {
|
34743
34718
|
return 'transferTarget';
|
34744
34719
|
}
|
34745
34720
|
return 'transferor';
|
34746
34721
|
}, [transferCall, transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName]);
|
34747
|
-
/* @conditional-compile-remove(call-transfer) */
|
34748
34722
|
React.useEffect(() => {
|
34749
34723
|
setAnnouncerString(strings.transferPageNoticeString);
|
34750
34724
|
}, [strings.transferPageNoticeString]);
|
34751
34725
|
let transferTileParticipant = transferor;
|
34752
|
-
/* @conditional-compile-remove(call-transfer) */
|
34753
34726
|
if (pageSubject === 'transferTarget') {
|
34754
34727
|
transferTileParticipant = transferTarget;
|
34755
34728
|
}
|
34756
|
-
let transferParticipantDisplayName = (_c = transferor === null || transferor === void 0 ? void 0 : transferor.displayName) !== null && _c !== void 0 ? _c :
|
34757
|
-
/* @conditional-compile-remove(call-transfer) */ strings.transferPageUnknownTransferorDisplayName;
|
34758
|
-
/* @conditional-compile-remove(call-transfer) */
|
34729
|
+
let transferParticipantDisplayName = (_c = transferor === null || transferor === void 0 ? void 0 : transferor.displayName) !== null && _c !== void 0 ? _c : strings.transferPageUnknownTransferorDisplayName;
|
34759
34730
|
if (pageSubject === 'transferTarget') {
|
34760
34731
|
transferParticipantDisplayName =
|
34761
34732
|
(_d = transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName) !== null && _d !== void 0 ? _d : strings.transferPageUnknownTransferTargetDisplayName;
|
34762
34733
|
}
|
34763
34734
|
return (React.createElement(react.Stack, { className: react.mergeStyles(pageContainer) },
|
34764
|
-
/* @conditional-compile-remove(call-transfer) */
|
34765
34735
|
React.createElement(Announcer$1, { announcementString: announcerString, ariaLive: "polite" }),
|
34766
34736
|
React.createElement(CallArrangement, { complianceBannerProps: { strings },
|
34767
34737
|
// Ignore errors from before current call. This avoids old errors from showing up when a user re-joins a call.
|
34768
34738
|
errorBarProps: ((_e = props.options) === null || _e === void 0 ? void 0 : _e.errorBar) !== false && errorBarProps, callControlProps: {
|
34769
34739
|
options: callControlOptions,
|
34770
34740
|
increaseFlyoutItemSize: props.mobileView
|
34771
|
-
}, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => (React.createElement(TransferTile, { userId: transferTileParticipant ? toFlatCommunicationIdentifier(transferTileParticipant === null || transferTileParticipant === void 0 ? void 0 : transferTileParticipant.identifier) : undefined, displayName: transferParticipantDisplayName, initialsName: transferParticipantDisplayName,
|
34772
|
-
/* @conditional-compile-remove(call-transfer) */
|
34773
|
-
statusText: pageSubject === 'transferTarget'
|
34741
|
+
}, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => (React.createElement(TransferTile, { userId: transferTileParticipant ? toFlatCommunicationIdentifier(transferTileParticipant === null || transferTileParticipant === void 0 ? void 0 : transferTileParticipant.identifier) : undefined, displayName: transferParticipantDisplayName, initialsName: transferParticipantDisplayName, statusText: pageSubject === 'transferTarget'
|
34774
34742
|
? strings.transferPageTransferTargetText
|
34775
34743
|
: strings.transferPageTransferorText, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData })), dataUiId: 'transfer-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, onDismissError: props.onDismissError })));
|
34776
34744
|
};
|
@@ -35583,7 +35551,6 @@ const MainScreen = (props) => {
|
|
35583
35551
|
case 'lobby':
|
35584
35552
|
pageElement = (React.createElement(LobbyPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: latestErrors, onDismissError: onDismissError, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
|
35585
35553
|
break;
|
35586
|
-
/* @conditional-compile-remove(call-transfer) */
|
35587
35554
|
case 'transferring':
|
35588
35555
|
pageElement = (React.createElement(TransferPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onFetchAvatarPersonaData: onFetchAvatarPersonaData, latestErrors: latestErrors, onDismissError: onDismissError, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
|
35589
35556
|
break;
|
@@ -35980,14 +35947,11 @@ class CallContext {
|
|
35980
35947
|
environmentInfo: this.state.environmentInfo,
|
35981
35948
|
unsupportedBrowserVersionOptedIn: this.state.unsupportedBrowserVersionsAllowed
|
35982
35949
|
};
|
35983
|
-
/* @conditional-compile-remove(call-transfer) */
|
35984
35950
|
const latestAcceptedTransfer = (call === null || call === void 0 ? void 0 : call.transfer.acceptedTransfers)
|
35985
35951
|
? findLatestAcceptedTransfer(call.transfer.acceptedTransfers)
|
35986
35952
|
: undefined;
|
35987
|
-
/* @conditional-compile-remove(call-transfer) */
|
35988
35953
|
const transferCall = latestAcceptedTransfer ? clientState.calls[latestAcceptedTransfer.callId] : undefined;
|
35989
|
-
const newPage = getCallCompositePage(call, latestEndedCall,
|
35990
|
-
/* @conditional-compile-remove(call-transfer) */ transferCall,
|
35954
|
+
const newPage = getCallCompositePage(call, latestEndedCall, transferCall,
|
35991
35955
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo);
|
35992
35956
|
if (!IsCallEndedPage(oldPage) && IsCallEndedPage(newPage)) {
|
35993
35957
|
this.emitter.emit('callEnded', { callId: this.callId });
|
@@ -36000,8 +35964,7 @@ class CallContext {
|
|
36000
35964
|
this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_a = clientState.callAgent) === null || _a === void 0 ? void 0 : _a.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors, cameraStatus: (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((s) => s.mediaStreamType === 'Video')) ||
|
36001
35965
|
clientState.deviceManager.unparentedViews.find((s) => s.mediaStreamType === 'Video')
|
36002
35966
|
? 'On'
|
36003
|
-
: 'Off',
|
36004
|
-
/* @conditional-compile-remove(call-transfer) */ acceptedTransferCallState: transferCall }));
|
35967
|
+
: 'Off', acceptedTransferCallState: transferCall }));
|
36005
35968
|
}
|
36006
35969
|
}
|
36007
35970
|
/* @conditional-compile-remove(unsupported-browser) */
|
@@ -36014,7 +35977,6 @@ class CallContext {
|
|
36014
35977
|
setSelectedVideoBackgroundEffect(selectedVideoBackgroundEffect) {
|
36015
35978
|
this.setState(Object.assign(Object.assign({}, this.state), { selectedVideoBackgroundEffect }));
|
36016
35979
|
}
|
36017
|
-
/* @conditional-compile-remove(call-transfer) */
|
36018
35980
|
setAcceptedTransferCall(call) {
|
36019
35981
|
this.setState(Object.assign(Object.assign({}, this.state), { acceptedTransferCallState: call }));
|
36020
35982
|
}
|
@@ -36033,7 +35995,6 @@ const findLatestEndedCall = (calls) => {
|
|
36033
35995
|
}
|
36034
35996
|
return latestCall;
|
36035
35997
|
};
|
36036
|
-
/* @conditional-compile-remove(call-transfer) */
|
36037
35998
|
const findLatestAcceptedTransfer = (acceptedTransfers) => {
|
36038
35999
|
var _a, _b, _c, _d;
|
36039
36000
|
const acceptedTransferValues = Object.values(acceptedTransfers);
|
@@ -36119,7 +36080,6 @@ class AzureCommunicationCallAdapter {
|
|
36119
36080
|
this.onClientStateChange = onStateChange;
|
36120
36081
|
this.subscribeDeviceManagerEvents();
|
36121
36082
|
this.callClient.onStateChange(onStateChange);
|
36122
|
-
/* @conditional-compile-remove(call-transfer) */
|
36123
36083
|
if (this.callAgent.kind === 'CallAgent') {
|
36124
36084
|
const onCallsUpdated = (args) => {
|
36125
36085
|
var _a;
|
@@ -36780,7 +36740,6 @@ class AzureCommunicationCallAdapter {
|
|
36780
36740
|
/* @conditional-compile-remove(close-captions) */
|
36781
36741
|
(_e = this.call) === null || _e === void 0 ? void 0 : _e.on('stateChanged', this.subscribeToCaptionEvents.bind(this));
|
36782
36742
|
(_f = this.call) === null || _f === void 0 ? void 0 : _f.on('roleChanged', this.roleChanged.bind(this));
|
36783
|
-
/* @conditional-compile-remove(call-transfer) */
|
36784
36743
|
(_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Transfer).on('transferAccepted', this.transferAccepted.bind(this));
|
36785
36744
|
(_h = this.call) === null || _h === void 0 ? void 0 : _h.feature(communicationCalling.Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
|
36786
36745
|
/* @conditional-compile-remove(spotlight) */
|
@@ -36855,7 +36814,6 @@ class AzureCommunicationCallAdapter {
|
|
36855
36814
|
activeCaptionLanguage: captionsFeature.activeCaptionLanguage
|
36856
36815
|
});
|
36857
36816
|
}
|
36858
|
-
/* @conditional-compile-remove(call-transfer) */
|
36859
36817
|
transferAccepted(args) {
|
36860
36818
|
this.emitter.emit('transferAccepted', args);
|
36861
36819
|
}
|
@@ -39626,4 +39584,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
39626
39584
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
39627
39585
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
39628
39586
|
exports.useTheme = useTheme;
|
39629
|
-
//# sourceMappingURL=index-
|
39587
|
+
//# sourceMappingURL=index-D5L3GDY8.js.map
|