@azure/communication-react 1.16.0-alpha-202404240013 → 1.16.0-alpha-202404252104
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/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-BBE_BEmy.js → ChatMessageComponentAsRichTextEditBox-CWvESa8u.js} +4 -4
- package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-CWvESa8u.js.map +1 -0
- package/dist/dist-cjs/communication-react/{index-DKwz_uvr.js → index-BTXDJhYg.js} +40 -9
- package/dist/dist-cjs/communication-react/{index-DKwz_uvr.js.map → index-BTXDJhYg.js.map} +1 -1
- 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/CallContext.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +18 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +4 -0
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +11 -2
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +2 -2
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js +3 -3
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js.map +1 -1
- package/package.json +1 -1
- package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BBE_BEmy.js.map +0 -1
@@ -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-BTXDJhYg.js');
|
8
8
|
var React = require('react');
|
9
9
|
require('reselect');
|
10
10
|
require('@azure/communication-calling');
|
@@ -73,7 +73,7 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
|
|
73
73
|
return (React.createElement(react.Stack, { horizontal: true },
|
74
74
|
React.createElement(index.InputBoxButton, { className: index.richTextActionButtonsStyle, ariaLabel: strings.editBoxCancelButton, tooltipContent: strings.editBoxCancelButton, onRenderIcon: onRenderThemedCancelIcon, onClick: () => {
|
75
75
|
onCancel && onCancel(message.messageId);
|
76
|
-
}, id: 'dismissIconWrapper' }),
|
76
|
+
}, id: 'dismissIconWrapper', "data-testId": strings.editBoxCancelButton }),
|
77
77
|
React.createElement(index.InputBoxButton, { className: index.richTextActionButtonsStyle, ariaLabel: strings.editBoxSubmitButton, tooltipContent: strings.editBoxSubmitButton, onRenderIcon: onRenderThemedSubmitIcon, onClick: (e) => {
|
78
78
|
submitEnabled &&
|
79
79
|
onSubmit(textValue, message.metadata,
|
@@ -81,7 +81,7 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
|
|
81
81
|
attachmentMetadata
|
82
82
|
});
|
83
83
|
e.stopPropagation();
|
84
|
-
}, id: 'submitIconWrapper' })));
|
84
|
+
}, id: 'submitIconWrapper', "data-testId": strings.editBoxSubmitButton })));
|
85
85
|
}, [
|
86
86
|
/* @conditional-compile-remove(attachment-upload) */ attachmentMetadata,
|
87
87
|
message.messageId,
|
@@ -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-CWvESa8u.js.map
|
package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-CWvESa8u.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ChatMessageComponentAsRichTextEditBox-CWvESa8u.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,CAAC;AAC/B,KAAC,CAAC;AAEF,IAAA,MAAM,kBAAkB,GACtB,YAAY,KAAK,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AAQ,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-202404252104';
|
180
180
|
|
181
181
|
|
182
182
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -1790,6 +1790,16 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
1790
1790
|
declarativeRemoteParticipants[toFlatCommunicationIdentifier(participant.identifier)] =
|
1791
1791
|
convertSdkParticipantToDeclarativeParticipant(participant);
|
1792
1792
|
});
|
1793
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
1794
|
+
let hideAttendeeNames = false;
|
1795
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
1796
|
+
if (call.feature(communicationCalling.Features.Capabilities).capabilities &&
|
1797
|
+
call.feature(communicationCalling.Features.Capabilities).capabilities.viewAttendeeNames) {
|
1798
|
+
const viewAttendeeNames = call.feature(communicationCalling.Features.Capabilities).capabilities.viewAttendeeNames;
|
1799
|
+
if (!viewAttendeeNames.isPresent && viewAttendeeNames.reason === 'MeetingRestricted') {
|
1800
|
+
hideAttendeeNames = true;
|
1801
|
+
}
|
1802
|
+
}
|
1793
1803
|
return {
|
1794
1804
|
id: call.id,
|
1795
1805
|
/* @conditional-compile-remove(teams-identity-support) */
|
@@ -1841,8 +1851,7 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
1841
1851
|
maxRemoteVideoStreams: call.feature(communicationCalling.Features.OptimalVideoCount).optimalVideoCount
|
1842
1852
|
},
|
1843
1853
|
/* @conditional-compile-remove(hide-attendee-name) */
|
1844
|
-
|
1845
|
-
hideAttendeeNames: false,
|
1854
|
+
hideAttendeeNames,
|
1846
1855
|
/* @conditional-compile-remove(meeting-id) */
|
1847
1856
|
info: _isACSCall(call) ? call.info : _isTeamsCall(call) ? call.info : undefined
|
1848
1857
|
};
|
@@ -2315,6 +2324,24 @@ let CallContext$2 = class CallContext {
|
|
2315
2324
|
}
|
2316
2325
|
});
|
2317
2326
|
}
|
2327
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
2328
|
+
setHideAttendeeNames(callId, capabilitiesChangeInfo) {
|
2329
|
+
this.modifyState((draft) => {
|
2330
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
2331
|
+
if (capabilitiesChangeInfo.oldValue.viewAttendeeNames !== capabilitiesChangeInfo.newValue.viewAttendeeNames) {
|
2332
|
+
const viewAttendeeNames = capabilitiesChangeInfo.newValue.viewAttendeeNames;
|
2333
|
+
if (call &&
|
2334
|
+
viewAttendeeNames &&
|
2335
|
+
!viewAttendeeNames.isPresent &&
|
2336
|
+
viewAttendeeNames.reason === 'MeetingRestricted') {
|
2337
|
+
call.hideAttendeeNames = true;
|
2338
|
+
}
|
2339
|
+
else {
|
2340
|
+
call.hideAttendeeNames = false;
|
2341
|
+
}
|
2342
|
+
}
|
2343
|
+
});
|
2344
|
+
}
|
2318
2345
|
/* @conditional-compile-remove(spotlight) */
|
2319
2346
|
setSpotlight(callId, spotlightedParticipants, maxParticipantsToSpotlight) {
|
2320
2347
|
this.modifyState((draft) => {
|
@@ -4044,6 +4071,10 @@ class CapabilitiesSubscriber {
|
|
4044
4071
|
};
|
4045
4072
|
this.capabilitiesChanged = (data) => {
|
4046
4073
|
this._context.setCapabilities(this._callIdRef.callId, this._capabilitiesFeature.capabilities, data);
|
4074
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
4075
|
+
if (data.oldValue.viewAttendeeNames !== data.newValue.viewAttendeeNames) {
|
4076
|
+
this._context.setHideAttendeeNames(this._callIdRef.callId, data);
|
4077
|
+
}
|
4047
4078
|
};
|
4048
4079
|
this._callIdRef = callIdRef;
|
4049
4080
|
this._context = context;
|
@@ -10366,11 +10397,11 @@ const TableEditOperationMap = {
|
|
10366
10397
|
};
|
10367
10398
|
const tableEditInsertMenuItem = {
|
10368
10399
|
key: 'menuNameTableInsert',
|
10369
|
-
unlocalizedText: '
|
10400
|
+
unlocalizedText: 'Insert',
|
10370
10401
|
subItems: {
|
10371
|
-
menuNameTableInsertAbove: 'Insert
|
10402
|
+
menuNameTableInsertAbove: 'Insert above',
|
10372
10403
|
menuNameTableInsertBelow: 'Insert below',
|
10373
|
-
menuNameTableInsertLeft: 'Insert
|
10404
|
+
menuNameTableInsertLeft: 'Insert left',
|
10374
10405
|
menuNameTableInsertRight: 'Insert right'
|
10375
10406
|
},
|
10376
10407
|
onClick,
|
@@ -12800,7 +12831,7 @@ class ErrorBoundary extends React.Component {
|
|
12800
12831
|
// Copyright (c) Microsoft Corporation.
|
12801
12832
|
// Licensed under the MIT License.
|
12802
12833
|
/* @conditional-compile-remove(rich-text-editor) */
|
12803
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
12834
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-CWvESa8u.js'); }));
|
12804
12835
|
/**
|
12805
12836
|
* @private
|
12806
12837
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -12808,7 +12839,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
12808
12839
|
*
|
12809
12840
|
* @conditional-compile-remove(rich-text-editor)
|
12810
12841
|
*/
|
12811
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
12842
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-CWvESa8u.js'); });
|
12812
12843
|
/**
|
12813
12844
|
* @private
|
12814
12845
|
*/
|
@@ -39597,4 +39628,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
39597
39628
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
39598
39629
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
39599
39630
|
exports.useTheme = useTheme;
|
39600
|
-
//# sourceMappingURL=index-
|
39631
|
+
//# sourceMappingURL=index-BTXDJhYg.js.map
|