@azure/communication-react 1.5.1-alpha-202303290014 → 1.5.1-alpha-202303310013
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 +57 -4
- package/dist/dist-cjs/communication-react/index.js +764 -402
- package/dist/dist-cjs/communication-react/index.js.map +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/chat-component-bindings/src/messageThreadSelector.js +29 -2
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/utils/constants.d.ts +4 -0
- package/dist/dist-esm/chat-component-bindings/src/utils/constants.js +4 -0
- package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +32 -26
- package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +6 -1
- package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +1 -0
- package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +11 -13
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +34 -20
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +11 -2
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +47 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +10 -3
- package/dist/dist-esm/react-components/src/components/MessageThread.js +57 -36
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +5 -0
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +28 -0
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +6 -4
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +1 -1
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
- package/dist/dist-esm/react-components/src/index.d.ts +1 -0
- package/dist/dist-esm/react-components/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +3 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +8 -0
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +20 -1
- package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +20 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +9 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +19 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +20 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +61 -3
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +7 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +5 -0
- package/package.json +8 -8
@@ -393,6 +393,26 @@ export declare interface BaseCustomStyles {
|
|
393
393
|
root?: IStyle;
|
394
394
|
}
|
395
395
|
|
396
|
+
/**
|
397
|
+
* Content blocked message type.
|
398
|
+
*
|
399
|
+
* Content blocked messages will rendered default value, but applications can provide custom strings and icon to renderers.
|
400
|
+
*
|
401
|
+
* @beta
|
402
|
+
*/
|
403
|
+
export declare interface BlockedMessage extends MessageCommon {
|
404
|
+
messageType: 'blocked';
|
405
|
+
warningText?: string | false;
|
406
|
+
linkText?: string;
|
407
|
+
link?: string;
|
408
|
+
deletedOn?: Date;
|
409
|
+
senderId?: string;
|
410
|
+
senderDisplayName?: string;
|
411
|
+
status?: MessageStatus;
|
412
|
+
attached?: MessageAttachedStatus;
|
413
|
+
mine?: boolean;
|
414
|
+
}
|
415
|
+
|
396
416
|
/**
|
397
417
|
* @beta
|
398
418
|
* Props for BrowserPermissionDeniedIOS component.
|
@@ -1199,6 +1219,8 @@ export declare type CallCompositeIcons = {
|
|
1199
1219
|
PeoplePaneOpenDialpad?: JSX.Element;
|
1200
1220
|
DialpadStartCall?: JSX.Element;
|
1201
1221
|
NoticePageInvalidRoom?: JSX.Element;
|
1222
|
+
BlurVideoBackground?: JSX.Element;
|
1223
|
+
RemoveVideoBackgroundEffect?: JSX.Element;
|
1202
1224
|
};
|
1203
1225
|
|
1204
1226
|
/**
|
@@ -1598,6 +1620,26 @@ export declare interface CallCompositeStrings {
|
|
1598
1620
|
* More details text of the page shown to the user when the user attempts to join a room that cannot be found.
|
1599
1621
|
*/
|
1600
1622
|
roomNotFoundDetails?: string;
|
1623
|
+
/**
|
1624
|
+
* Label for the button to open effects and title of the effects
|
1625
|
+
*/
|
1626
|
+
effects?: string;
|
1627
|
+
/**
|
1628
|
+
* Label for the blur video background effect item
|
1629
|
+
*/
|
1630
|
+
blurBackgroundEffectButtonLabel?: string;
|
1631
|
+
/**
|
1632
|
+
* Tooltip text for the blur video background effect item
|
1633
|
+
*/
|
1634
|
+
blurBackgroundTooltip?: string;
|
1635
|
+
/**
|
1636
|
+
* Label for the remove video background effect item
|
1637
|
+
*/
|
1638
|
+
removeBackgroundEffectButtonLabel?: string;
|
1639
|
+
/**
|
1640
|
+
* Tooltip text for the blur video background effect item
|
1641
|
+
*/
|
1642
|
+
removeBackgroundTooltip?: string;
|
1601
1643
|
/**
|
1602
1644
|
* Title text of the page shown to the user when the user attempts to join a room to which they are not invited.
|
1603
1645
|
*/
|
@@ -3491,6 +3533,7 @@ export declare interface ChatMessage extends MessageCommon {
|
|
3491
3533
|
export declare type ChatMessageWithStatus = ChatMessage_2 & {
|
3492
3534
|
clientMessageId?: string;
|
3493
3535
|
status: MessageStatus;
|
3536
|
+
policyViolation?: boolean;
|
3494
3537
|
};
|
3495
3538
|
|
3496
3539
|
/**
|
@@ -4615,6 +4658,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4615
4658
|
ControlButtonScreenShareStop: JSX.Element;
|
4616
4659
|
CancelFileUpload: JSX.Element;
|
4617
4660
|
DownloadFile: JSX.Element;
|
4661
|
+
DataLossPreventionProhibited: JSX.Element;
|
4618
4662
|
EditBoxCancel: JSX.Element;
|
4619
4663
|
EditBoxSubmit: JSX.Element;
|
4620
4664
|
ErrorBarCallCameraAccessDenied: JSX.Element;
|
@@ -4741,6 +4785,8 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4741
4785
|
PeoplePaneOpenDialpad?: JSX.Element | undefined;
|
4742
4786
|
DialpadStartCall?: JSX.Element | undefined;
|
4743
4787
|
NoticePageInvalidRoom?: JSX.Element | undefined;
|
4788
|
+
BlurVideoBackground?: JSX.Element | undefined;
|
4789
|
+
RemoveVideoBackgroundEffect?: JSX.Element | undefined;
|
4744
4790
|
ChevronLeft?: JSX.Element | undefined;
|
4745
4791
|
ControlBarChatButtonActive?: JSX.Element | undefined;
|
4746
4792
|
ControlBarChatButtonInactive?: JSX.Element | undefined;
|
@@ -4755,6 +4801,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4755
4801
|
ControlButtonParticipantsContextualMenuItem: JSX.Element;
|
4756
4802
|
CancelFileUpload: JSX.Element;
|
4757
4803
|
DownloadFile: JSX.Element;
|
4804
|
+
DataLossPreventionProhibited: JSX.Element;
|
4758
4805
|
ErrorBarCallVideoRecoveredBySystem: JSX.Element;
|
4759
4806
|
ErrorBarCallVideoStoppedBySystem: JSX.Element;
|
4760
4807
|
MessageResend: JSX.Element;
|
@@ -5998,7 +6045,7 @@ export declare interface MediaDiagnosticsState {
|
|
5998
6045
|
*
|
5999
6046
|
* @public
|
6000
6047
|
*/
|
6001
|
-
export declare type Message = ChatMessage | SystemMessage | CustomMessage;
|
6048
|
+
export declare type Message = ChatMessage | SystemMessage | CustomMessage | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage;
|
6002
6049
|
|
6003
6050
|
/**
|
6004
6051
|
* Indicate whether a chat message should be displayed merged with the message before / after it.
|
@@ -6035,7 +6082,7 @@ export declare type MessageContentType = 'text' | 'html' | 'richtext/html' | 'un
|
|
6035
6082
|
*/
|
6036
6083
|
export declare type MessageProps = {
|
6037
6084
|
/**
|
6038
|
-
* Message to render. It can type `ChatMessage` or `SystemMessage` or `CustomMessage`.
|
6085
|
+
* Message to render. It can type `ChatMessage` or `SystemMessage`, `BlockedMessage` or `CustomMessage`.
|
6039
6086
|
*/
|
6040
6087
|
message: Message;
|
6041
6088
|
/**
|
@@ -6210,9 +6257,9 @@ export declare type MessageThreadProps = {
|
|
6210
6257
|
*/
|
6211
6258
|
userId: string;
|
6212
6259
|
/**
|
6213
|
-
* Messages to render in message thread. A message can be of type `ChatMessage`, `SystemMessage` or `CustomMessage`.
|
6260
|
+
* Messages to render in message thread. A message can be of type `ChatMessage`, `SystemMessage`, `BlockedMessage` or `CustomMessage`.
|
6214
6261
|
*/
|
6215
|
-
messages: (ChatMessage | SystemMessage | CustomMessage)[];
|
6262
|
+
messages: (ChatMessage | SystemMessage | CustomMessage | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage)[];
|
6216
6263
|
/**
|
6217
6264
|
* number of participants in the thread
|
6218
6265
|
*/
|
@@ -6419,6 +6466,10 @@ export declare interface MessageThreadStrings {
|
|
6419
6466
|
actionMenuMoreOptions?: string;
|
6420
6467
|
/** String for download file button in file card */
|
6421
6468
|
downloadFile: string;
|
6469
|
+
/** String for policy violation message removal */
|
6470
|
+
blockedWarningText: string;
|
6471
|
+
/** String for policy violation message removal details link */
|
6472
|
+
blockedWarningLinkText: string;
|
6422
6473
|
}
|
6423
6474
|
|
6424
6475
|
/**
|
@@ -6445,6 +6496,8 @@ export declare interface MessageThreadStyles extends BaseCustomStyles {
|
|
6445
6496
|
chatMessageContainer?: ComponentSlotStyle;
|
6446
6497
|
/** Styles for system message container. */
|
6447
6498
|
systemMessageContainer?: ComponentSlotStyle;
|
6499
|
+
/** Styles for blocked message container. */
|
6500
|
+
blockedMessageContainer?: ComponentSlotStyle;
|
6448
6501
|
/** Styles for message status indicator container. */
|
6449
6502
|
messageStatusContainer?: (mine: boolean) => IStyle;
|
6450
6503
|
}
|