@azure/communication-react 1.11.1-alpha-202401040013 → 1.11.1-alpha-202401070014

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.
Files changed (101) hide show
  1. package/dist/communication-react.d.ts +106 -1
  2. package/dist/dist-cjs/communication-react/index.js +420 -89
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +5 -0
  7. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +8 -0
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +22 -6
  10. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +9 -3
  12. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +27 -13
  13. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +3 -2
  15. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +24 -7
  16. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +15 -3
  19. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +31 -0
  21. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -0
  23. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +31 -0
  24. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
  26. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +7 -1
  27. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/Converter.js +2 -0
  29. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.d.ts +16 -0
  31. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js +24 -0
  32. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -0
  33. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +1 -0
  34. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  35. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  36. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  37. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  38. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +2 -0
  40. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +24 -4
  41. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +2 -0
  43. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +6 -2
  44. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  45. package/dist/dist-esm/react-components/src/components/MentionPopover.js +14 -13
  46. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/RTE/RTESendBox.d.ts +16 -0
  48. package/dist/dist-esm/react-components/src/components/RTE/RTESendBox.js +13 -0
  49. package/dist/dist-esm/react-components/src/components/RTE/RTESendBox.js.map +1 -0
  50. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +3 -1
  51. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +11 -0
  53. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/VideoGallery.js +3 -1
  55. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +3 -0
  57. package/dist/dist-esm/react-components/src/components/VideoTile.js +34 -1
  58. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  59. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
  60. package/dist/dist-esm/react-components/src/components/index.js +2 -0
  61. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +1 -1
  63. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +6 -5
  64. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  65. package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +5 -0
  66. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +32 -0
  67. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +1 -0
  68. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +12 -1
  69. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +32 -1
  70. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  71. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.d.ts +5 -0
  72. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +12 -0
  73. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  74. package/dist/dist-esm/react-components/src/index.d.ts +1 -0
  75. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +21 -0
  77. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  78. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +13 -0
  79. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +15 -5
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +9 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +1 -1
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +2 -2
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  87. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +24 -5
  88. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -1
  89. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -1
  90. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +12 -0
  91. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +6 -2
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  94. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +7 -1
  95. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +30 -2
  96. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  97. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +28 -0
  98. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  99. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  101. package/package.json +1 -1
@@ -87,6 +87,7 @@ import { PersonaSize } from '@fluentui/react';
87
87
  import { PhoneNumberIdentifier } from '@azure/communication-common';
88
88
  import { PropertyChangedEvent } from '@azure/communication-calling';
89
89
  import { default as React_2 } from 'react';
90
+ import { ReactionMessage } from '@azure/communication-calling';
90
91
  import type { RemoteParticipant } from '@azure/communication-calling';
91
92
  import { RemoteParticipantState as RemoteParticipantState_2 } from '@azure/communication-calling';
92
93
  import { RoomCallLocator } from '@azure/communication-calling';
@@ -2496,6 +2497,12 @@ export declare type CallParticipantListParticipant = ParticipantListParticipant
2496
2497
  isSpeaking?: boolean;
2497
2498
  /** Whether calling participant is raised hand */
2498
2499
  raisedHand?: RaisedHand;
2500
+ /**
2501
+ * Whether calling participant has reacted
2502
+ *
2503
+ * @beta
2504
+ * */
2505
+ reaction?: Reaction;
2499
2506
  };
2500
2507
 
2501
2508
  /**
@@ -2619,6 +2626,13 @@ export declare interface CallState {
2619
2626
  * Proxy of {@link @azure/communication-calling#RaiseHandCallFeature}.
2620
2627
  */
2621
2628
  raiseHand: RaiseHandCallFeature;
2629
+ /**
2630
+ * Proxy of {@link @azure/communication-calling#Call.ReactionMessage} with
2631
+ * UI helper props receivedAt which indicates the timestamp when the message was received.
2632
+ *
2633
+ * @beta
2634
+ */
2635
+ localParticipantReaction?: ReactionState;
2622
2636
  /**
2623
2637
  * Stores the currently active screenshare participant's key. If there is no screenshare active, then this will be
2624
2638
  * undefined. You can use this key to access the remoteParticipant data in {@link CallState.remoteParticipants} object.
@@ -3121,12 +3135,16 @@ export declare interface CallWithChatAdapterSubscriptions {
3121
3135
  off(event: 'isSpokenLanguageChanged', listener: IsSpokenLanguageChangedListener): void;
3122
3136
  off(event: 'capabilitiesChanged', listener: CapabilitiesChangedListener): void;
3123
3137
  on(event: 'messageReceived', listener: MessageReceivedListener): void;
3138
+ on(event: 'messageEdited', listener: MessageEditedListener): void;
3139
+ on(event: 'messageDeleted', listener: MessageDeletedListener): void;
3124
3140
  on(event: 'messageSent', listener: MessageSentListener): void;
3125
3141
  on(event: 'messageRead', listener: MessageReadListener): void;
3126
3142
  on(event: 'chatParticipantsAdded', listener: ParticipantsAddedListener): void;
3127
3143
  on(event: 'chatParticipantsRemoved', listener: ParticipantsRemovedListener): void;
3128
3144
  on(event: 'chatError', listener: (e: AdapterError) => void): void;
3129
3145
  off(event: 'messageReceived', listener: MessageReceivedListener): void;
3146
+ off(event: 'messageEdited', listener: MessageEditedListener): void;
3147
+ off(event: 'messageDeleted', listener: MessageDeletedListener): void;
3130
3148
  off(event: 'messageSent', listener: MessageSentListener): void;
3131
3149
  off(event: 'messageRead', listener: MessageReadListener): void;
3132
3150
  off(event: 'chatParticipantsAdded', listener: ParticipantsAddedListener): void;
@@ -3666,7 +3684,7 @@ export declare interface CallWithChatControlOptions extends CommonCallControlOpt
3666
3684
  *
3667
3685
  * @public
3668
3686
  */
3669
- export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | /* @conditional-compile-remove(close-captions) */ 'isCaptionsActiveChanged' | /* @conditional-compile-remove(close-captions) */ 'captionsReceived' | /* @conditional-compile-remove(close-captions) */ 'isCaptionLanguageChanged' | /* @conditional-compile-remove(close-captions) */ 'isSpokenLanguageChanged' | /* @conditional-compile-remove(capabilities) */ 'capabilitiesChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
3687
+ export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | /* @conditional-compile-remove(close-captions) */ 'isCaptionsActiveChanged' | /* @conditional-compile-remove(close-captions) */ 'captionsReceived' | /* @conditional-compile-remove(close-captions) */ 'isCaptionLanguageChanged' | /* @conditional-compile-remove(close-captions) */ 'isSpokenLanguageChanged' | /* @conditional-compile-remove(capabilities) */ 'capabilitiesChanged' | 'messageReceived' | 'messageEdited' | 'messageDeleted' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
3670
3688
 
3671
3689
  /**
3672
3690
  * @beta
@@ -4102,6 +4120,14 @@ export declare interface ChatAdapterSubscribers {
4102
4120
  * Subscribe function for 'messageReceived' event.
4103
4121
  */
4104
4122
  on(event: 'messageReceived', listener: MessageReceivedListener): void;
4123
+ /**
4124
+ * Subscribe function for 'messageEdited' event.
4125
+ */
4126
+ on(event: 'messageEdited', listener: MessageEditedListener): void;
4127
+ /**
4128
+ * Subscribe function for 'messageDeleted' event.
4129
+ */
4130
+ on(event: 'messageDeleted', listener: MessageDeletedListener): void;
4105
4131
  /**
4106
4132
  * Subscribe function for 'messageSent' event.
4107
4133
  */
@@ -4130,6 +4156,14 @@ export declare interface ChatAdapterSubscribers {
4130
4156
  * Unsubscribe function for 'messageReceived' event.
4131
4157
  */
4132
4158
  off(event: 'messageReceived', listener: MessageReceivedListener): void;
4159
+ /**
4160
+ * Unsubscribe function for 'messageEdited' event.
4161
+ */
4162
+ off(event: 'messageEdited', listener: MessageEditedListener): void;
4163
+ /**
4164
+ * Unsubscribe function for 'messageDeleted' event.
4165
+ */
4166
+ off(event: 'messageDeleted', listener: MessageDeletedListener): void;
4133
4167
  /**
4134
4168
  * Unsubscribe function for 'messageSent' event.
4135
4169
  */
@@ -6398,6 +6432,8 @@ export declare interface DialpadProps {
6398
6432
  /** boolean input to determine if dialpad is in mobile view, default false */
6399
6433
  isMobile?: boolean;
6400
6434
  styles?: DialpadStyles;
6435
+ /** Disables DTMF sounds when dialpad buttons are pressed. the actual tones are still sent to the call. */
6436
+ disableDtmfPlayback?: boolean;
6401
6437
  }
6402
6438
 
6403
6439
  /**
@@ -7622,6 +7658,20 @@ export declare interface MessageCommon {
7622
7658
  */
7623
7659
  export declare type MessageContentType = 'text' | 'html' | 'richtext/html' | 'unknown';
7624
7660
 
7661
+ /**
7662
+ * Callback for {@link ChatAdapterSubscribers} 'messageDeleted' event.
7663
+ *
7664
+ * @public
7665
+ */
7666
+ export declare type MessageDeletedListener = MessageReceivedListener;
7667
+
7668
+ /**
7669
+ * Callback for {@link ChatAdapterSubscribers} 'messageEdited' event.
7670
+ *
7671
+ * @public
7672
+ */
7673
+ export declare type MessageEditedListener = MessageReceivedListener;
7674
+
7625
7675
  /**
7626
7676
  * Props to render a single message.
7627
7677
  *
@@ -8882,6 +8932,39 @@ export declare interface RaiseHandCallFeature {
8882
8932
  localParticipantRaisedHand?: RaisedHandState;
8883
8933
  }
8884
8934
 
8935
+ /**
8936
+ * Reaction state with reaction type to render
8937
+ *
8938
+ * @beta
8939
+ */
8940
+ export declare type Reaction = {
8941
+ /**
8942
+ * Specifies the type of reaction videoTile should render i.e. like, heart etc.
8943
+ */
8944
+ reactionType: string;
8945
+ /**
8946
+ * Received timestamp for the message as default Date format.
8947
+ */
8948
+ receivedAt: Date;
8949
+ };
8950
+
8951
+ /**
8952
+ * State only version of {@link @azure/communication-calling#Call.ReactionMessage} with UI helper props receivedAt.
8953
+ * Reaction state with a timestamp which helps UI to decide to render the reaction accordingly.
8954
+ *
8955
+ * @beta
8956
+ */
8957
+ export declare type ReactionState = {
8958
+ /**
8959
+ * Reaction message from the meeting {@link @azure/communication-calling#Call.ReactionMessage}
8960
+ */
8961
+ reactionMessage: ReactionMessage;
8962
+ /**
8963
+ * Received timestamp of the reaction message in a meeting.
8964
+ */
8965
+ receivedAt: Date;
8966
+ };
8967
+
8885
8968
  /**
8886
8969
  * An array of key value pairs that stores each sender's display name and last read message
8887
8970
  *
@@ -8953,6 +9036,13 @@ export declare interface RemoteParticipantState {
8953
9036
  * Proxy of {@link @azure/communication-calling#Call.RaisedHand.raisedHands}.
8954
9037
  */
8955
9038
  raisedHand?: RaisedHandState;
9039
+ /**
9040
+ * Proxy of {@link @azure/communication-calling#Call.ReactionMessage} with
9041
+ * UI helper props receivedAt which indicates the timestamp when the message was received.
9042
+ *
9043
+ * @beta
9044
+ */
9045
+ reactionState?: ReactionState;
8956
9046
  }
8957
9047
 
8958
9048
  /**
@@ -9365,6 +9455,7 @@ export declare interface SpokenLanguageStrings {
9365
9455
  * - RecordingCallFeature 'isRecordingActiveChanged'
9366
9456
  * - RaiseHandCallFeature 'raisedHandEvent'
9367
9457
  * - RaiseHandCallFeature 'loweredHandEvent'
9458
+ * - ReactionCallFeature 'reaction'
9368
9459
  *
9369
9460
  * @public
9370
9461
  */
@@ -10400,6 +10491,12 @@ export declare type VideoGalleryLayout = 'default' | 'floatingLocalVideo' | /* @
10400
10491
  export declare interface VideoGalleryLocalParticipant extends VideoGalleryParticipant {
10401
10492
  /** Whether local participant is raised a hand */
10402
10493
  raisedHand?: RaisedHand;
10494
+ /**
10495
+ * Whether local participant has reacted
10496
+ *
10497
+ * @beta
10498
+ * */
10499
+ reaction?: Reaction;
10403
10500
  }
10404
10501
 
10405
10502
  /**
@@ -10538,6 +10635,12 @@ export declare interface VideoGalleryRemoteParticipant extends VideoGalleryParti
10538
10635
  state?: ParticipantState;
10539
10636
  /** Whether participant is raised a hand */
10540
10637
  raisedHand?: RaisedHand;
10638
+ /**
10639
+ * Whether participant has reacted
10640
+ *
10641
+ * @beta
10642
+ * */
10643
+ reaction?: Reaction;
10541
10644
  }
10542
10645
 
10543
10646
  /**
@@ -10775,6 +10878,8 @@ export declare interface VideoTileProps {
10775
10878
  isSpeaking?: boolean;
10776
10879
  /** Whether the participant is raised hand. Show a indicator (border) and icon with order */
10777
10880
  raisedHand?: RaisedHand;
10881
+ /** When the participant has reacted, animate the reaction. */
10882
+ reaction?: Reaction;
10778
10883
  /**
10779
10884
  * The call connection state of the participant.
10780
10885
  * For example, `Hold` means the participant is on hold.