@azure/communication-react 1.15.0-alpha-202404100012 → 1.15.0-alpha-202404120012
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-D-WbqlKS.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CeSMD9E_.js.map → ChatMessageComponentAsRichTextEditBox-D-WbqlKS.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-DtankK1c.js → index-DOoeY2q0.js} +117 -131
- package/dist/dist-cjs/communication-react/index-DOoeY2q0.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 +28 -6
- 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-components/src/components/styles/VideoTile.styles.js +2 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.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-DOoeY2q0.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-D-WbqlKS.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","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,EAA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,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,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;;;;"}
|
1
|
+
{"version":3,"file":"ChatMessageComponentAsRichTextEditBox-D-WbqlKS.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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,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;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-202404120012';
|
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-D-WbqlKS.js'); }).then((module) => ({
|
12659
12658
|
default: module.ChatMessageComponentAsRichTextEditBox
|
12660
12659
|
})));
|
12661
12660
|
/**
|
@@ -15124,7 +15123,8 @@ const raiseHandContainerStyles = (theme, limitedSpace) => react.mergeStyles({
|
|
15124
15123
|
borderRadius: '1rem',
|
15125
15124
|
margin: '0.5rem',
|
15126
15125
|
width: 'fit-content',
|
15127
|
-
position: 'absolute'
|
15126
|
+
position: 'absolute',
|
15127
|
+
top: 0
|
15128
15128
|
}, limitedSpace && raiseHandLimitedSpaceStyles);
|
15129
15129
|
/**
|
15130
15130
|
* @private
|
@@ -15281,71 +15281,6 @@ function useLongPress(props) {
|
|
15281
15281
|
]);
|
15282
15282
|
}
|
15283
15283
|
|
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
15284
|
// Copyright (c) Microsoft Corporation.
|
15350
15285
|
// Licensed under the MIT License.
|
15351
15286
|
// Coin max size is set to PersonaSize.size100
|
@@ -15408,6 +15343,33 @@ const VideoTile = (props) => {
|
|
15408
15343
|
const currentObserver = observer.current;
|
15409
15344
|
return () => currentObserver.disconnect();
|
15410
15345
|
}, [videoTileRef]);
|
15346
|
+
/* @conditional-compile-remove(ppt-live) */
|
15347
|
+
// TODO: Remove after calling sdk fix the keybaord focus
|
15348
|
+
React.useEffect(() => {
|
15349
|
+
// PPTLive display name is undefined, return as it is not screen share
|
15350
|
+
if (displayName !== undefined) {
|
15351
|
+
return;
|
15352
|
+
}
|
15353
|
+
let observer;
|
15354
|
+
if (videoTileRef.current) {
|
15355
|
+
observer = new MutationObserver((mutationsList) => {
|
15356
|
+
for (const mutation of mutationsList) {
|
15357
|
+
if (mutation.type === 'childList') {
|
15358
|
+
const iframe = document.querySelector('iframe');
|
15359
|
+
if (iframe) {
|
15360
|
+
if (!iframe.getAttribute('tabIndex')) {
|
15361
|
+
iframe.setAttribute('tabIndex', '-1');
|
15362
|
+
}
|
15363
|
+
}
|
15364
|
+
}
|
15365
|
+
}
|
15366
|
+
});
|
15367
|
+
observer.observe(videoTileRef.current, { childList: true, subtree: true });
|
15368
|
+
}
|
15369
|
+
return () => {
|
15370
|
+
observer === null || observer === void 0 ? void 0 : observer.disconnect();
|
15371
|
+
};
|
15372
|
+
}, [displayName, renderElement]);
|
15411
15373
|
const useLongPressProps = React.useMemo(() => {
|
15412
15374
|
return {
|
15413
15375
|
onLongPress: () => {
|
@@ -15467,9 +15429,6 @@ const VideoTile = (props) => {
|
|
15467
15429
|
}) }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
|
15468
15430
|
/* @conditional-compile-remove(reaction) */
|
15469
15431
|
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
15432
|
(canShowLabel || participantStateString) && (React.createElement(react.Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
|
15474
15433
|
React.createElement(react.Stack, { horizontal: true, className: tileInfoStyle },
|
15475
15434
|
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 +16161,11 @@ const MeetingReactionOverlay = (props) => {
|
|
16202
16161
|
return () => currentObserver.disconnect();
|
16203
16162
|
}, [videoTileRef]);
|
16204
16163
|
if (overlayMode === 'grid-tiles') {
|
16205
|
-
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
|
16164
|
+
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%', pointerEvents: 'none' } },
|
16206
16165
|
React.createElement(ParticipantVideoTileOverlay, { emojiSize: emojiSizePx, reaction: reaction, reactionResources: reactionResources })));
|
16207
16166
|
}
|
16208
16167
|
else if (props.overlayMode === 'screen-share' || props.overlayMode === 'content-share') {
|
16209
|
-
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
|
16168
|
+
return (React.createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%', pointerEvents: 'none' } },
|
16210
16169
|
React.createElement(RemoteContentShareReactionOverlay, { hostDivHeight: divHeight, hostDivWidth: divWidth, reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants })));
|
16211
16170
|
}
|
16212
16171
|
else {
|
@@ -16475,6 +16434,55 @@ const LoadingSpinner = (props) => {
|
|
16475
16434
|
React.createElement(react.Spinner, { label: props.loadingMessage, size: react.SpinnerSize.xSmall, "aria-live": 'assertive' })));
|
16476
16435
|
};
|
16477
16436
|
|
16437
|
+
// Copyright (c) Microsoft Corporation.
|
16438
|
+
// Licensed under the MIT License.
|
16439
|
+
/**
|
16440
|
+
* @private
|
16441
|
+
*/
|
16442
|
+
const videoGalleryOuterDivStyle = react.mergeStyles({ position: 'relative', width: '100%', height: '100%' });
|
16443
|
+
/**
|
16444
|
+
* @private
|
16445
|
+
*/
|
16446
|
+
const localVideoCameraCycleButtonStyles = (theme, size) => {
|
16447
|
+
return {
|
16448
|
+
root: {
|
16449
|
+
position: 'absolute',
|
16450
|
+
width: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
16451
|
+
height: size === 'large' ? _pxToRem(40) : _pxToRem(32),
|
16452
|
+
right: '0rem',
|
16453
|
+
top: '0rem',
|
16454
|
+
color: '#FFFFFF', // only shows up on running video feed to we want to force specific colours.
|
16455
|
+
zIndex: 2, // shows the button directly over the local video feed.
|
16456
|
+
background: 'rgba(0,0,0,0.4)',
|
16457
|
+
borderRadius: theme.effects.roundedCorner2
|
16458
|
+
},
|
16459
|
+
rootFocused: {
|
16460
|
+
// styles to remove the unwanted white highlight and blue colour after tapping on button.
|
16461
|
+
color: '#FFFFFF',
|
16462
|
+
background: 'rgba(0,0,0,0.4)' // sets opacity of background to be visible on all backdrops in video stream.
|
16463
|
+
},
|
16464
|
+
rootDisabled: {
|
16465
|
+
// In the disabled state, FluentUI sets the position to relative. We need to override this to keep the button correctly positioned.
|
16466
|
+
position: 'absolute'
|
16467
|
+
},
|
16468
|
+
icon: {
|
16469
|
+
paddingLeft: _pxToRem(3),
|
16470
|
+
paddingRight: _pxToRem(3),
|
16471
|
+
margin: 0
|
16472
|
+
},
|
16473
|
+
flexContainer: {
|
16474
|
+
paddingBottom: _pxToRem(8),
|
16475
|
+
height: 'unset'
|
16476
|
+
}
|
16477
|
+
};
|
16478
|
+
};
|
16479
|
+
/**
|
16480
|
+
* @private
|
16481
|
+
*/
|
16482
|
+
const localVideoTileContainerStyles = {
|
16483
|
+
root: { width: '100%', height: '100%' }
|
16484
|
+
};
|
16485
|
+
|
16478
16486
|
// Copyright (c) Microsoft Corporation.
|
16479
16487
|
// Licensed under the MIT License.
|
16480
16488
|
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -27134,29 +27142,30 @@ const ChatScreen = (props) => {
|
|
27134
27142
|
setIsImageOverlayOpen(true);
|
27135
27143
|
setOverlayImageItem(overlayImage);
|
27136
27144
|
}, [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)));
|
27145
|
+
const onRenderInlineImage = React.useCallback((inlineImage, defaultOnRender) => {
|
27146
|
+
var _a, _b;
|
27147
|
+
const message = adapter.getState().thread.chatMessages[inlineImage.messageId];
|
27148
|
+
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);
|
27149
|
+
if (attachment === undefined) {
|
27150
|
+
return defaultOnRender(inlineImage);
|
27158
27151
|
}
|
27159
|
-
|
27152
|
+
let pointerEvents = inlineImage.imageAttributes.src === '' ? 'none' : 'auto';
|
27153
|
+
const resourceCache = message.resourceCache;
|
27154
|
+
if (resourceCache &&
|
27155
|
+
attachment.previewUrl &&
|
27156
|
+
resourceCache[attachment.previewUrl] &&
|
27157
|
+
resourceCache[attachment.previewUrl].error) {
|
27158
|
+
pointerEvents = 'none';
|
27159
|
+
}
|
27160
|
+
return (React.createElement("span", { key: inlineImage.imageAttributes.id, onClick: () => onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId), tabIndex: 0, role: "button", onKeyDown: (e) => {
|
27161
|
+
if (e.key === 'Enter') {
|
27162
|
+
onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId);
|
27163
|
+
}
|
27164
|
+
}, style: { cursor: 'pointer', pointerEvents } }, defaultOnRender(inlineImage)));
|
27165
|
+
}, [adapter, onInlineImageClicked]);
|
27166
|
+
const inlineImageOptions = React.useMemo(() => {
|
27167
|
+
return { onRenderInlineImage: onRenderInlineImage };
|
27168
|
+
}, [onRenderInlineImage]);
|
27160
27169
|
const onDownloadButtonClicked = React.useCallback((imageSrc) => {
|
27161
27170
|
if (imageSrc === '') {
|
27162
27171
|
return;
|
@@ -27651,7 +27660,6 @@ const getCallCompositePage = (call, previousCall, transferCall, unsupportedBrows
|
|
27651
27660
|
if (isUnsupportedEnvironment(unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.environmentInfo, unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.unsupportedBrowserVersionOptedIn)) {
|
27652
27661
|
return 'unsupportedEnvironment';
|
27653
27662
|
}
|
27654
|
-
/* @conditional-compile-remove(call-transfer) */
|
27655
27663
|
if (transferCall !== undefined) {
|
27656
27664
|
return 'transferring';
|
27657
27665
|
}
|
@@ -28604,7 +28612,6 @@ const getRole = (state) => { var _a; return (_a = state.call) === null || _a ===
|
|
28604
28612
|
* @private
|
28605
28613
|
*/
|
28606
28614
|
const getPage = (state) => state.page;
|
28607
|
-
/* @conditional-compile-remove(call-transfer) */
|
28608
28615
|
/**
|
28609
28616
|
* @private
|
28610
28617
|
*/
|
@@ -34726,51 +34733,40 @@ const TransferPage = (props) => {
|
|
34726
34733
|
const errorBarProps = usePropsFor$1(ErrorBar);
|
34727
34734
|
const strings = useLocale().strings.call;
|
34728
34735
|
const remoteParticipants = useSelector$1(getRemoteParticipants);
|
34729
|
-
/* @conditional-compile-remove(call-transfer) */
|
34730
34736
|
const transferCall = useSelector$1(getTransferCall);
|
34731
|
-
/* @conditional-compile-remove(call-transfer) */
|
34732
34737
|
const [announcerString, setAnnouncerString] = React.useState(undefined);
|
34733
34738
|
// Reduce the controls shown when mobile view is enabled.
|
34734
34739
|
const callControlOptions = props.mobileView
|
34735
34740
|
? reduceCallControlsForMobile((_a = props.options) === null || _a === void 0 ? void 0 : _a.callControls)
|
34736
34741
|
: (_b = props.options) === null || _b === void 0 ? void 0 : _b.callControls;
|
34737
34742
|
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
34743
|
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
34744
|
const pageSubject = React.useMemo(() => {
|
34742
34745
|
if (transferCall && (transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName)) {
|
34743
34746
|
return 'transferTarget';
|
34744
34747
|
}
|
34745
34748
|
return 'transferor';
|
34746
34749
|
}, [transferCall, transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName]);
|
34747
|
-
/* @conditional-compile-remove(call-transfer) */
|
34748
34750
|
React.useEffect(() => {
|
34749
34751
|
setAnnouncerString(strings.transferPageNoticeString);
|
34750
34752
|
}, [strings.transferPageNoticeString]);
|
34751
34753
|
let transferTileParticipant = transferor;
|
34752
|
-
/* @conditional-compile-remove(call-transfer) */
|
34753
34754
|
if (pageSubject === 'transferTarget') {
|
34754
34755
|
transferTileParticipant = transferTarget;
|
34755
34756
|
}
|
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) */
|
34757
|
+
let transferParticipantDisplayName = (_c = transferor === null || transferor === void 0 ? void 0 : transferor.displayName) !== null && _c !== void 0 ? _c : strings.transferPageUnknownTransferorDisplayName;
|
34759
34758
|
if (pageSubject === 'transferTarget') {
|
34760
34759
|
transferParticipantDisplayName =
|
34761
34760
|
(_d = transferTarget === null || transferTarget === void 0 ? void 0 : transferTarget.displayName) !== null && _d !== void 0 ? _d : strings.transferPageUnknownTransferTargetDisplayName;
|
34762
34761
|
}
|
34763
34762
|
return (React.createElement(react.Stack, { className: react.mergeStyles(pageContainer) },
|
34764
|
-
/* @conditional-compile-remove(call-transfer) */
|
34765
34763
|
React.createElement(Announcer$1, { announcementString: announcerString, ariaLive: "polite" }),
|
34766
34764
|
React.createElement(CallArrangement, { complianceBannerProps: { strings },
|
34767
34765
|
// Ignore errors from before current call. This avoids old errors from showing up when a user re-joins a call.
|
34768
34766
|
errorBarProps: ((_e = props.options) === null || _e === void 0 ? void 0 : _e.errorBar) !== false && errorBarProps, callControlProps: {
|
34769
34767
|
options: callControlOptions,
|
34770
34768
|
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'
|
34769
|
+
}, 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
34770
|
? strings.transferPageTransferTargetText
|
34775
34771
|
: strings.transferPageTransferorText, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData })), dataUiId: 'transfer-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, onDismissError: props.onDismissError })));
|
34776
34772
|
};
|
@@ -35583,7 +35579,6 @@ const MainScreen = (props) => {
|
|
35583
35579
|
case 'lobby':
|
35584
35580
|
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
35581
|
break;
|
35586
|
-
/* @conditional-compile-remove(call-transfer) */
|
35587
35582
|
case 'transferring':
|
35588
35583
|
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
35584
|
break;
|
@@ -35980,14 +35975,11 @@ class CallContext {
|
|
35980
35975
|
environmentInfo: this.state.environmentInfo,
|
35981
35976
|
unsupportedBrowserVersionOptedIn: this.state.unsupportedBrowserVersionsAllowed
|
35982
35977
|
};
|
35983
|
-
/* @conditional-compile-remove(call-transfer) */
|
35984
35978
|
const latestAcceptedTransfer = (call === null || call === void 0 ? void 0 : call.transfer.acceptedTransfers)
|
35985
35979
|
? findLatestAcceptedTransfer(call.transfer.acceptedTransfers)
|
35986
35980
|
: undefined;
|
35987
|
-
/* @conditional-compile-remove(call-transfer) */
|
35988
35981
|
const transferCall = latestAcceptedTransfer ? clientState.calls[latestAcceptedTransfer.callId] : undefined;
|
35989
|
-
const newPage = getCallCompositePage(call, latestEndedCall,
|
35990
|
-
/* @conditional-compile-remove(call-transfer) */ transferCall,
|
35982
|
+
const newPage = getCallCompositePage(call, latestEndedCall, transferCall,
|
35991
35983
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo);
|
35992
35984
|
if (!IsCallEndedPage(oldPage) && IsCallEndedPage(newPage)) {
|
35993
35985
|
this.emitter.emit('callEnded', { callId: this.callId });
|
@@ -36000,8 +35992,7 @@ class CallContext {
|
|
36000
35992
|
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
35993
|
clientState.deviceManager.unparentedViews.find((s) => s.mediaStreamType === 'Video')
|
36002
35994
|
? 'On'
|
36003
|
-
: 'Off',
|
36004
|
-
/* @conditional-compile-remove(call-transfer) */ acceptedTransferCallState: transferCall }));
|
35995
|
+
: 'Off', acceptedTransferCallState: transferCall }));
|
36005
35996
|
}
|
36006
35997
|
}
|
36007
35998
|
/* @conditional-compile-remove(unsupported-browser) */
|
@@ -36014,7 +36005,6 @@ class CallContext {
|
|
36014
36005
|
setSelectedVideoBackgroundEffect(selectedVideoBackgroundEffect) {
|
36015
36006
|
this.setState(Object.assign(Object.assign({}, this.state), { selectedVideoBackgroundEffect }));
|
36016
36007
|
}
|
36017
|
-
/* @conditional-compile-remove(call-transfer) */
|
36018
36008
|
setAcceptedTransferCall(call) {
|
36019
36009
|
this.setState(Object.assign(Object.assign({}, this.state), { acceptedTransferCallState: call }));
|
36020
36010
|
}
|
@@ -36033,7 +36023,6 @@ const findLatestEndedCall = (calls) => {
|
|
36033
36023
|
}
|
36034
36024
|
return latestCall;
|
36035
36025
|
};
|
36036
|
-
/* @conditional-compile-remove(call-transfer) */
|
36037
36026
|
const findLatestAcceptedTransfer = (acceptedTransfers) => {
|
36038
36027
|
var _a, _b, _c, _d;
|
36039
36028
|
const acceptedTransferValues = Object.values(acceptedTransfers);
|
@@ -36119,7 +36108,6 @@ class AzureCommunicationCallAdapter {
|
|
36119
36108
|
this.onClientStateChange = onStateChange;
|
36120
36109
|
this.subscribeDeviceManagerEvents();
|
36121
36110
|
this.callClient.onStateChange(onStateChange);
|
36122
|
-
/* @conditional-compile-remove(call-transfer) */
|
36123
36111
|
if (this.callAgent.kind === 'CallAgent') {
|
36124
36112
|
const onCallsUpdated = (args) => {
|
36125
36113
|
var _a;
|
@@ -36780,7 +36768,6 @@ class AzureCommunicationCallAdapter {
|
|
36780
36768
|
/* @conditional-compile-remove(close-captions) */
|
36781
36769
|
(_e = this.call) === null || _e === void 0 ? void 0 : _e.on('stateChanged', this.subscribeToCaptionEvents.bind(this));
|
36782
36770
|
(_f = this.call) === null || _f === void 0 ? void 0 : _f.on('roleChanged', this.roleChanged.bind(this));
|
36783
|
-
/* @conditional-compile-remove(call-transfer) */
|
36784
36771
|
(_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Transfer).on('transferAccepted', this.transferAccepted.bind(this));
|
36785
36772
|
(_h = this.call) === null || _h === void 0 ? void 0 : _h.feature(communicationCalling.Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
|
36786
36773
|
/* @conditional-compile-remove(spotlight) */
|
@@ -36855,7 +36842,6 @@ class AzureCommunicationCallAdapter {
|
|
36855
36842
|
activeCaptionLanguage: captionsFeature.activeCaptionLanguage
|
36856
36843
|
});
|
36857
36844
|
}
|
36858
|
-
/* @conditional-compile-remove(call-transfer) */
|
36859
36845
|
transferAccepted(args) {
|
36860
36846
|
this.emitter.emit('transferAccepted', args);
|
36861
36847
|
}
|
@@ -39626,4 +39612,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
39626
39612
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
39627
39613
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
39628
39614
|
exports.useTheme = useTheme;
|
39629
|
-
//# sourceMappingURL=index-
|
39615
|
+
//# sourceMappingURL=index-DOoeY2q0.js.map
|