@azure/communication-react 1.7.0-alpha-202307250014 → 1.7.0-alpha-202307261914

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 (41) hide show
  1. package/dist/communication-react.d.ts +78 -34
  2. package/dist/dist-cjs/communication-react/index.js +95 -58
  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/participantListSelector.d.ts +1 -0
  7. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +7 -2
  8. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  9. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  10. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +15 -0
  12. package/dist/dist-esm/react-components/src/components/ParticipantList.js +25 -8
  13. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -0
  15. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
  17. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +2 -2
  19. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +3 -0
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -6
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +30 -30
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +51 -27
  24. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  25. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  27. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  28. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  29. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -6
  30. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +7 -7
  31. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +8 -7
  33. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -5
  35. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +7 -5
  36. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +14 -1
  38. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  39. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +2 -2
  40. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +1 -1
  41. package/package.json +8 -8
@@ -616,23 +616,23 @@ export declare interface BrowserPermissionDeniedStyles extends BaseCustomStyles
616
616
  export declare interface CallAdapter extends CommonCallAdapter {
617
617
  /**
618
618
  * Join the call with microphone initially on/off.
619
- *
619
+ * @deprecated Use joinCall(options?:JoinCallOptions) instead.
620
620
  * @param microphoneOn - Whether microphone is initially enabled
621
621
  *
622
622
  * @public
623
623
  */
624
624
  joinCall(microphoneOn?: boolean): Call | undefined;
625
625
  /**
626
- * Join the call with options bag to set microphone/camera initially on/off.
626
+ * Join the call with options bag to set microphone/camera initial state when joining call
627
+ * true = turn on the device when joining call
628
+ * false = turn off the device when joining call
629
+ * 'keep'/undefined = retain devices' precall state
627
630
  *
628
- * @param options - param to set microphone/camera initially on/off.
631
+ * @param options - param to set microphone/camera initially on/off/use precall state.
629
632
  *
630
633
  * @public
631
634
  */
632
- joinCallWithOptions(options?: {
633
- microphoneOn?: boolean;
634
- cameraOn?: boolean;
635
- }): Call | undefined;
635
+ joinCall(options?: JoinCallOptions): Call | undefined;
636
636
  /**
637
637
  * Start the call.
638
638
  *
@@ -666,23 +666,23 @@ export declare type CallAdapterCallEndedEvent = {
666
666
  export declare interface CallAdapterCallManagement extends CallAdapterCallOperations {
667
667
  /**
668
668
  * Join the call with microphone initially on/off.
669
- *
669
+ * @deprecated Use joinCall(options?:JoinCallOptions) instead.
670
670
  * @param microphoneOn - Whether microphone is initially enabled
671
671
  *
672
672
  * @public
673
673
  */
674
674
  joinCall(microphoneOn?: boolean): Call | undefined;
675
675
  /**
676
- * Join the call with options bag to set microphone/camera initially on/off.
676
+ * Join the call with options bag to set microphone/camera initial state when joining call
677
+ * true = turn on the device when joining call
678
+ * false = turn off the device when joining call
679
+ * 'keep'/undefined = retain devices' precall state
677
680
  *
678
- * @param options - param to set microphone/camera initially on/off.
681
+ * @param options - param to set microphone/camera initially on/off/use precall state.
679
682
  *
680
683
  * @public
681
684
  */
682
- joinCallWithOptions(options?: {
683
- microphoneOn?: boolean;
684
- cameraOn?: boolean;
685
- }): Call | undefined;
685
+ joinCall(options?: JoinCallOptions): Call | undefined;
686
686
  /**
687
687
  * Start the call.
688
688
  *
@@ -2367,23 +2367,23 @@ export declare interface CallWithChatAdapterManagement {
2367
2367
  removeParticipant(participant: CommunicationIdentifier): Promise<void>;
2368
2368
  /**
2369
2369
  * Join the call with microphone initially on/off.
2370
- *
2370
+ * @deprecated Use joinCall(options?:JoinCallOptions) instead.
2371
2371
  * @param microphoneOn - Whether microphone is initially enabled
2372
2372
  *
2373
2373
  * @public
2374
2374
  */
2375
2375
  joinCall(microphoneOn?: boolean): Call | undefined;
2376
2376
  /**
2377
- * Join the call with options bag to set microphone/camera initially on/off.
2377
+ * Join the call with options bag to set microphone/camera initial state when joining call
2378
+ * true = turn on the device when joining call
2379
+ * false = turn off the device when joining call
2380
+ * 'keep'/undefined = retain devices' precall state
2378
2381
  *
2379
- * @param options - param to set microphone/camera initially on/off.
2382
+ * @param options - param to set microphone/camera initially on/off/use precall state.
2380
2383
  *
2381
2384
  * @public
2382
2385
  */
2383
- joinCallWithOptions(options?: {
2384
- microphoneOn?: boolean;
2385
- cameraOn?: boolean;
2386
- }): Call | undefined;
2386
+ joinCall(options?: JoinCallOptions): Call | undefined;
2387
2387
  /**
2388
2388
  * Leave the call.
2389
2389
  *
@@ -4119,23 +4119,23 @@ export declare type Common<A, B> = Pick<A, CommonProperties<A, B>>;
4119
4119
  export declare interface CommonCallAdapter extends AdapterState<CallAdapterState>, Disposable, CallAdapterCallOperations, CallAdapterDeviceManagement, CallAdapterSubscribers {
4120
4120
  /**
4121
4121
  * Join the call with microphone initially on/off.
4122
- *
4122
+ * @deprecated Use joinCall(options?:JoinCallOptions) instead.
4123
4123
  * @param microphoneOn - Whether microphone is initially enabled
4124
4124
  *
4125
4125
  * @public
4126
4126
  */
4127
4127
  joinCall(microphoneOn?: boolean): void;
4128
4128
  /**
4129
- * Join the call with options bag to set microphone/camera initially on/off.
4129
+ * Join the call with options bag to set microphone/camera initial state when joining call
4130
+ * true = turn on the device when joining call
4131
+ * false = turn off the device when joining call
4132
+ * 'keep'/undefined = retain devices' precall state
4130
4133
  *
4131
- * @param options - param to set microphone/camera initially on/off.
4134
+ * @param options - param to set microphone/camera initially on/off/use precall state.
4132
4135
  *
4133
4136
  * @public
4134
4137
  */
4135
- joinCallWithOptions(options?: {
4136
- microphoneOn?: boolean;
4137
- cameraOn?: boolean;
4138
- }): void;
4138
+ joinCall(options?: JoinCallOptions): void;
4139
4139
  /**
4140
4140
  * Start the call.
4141
4141
  *
@@ -4612,6 +4612,8 @@ export declare interface ComponentStrings {
4612
4612
  * Strings for the VerticalGallery.
4613
4613
  */
4614
4614
  VerticalGallery: VerticalGalleryStrings;
4615
+ /** Strings for the participant list component */
4616
+ ParticipantList: ParticipantListStrings;
4615
4617
  }
4616
4618
 
4617
4619
  /**
@@ -6632,6 +6634,31 @@ export declare type IsSpeakingChangedListener = (event: {
6632
6634
  isSpeaking: boolean;
6633
6635
  }) => void;
6634
6636
 
6637
+ /**
6638
+ * Options for setting microphone and camera state when joining a call
6639
+ * true = turn on the device when joining call
6640
+ * false = turn off the device when joining call
6641
+ * 'keep'/undefined = retain devices' precall state
6642
+ *
6643
+ * @public
6644
+ */
6645
+ export declare interface JoinCallOptions {
6646
+ /**
6647
+ * microphone state when joining call
6648
+ * true: turn on
6649
+ * false: turn off
6650
+ * 'keep': maintain precall state
6651
+ */
6652
+ microphoneOn?: boolean | 'keep';
6653
+ /**
6654
+ * camera state when joining call
6655
+ * true: turn on
6656
+ * false: turn off
6657
+ * 'keep': maintain precall state
6658
+ */
6659
+ cameraOn?: boolean | 'keep';
6660
+ }
6661
+
6635
6662
  /**
6636
6663
  * Arguments for {@link MessageThreadProps.onRenderJumpToNewMessageButton}.
6637
6664
  *
@@ -7774,6 +7801,10 @@ export declare type ParticipantListProps = {
7774
7801
  styles?: ParticipantListStyles;
7775
7802
  /** Optional value to determine if the tooltip should be shown for participants or not */
7776
7803
  showParticipantOverflowTooltip?: boolean;
7804
+ /** Total number of people in the call. This number can be larger than the remote participant count. */
7805
+ totalParticipantCount?: number;
7806
+ /** Strings for the participant list */
7807
+ strings?: ParticipantListStrings;
7777
7808
  /** Optional aria-lablledby prop that prefixes each ParticipantItem aria-label */
7778
7809
  participantAriaLabelledBy?: string;
7779
7810
  };
@@ -7786,8 +7817,21 @@ export declare type ParticipantListProps = {
7786
7817
  export declare type ParticipantListSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {
7787
7818
  participants: CallParticipantListParticipant[];
7788
7819
  myUserId: string;
7820
+ totalParticipantCount?: number;
7789
7821
  };
7790
7822
 
7823
+ /**
7824
+ * Strings for the {@link ParticipantList}.
7825
+ *
7826
+ * @beta
7827
+ */
7828
+ export declare interface ParticipantListStrings {
7829
+ /**
7830
+ * String for rendering the count of participants not contained in the displayed participant list
7831
+ */
7832
+ overflowParticipantCount?: string;
7833
+ }
7834
+
7791
7835
  /**
7792
7836
  * Styles for the {@link ParticipantList}.
7793
7837
  *
@@ -8706,23 +8750,23 @@ export declare type TeamsAdapterOptions = CommonCallAdapterOptions;
8706
8750
  export declare interface TeamsCallAdapter extends CommonCallAdapter {
8707
8751
  /**
8708
8752
  * Join the call with microphone initially on/off.
8709
- *
8753
+ * @deprecated Use joinCall(options?:JoinCallOptions) instead.
8710
8754
  * @param microphoneOn - Whether microphone is initially enabled
8711
8755
  *
8712
8756
  * @beta
8713
8757
  */
8714
8758
  joinCall(microphoneOn?: boolean): TeamsCall | undefined;
8715
8759
  /**
8716
- * Join the call with options bag to set microphone/camera initially on/off.
8760
+ * Join the call with options bag to set microphone/camera initial state when joining call
8761
+ * true = turn on the device when joining call
8762
+ * false = turn off the device when joining call
8763
+ * 'keep'/undefined = retain devices' precall state
8717
8764
  *
8718
8765
  * @param options - param to set microphone/camera initially on/off.
8719
8766
  *
8720
8767
  * @public
8721
8768
  */
8722
- joinCallWithOptions(options?: {
8723
- microphoneOn?: boolean;
8724
- cameraOn?: boolean;
8725
- }): TeamsCall | undefined;
8769
+ joinCall(options?: JoinCallOptions): TeamsCall | undefined;
8726
8770
  /**
8727
8771
  * Start the call.
8728
8772
  *