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

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 (64) hide show
  1. package/dist/communication-react.d.ts +71 -0
  2. package/dist/dist-cjs/communication-react/index.js +270 -56
  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/RemoteVideoTile.js +3 -1
  46. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/VideoGallery.js +3 -1
  48. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  49. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +3 -0
  50. package/dist/dist-esm/react-components/src/components/VideoTile.js +34 -1
  51. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +12 -1
  53. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +32 -1
  54. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  55. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.d.ts +5 -0
  56. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +12 -0
  57. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/index.d.ts +1 -0
  59. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +21 -0
  61. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +13 -0
  63. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  64. 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.
@@ -6398,6 +6412,8 @@ export declare interface DialpadProps {
6398
6412
  /** boolean input to determine if dialpad is in mobile view, default false */
6399
6413
  isMobile?: boolean;
6400
6414
  styles?: DialpadStyles;
6415
+ /** Disables DTMF sounds when dialpad buttons are pressed. the actual tones are still sent to the call. */
6416
+ disableDtmfPlayback?: boolean;
6401
6417
  }
6402
6418
 
6403
6419
  /**
@@ -8882,6 +8898,39 @@ export declare interface RaiseHandCallFeature {
8882
8898
  localParticipantRaisedHand?: RaisedHandState;
8883
8899
  }
8884
8900
 
8901
+ /**
8902
+ * Reaction state with reaction type to render
8903
+ *
8904
+ * @beta
8905
+ */
8906
+ export declare type Reaction = {
8907
+ /**
8908
+ * Specifies the type of reaction videoTile should render i.e. like, heart etc.
8909
+ */
8910
+ reactionType: string;
8911
+ /**
8912
+ * Received timestamp for the message as default Date format.
8913
+ */
8914
+ receivedAt: Date;
8915
+ };
8916
+
8917
+ /**
8918
+ * State only version of {@link @azure/communication-calling#Call.ReactionMessage} with UI helper props receivedAt.
8919
+ * Reaction state with a timestamp which helps UI to decide to render the reaction accordingly.
8920
+ *
8921
+ * @beta
8922
+ */
8923
+ export declare type ReactionState = {
8924
+ /**
8925
+ * Reaction message from the meeting {@link @azure/communication-calling#Call.ReactionMessage}
8926
+ */
8927
+ reactionMessage: ReactionMessage;
8928
+ /**
8929
+ * Received timestamp of the reaction message in a meeting.
8930
+ */
8931
+ receivedAt: Date;
8932
+ };
8933
+
8885
8934
  /**
8886
8935
  * An array of key value pairs that stores each sender's display name and last read message
8887
8936
  *
@@ -8953,6 +9002,13 @@ export declare interface RemoteParticipantState {
8953
9002
  * Proxy of {@link @azure/communication-calling#Call.RaisedHand.raisedHands}.
8954
9003
  */
8955
9004
  raisedHand?: RaisedHandState;
9005
+ /**
9006
+ * Proxy of {@link @azure/communication-calling#Call.ReactionMessage} with
9007
+ * UI helper props receivedAt which indicates the timestamp when the message was received.
9008
+ *
9009
+ * @beta
9010
+ */
9011
+ reactionState?: ReactionState;
8956
9012
  }
8957
9013
 
8958
9014
  /**
@@ -9365,6 +9421,7 @@ export declare interface SpokenLanguageStrings {
9365
9421
  * - RecordingCallFeature 'isRecordingActiveChanged'
9366
9422
  * - RaiseHandCallFeature 'raisedHandEvent'
9367
9423
  * - RaiseHandCallFeature 'loweredHandEvent'
9424
+ * - ReactionCallFeature 'reaction'
9368
9425
  *
9369
9426
  * @public
9370
9427
  */
@@ -10400,6 +10457,12 @@ export declare type VideoGalleryLayout = 'default' | 'floatingLocalVideo' | /* @
10400
10457
  export declare interface VideoGalleryLocalParticipant extends VideoGalleryParticipant {
10401
10458
  /** Whether local participant is raised a hand */
10402
10459
  raisedHand?: RaisedHand;
10460
+ /**
10461
+ * Whether local participant has reacted
10462
+ *
10463
+ * @beta
10464
+ * */
10465
+ reaction?: Reaction;
10403
10466
  }
10404
10467
 
10405
10468
  /**
@@ -10538,6 +10601,12 @@ export declare interface VideoGalleryRemoteParticipant extends VideoGalleryParti
10538
10601
  state?: ParticipantState;
10539
10602
  /** Whether participant is raised a hand */
10540
10603
  raisedHand?: RaisedHand;
10604
+ /**
10605
+ * Whether participant has reacted
10606
+ *
10607
+ * @beta
10608
+ * */
10609
+ reaction?: Reaction;
10541
10610
  }
10542
10611
 
10543
10612
  /**
@@ -10775,6 +10844,8 @@ export declare interface VideoTileProps {
10775
10844
  isSpeaking?: boolean;
10776
10845
  /** Whether the participant is raised hand. Show a indicator (border) and icon with order */
10777
10846
  raisedHand?: RaisedHand;
10847
+ /** When the participant has reacted, animate the reaction. */
10848
+ reaction?: Reaction;
10778
10849
  /**
10779
10850
  * The call connection state of the participant.
10780
10851
  * For example, `Hold` means the participant is on hold.