@azure/communication-react 1.5.1-alpha-202306140013 → 1.5.1-alpha-202306160013

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 (70) hide show
  1. package/dist/communication-react.d.ts +68 -7
  2. package/dist/dist-cjs/communication-react/index.js +155 -48
  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/errorBarSelector.js +1 -1
  7. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +5 -0
  9. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +36 -0
  10. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  11. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +1 -1
  12. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +0 -4
  14. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  15. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +1 -1
  16. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  17. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +1 -1
  18. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  19. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +3 -3
  20. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +9 -1
  22. package/dist/dist-esm/react-components/src/components/VideoGallery.js +4 -4
  23. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/utils.js +1 -1
  25. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +2 -3
  27. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +2 -3
  28. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +2 -3
  29. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -3
  30. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +2 -3
  31. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +2 -3
  32. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +2 -3
  33. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +2 -3
  34. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +2 -3
  35. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +2 -3
  36. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +2 -3
  37. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +2 -3
  38. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +2 -3
  39. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +2 -3
  40. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +2 -3
  41. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +2 -3
  42. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +2 -3
  43. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +2 -3
  44. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +2 -3
  45. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +2 -3
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +0 -3
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -0
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +44 -7
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +28 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +7 -8
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.d.ts +4 -0
  60. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +4 -0
  61. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  62. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +6 -0
  63. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +19 -0
  64. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +25 -0
  66. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  67. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +3 -0
  68. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +9 -0
  69. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  70. package/package.json +8 -8
@@ -733,12 +733,39 @@ export declare interface CallAdapterCallOperations {
733
733
  * @remarks
734
734
  * This method is implemented for composite
735
735
  *
736
+ * @deprecated Use {@link disposeRemoteVideoStreamView}, {@link disposeLocalVideoStreamView} and {@link disposeRemoteVideoStreamView} instead.
737
+ *
736
738
  * @param remoteUserId - Id of the participant to render, leave it undefined to dispose the local camera view
737
739
  * @param options - Options to control how video streams are rendered {@link @azure/communication-calling#VideoStreamOptions }
738
740
  *
739
741
  * @public
740
742
  */
741
743
  disposeStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void>;
744
+ /**
745
+ * Dispose the html view for a screen share stream
746
+ *
747
+ * @remarks
748
+ * this method is implemented for composite
749
+ *
750
+ * @param remoteUserId - Id of the participant to dispose the screen share stream view for.
751
+ *
752
+ * @public
753
+ */
754
+ disposeScreenShareStreamView(remoteUserId: string): Promise<void>;
755
+ /**
756
+ * Dispose the html view for a remote video stream
757
+ *
758
+ * @param remoteUserId - Id of the participant to dispose
759
+ *
760
+ * @public
761
+ */
762
+ disposeRemoteVideoStreamView(remoteUserId: string): Promise<void>;
763
+ /**
764
+ * Dispose the html view for a local video stream
765
+ *
766
+ * @public
767
+ */
768
+ disposeLocalVideoStreamView(): Promise<void>;
742
769
  /**
743
770
  * Holds the call.
744
771
  *
@@ -2338,6 +2365,31 @@ export declare interface CallWithChatAdapterManagement {
2338
2365
  * @public
2339
2366
  */
2340
2367
  disposeStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void>;
2368
+ /**
2369
+ * Dispose the html view for a screen share stream
2370
+ *
2371
+ * @remarks
2372
+ * this method is implemented for composite
2373
+ *
2374
+ * @param remoteUserId - Id of the participant to dispose the screen share stream view for.
2375
+ *
2376
+ * @public
2377
+ */
2378
+ disposeScreenShareStreamView(remoteUserId: string): Promise<void>;
2379
+ /**
2380
+ * Dispose the html view for a remote video stream
2381
+ *
2382
+ * @param remoteUserId - Id of the participant to dispose
2383
+ *
2384
+ * @public
2385
+ */
2386
+ disposeRemoteVideoStreamView(remoteUserId: string): Promise<void>;
2387
+ /**
2388
+ * Dispose the html view for a local video stream
2389
+ *
2390
+ * @public
2391
+ */
2392
+ disposeLocalVideoStreamView(): Promise<void>;
2341
2393
  /**
2342
2394
  * Ask for permissions of devices.
2343
2395
  *
@@ -4091,8 +4143,13 @@ export declare interface CommonCallingHandlers {
4091
4143
  onAddParticipant(participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions): Promise<void>;
4092
4144
  onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
4093
4145
  onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
4146
+ /**
4147
+ * @deprecated use {@link onDisposeRemoteVideoStreamView} and {@link onDisposeRemoteScreenShareStreamView} instead.
4148
+ */
4094
4149
  onDisposeRemoteStreamView: (userId: string) => Promise<void>;
4095
4150
  onDisposeLocalStreamView: () => Promise<void>;
4151
+ onDisposeRemoteVideoStreamView: (userId: string) => Promise<void>;
4152
+ onDisposeRemoteScreenShareStreamView: (userId: string) => Promise<void>;
4096
4153
  onSendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
4097
4154
  onRemoveParticipant(userId: string): Promise<void>;
4098
4155
  onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
@@ -5868,10 +5925,6 @@ export declare interface ErrorBarStrings {
5868
5925
  * An error message when joining a call fails specifically due to an invalid meeting link.
5869
5926
  */
5870
5927
  failedToJoinCallInvalidMeetingLink?: string;
5871
- /**
5872
- * Generic message for when screen sharing fails
5873
- */
5874
- startScreenSharingGeneric?: string;
5875
5928
  /**
5876
5929
  * Error bar string letting you know remote participants see a frozen stream for you.
5877
5930
  */
@@ -7276,7 +7329,7 @@ export declare interface MicrophoneButtonStrings {
7276
7329
  /**
7277
7330
  * Title for primary action section of split button
7278
7331
  */
7279
- micPrimaryActionSplitButtonTitle?: string;
7332
+ microphonePrimaryActionSplitButtonTitle?: string;
7280
7333
  }
7281
7334
 
7282
7335
  /**
@@ -8587,7 +8640,7 @@ export declare interface TransferFeature {
8587
8640
  }
8588
8641
 
8589
8642
  /**
8590
- * Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
8643
+ * Callback for {@link CallAdapterSubscribers} 'transferRequested' event.
8591
8644
  *
8592
8645
  * @beta
8593
8646
  */
@@ -9216,8 +9269,16 @@ export declare interface VideoGalleryProps {
9216
9269
  onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
9217
9270
  /** Callback to render a remote video tile */
9218
9271
  onRenderRemoteVideoTile?: (remoteParticipant: VideoGalleryRemoteParticipant) => JSX.Element;
9219
- /** Callback to dispose a remote video stream view */
9272
+ /**
9273
+ * @deprecated use {@link onDisposeRemoteVideoStreamView} and {@link onDisposeRemoteScreenShareStreamView} instead
9274
+ *
9275
+ * Callback to dispose a remote video stream view
9276
+ */
9220
9277
  onDisposeRemoteStreamView?: (userId: string) => Promise<void>;
9278
+ /** Callback to dispose a remote video stream view */
9279
+ onDisposeRemoteVideoStreamView?: (userId: string) => Promise<void>;
9280
+ /** Callback to dispose a remote screen share stream view */
9281
+ onDisposeRemoteScreenShareStreamView?: (userId: string) => Promise<void>;
9221
9282
  /** Callback to render a particpant avatar */
9222
9283
  onRenderAvatar?: OnRenderAvatarCallback;
9223
9284
  /**