@azure/communication-react 1.7.0-alpha-202308090014 → 1.7.0-alpha-202308100014

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 (69) hide show
  1. package/dist/communication-react.d.ts +65 -5
  2. package/dist/dist-cjs/communication-react/index.js +324 -42
  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/participantListSelector.js +8 -2
  7. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +6 -1
  9. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +20 -3
  10. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  11. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  12. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +2 -0
  14. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +6 -2
  15. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +1 -1
  17. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/ParticipantList.js +25 -3
  19. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/RaiseHandButton.d.ts +43 -0
  21. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +45 -0
  22. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -0
  23. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +3 -1
  24. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  25. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +3 -0
  26. package/dist/dist-esm/react-components/src/components/VideoTile.js +27 -4
  27. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  28. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.d.ts +7 -0
  29. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +224 -0
  30. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -0
  31. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
  32. package/dist/dist-esm/react-components/src/components/index.js +2 -0
  33. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/index.d.ts +1 -0
  35. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
  37. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +10 -1
  39. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +10 -1
  40. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +10 -1
  41. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +10 -1
  42. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +10 -1
  43. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +10 -1
  44. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +10 -1
  45. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +10 -1
  46. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +10 -1
  47. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +10 -1
  48. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +10 -1
  49. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +10 -1
  50. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +10 -1
  51. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +10 -1
  52. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +10 -1
  53. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +10 -1
  54. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +10 -1
  55. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +10 -1
  56. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +10 -1
  57. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +10 -1
  58. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -0
  59. package/dist/dist-esm/react-components/src/theming/icons.js +6 -0
  60. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  61. package/dist/dist-esm/react-components/src/theming/themes.d.ts +1 -0
  62. package/dist/dist-esm/react-components/src/theming/themes.js +6 -2
  63. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  64. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +10 -0
  65. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  66. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +7 -1
  67. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
  69. package/package.json +8 -8
@@ -89,7 +89,7 @@ import { PersonaSize } from '@fluentui/react';
89
89
  import { PhoneNumberIdentifier } from '@azure/communication-common';
90
90
  import { PhoneNumberKind } from '@azure/communication-common';
91
91
  import { PropertyChangedEvent } from '@azure/communication-calling';
92
- import { RaisedHand } from '@azure/communication-calling';
92
+ import { RaisedHand as RaisedHand_2 } from '@azure/communication-calling';
93
93
  import { default as React_2 } from 'react';
94
94
  import type { RemoteParticipant } from '@azure/communication-calling';
95
95
  import { RemoteParticipantState as RemoteParticipantState_2 } from '@azure/communication-calling';
@@ -2170,6 +2170,7 @@ export declare interface CallingTheme {
2170
2170
  callRedDark: string;
2171
2171
  callRedDarker: string;
2172
2172
  iconWhite: string;
2173
+ raiseHandGold: string;
2173
2174
  };
2174
2175
  }
2175
2176
 
@@ -2187,6 +2188,8 @@ export declare type CallParticipantListParticipant = ParticipantListParticipant
2187
2188
  isMuted?: boolean;
2188
2189
  /** Whether calling participant is speaking */
2189
2190
  isSpeaking?: boolean;
2191
+ /** Whether calling participant is raised hand */
2192
+ raisedHand?: RaisedHand;
2190
2193
  };
2191
2194
 
2192
2195
  /**
@@ -4577,6 +4580,8 @@ export declare interface ComponentStrings {
4577
4580
  participantsButton: ParticipantsButtonStrings;
4578
4581
  /** Strings for ScreenShareButton */
4579
4582
  screenShareButton: ScreenShareButtonStrings;
4583
+ /** Strings for RaiseHandButton */
4584
+ raiseHandButton: RaiseHandButtonStrings;
4580
4585
  /** Strings for TypingIndicator */
4581
4586
  typingIndicator: TypingIndicatorStrings;
4582
4587
  /** Strings for SendBox */
@@ -5363,6 +5368,8 @@ export declare const DEFAULT_COMPONENT_ICONS: {
5363
5368
  ControlButtonParticipantsContextualMenuItem: JSX.Element;
5364
5369
  ControlButtonScreenShareStart: JSX.Element;
5365
5370
  ControlButtonScreenShareStop: JSX.Element;
5371
+ ControlButtonRaiseHand: JSX.Element;
5372
+ ControlButtonLowerHand: JSX.Element;
5366
5373
  CancelFileUpload: JSX.Element;
5367
5374
  DownloadFile: JSX.Element;
5368
5375
  DataLossPreventionProhibited: JSX.Element;
@@ -5514,6 +5521,8 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
5514
5521
  MoreDrawerSpeakers?: JSX.Element | undefined;
5515
5522
  ChatMessageOptions: JSX.Element;
5516
5523
  ControlButtonParticipantsContextualMenuItem: JSX.Element;
5524
+ ControlButtonRaiseHand: JSX.Element;
5525
+ ControlButtonLowerHand: JSX.Element;
5517
5526
  CancelFileUpload: JSX.Element;
5518
5527
  DownloadFile: JSX.Element;
5519
5528
  DataLossPreventionProhibited: JSX.Element;
@@ -8206,6 +8215,50 @@ export declare type Profile = {
8206
8215
  displayName?: string;
8207
8216
  };
8208
8217
 
8218
+ /**
8219
+ * Raised hand state with order
8220
+ *
8221
+ * @public
8222
+ */
8223
+ export declare type RaisedHand = {
8224
+ order: number;
8225
+ };
8226
+
8227
+ /**
8228
+ * Props for {@link RaiseHandButton}.
8229
+ *
8230
+ * @public
8231
+ */
8232
+ export declare interface RaiseHandButtonProps extends ControlBarButtonProps {
8233
+ /**
8234
+ * Utility property for using this component with `communication react eventHandlers`.
8235
+ * Maps directly to the `onClick` property.
8236
+ */
8237
+ onToggleRaiseHand?: () => Promise<void>;
8238
+ /**
8239
+ * Optional strings to override in component
8240
+ */
8241
+ strings?: Partial<RaiseHandButtonStrings>;
8242
+ }
8243
+
8244
+ /**
8245
+ * Strings of {@link RaiseHandButton} that can be overridden.
8246
+ *
8247
+ * @public
8248
+ */
8249
+ export declare interface RaiseHandButtonStrings {
8250
+ /** Label when button is on. */
8251
+ onLabel: string;
8252
+ /** Label when button is off. */
8253
+ offLabel: string;
8254
+ /** * Tooltip content when the button is disabled. */
8255
+ tooltipDisabledContent?: string;
8256
+ /** Tooltip content when the button is on. */
8257
+ tooltipOnContent?: string;
8258
+ /** Tooltip content when the button is off. */
8259
+ tooltipOffContent?: string;
8260
+ }
8261
+
8209
8262
  /**
8210
8263
  * State only version of {@link @azure/communication-calling#RaiseHandCallFeature}. {@link StatefulCallClient} will
8211
8264
  * automatically listen for raised hands on the call and update the state exposed by {@link StatefulCallClient} accordingly.
@@ -8216,11 +8269,11 @@ export declare interface RaiseHandCallFeature {
8216
8269
  /**
8217
8270
  * Proxy of {@link @azure/communication-calling#RaiseHandCallFeature.raisedHands}.
8218
8271
  */
8219
- raisedHands: RaisedHand[];
8272
+ raisedHands: RaisedHand_2[];
8220
8273
  /**
8221
8274
  * Contains information for local participant from list {@link @azure/communication-calling#RaiseHandCallFeature.raisedHands}.
8222
8275
  */
8223
- localParticipantRaisedHand?: RaisedHand;
8276
+ localParticipantRaisedHand?: RaisedHand_2;
8224
8277
  }
8225
8278
 
8226
8279
  /**
@@ -8293,7 +8346,7 @@ export declare interface RemoteParticipantState {
8293
8346
  /**
8294
8347
  * Proxy of {@link @azure/communication-calling#Call.RaisedHand.raisedHands}.
8295
8348
  */
8296
- raisedHand?: RaisedHand;
8349
+ raisedHand?: RaisedHand_2;
8297
8350
  }
8298
8351
 
8299
8352
  /**
@@ -9615,7 +9668,10 @@ export declare type VideoGalleryLayout = 'default' | 'floatingLocalVideo';
9615
9668
  *
9616
9669
  * @public
9617
9670
  */
9618
- export declare type VideoGalleryLocalParticipant = VideoGalleryParticipant;
9671
+ export declare interface VideoGalleryLocalParticipant extends VideoGalleryParticipant {
9672
+ /** Whether local participant is raised a hand */
9673
+ raisedHand?: RaisedHand;
9674
+ }
9619
9675
 
9620
9676
  /**
9621
9677
  * The state of a participant in the {@link VideoGallery}.
@@ -9751,6 +9807,8 @@ export declare interface VideoGalleryRemoteParticipant extends VideoGalleryParti
9751
9807
  * The connection state of the participant. For example, 'Hold', 'Connecting' etc.
9752
9808
  */
9753
9809
  state?: ParticipantState;
9810
+ /** Whether participant is raised a hand */
9811
+ raisedHand?: RaisedHand;
9754
9812
  }
9755
9813
 
9756
9814
  /**
@@ -9981,6 +10039,8 @@ export declare interface VideoTileProps {
9981
10039
  noVideoAvailableAriaLabel?: string;
9982
10040
  /** Whether the participant in the videoTile is speaking. Shows a speaking indicator (border). */
9983
10041
  isSpeaking?: boolean;
10042
+ /** Whether the participant is raised hand. Show a indicator (border) and order icon */
10043
+ raisedHand?: RaisedHand;
9984
10044
  /**
9985
10045
  * The call connection state of the participant.
9986
10046
  * For example, `Hold` means the participant is on hold.