@azure/communication-react 1.5.1-alpha-202303040013 → 1.5.1-alpha-202303070015

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 (46) hide show
  1. package/dist/communication-react.d.ts +60 -1
  2. package/dist/dist-cjs/communication-react/index.js +407 -413
  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/handlers/createCommonHandlers.d.ts +4 -0
  7. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +35 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  9. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +1 -1
  10. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +1 -1
  11. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  12. package/dist/dist-esm/calling-stateful-client/src/Logger.d.ts +16 -29
  13. package/dist/dist-esm/calling-stateful-client/src/Logger.js +16 -29
  14. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  15. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +132 -385
  16. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  17. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.d.ts +17 -0
  18. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +198 -0
  19. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -0
  20. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  21. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +1 -1
  23. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/VerticalGallery.d.ts +15 -0
  25. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +18 -4
  26. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +5 -2
  28. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +5 -2
  30. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  31. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +3 -1
  32. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +11 -5
  33. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +3 -0
  35. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -0
  37. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +4 -0
  39. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +5 -1
  40. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +5 -0
  42. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  43. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +4 -0
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +12 -0
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  46. package/package.json +8 -8
@@ -19,6 +19,8 @@
19
19
 
20
20
  import { AddPhoneNumberOptions } from '@azure/communication-calling';
21
21
  import { AudioDeviceInfo } from '@azure/communication-calling';
22
+ import { BackgroundBlurConfig } from '@azure/communication-calling-effects';
23
+ import { BackgroundReplacementConfig } from '@azure/communication-calling-effects';
22
24
  import { Call } from '@azure/communication-calling';
23
25
  import { CallAgent } from '@azure/communication-calling';
24
26
  import { CallClient } from '@azure/communication-calling';
@@ -3604,6 +3606,9 @@ export declare interface CommonCallingHandlers {
3604
3606
  onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
3605
3607
  askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
3606
3608
  onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
3609
+ onRemoveVideoBackgroundEffects: () => Promise<void>;
3610
+ onBlurVideoBackground: (bgBlurConfig?: BackgroundBlurConfig) => Promise<void>;
3611
+ onReplaceVideoBackground: (bgReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
3607
3612
  }
3608
3613
 
3609
3614
  /**
@@ -3861,6 +3866,10 @@ export declare interface ComponentStrings {
3861
3866
  BrowserPermissionDenied: BrowserPermissionDeniedStrings;
3862
3867
  /** Strings for BrowserPemissionDeniedIOS */
3863
3868
  BrowserPermissionDeniedIOS: BrowserPermissionDeniedIOSStrings;
3869
+ /**
3870
+ * Strings for the VerticalGallery.
3871
+ */
3872
+ VerticalGallery: VerticalGalleryStrings;
3864
3873
  }
3865
3874
 
3866
3875
  /**
@@ -5704,6 +5713,10 @@ export declare interface _Identifiers {
5704
5713
  overflowGalleryLeftNavButton: string;
5705
5714
  /** `data-ui-id` value for overflow gallery component's right navigation button */
5706
5715
  overflowGalleryRightNavButton: string;
5716
+ /** `data-ui-id` value for `VerticalGallery` Component's children video tiles */
5717
+ verticalGalleryVideoTile: string;
5718
+ /** `data-ui-id` value for `VerticalGallery` Component's page counter */
5719
+ verticalGalleryPageCounter: string;
5707
5720
  }
5708
5721
 
5709
5722
  /**
@@ -7628,7 +7641,7 @@ export declare interface StatefulDeviceManager extends DeviceManager {
7628
7641
  *
7629
7642
  * @beta
7630
7643
  */
7631
- getUnparentedVideoStreams: LocalVideoStream[];
7644
+ getUnparentedVideoStreams: () => LocalVideoStream[];
7632
7645
  }
7633
7646
 
7634
7647
  /**
@@ -8234,6 +8247,50 @@ export declare const useTeamsCallAgent: () => undefined | /* @conditional-compil
8234
8247
  */
8235
8248
  export declare const useTheme: () => Theme;
8236
8249
 
8250
+ /**
8251
+ * Styles for the control bar inside the VerticalGallery component
8252
+ *
8253
+ * @beta
8254
+ */
8255
+ export declare interface VerticalGalleryControlBarStyles extends BaseCustomStyles {
8256
+ /**
8257
+ * styles for the next button in the VerticalGalleryControlBar
8258
+ */
8259
+ nextButton?: IStyle;
8260
+ /**
8261
+ * Styles for the previous button in the VerticalGalleryControlBar
8262
+ */
8263
+ previousButton?: IStyle;
8264
+ /**
8265
+ * Styles for the counter in the VerticalGalleryControlBar
8266
+ */
8267
+ counter?: IStyle;
8268
+ }
8269
+
8270
+ /**
8271
+ * Strings for localization of the vertical gallery.
8272
+ *
8273
+ * @beta
8274
+ */
8275
+ export declare interface VerticalGalleryStrings {
8276
+ /** Aria label for the left page navigation button */
8277
+ leftNavButtonAriaLabel?: string;
8278
+ /** Aria label for the right page navigation button */
8279
+ rightNavButtonAriaLabel?: string;
8280
+ }
8281
+
8282
+ /**
8283
+ * Styles for the VerticalGallery component
8284
+ *
8285
+ * @beta
8286
+ */
8287
+ export declare interface VerticalGalleryStyles extends BaseCustomStyles {
8288
+ /** Styles for each video tile in the vertical gallery */
8289
+ children?: IStyle;
8290
+ /** Styles for the verticalGallery control bar */
8291
+ controlBar?: VerticalGalleryControlBarStyles;
8292
+ }
8293
+
8237
8294
  /**
8238
8295
  * VideoGallery represents a layout of video tiles for a specific call.
8239
8296
  * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.
@@ -8456,6 +8513,8 @@ export declare interface VideoGalleryStyles extends BaseCustomStyles {
8456
8513
  horizontalGallery?: HorizontalGalleryStyles;
8457
8514
  /** Styles for the local video */
8458
8515
  localVideo?: IStyle;
8516
+ /** Styles for the vertical gallery */
8517
+ verticalGallery?: VerticalGalleryStyles;
8459
8518
  }
8460
8519
 
8461
8520
  /**