@azure/communication-react 1.4.3-alpha-202212180014.0 → 1.4.3-alpha-202212210013.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 (109) hide show
  1. package/dist/communication-react.d.ts +152 -225
  2. package/dist/dist-cjs/communication-react/index.js +423 -345
  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/hooks/usePropsFor.d.ts +1 -2
  7. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -7
  8. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  9. package/dist/dist-esm/communication-react/src/index.d.ts +2 -4
  10. package/dist/dist-esm/communication-react/src/index.js +1 -3
  11. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  12. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +105 -0
  13. package/dist/dist-esm/react-components/src/components/DevicePermissions/{DomainPermissions.js → SitePermissions.js} +25 -25
  14. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -0
  15. package/dist/dist-esm/react-components/src/components/DevicePermissions/{DomainPermissionsScaffolding.d.ts → SitePermissionsScaffolding.d.ts} +12 -12
  16. package/dist/dist-esm/react-components/src/components/DevicePermissions/{DomainPermissionsScaffolding.js → SitePermissionsScaffolding.js} +3 -3
  17. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -0
  18. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -0
  19. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +35 -6
  20. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.d.ts +9 -0
  22. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js +22 -0
  23. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -0
  24. package/dist/dist-esm/react-components/src/components/VideoGallery.js +7 -2
  25. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/index.d.ts +3 -3
  27. package/dist/dist-esm/react-components/src/components/index.js +1 -1
  28. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/styles/{DomainPermissions.styles.d.ts → SitePermissions.styles.d.ts} +1 -1
  30. package/dist/dist-esm/react-components/src/components/styles/{DomainPermissions.styles.js → SitePermissions.styles.js} +1 -1
  31. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -0
  32. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +25 -25
  33. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +1 -1
  35. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +1 -1
  36. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +12 -12
  37. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +1 -1
  38. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +1 -1
  39. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +1 -1
  40. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +1 -1
  41. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +1 -1
  42. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +1 -1
  43. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +1 -1
  44. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +1 -1
  45. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +1 -1
  46. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +1 -1
  47. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +1 -1
  48. package/dist/dist-esm/react-components/src/theming/icons.d.ts +5 -5
  49. package/dist/dist-esm/react-components/src/theming/icons.js +16 -16
  50. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +1 -1
  52. package/dist/dist-esm/react-components/src/theming/icons.styles.js +1 -1
  53. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +7 -11
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +4 -6
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +1 -0
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +16 -15
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  60. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +12 -12
  61. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  62. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +16 -0
  63. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/{ConfigurationpageCameraDropdown.js → ConfigurationPageCameraDropdown.js} +3 -5
  64. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -0
  65. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/{ConfigurationpageErrorBar.d.ts → ConfigurationPageErrorBar.d.ts} +3 -4
  66. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/{ConfigurationpageErrorBar.js → ConfigurationPageErrorBar.js} +4 -6
  67. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -0
  68. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +16 -0
  69. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/{ConfigurationpageMicDropdown.js → ConfigurationPageMicDropdown.js} +3 -7
  70. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -0
  71. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +7 -11
  73. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  74. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +1 -0
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +1 -1
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +1 -1
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +4 -2
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +2 -3
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +12 -24
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +8 -0
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  89. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +16 -7
  90. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +22 -10
  91. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +2 -0
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
  94. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +8 -0
  95. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +40 -0
  96. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -0
  97. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +5 -5
  98. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +1 -0
  99. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  100. package/package.json +8 -8
  101. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.d.ts +0 -105
  102. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js.map +0 -1
  103. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js.map +0 -1
  104. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +0 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.d.ts +0 -17
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +0 -1
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js.map +0 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.d.ts +0 -17
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +0 -1
@@ -52,8 +52,6 @@ import { IContextualMenuItem } from '@fluentui/react';
52
52
  import { IContextualMenuItemStyles } from '@fluentui/react';
53
53
  import { IContextualMenuProps } from '@fluentui/react';
54
54
  import { IContextualMenuStyles } from '@fluentui/react';
55
- import { IDropdownOption } from '@fluentui/react';
56
- import { IDropdownStyles } from '@fluentui/react';
57
55
  import { ILinkStyles } from '@fluentui/react';
58
56
  import { IMessageBarProps } from '@fluentui/react';
59
57
  import { IncomingCall } from '@azure/communication-calling';
@@ -1189,15 +1187,11 @@ export declare type CallCompositeOptions = {
1189
1187
  */
1190
1188
  callControls?: boolean | CallControlOptions;
1191
1189
  /**
1192
- * Device permission restrictions for your call.
1193
- * Require device permissions to be set or have them as optional or not required to start a call
1190
+ * Device permissions check options for your call.
1191
+ * Here you can choose what device permissions you prompt the user for,
1192
+ * as well as what device permissions must be accepted before starting a call.
1194
1193
  */
1195
- devicePermissions?: DevicePermissionRestrictions;
1196
- /**
1197
- * Opt in call readiness feature for your call
1198
- * Setting this to `true` will add call readiness features to the call experience
1199
- */
1200
- callReadinessOptedIn?: boolean;
1194
+ deviceChecks?: DeviceCheckOptions;
1201
1195
  /**
1202
1196
  * Callback you may provide to supply users with further steps to troubleshoot why they have been
1203
1197
  * unable to grant your site the required permissions for the call.
@@ -2479,10 +2473,11 @@ export declare type CallWithChatCompositeOptions = {
2479
2473
  */
2480
2474
  fileSharing?: FileSharingOptions;
2481
2475
  /**
2482
- * Device permission restrictions for your call.
2483
- * Require device permissions to be set or have them as optional or not required to start a call
2476
+ * Device permissions check options for your call.
2477
+ * Here you can choose what device permissions you prompt the user for,
2478
+ * as well as what device permissions must be accepted before starting a call.
2484
2479
  */
2485
- devicePermissions?: DevicePermissionRestrictions;
2480
+ deviceChecks?: DeviceCheckOptions;
2486
2481
  /**
2487
2482
  * Callback you may provide to supply users with further steps to troubleshoot why they have been
2488
2483
  * unable to grant your site the required permissions for the call.
@@ -2515,10 +2510,18 @@ export declare type CallWithChatCompositeOptions = {
2515
2510
  */
2516
2511
  onNetworkingTroubleShootingClick?: () => void;
2517
2512
  /**
2518
- * Opt in call readiness feature for your call
2519
- * setting this to True will add call readiness feature in call experience
2513
+ * Callback you may provide to supply users with a provided page to showcase supported browsers by ACS.
2514
+ *
2515
+ * @example
2516
+ * ```ts
2517
+ * onBrowserTroubleShootingClick?: () =>
2518
+ * window.open('https://contoso.com/browser-troubleshooting', '_blank');
2519
+ * ```
2520
+ *
2521
+ * @remarks
2522
+ * if this is not supplied, the composite will not show a unsupported browser page.
2520
2523
  */
2521
- callReadinessOptedIn?: boolean;
2524
+ onEnvironmentInfoTroubleshootingClick?: () => void;
2522
2525
  };
2523
2526
 
2524
2527
  /**
@@ -2781,28 +2784,28 @@ export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded'
2781
2784
  * Component to allow Contoso to help their end user with their devices should their permissions be blocked
2782
2785
  * by their browsers settings.
2783
2786
  */
2784
- export declare const CameraAndMicrophoneDomainPermissions: (props: CameraAndMicrophoneDomainPermissionsProps) => JSX.Element;
2787
+ export declare const CameraAndMicrophoneSitePermissions: (props: CameraAndMicrophoneSitePermissionsProps) => JSX.Element;
2785
2788
 
2786
2789
  /**
2787
2790
  * @beta
2788
- * Props for CameraAndMicrophoneDomainPermissions component.
2791
+ * Props for CameraAndMicrophoneSitePermissions component.
2789
2792
  */
2790
- export declare interface CameraAndMicrophoneDomainPermissionsProps extends CommonDomainPermissionsProps {
2793
+ export declare interface CameraAndMicrophoneSitePermissionsProps extends CommonSitePermissionsProps {
2791
2794
  /** Icon name for the camera icon */
2792
2795
  cameraIconName?: string;
2793
2796
  /** Icon name for the microphone icon */
2794
2797
  microphoneIconName?: string;
2795
2798
  /** Icon name for the central icon between the camera and microphone icons */
2796
2799
  connectorIconName?: string;
2797
- /** Strings for use with the {@link CameraAndMicrophoneDomainPermissions} */
2798
- strings?: CameraAndMicrophoneDomainPermissionsStrings;
2800
+ /** Strings for use with the {@link CameraAndMicrophoneSitePermissions} */
2801
+ strings?: CameraAndMicrophoneSitePermissionsStrings;
2799
2802
  }
2800
2803
 
2801
2804
  /**
2802
2805
  * @beta
2803
- * Strings for CameraAndMicrophoneDomainPermissions component.
2806
+ * Strings for CameraAndMicrophoneSitePermissions component.
2804
2807
  */
2805
- export declare type CameraAndMicrophoneDomainPermissionsStrings = DomainPermissionsStrings;
2808
+ export declare type CameraAndMicrophoneSitePermissionsStrings = SitePermissionsStrings;
2806
2809
 
2807
2810
  /**
2808
2811
  * A button to turn camera on / off.
@@ -2946,24 +2949,24 @@ export declare interface CameraButtonStyles extends ControlBarButtonStyles {
2946
2949
  *
2947
2950
  * @beta
2948
2951
  */
2949
- export declare const CameraDomainPermissions: (props: CameraDomainPermissionsProps) => JSX.Element;
2952
+ export declare const CameraSitePermissions: (props: CameraSitePermissionsProps) => JSX.Element;
2950
2953
 
2951
2954
  /**
2952
2955
  * @beta
2953
- * Props for CameraDomainPermissions component.
2956
+ * Props for CameraSitePermissions component.
2954
2957
  */
2955
- export declare interface CameraDomainPermissionsProps extends CommonDomainPermissionsProps {
2958
+ export declare interface CameraSitePermissionsProps extends CommonSitePermissionsProps {
2956
2959
  /** Icon name for the camera icon */
2957
2960
  cameraIconName?: string;
2958
- /** Strings for use with the {@link CameraDomainPermissions} */
2959
- strings?: CameraDomainPermissionsStrings;
2961
+ /** Strings for use with the {@link CameraSitePermissions} */
2962
+ strings?: CameraSitePermissionsStrings;
2960
2963
  }
2961
2964
 
2962
2965
  /**
2963
2966
  * @beta
2964
- * Strings for CameraDomainPermissions component.
2967
+ * Strings for CameraSitePermissions component.
2965
2968
  */
2966
- export declare type CameraDomainPermissionsStrings = DomainPermissionsStrings;
2969
+ export declare type CameraSitePermissionsStrings = SitePermissionsStrings;
2967
2970
 
2968
2971
  /**
2969
2972
  * {@link ChatComposite} Adapter interface.
@@ -3586,21 +3589,30 @@ export declare interface CommonCallingHandlers {
3586
3589
  onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
3587
3590
  }
3588
3591
 
3592
+ /**
3593
+ * Return intersect properties of 2 types
3594
+ *
3595
+ * @public
3596
+ */
3597
+ export declare type CommonProperties<A, B> = {
3598
+ [P in keyof A & keyof B]: A[P] extends B[P] ? P : never;
3599
+ }[keyof A & keyof B];
3600
+
3589
3601
  /**
3590
3602
  * @beta
3591
- * Props for DomainPermissions components.
3603
+ * Props for SitePermissions components.
3592
3604
  */
3593
- export declare interface CommonDomainPermissionsProps {
3605
+ export declare interface CommonSitePermissionsProps {
3594
3606
  /**
3595
3607
  * Name of application calling experience is in.
3596
3608
  */
3597
3609
  appName: string;
3598
3610
  /**
3599
- * Type of the Domain Permissions component.
3611
+ * Type of the Site Permissions component.
3600
3612
  */
3601
3613
  type: 'request' | 'denied' | 'check';
3602
3614
  /**
3603
- * Type of the browser used, the domain permission component will show different guidance text based on the browser type
3615
+ * Type of the browser used, the Site permission component will show different guidance text based on the browser type
3604
3616
  */
3605
3617
  browserHint?: 'safari' | 'unset';
3606
3618
  /**
@@ -3614,20 +3626,11 @@ export declare interface CommonDomainPermissionsProps {
3614
3626
  */
3615
3627
  onContinueAnywayClick?: () => void;
3616
3628
  /**
3617
- * Styles for DomainPermissions component.
3629
+ * Styles for SitePermissions component.
3618
3630
  */
3619
- styles?: DomainPermissionsStyles;
3631
+ styles?: SitePermissionsStyles;
3620
3632
  }
3621
3633
 
3622
- /**
3623
- * Return intersect properties of 2 types
3624
- *
3625
- * @public
3626
- */
3627
- export declare type CommonProperties<A, B> = {
3628
- [P in keyof A & keyof B]: A[P] extends B[P] ? P : never;
3629
- }[keyof A & keyof B];
3630
-
3631
3634
  /**
3632
3635
  * A Chat or Calling participant's state, as reflected in the UI.
3633
3636
  *
@@ -3807,30 +3810,30 @@ export declare interface ComponentStrings {
3807
3810
  videoTile: VideoTileStrings;
3808
3811
  /** Strings for HoldButton */
3809
3812
  holdButton: HoldButtonStrings;
3810
- /** Strings for a domain permission request prompt */
3811
- CameraAndMicrophoneDomainPermissionsRequest: DomainPermissionsStrings;
3812
- /** Strings for a domain permission request prompt */
3813
- CameraDomainPermissionsRequest: DomainPermissionsStrings;
3814
- /** Strings for a domain permission request prompt */
3815
- MicrophoneDomainPermissionsRequest: DomainPermissionsStrings;
3816
- /** Strings for a domain permission generic checking prompt */
3817
- CameraAndMicrophoneDomainPermissionsCheck: DomainPermissionsStrings;
3818
- /** Strings for a domain permission generic checking prompt */
3819
- CameraDomainPermissionsCheck: DomainPermissionsStrings;
3820
- /** Strings for a domain permission generic checking prompt */
3821
- MicrophoneDomainPermissionsCheck: DomainPermissionsStrings;
3822
- /** Strings for a domain permission denied prompt */
3823
- CameraAndMicrophoneDomainPermissionsDenied: DomainPermissionsStrings;
3824
- /** Strings for a domain permission denied prompt for safari browsers*/
3825
- CameraAndMicrophoneDomainPermissionsDeniedSafari: DomainPermissionsStrings;
3826
- /** Strings for a domain permission denied prompt */
3827
- CameraDomainPermissionsDenied: DomainPermissionsStrings;
3828
- /** Strings for a domain permission denied prompt */
3829
- MicrophoneDomainPermissionsDenied: DomainPermissionsStrings;
3830
- /** Strings for a domain permission denied prompt for safari browsers*/
3831
- CameraDomainPermissionsDeniedSafari: DomainPermissionsStrings;
3832
- /** Strings for a domain permission denied prompt for safari browsers*/
3833
- MicrophoneDomainPermissionsDeniedSafari: DomainPermissionsStrings;
3813
+ /** Strings for a site's permission request prompt */
3814
+ CameraAndMicrophoneSitePermissionsRequest: SitePermissionsStrings;
3815
+ /** Strings for a site's permission request prompt */
3816
+ CameraSitePermissionsRequest: SitePermissionsStrings;
3817
+ /** Strings for a site's permission request prompt */
3818
+ MicrophoneSitePermissionsRequest: SitePermissionsStrings;
3819
+ /** Strings for a site's permission generic checking prompt */
3820
+ CameraAndMicrophoneSitePermissionsCheck: SitePermissionsStrings;
3821
+ /** Strings for a site's permission generic checking prompt */
3822
+ CameraSitePermissionsCheck: SitePermissionsStrings;
3823
+ /** Strings for a site's permission generic checking prompt */
3824
+ MicrophoneSitePermissionsCheck: SitePermissionsStrings;
3825
+ /** Strings for a site's permission denied prompt */
3826
+ CameraAndMicrophoneSitePermissionsDenied: SitePermissionsStrings;
3827
+ /** Strings for a site's permission denied prompt for safari browsers*/
3828
+ CameraAndMicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;
3829
+ /** Strings for a site's permission denied prompt */
3830
+ CameraSitePermissionsDenied: SitePermissionsStrings;
3831
+ /** Strings for a site's permission denied prompt */
3832
+ MicrophoneSitePermissionsDenied: SitePermissionsStrings;
3833
+ /** Strings for a site's permission denied prompt for safari browsers*/
3834
+ CameraSitePermissionsDeniedSafari: SitePermissionsStrings;
3835
+ /** Strings for a site's permission denied prompt for safari browsers*/
3836
+ MicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;
3834
3837
  /** Strings for unsupported browser UI */
3835
3838
  UnsupportedBrowser: UnsupportedBrowserStrings;
3836
3839
  /** Strings for unsupported browser version UI */
@@ -4568,11 +4571,11 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4568
4571
  SendBoxSendHovered: JSX.Element;
4569
4572
  VideoTileMicOff: JSX.Element;
4570
4573
  DialpadBackspace: JSX.Element;
4571
- DomainPermissionsSparkle: JSX.Element;
4572
- DomainPermissionCamera: JSX.Element;
4573
- DomainPermissionMic: JSX.Element;
4574
- DomainPermissionCameraDenied: JSX.Element;
4575
- DomainPermissionMicDenied: JSX.Element;
4574
+ SitePermissionsSparkle: JSX.Element;
4575
+ SitePermissionCamera: JSX.Element;
4576
+ SitePermissionMic: JSX.Element;
4577
+ SitePermissionCameraDenied: JSX.Element;
4578
+ SitePermissionMicDenied: JSX.Element;
4576
4579
  UnsupportedEnvironmentWarning: JSX.Element;
4577
4580
  BrowserPermissionDeniedError: JSX.Element;
4578
4581
  VideoTilePinned: JSX.Element;
@@ -4669,11 +4672,11 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4669
4672
  HoldCallButton: JSX.Element;
4670
4673
  ResumeCall: JSX.Element;
4671
4674
  DialpadBackspace: JSX.Element;
4672
- DomainPermissionsSparkle: JSX.Element;
4673
- DomainPermissionCamera: JSX.Element;
4674
- DomainPermissionMic: JSX.Element;
4675
- DomainPermissionCameraDenied: JSX.Element;
4676
- DomainPermissionMicDenied: JSX.Element;
4675
+ SitePermissionsSparkle: JSX.Element;
4676
+ SitePermissionCamera: JSX.Element;
4677
+ SitePermissionMic: JSX.Element;
4678
+ SitePermissionCameraDenied: JSX.Element;
4679
+ SitePermissionMicDenied: JSX.Element;
4677
4680
  UnsupportedEnvironmentWarning: JSX.Element;
4678
4681
  BrowserPermissionDeniedError: JSX.Element;
4679
4682
  VideoTilePinned: JSX.Element;
@@ -4684,6 +4687,29 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4684
4687
  UnpinParticipant: JSX.Element;
4685
4688
  };
4686
4689
 
4690
+ /**
4691
+ * Device Checks.
4692
+ * Choose whether or not to block starting a call depending on camera and microphone permission options.
4693
+ *
4694
+ * @beta
4695
+ */
4696
+ export declare interface DeviceCheckOptions {
4697
+ /**
4698
+ * Camera Permission prompts for your call.
4699
+ * 'required' - requires the permission to be allowed before permitting the user join the call.
4700
+ * 'optional' - permission can be disallowed and the user is still permitted to join the call.
4701
+ * 'doNotPrompt' - permission is not required and the user is not prompted to allow the permission.
4702
+ */
4703
+ camera: 'required' | 'optional' | 'doNotPrompt';
4704
+ /**
4705
+ * Microphone permission prompts for your call.
4706
+ * 'required' - requires the permission to be allowed before permitting the user join the call.
4707
+ * 'optional' - permission can be disallowed and the user is still permitted to join the call.
4708
+ * 'doNotPrompt' - permission is not required and the user is not prompted to allow the permission.
4709
+ */
4710
+ microphone: 'required' | 'optional' | 'doNotPrompt';
4711
+ }
4712
+
4687
4713
  /**
4688
4714
  * This type is meant to encapsulate all the state inside {@link @azure/communication-calling#DeviceManager}. For
4689
4715
  * optional parameters they may not be available until permission is granted by the user. The cameras, microphones,
@@ -4739,95 +4765,6 @@ export declare type DeviceManagerState = {
4739
4765
  unparentedViews: LocalVideoStreamState[];
4740
4766
  };
4741
4767
 
4742
- /**
4743
- * A dropdown to trigger device permission prompt
4744
- *
4745
- * @internal
4746
- */
4747
- export declare const _DevicePermissionDropdown: (props: _DevicePermissionDropdownProps) => JSX.Element;
4748
-
4749
- /**
4750
- * Props for {@link _DevicePermissionDropdown}.
4751
- *
4752
- * @internal
4753
- */
4754
- export declare interface _DevicePermissionDropdownProps {
4755
- /**
4756
- * icon shown in dropdown placeholder
4757
- */
4758
- icon?: JSX.Element;
4759
- /**
4760
- * Dropdown content
4761
- */
4762
- options?: IDropdownOption[];
4763
- /**
4764
- * Ask for permissions of devices.
4765
- *
4766
- * @remarks
4767
- * Browser permission window will pop up if permissions are not granted yet
4768
- *
4769
- * @param constrain - Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
4770
- */
4771
- askDevicePermission?(constrain: _PermissionConstraints): Promise<void>;
4772
- /**
4773
- * Optional callback when component is clicked
4774
- */
4775
- onClick?: () => void;
4776
- /**
4777
- * Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
4778
- */
4779
- constrain?: _PermissionConstraints;
4780
- /**
4781
- * Strings for devicepermissiondropdown
4782
- */
4783
- strings?: _DevicePermissionDropdownStrings;
4784
- /**
4785
- * Styles for devicepermissiondropdown
4786
- */
4787
- styles?: Partial<IDropdownStyles>;
4788
- }
4789
-
4790
- /**
4791
- * Strings of {@link DevicePermissionDropdown} that can be overridden.
4792
- *
4793
- * @internal
4794
- */
4795
- export declare interface _DevicePermissionDropdownStrings {
4796
- /**
4797
- * dropdown label
4798
- */
4799
- label?: string;
4800
- /**
4801
- * dropdown placeholder
4802
- */
4803
- placeHolderText: string;
4804
- /** string for action button */
4805
- actionButtonContent?: string;
4806
- }
4807
-
4808
- /**
4809
- * Device Permission restrictions.
4810
- * Be able to start a call depending on camera and microphone permission options.
4811
- *
4812
- * @beta
4813
- */
4814
- export declare interface DevicePermissionRestrictions {
4815
- /**
4816
- * Camera Permission prompts for your call.
4817
- * 'required' - requires the permission to be allowed before permitting the user join the call.
4818
- * 'optional' - permission can be disallowed and the user is still permitted to join the call.
4819
- * 'doNotPrompt' - permission is not required and the user is not prompted to allow the permission.
4820
- */
4821
- camera: 'required' | 'optional' | 'doNotPrompt';
4822
- /**
4823
- * Microphone permission prompts for your call.
4824
- * 'required' - requires the permission to be allowed before permitting the user join the call.
4825
- * 'optional' - permission can be disallowed and the user is still permitted to join the call.
4826
- * 'doNotPrompt' - permission is not required and the user is not prompted to allow the permission.
4827
- */
4828
- microphone: 'required' | 'optional' | 'doNotPrompt';
4829
- }
4830
-
4831
4768
  /**
4832
4769
  * A button to open a menu that controls device options.
4833
4770
  *
@@ -5065,45 +5002,6 @@ export declare interface Disposable {
5065
5002
  dispose(): void;
5066
5003
  }
5067
5004
 
5068
- /**
5069
- * @beta
5070
- * Strings for DomainPermissions component
5071
- */
5072
- export declare type DomainPermissionsStrings = {
5073
- /**
5074
- * Main text string.
5075
- */
5076
- primaryText?: string;
5077
- /**
5078
- * Subtext string.
5079
- */
5080
- secondaryText?: string;
5081
- /**
5082
- * More help link string.
5083
- */
5084
- linkText?: string;
5085
- /**
5086
- * Primary button text string.
5087
- */
5088
- primaryButtonText?: string;
5089
- /**
5090
- * Aria label describing the content of the container
5091
- */
5092
- ariaLabel?: string;
5093
- };
5094
-
5095
- /**
5096
- * Fluent styles for {@link DomainPermissionsContainer}.
5097
- *
5098
- * @beta
5099
- */
5100
- export declare interface DomainPermissionsStyles extends BaseCustomStyles {
5101
- /** Styles for the primary button. */
5102
- primaryButton?: IButtonStyles;
5103
- /** Styles for the help troubleshooting link text. */
5104
- troubleshootingLink?: ILinkStyles;
5105
- }
5106
-
5107
5005
  /**
5108
5006
  * DTMF tone for PSTN calls.
5109
5007
  *
@@ -5584,7 +5482,7 @@ export declare const fromFlatCommunicationIdentifier: (id: string) => Communicat
5584
5482
  *
5585
5483
  * @public
5586
5484
  */
5587
- export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : AreEqual<Component, typeof _DevicePermissionDropdown> extends true ? EmptySelector : undefined;
5485
+ export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : undefined;
5588
5486
 
5589
5487
  /**
5590
5488
  * Get the selector for a specified component.
@@ -6576,24 +6474,24 @@ export declare interface MicrophoneButtonStyles extends ControlBarButtonStyles {
6576
6474
  *
6577
6475
  * @beta
6578
6476
  */
6579
- export declare const MicrophoneDomainPermissions: (props: MicrophoneDomainPermissionsProps) => JSX.Element;
6477
+ export declare const MicrophoneSitePermissions: (props: MicrophoneSitePermissionsProps) => JSX.Element;
6580
6478
 
6581
6479
  /**
6582
6480
  * @beta
6583
- * Props for MicrophoneDomainPermissions component.
6481
+ * Props for MicrophoneSitePermissions component.
6584
6482
  */
6585
- export declare interface MicrophoneDomainPermissionsProps extends CommonDomainPermissionsProps {
6483
+ export declare interface MicrophoneSitePermissionsProps extends CommonSitePermissionsProps {
6586
6484
  /** Icon name for the microphone icon */
6587
6485
  microphoneIconName?: string;
6588
- /** Strings for use with the {@link MicrophoneDomainPermissions} */
6589
- strings?: MicrophoneDomainPermissionsStrings;
6486
+ /** Strings for use with the {@link MicrophoneSitePermissions} */
6487
+ strings?: MicrophoneSitePermissionsStrings;
6590
6488
  }
6591
6489
 
6592
6490
  /**
6593
6491
  * @beta
6594
- * Strings for MicrophoneDomainPermissions component.
6492
+ * Strings for MicrophoneSitePermissions component.
6595
6493
  */
6596
- export declare type MicrophoneDomainPermissionsStrings = DomainPermissionsStrings;
6494
+ export declare type MicrophoneSitePermissionsStrings = SitePermissionsStrings;
6597
6495
 
6598
6496
  /**
6599
6497
  * Payload for {@link DiagnosticChangedEventListner} where there is a change in a network diagnostic.
@@ -7043,16 +6941,6 @@ export declare type ParticipantsRemovedListener = (event: {
7043
6941
  */
7044
6942
  export declare type ParticipantState = 'Idle' | 'Connecting' | 'Ringing' | 'Connected' | 'Hold' | 'InLobby' | 'EarlyMedia' | 'Disconnected';
7045
6943
 
7046
- /**
7047
- * Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
7048
- *
7049
- * @internal
7050
- */
7051
- export declare type _PermissionConstraints = {
7052
- audio: boolean;
7053
- video: boolean;
7054
- };
7055
-
7056
6944
  /**
7057
6945
  * An array of key value pairs that stores each sender's display name and last read message
7058
6946
  *
@@ -7382,6 +7270,45 @@ export declare interface SendBoxStylesProps extends BaseCustomStyles {
7382
7270
  systemMessage?: IStyle;
7383
7271
  }
7384
7272
 
7273
+ /**
7274
+ * @beta
7275
+ * Strings for SitePermissions component
7276
+ */
7277
+ export declare type SitePermissionsStrings = {
7278
+ /**
7279
+ * Main text string.
7280
+ */
7281
+ primaryText?: string;
7282
+ /**
7283
+ * Subtext string.
7284
+ */
7285
+ secondaryText?: string;
7286
+ /**
7287
+ * More help link string.
7288
+ */
7289
+ linkText?: string;
7290
+ /**
7291
+ * Primary button text string.
7292
+ */
7293
+ primaryButtonText?: string;
7294
+ /**
7295
+ * Aria label describing the content of the container
7296
+ */
7297
+ ariaLabel?: string;
7298
+ };
7299
+
7300
+ /**
7301
+ * Fluent styles for {@link SitePermissionsContainer}.
7302
+ *
7303
+ * @beta
7304
+ */
7305
+ export declare interface SitePermissionsStyles extends BaseCustomStyles {
7306
+ /** Styles for the primary button. */
7307
+ primaryButton?: IButtonStyles;
7308
+ /** Styles for the help troubleshooting link text. */
7309
+ troubleshootingLink?: ILinkStyles;
7310
+ }
7311
+
7385
7312
  /**
7386
7313
  * Defines the methods that allow CallClient {@link @azure/communication-calling#CallClient} to be used statefully.
7387
7314
  * The interface provides access to proxied state and also allows registering a handler for state change events. For