@azure/communication-react 1.16.0-alpha-202405050014 → 1.16.0-alpha-202405132107
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 +13 -4
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CPqryVoJ.js → ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CPqryVoJ.js.map → ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-CvXWWlDZ.js → index-W6o1SuXO.js} +99 -41
- package/dist/dist-cjs/communication-react/index-W6o1SuXO.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.d.ts +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-component-bindings/src/hooks/usePropsFor.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +24 -4
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +29 -29
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +28 -28
- package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.d.ts +3 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +10 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +13 -13
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +28 -28
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.js +3 -3
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +57 -30
- 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 +7 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +9 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +14 -14
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +7 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +4 -0
- 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.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/common/Survey.d.ts +20 -7
- package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +1 -1
- package/package.json +5 -5
- package/dist/dist-cjs/communication-react/index-CvXWWlDZ.js.map +0 -1
@@ -1090,7 +1090,14 @@ export declare type CallAdapterClientState = {
|
|
1090
1090
|
targetCallees?: CommunicationIdentifier[];
|
1091
1091
|
devices: DeviceManagerState;
|
1092
1092
|
endedCall?: CallState;
|
1093
|
+
/**
|
1094
|
+
* State to track whether the call is a teams call.
|
1095
|
+
*/
|
1093
1096
|
isTeamsCall: boolean;
|
1097
|
+
/**
|
1098
|
+
* State to track whether the call is a teams meeting.
|
1099
|
+
*/
|
1100
|
+
isTeamsMeeting: boolean;
|
1094
1101
|
/**
|
1095
1102
|
* State to track whether the call is a rooms call.
|
1096
1103
|
*/
|
@@ -3600,6 +3607,8 @@ export declare interface CallWithChatClientState {
|
|
3600
3607
|
devices: DeviceManagerState;
|
3601
3608
|
/** State of whether the active call is a Teams interop call */
|
3602
3609
|
isTeamsCall: boolean;
|
3610
|
+
/** State of whether the active call is a Teams interop meeting */
|
3611
|
+
isTeamsMeeting: boolean;
|
3603
3612
|
/** alternateCallerId for PSTN call */
|
3604
3613
|
alternateCallerId?: string | undefined;
|
3605
3614
|
/** Environment information for system adapter is made on */
|
@@ -11026,7 +11035,7 @@ export declare type UpdateMessageCallback = (messageId: string, content: string,
|
|
11026
11035
|
*
|
11027
11036
|
* @public
|
11028
11037
|
*/
|
11029
|
-
export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs | AzureCommunicationOutboundCallAdapterArgs>, afterCreate?: (
|
11038
|
+
export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs | AzureCommunicationOutboundCallAdapterArgs>, afterCreate?: (adapter: CallAdapter) => Promise<CallAdapter>, beforeDispose?: (adapter: CallAdapter) => Promise<void>) => CallAdapter | undefined;
|
11030
11039
|
|
11031
11040
|
/**
|
11032
11041
|
* A custom React hook to simplify the creation of {@link CallWithChatAdapter}.
|
@@ -11042,7 +11051,7 @@ export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommu
|
|
11042
11051
|
*
|
11043
11052
|
* @public
|
11044
11053
|
*/
|
11045
|
-
export declare const useAzureCommunicationCallWithChatAdapter: (args: Partial<AzureCommunicationCallWithChatAdapterArgs>, afterCreate?: (
|
11054
|
+
export declare const useAzureCommunicationCallWithChatAdapter: (args: Partial<AzureCommunicationCallWithChatAdapterArgs>, afterCreate?: (adapter: CallWithChatAdapter) => Promise<CallWithChatAdapter>, beforeDispose?: (adapter: CallWithChatAdapter) => Promise<void>) => CallWithChatAdapter | undefined;
|
11046
11055
|
|
11047
11056
|
/**
|
11048
11057
|
* A custom React hook to simplify the creation of {@link ChatAdapter}.
|
@@ -11058,7 +11067,7 @@ export declare const useAzureCommunicationCallWithChatAdapter: (args: Partial<Az
|
|
11058
11067
|
*
|
11059
11068
|
* @public
|
11060
11069
|
*/
|
11061
|
-
export declare const useAzureCommunicationChatAdapter: (args: Partial<AzureCommunicationChatAdapterArgs>, afterCreate?: (
|
11070
|
+
export declare const useAzureCommunicationChatAdapter: (args: Partial<AzureCommunicationChatAdapterArgs>, afterCreate?: (adapter: ChatAdapter) => Promise<ChatAdapter>, beforeDispose?: (adapter: ChatAdapter) => Promise<void>) => ChatAdapter | undefined;
|
11062
11071
|
|
11063
11072
|
/**
|
11064
11073
|
* Hook to obtain {@link @azure/communication-calling#Call} from the provider.
|
@@ -11184,7 +11193,7 @@ export declare const useTeamsCall: () => undefined | /* @conditional-compile-rem
|
|
11184
11193
|
*
|
11185
11194
|
* @beta
|
11186
11195
|
*/
|
11187
|
-
export declare const useTeamsCallAdapter: (args: Partial<TeamsCallAdapterArgs>, afterCreate?: (
|
11196
|
+
export declare const useTeamsCallAdapter: (args: Partial<TeamsCallAdapterArgs>, afterCreate?: (adapter: TeamsCallAdapter) => Promise<TeamsCallAdapter>, beforeDispose?: (adapter: TeamsCallAdapter) => Promise<void>) => TeamsCallAdapter | undefined;
|
11188
11197
|
|
11189
11198
|
/**
|
11190
11199
|
* Hook to obtain {@link @azure/communication-calling#TeamsCallAgent} from the provider.
|
@@ -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-W6o1SuXO.js');
|
8
8
|
var React = require('react');
|
9
9
|
require('reselect');
|
10
10
|
require('@azure/communication-calling');
|
@@ -126,4 +126,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
|
|
126
126
|
|
127
127
|
exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
|
128
128
|
exports.default = ChatMessageComponentAsRichTextEditBox;
|
129
|
-
//# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-
|
129
|
+
//# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChatMessageComponentAsRichTextEditBox-CPqryVoJ.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 data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n 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 data-testId={strings.editBoxSubmitButton}\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 attachmentsWithProgress={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\nexport default ChatMessageComponentAsRichTextEditBox;\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,C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AAG,OAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;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-DWzf8cuK.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 data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n 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 data-testId={strings.editBoxSubmitButton}\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 attachmentsWithProgress={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\nexport default ChatMessageComponentAsRichTextEditBox;\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,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E,aAAa,EAC/B,wBAAwB,EAAEC,gCAA0B,EACpD,0BAA0B,EAAE,IAAI;;AAEhC,gBAAA,yBAAyB,EAAE,yBAAyB,EACpD,CAAA,CACI,EACR;AACJ,KAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;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.16.0-alpha-
|
179
|
+
var telemetryVersion = '1.16.0-alpha-202405132107';
|
180
180
|
|
181
181
|
|
182
182
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -4724,15 +4724,35 @@ class ProxyCallCommon {
|
|
4724
4724
|
// these are mini version of Proxy object - if it grows too big, a real Proxy object should be used.
|
4725
4725
|
return this._context.withErrorTeedToState((...args) => {
|
4726
4726
|
if (args[0] === communicationCalling.Features.Captions) {
|
4727
|
-
const captionsFeature = target.feature(communicationCalling.Features.Captions)
|
4727
|
+
const captionsFeature = target.feature(communicationCalling.Features.Captions);
|
4728
4728
|
let proxyFeature;
|
4729
4729
|
/* @conditional-compile-remove(acs-close-captions) */
|
4730
|
-
if (captionsFeature.kind === 'Captions') {
|
4730
|
+
if (captionsFeature.captions.kind === 'Captions') {
|
4731
4731
|
proxyFeature = new ProxyCaptions(this._context, target);
|
4732
|
-
return {
|
4732
|
+
return {
|
4733
|
+
captions: new Proxy(captionsFeature.captions, proxyFeature),
|
4734
|
+
on: (...args) => {
|
4735
|
+
const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';
|
4736
|
+
if (isCaptionsKindChanged) {
|
4737
|
+
const listener = args[1];
|
4738
|
+
const newListener = () => {
|
4739
|
+
listener();
|
4740
|
+
};
|
4741
|
+
return captionsFeature.on('CaptionsKindChanged', newListener);
|
4742
|
+
}
|
4743
|
+
},
|
4744
|
+
off: (...args) => {
|
4745
|
+
const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';
|
4746
|
+
if (isCaptionsKindChanged) {
|
4747
|
+
return captionsFeature.off('CaptionsKindChanged', args[1]);
|
4748
|
+
}
|
4749
|
+
}
|
4750
|
+
};
|
4733
4751
|
}
|
4734
4752
|
proxyFeature = new ProxyTeamsCaptions(this._context, target);
|
4735
|
-
return {
|
4753
|
+
return {
|
4754
|
+
captions: new Proxy(captionsFeature.captions, proxyFeature)
|
4755
|
+
};
|
4736
4756
|
}
|
4737
4757
|
if (args[0] === communicationCalling.Features.Transfer) {
|
4738
4758
|
const transferFeature = target.feature(communicationCalling.Features.Transfer);
|
@@ -6826,8 +6846,8 @@ const DEFAULT_COMPONENT_ICONS = {
|
|
6826
6846
|
VideoTileMoreOptions: React.createElement(reactIcons.MoreHorizontal20Filled, null),
|
6827
6847
|
VideoTileScaleFit: React.createElement(reactIcons.ScaleFit20Regular, null),
|
6828
6848
|
VideoTileScaleFill: React.createElement(reactIcons.ScaleFill20Regular, null),
|
6829
|
-
PinParticipant: React.createElement(reactIcons.
|
6830
|
-
UnpinParticipant: React.createElement(reactIcons.
|
6849
|
+
PinParticipant: React.createElement(reactIcons.Pin20Regular, null),
|
6850
|
+
UnpinParticipant: React.createElement(reactIcons.PinOff20Regular, null),
|
6831
6851
|
SplitButtonPrimaryActionCameraOn: React.createElement(reactIcons.Video20Filled, null),
|
6832
6852
|
SplitButtonPrimaryActionCameraOff: React.createElement(reactIcons.VideoOff20Filled, null),
|
6833
6853
|
SplitButtonPrimaryActionMicUnmuted: React.createElement(reactIcons.Mic20Filled, null),
|
@@ -12908,7 +12928,7 @@ class ErrorBoundary extends React.Component {
|
|
12908
12928
|
// Copyright (c) Microsoft Corporation.
|
12909
12929
|
// Licensed under the MIT License.
|
12910
12930
|
/* @conditional-compile-remove(rich-text-editor) */
|
12911
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
12931
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js'); }));
|
12912
12932
|
/**
|
12913
12933
|
* @private
|
12914
12934
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -12916,7 +12936,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
12916
12936
|
*
|
12917
12937
|
* @conditional-compile-remove(rich-text-editor)
|
12918
12938
|
*/
|
12919
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
12939
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js'); });
|
12920
12940
|
/**
|
12921
12941
|
* @private
|
12922
12942
|
*/
|
@@ -28868,6 +28888,10 @@ const getCaptionsStatus = (state) => {
|
|
28868
28888
|
* @private
|
28869
28889
|
*/
|
28870
28890
|
const getIsTeamsCall = (state) => state.isTeamsCall;
|
28891
|
+
/**
|
28892
|
+
* @private
|
28893
|
+
*/
|
28894
|
+
const getIsTeamsMeeting = (state) => state.isTeamsMeeting;
|
28871
28895
|
/**
|
28872
28896
|
* @private
|
28873
28897
|
*/
|
@@ -32844,7 +32868,12 @@ const CallArrangement = (props) => {
|
|
32844
32868
|
}
|
32845
32869
|
/* @conditional-compile-remove(acs-close-captions) */
|
32846
32870
|
const isTeamsCaptions = useSelector$1(getCaptionsKind) === 'TeamsCaptions';
|
32847
|
-
const
|
32871
|
+
const isTeamsMeeting = useSelector$1(getIsTeamsMeeting);
|
32872
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
32873
|
+
const isTeamsCall = useSelector$1(getIsTeamsCall);
|
32874
|
+
const useTeamsCaptions = isTeamsMeeting ||
|
32875
|
+
/* @conditional-compile-remove(acs-close-captions) */ isTeamsCall ||
|
32876
|
+
/* @conditional-compile-remove(acs-close-captions) */ isTeamsCaptions;
|
32848
32877
|
const hasJoinedCall = useSelector$1(getCallStatus) === 'Connected';
|
32849
32878
|
const isCaptionsOn = useSelector$1(getCaptionsStatus);
|
32850
32879
|
const minMaxDragPosition = useMinMaxDragPosition(props.modalLayerHostId);
|
@@ -36099,7 +36128,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
36099
36128
|
};
|
36100
36129
|
/** Context of call, which is a centralized context for all state updates */
|
36101
36130
|
class CallContext {
|
36102
|
-
constructor(clientState, isTeamsCall, isRoomsCall, options, targetCallees) {
|
36131
|
+
constructor(clientState, isTeamsCall, isTeamsMeeting, isRoomsCall, options, targetCallees) {
|
36103
36132
|
var _a, _b, _c, _d;
|
36104
36133
|
this.emitter = new EventEmitter.EventEmitter();
|
36105
36134
|
this.state = {
|
@@ -36112,6 +36141,7 @@ class CallContext {
|
|
36112
36141
|
page: 'configuration',
|
36113
36142
|
latestErrors: clientState.latestErrors,
|
36114
36143
|
isTeamsCall,
|
36144
|
+
isTeamsMeeting,
|
36115
36145
|
isRoomsCall,
|
36116
36146
|
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: clientState.alternateCallerId,
|
36117
36147
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
@@ -36249,7 +36279,7 @@ class AzureCommunicationCallAdapter {
|
|
36249
36279
|
this._call = newCall;
|
36250
36280
|
}
|
36251
36281
|
constructor(callClient, locatorOrTargetCalless, callAgent, deviceManager, options) {
|
36252
|
-
var _a;
|
36282
|
+
var _a, _b;
|
36253
36283
|
this.participantSubscribers = new Map();
|
36254
36284
|
this.emitter = new EventEmitter.EventEmitter();
|
36255
36285
|
this.isMyMutedChanged = () => {
|
@@ -36274,9 +36304,15 @@ class AzureCommunicationCallAdapter {
|
|
36274
36304
|
const isTeamsMeeting = this.locator
|
36275
36305
|
? 'meetingLink' in this.locator || /* @conditional-compile-remove(meeting-id) */ 'meetingId' in this.locator
|
36276
36306
|
: false;
|
36307
|
+
let isTeamsCall;
|
36308
|
+
(_a = this.targetCallees) === null || _a === void 0 ? void 0 : _a.forEach((callee) => {
|
36309
|
+
if (communicationCommon.isMicrosoftTeamsUserIdentifier(callee) || communicationCommon.isMicrosoftTeamsAppIdentifier(callee)) {
|
36310
|
+
isTeamsCall = true;
|
36311
|
+
}
|
36312
|
+
});
|
36277
36313
|
const isRoomsCall = this.locator ? 'roomId' in this.locator : false;
|
36278
|
-
this.onResolveVideoBackgroundEffectsDependency = (
|
36279
|
-
this.context = new CallContext(callClient.getState(), isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
36314
|
+
this.onResolveVideoBackgroundEffectsDependency = (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.onResolveDependency;
|
36315
|
+
this.context = new CallContext(callClient.getState(), !!isTeamsCall, isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
36280
36316
|
this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
|
36281
36317
|
const onStateChange = (clientState) => {
|
36282
36318
|
var _a, _b, _c;
|
@@ -36901,52 +36937,56 @@ class AzureCommunicationCallAdapter {
|
|
36901
36937
|
this.emitter.on(event, listener);
|
36902
36938
|
}
|
36903
36939
|
subscribeToCaptionEvents() {
|
36904
|
-
var _a
|
36940
|
+
var _a;
|
36905
36941
|
if (this.call && this.call.state === 'Connected') {
|
36906
|
-
|
36907
|
-
|
36908
|
-
|
36909
|
-
captionsFeature.
|
36910
|
-
|
36911
|
-
|
36942
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(communicationCalling.Features.Captions);
|
36943
|
+
if (captionsFeature.captions.kind === 'TeamsCaptions' &&
|
36944
|
+
(this.context.getState().isTeamsCall || this.context.getState().isTeamsMeeting)) {
|
36945
|
+
const teamsCaptionsFeature = captionsFeature.captions;
|
36946
|
+
teamsCaptionsFeature.on('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
36947
|
+
teamsCaptionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
36948
|
+
teamsCaptionsFeature.on('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
36949
|
+
teamsCaptionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
36912
36950
|
}
|
36913
36951
|
else {
|
36914
36952
|
/* @conditional-compile-remove(acs-close-captions) */
|
36915
|
-
const
|
36953
|
+
const acsCaptionsFeature = captionsFeature.captions;
|
36916
36954
|
/* @conditional-compile-remove(acs-close-captions) */
|
36917
|
-
|
36955
|
+
acsCaptionsFeature.on('CaptionsReceived', this.captionsReceived.bind(this));
|
36918
36956
|
/* @conditional-compile-remove(acs-close-captions) */
|
36919
|
-
|
36957
|
+
acsCaptionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
36920
36958
|
/* @conditional-compile-remove(acs-close-captions) */
|
36921
|
-
|
36959
|
+
acsCaptionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
36922
36960
|
}
|
36923
36961
|
}
|
36924
36962
|
}
|
36925
36963
|
unsubscribeFromCaptionEvents() {
|
36926
|
-
var _a, _b
|
36964
|
+
var _a, _b;
|
36927
36965
|
if (this.call && this.call.state === 'Connected') {
|
36928
|
-
|
36929
|
-
|
36930
|
-
|
36931
|
-
captionsFeature.
|
36932
|
-
|
36933
|
-
|
36966
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(communicationCalling.Features.Captions);
|
36967
|
+
if (captionsFeature.captions.kind === 'TeamsCaptions' &&
|
36968
|
+
(this.context.getState().isTeamsCall || this.context.getState().isTeamsMeeting)) {
|
36969
|
+
const teamsCaptionsFeature = captionsFeature.captions;
|
36970
|
+
teamsCaptionsFeature.off('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
36971
|
+
teamsCaptionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
36972
|
+
teamsCaptionsFeature.off('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
36973
|
+
teamsCaptionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
36934
36974
|
}
|
36935
36975
|
else {
|
36936
36976
|
/* @conditional-compile-remove(acs-close-captions) */
|
36937
|
-
const
|
36977
|
+
const acsCaptionsFeature = captionsFeature.captions;
|
36938
36978
|
/* @conditional-compile-remove(acs-close-captions) */
|
36939
|
-
|
36979
|
+
acsCaptionsFeature.off('CaptionsReceived', this.captionsReceived.bind(this));
|
36940
36980
|
/* @conditional-compile-remove(acs-close-captions) */
|
36941
|
-
|
36981
|
+
acsCaptionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
36942
36982
|
/* @conditional-compile-remove(acs-close-captions) */
|
36943
|
-
|
36983
|
+
acsCaptionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
36944
36984
|
}
|
36945
|
-
(
|
36985
|
+
(_b = this.call) === null || _b === void 0 ? void 0 : _b.off('stateChanged', this.subscribeToCaptionEvents.bind(this));
|
36946
36986
|
}
|
36947
36987
|
}
|
36948
36988
|
subscribeCallEvents() {
|
36949
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
36989
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
36950
36990
|
if (this.call) {
|
36951
36991
|
this.callingSoundSubscriber = new CallingSoundSubscriber(this.call, this.getState().targetCallees, this.getState().sounds);
|
36952
36992
|
}
|
@@ -36960,9 +37000,11 @@ class AzureCommunicationCallAdapter {
|
|
36960
37000
|
(_h = this.call) === null || _h === void 0 ? void 0 : _h.feature(communicationCalling.Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
|
36961
37001
|
/* @conditional-compile-remove(spotlight) */
|
36962
37002
|
(_j = this.call) === null || _j === void 0 ? void 0 : _j.feature(communicationCalling.Features.Spotlight).on('spotlightChanged', this.spotlightChanged.bind(this));
|
37003
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
37004
|
+
(_k = this.call) === null || _k === void 0 ? void 0 : _k.feature(communicationCalling.Features.Captions).on('CaptionsKindChanged', this.captionsKindChanged.bind(this));
|
36963
37005
|
}
|
36964
37006
|
unsubscribeCallEvents() {
|
36965
|
-
var _a, _b, _c, _d, _e;
|
37007
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
36966
37008
|
for (const subscriber of this.participantSubscribers.values()) {
|
36967
37009
|
subscriber.unsubscribeAll();
|
36968
37010
|
}
|
@@ -36972,11 +37014,25 @@ class AzureCommunicationCallAdapter {
|
|
36972
37014
|
(_c = this.call) === null || _c === void 0 ? void 0 : _c.off('isScreenSharingOnChanged', this.isScreenSharingOnChanged.bind(this));
|
36973
37015
|
(_d = this.call) === null || _d === void 0 ? void 0 : _d.off('idChanged', this.callIdChanged.bind(this));
|
36974
37016
|
(_e = this.call) === null || _e === void 0 ? void 0 : _e.off('roleChanged', this.roleChanged.bind(this));
|
37017
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
37018
|
+
if (((_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.Captions).captions.kind) === 'Captions') {
|
37019
|
+
(_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Captions).off('CaptionsKindChanged', this.unsubscribeFromCaptionEvents.bind(this));
|
37020
|
+
}
|
36975
37021
|
this.unsubscribeFromCaptionEvents();
|
36976
37022
|
if (this.callingSoundSubscriber) {
|
36977
37023
|
this.callingSoundSubscriber.unsubscribeAll();
|
36978
37024
|
}
|
36979
37025
|
}
|
37026
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
37027
|
+
captionsKindChanged() {
|
37028
|
+
var _a;
|
37029
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(communicationCalling.Features.Captions);
|
37030
|
+
const teamsCaptionsFeature = captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.captions;
|
37031
|
+
teamsCaptionsFeature.on('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
37032
|
+
teamsCaptionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
37033
|
+
teamsCaptionsFeature.on('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
37034
|
+
teamsCaptionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
37035
|
+
}
|
36980
37036
|
onRemoteParticipantsUpdated({ added, removed }) {
|
36981
37037
|
if (added && added.length > 0) {
|
36982
37038
|
this.emitter.emit('participantsJoined', { joined: added });
|
@@ -37658,6 +37714,7 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
37658
37714
|
call: callWithChatAdapterState.call,
|
37659
37715
|
devices: callWithChatAdapterState.devices,
|
37660
37716
|
isTeamsCall: callWithChatAdapterState.isTeamsCall,
|
37717
|
+
isTeamsMeeting: callWithChatAdapterState.isTeamsMeeting,
|
37661
37718
|
isRoomsCall: false,
|
37662
37719
|
latestErrors: callWithChatAdapterState.latestCallErrors,
|
37663
37720
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -38229,6 +38286,7 @@ function callWithChatAdapterStateFromBackingStates(callAdapter) {
|
|
38229
38286
|
devices: callAdapterState.devices,
|
38230
38287
|
isLocalPreviewMicrophoneEnabled: callAdapterState.isLocalPreviewMicrophoneEnabled,
|
38231
38288
|
isTeamsCall: callAdapterState.isTeamsCall,
|
38289
|
+
isTeamsMeeting: callAdapterState.isTeamsMeeting,
|
38232
38290
|
latestCallErrors: callAdapterState.latestErrors,
|
38233
38291
|
latestChatErrors: {},
|
38234
38292
|
/* @conditional-compile-remove(attachment-upload) */
|
@@ -38258,7 +38316,7 @@ function mergeChatAdapterStateIntoCallWithChatAdapterState(existingCallWithChatA
|
|
38258
38316
|
* @private
|
38259
38317
|
*/
|
38260
38318
|
function mergeCallAdapterStateIntoCallWithChatAdapterState(existingCallWithChatAdapterState, callAdapterState) {
|
38261
|
-
return Object.assign(Object.assign({}, existingCallWithChatAdapterState), { userId: callAdapterState.userId, page: callAdapterState.page, displayName: callAdapterState.displayName, devices: callAdapterState.devices, call: callAdapterState.call, isLocalPreviewMicrophoneEnabled: callAdapterState.isLocalPreviewMicrophoneEnabled, isTeamsCall: callAdapterState.isTeamsCall, latestCallErrors: callAdapterState.latestErrors, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency, selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect });
|
38319
|
+
return Object.assign(Object.assign({}, existingCallWithChatAdapterState), { userId: callAdapterState.userId, page: callAdapterState.page, displayName: callAdapterState.displayName, devices: callAdapterState.devices, call: callAdapterState.call, isLocalPreviewMicrophoneEnabled: callAdapterState.isLocalPreviewMicrophoneEnabled, isTeamsCall: callAdapterState.isTeamsCall, isTeamsMeeting: callAdapterState.isTeamsMeeting, latestCallErrors: callAdapterState.latestErrors, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency, selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect });
|
38262
38320
|
}
|
38263
38321
|
|
38264
38322
|
// Copyright (c) Microsoft Corporation.
|
@@ -39875,4 +39933,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
39875
39933
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
39876
39934
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
39877
39935
|
exports.useTheme = useTheme;
|
39878
|
-
//# sourceMappingURL=index-
|
39936
|
+
//# sourceMappingURL=index-W6o1SuXO.js.map
|