@azure/communication-react 1.4.3-alpha-202212090014.0 → 1.4.3-alpha-202212130014.0

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 (75) hide show
  1. package/dist/communication-react.d.ts +60 -2
  2. package/dist/dist-cjs/communication-react/index.js +218 -62
  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-stateful-client/src/VideoStreamRendererViewDeclarative.js +2 -3
  7. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  8. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +5 -4
  9. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +28 -5
  10. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +5 -1
  12. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +2 -2
  13. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +14 -3
  15. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +13 -10
  16. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  17. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.d.ts +2 -2
  18. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +7 -2
  19. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +16 -0
  21. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +52 -0
  22. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -0
  23. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +9 -0
  24. package/dist/dist-esm/react-components/src/components/VideoGallery.js +15 -4
  25. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +7 -3
  27. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +22 -9
  28. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +7 -4
  30. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -0
  31. package/dist/dist-esm/react-components/src/theming/icons.js +6 -2
  32. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +12 -0
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -0
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +18 -4
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +18 -3
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -0
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +1 -1
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +1 -1
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +1 -0
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +9 -3
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +8 -3
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +3 -1
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +18 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +5 -1
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +4 -4
  60. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +1 -0
  62. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +6 -0
  63. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +4 -0
  65. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  66. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +1 -0
  67. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +4 -0
  68. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  69. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +8 -0
  70. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  71. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +1 -1
  72. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  73. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
  74. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +3 -0
  75. package/package.json +8 -8
@@ -709,6 +709,10 @@ export declare interface CallAdapterCallOperations {
709
709
  * @beta
710
710
  */
711
711
  sendDtmfTone(dtmfTone: DtmfTone_2): Promise<void>;
712
+ /**
713
+ * Continues into a call when the browser version is not supported.
714
+ */
715
+ allowUnsupportedBrowserVersion(): void;
712
716
  }
713
717
 
714
718
  /**
@@ -840,7 +844,7 @@ export declare type CallAdapterOptionalFeatures = {
840
844
  /**
841
845
  * Feature flag for enabling the unsupported environment logic in the CallAdapter.
842
846
  */
843
- unsupportedEnvironment?: boolean;
847
+ unsupportedEnvironment?: boolean | UnsupportedEnvironmentFeatures;
844
848
  };
845
849
 
846
850
  /**
@@ -976,6 +980,7 @@ export declare interface CallAdapterSubscribers {
976
980
  export declare type CallAdapterUiState = {
977
981
  isLocalPreviewMicrophoneEnabled: boolean;
978
982
  page: CallCompositePage;
983
+ unsupportedBrowserVersionsAllowed?: boolean;
979
984
  };
980
985
 
981
986
  /**
@@ -1326,10 +1331,22 @@ export declare interface CallCompositeStrings {
1326
1331
  * Label for camera dropdown.
1327
1332
  */
1328
1333
  cameraLabel: string;
1334
+ /**
1335
+ * Label for when there are no cameras present on configuration screen.
1336
+ */
1337
+ noCamerasLabel: string;
1329
1338
  /**
1330
1339
  * Label for sound dropdown.
1331
1340
  */
1332
1341
  soundLabel: string;
1342
+ /**
1343
+ * Label for when no microphones were found on the configuration screen
1344
+ */
1345
+ noMicrophonesLabel: string;
1346
+ /**
1347
+ * Label for when no speakers were found on the configuration screen.
1348
+ */
1349
+ noSpeakersLabel: string;
1333
1350
  /**
1334
1351
  * Error shown when camera access is blocked by the browser.
1335
1352
  */
@@ -2262,6 +2279,10 @@ export declare interface CallWithChatAdapterManagement {
2262
2279
  * @beta
2263
2280
  */
2264
2281
  sendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
2282
+ /**
2283
+ * Continues into a call when the browser version is not supported.
2284
+ */
2285
+ allowUnsupportedBrowserVersion(): void;
2265
2286
  }
2266
2287
 
2267
2288
  /**
@@ -2340,6 +2361,14 @@ export declare interface CallWithChatAdapterUiState {
2340
2361
  * @beta
2341
2362
  */
2342
2363
  fileUploads?: FileUploadsUiState;
2364
+ /**
2365
+ * State to track whether the end user has opted in to using a
2366
+ * out of date version of a supported browser. Allows the user
2367
+ * to start a call in this state.
2368
+ *
2369
+ * @beta
2370
+ */
2371
+ unsupportedBrowserVersionsAllowed?: boolean;
2343
2372
  }
2344
2373
 
2345
2374
  /**
@@ -4558,6 +4587,8 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4558
4587
  BrowserPermissionDeniedError: JSX.Element;
4559
4588
  VideoTilePinned: JSX.Element;
4560
4589
  VideoTileMoreOptions: JSX.Element;
4590
+ VideoTileScaleFit: JSX.Element;
4591
+ VideoTileScaleFill: JSX.Element;
4561
4592
  };
4562
4593
 
4563
4594
  /**
@@ -4655,6 +4686,8 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4655
4686
  BrowserPermissionDeniedError: JSX.Element;
4656
4687
  VideoTilePinned: JSX.Element;
4657
4688
  VideoTileMoreOptions: JSX.Element;
4689
+ VideoTileScaleFit: JSX.Element;
4690
+ VideoTileScaleFill: JSX.Element;
4658
4691
  };
4659
4692
 
4660
4693
  /**
@@ -7894,7 +7927,9 @@ export declare interface UnsupportedBrowserVersionProps {
7894
7927
  /** Handler to perform an action when the help link is actioned */
7895
7928
  onTroubleshootingClick?: () => void;
7896
7929
  /** String overrides for the component */
7897
- strings: UnsupportedBrowserVersionStrings;
7930
+ strings?: UnsupportedBrowserVersionStrings;
7931
+ /** Handler to allow user to continue into the call */
7932
+ onContinueClick?: () => void;
7898
7933
  }
7899
7934
 
7900
7935
  /**
@@ -7909,8 +7944,22 @@ export declare interface UnsupportedBrowserVersionStrings {
7909
7944
  secondaryText: string;
7910
7945
  /** String to display in the text for the help link */
7911
7946
  moreHelpLinkText: string;
7947
+ /** String for continue without updating button */
7948
+ continueAnywayButtonText?: string;
7912
7949
  }
7913
7950
 
7951
+ /**
7952
+ * Feature options for unsupported browser functionality
7953
+ *
7954
+ * @beta
7955
+ */
7956
+ export declare type UnsupportedEnvironmentFeatures = {
7957
+ /**
7958
+ * Will allow the end user to choose to enter a call with a unsupported browser version.
7959
+ */
7960
+ unsupportedBrowserVersionAllowed?: boolean;
7961
+ };
7962
+
7914
7963
  /**
7915
7964
  * UI to display to the user that the operating system they are using is not supported by Azure Communications Calling service.
7916
7965
  *
@@ -8242,6 +8291,11 @@ export declare interface VideoGalleryProps {
8242
8291
  * Camera control information for button to switch cameras.
8243
8292
  */
8244
8293
  localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps;
8294
+ /**
8295
+ * Whether to show the remote video tile contextual menu.
8296
+ * @defaultValue `true`
8297
+ */
8298
+ showRemoteVideoTileContextualMenu?: boolean;
8245
8299
  }
8246
8300
 
8247
8301
  /**
@@ -8313,6 +8367,10 @@ export declare interface VideoGalleryStrings {
8313
8367
  localVideoSelectedDescription: string;
8314
8368
  /** placeholder text for participants who does not have a display name*/
8315
8369
  displayNamePlaceholder: string;
8370
+ /** Menu text shown in Video Tile contextual menu for setting a remote participants video to fit in frame */
8371
+ fitRemoteParticipantToFrame: string;
8372
+ /** Menu text shown in Video Tile contextual menu for setting a remote participants video to fill the frame */
8373
+ fillRemoteParticipantFrame: string;
8316
8374
  }
8317
8375
 
8318
8376
  /**