@azure/communication-react 1.3.3-alpha-202209110016.0 → 1.3.3-alpha-202209150016.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 +62 -3
  2. package/dist/dist-cjs/communication-react/index.js +227 -72
  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/createHandlers.d.ts +8 -4
  7. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +26 -5
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
  10. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  11. package/dist/dist-esm/communication-react/src/index.d.ts +3 -0
  12. package/dist/dist-esm/communication-react/src/index.js +2 -0
  13. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/CameraButton.js +1 -7
  15. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/DevicesButton.js +1 -11
  17. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/DomainPermissions.d.ts +45 -0
  19. package/dist/dist-esm/react-components/src/components/DomainPermissions.js +42 -0
  20. package/dist/dist-esm/react-components/src/components/DomainPermissions.js.map +1 -0
  21. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +1 -5
  22. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  23. package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -6
  24. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  25. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +3 -8
  26. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
  28. package/dist/dist-esm/react-components/src/components/index.js +2 -0
  29. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  30. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.d.ts +30 -0
  31. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +74 -0
  32. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +1 -0
  33. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
  34. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -0
  36. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  37. package/dist/dist-esm/react-components/src/theming/icons.js +5 -1
  38. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +3 -3
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +6 -1
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +3 -2
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +16 -3
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -5
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +18 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +17 -6
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +4 -3
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -2
  58. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +8 -1
  59. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  60. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -2
  61. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  62. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +3 -2
  63. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +13 -4
  64. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +2 -2
  66. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  67. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +2 -2
  68. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  69. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +2 -2
  70. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  71. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +2 -2
  72. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +6 -11
  73. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  74. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
  75. package/package.json +8 -8
@@ -184,6 +184,13 @@ export declare interface AdapterState<TState> {
184
184
  getState(): TState;
185
185
  }
186
186
 
187
+ /**
188
+ * handler type for addParticipant
189
+ *
190
+ * @beta
191
+ */
192
+ export declare type AddParticipantHandler = ((participant: CommunicationUserIdentifier) => Promise<void>) & ((participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions) => Promise<void>);
193
+
187
194
  /**
188
195
  * Compare if 2 react components are exact equal, result type will be true/false
189
196
  *
@@ -490,7 +497,8 @@ export declare interface CallAdapterCallManagement {
490
497
  *
491
498
  * @beta
492
499
  */
493
- addParticipant(participant: CommunicationIdentifier, options?: AddPhoneNumberOptions): Promise<void>;
500
+ addParticipant(participant: PhoneNumberIdentifier, options?: AddPhoneNumberOptions): Promise<void>;
501
+ addParticipant(participant: CommunicationUserIdentifier): Promise<void>;
494
502
  /**
495
503
  * send dtmf tone to another participant in a 1:1 PSTN call
496
504
  *
@@ -1481,7 +1489,7 @@ export declare type CallingHandlers = {
1481
1489
  onToggleScreenShare: () => Promise<void>;
1482
1490
  onHangUp: () => Promise<void>;
1483
1491
  onToggleHold: () => Promise<void>;
1484
- onAddParticipant: (participant: CommunicationIdentifier, options?: AddPhoneNumberOptions) => Promise<void>;
1492
+ onAddParticipant: AddParticipantHandler;
1485
1493
  onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
1486
1494
  onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
1487
1495
  onRemoveParticipant: (userId: string) => Promise<void>;
@@ -1916,7 +1924,8 @@ export declare interface CallWithChatAdapterManagement {
1916
1924
  *
1917
1925
  * @beta
1918
1926
  */
1919
- addParticipant: (participant: CommunicationIdentifier, options?: AddPhoneNumberOptions) => Promise<void>;
1927
+ addParticipant(participant: PhoneNumberIdentifier, options?: AddPhoneNumberOptions): Promise<void>;
1928
+ addParticipant(participant: CommunicationUserIdentifier): Promise<void>;
1920
1929
  /**
1921
1930
  * send dtmf tone to another participant in the call in 1:1 calls
1922
1931
  *
@@ -3297,6 +3306,8 @@ export declare interface ComponentStrings {
3297
3306
  videoTile: VideoTileStrings;
3298
3307
  /** Strings for HoldButton */
3299
3308
  holdButton: HoldButtonStrings;
3309
+ /** Strings for DomainPermissions */
3310
+ DomainPermissions: DomainPermissionsStrings;
3300
3311
  }
3301
3312
 
3302
3313
  /**
@@ -4004,6 +4015,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4004
4015
  SendBoxSendHovered: JSX.Element;
4005
4016
  VideoTileMicOff: JSX.Element;
4006
4017
  BackSpace: JSX.Element;
4018
+ iconBackdrop: JSX.Element;
4007
4019
  };
4008
4020
 
4009
4021
  /**
@@ -4091,6 +4103,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4091
4103
  HoldCallButton: JSX.Element;
4092
4104
  ResumeCall: JSX.Element;
4093
4105
  BackSpace: JSX.Element;
4106
+ iconBackdrop: JSX.Element;
4094
4107
  };
4095
4108
 
4096
4109
  /**
@@ -4385,6 +4398,52 @@ export declare interface Disposable {
4385
4398
  dispose(): void;
4386
4399
  }
4387
4400
 
4401
+ /**
4402
+ * @beta
4403
+ *
4404
+ * Component to allow Contoso to help their end user with their devices should their permissions be blocked
4405
+ * by their browsers settings.
4406
+ */
4407
+ export declare const DomainPermissions: (props: DomainPermissionsProps) => JSX.Element;
4408
+
4409
+ /**
4410
+ * @beta
4411
+ * Props for DomainPermissions component.
4412
+ */
4413
+ export declare interface DomainPermissionsProps {
4414
+ /**
4415
+ * Name of application calling experience is in.
4416
+ */
4417
+ appName: string;
4418
+ /**
4419
+ * Action to be taken by the more help link. Possible to send to external page or show other modal.
4420
+ */
4421
+ onTroubleshootingClick: () => void;
4422
+ /**
4423
+ * Localization strings for DomainPermissions component.
4424
+ */
4425
+ strings: DomainPermissionsStrings;
4426
+ }
4427
+
4428
+ /**
4429
+ * @beta
4430
+ * Strings for DomainPermissions component
4431
+ */
4432
+ export declare interface DomainPermissionsStrings {
4433
+ /**
4434
+ * Main text string.
4435
+ */
4436
+ primaryText: string;
4437
+ /**
4438
+ * Subtext string.
4439
+ */
4440
+ secondaryText: string;
4441
+ /**
4442
+ * More help link string.
4443
+ */
4444
+ linkText: string;
4445
+ }
4446
+
4388
4447
  /**
4389
4448
  * DTMF tone for PSTN calls.
4390
4449
  *