@azure/communication-react 1.11.0-alpha-202312120013 → 1.11.0-alpha-202312150013

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 (102) hide show
  1. package/dist/communication-react.d.ts +200 -1
  2. package/dist/dist-cjs/communication-react/index.js +488 -62
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetry.js +2 -2
  5. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -0
  9. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +39 -26
  10. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +0 -1
  12. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  14. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  15. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +2 -2
  16. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  17. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +20 -6
  18. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  19. package/dist/dist-esm/communication-react/src/index.d.ts +2 -0
  20. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +4 -1
  22. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  23. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.d.ts +64 -0
  24. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js +54 -0
  25. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js.map +1 -0
  26. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.d.ts +14 -0
  27. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js +39 -0
  28. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -0
  29. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.d.ts +141 -0
  30. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js +4 -0
  31. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js.map +1 -0
  32. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.d.ts +59 -0
  33. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +81 -0
  34. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -0
  35. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.d.ts +14 -0
  36. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js +30 -0
  37. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -0
  38. package/dist/dist-esm/react-components/src/components/index.d.ts +5 -0
  39. package/dist/dist-esm/react-components/src/components/index.js +6 -0
  40. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +1 -1
  42. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +13 -9
  43. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/index.d.ts +2 -0
  45. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -0
  47. package/dist/dist-esm/react-components/src/theming/icons.js +7 -1
  48. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  49. package/dist/dist-esm/react-components/src/types/SurveyIssues.d.ts +45 -0
  50. package/dist/dist-esm/react-components/src/types/SurveyIssues.js +4 -0
  51. package/dist/dist-esm/react-components/src/types/SurveyIssues.js.map +1 -0
  52. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.d.ts +11 -0
  53. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js +4 -0
  54. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js.map +1 -0
  55. package/dist/dist-esm/react-components/src/types/index.d.ts +2 -0
  56. package/dist/dist-esm/react-components/src/types/index.js +2 -0
  57. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +33 -0
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -7
  60. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +61 -0
  62. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  63. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -0
  64. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +11 -3
  65. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  66. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +7 -0
  67. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +12 -1
  69. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  70. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -0
  71. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +33 -0
  73. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +9 -1
  74. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +33 -0
  76. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -0
  77. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  78. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
  79. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +6 -0
  80. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +7 -0
  82. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
  84. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +6 -0
  85. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -5
  87. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  88. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.d.ts +6 -0
  89. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js +29 -0
  90. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js.map +1 -0
  91. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.d.ts +7 -0
  92. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js +23 -0
  93. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js.map +1 -0
  94. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.d.ts +10 -0
  95. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.js +106 -0
  96. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.js.map +1 -0
  97. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.d.ts +8 -0
  98. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js +22 -0
  99. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js.map +1 -0
  100. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
  101. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +59 -0
  102. package/package.json +2 -2
@@ -32,6 +32,8 @@ import { CallEndReason } from '@azure/communication-calling';
32
32
  import { CallerInfo } from '@azure/communication-calling';
33
33
  import { CallKind } from '@azure/communication-calling';
34
34
  import { CallState as CallState_2 } from '@azure/communication-calling';
35
+ import { CallSurvey } from '@azure/communication-calling';
36
+ import { CallSurveyResponse } from '@azure/communication-calling';
35
37
  import { CapabilitiesChangeInfo } from '@azure/communication-calling';
36
38
  import { CaptionsResultType } from '@azure/communication-calling';
37
39
  import { ChatClient } from '@azure/communication-chat';
@@ -877,6 +879,12 @@ export declare interface CallAdapterCallOperations {
877
879
  * @public
878
880
  */
879
881
  updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect): void;
882
+ /**
883
+ * Send the end of call survey result
884
+ *
885
+ * @beta
886
+ */
887
+ submitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
880
888
  }
881
889
 
882
890
  /**
@@ -1534,6 +1542,38 @@ export declare type CallCompositeOptions = {
1534
1542
  */
1535
1543
  layout?: VideoGalleryLayout;
1536
1544
  };
1545
+ /**
1546
+ * Options for end of call survey
1547
+ */
1548
+ surveyOptions?: {
1549
+ /**
1550
+ * Hide call survey at the end of a call.
1551
+ * @defaultValue false
1552
+ */
1553
+ hideSurvey?: boolean;
1554
+ /**
1555
+ * Optional callback to handle survey data including free form text response
1556
+ * Note that free form text response survey option is only going to be enabled when this callback is provided
1557
+ * User will need to handle all free form text response on their own
1558
+ */
1559
+ onSurveySubmitted?: (callId: string, surveyId: string,
1560
+ /**
1561
+ * This is the survey results containing star survey data and API tag survey data.
1562
+ * This part of the result will always be send to calling sdk
1563
+ * This callback provides user with the ability to gain access to survey data
1564
+ */
1565
+ submittedSurvey: CallSurvey,
1566
+ /**
1567
+ * This is the survey results containing free form text
1568
+ * This part of the result will not be handled by composites
1569
+ * User will need to collect and handle this information 100% on their own
1570
+ * Free form text survey is not going to show in the UI if onSurveySubmitted is not populated
1571
+ */
1572
+ improvementSuggestions: {
1573
+ category: 'audio' | 'video' | 'screenshare';
1574
+ suggestion: string;
1575
+ }[]) => Promise<void>;
1576
+ };
1537
1577
  /**
1538
1578
  * Options for setting additional customizations related to personalized branding.
1539
1579
  */
@@ -2186,6 +2226,66 @@ export declare interface CallCompositeStrings {
2186
2226
  * All strings for capability changed notification
2187
2227
  */
2188
2228
  capabilityChangedNotification?: CapabilityChangedNotificationStrings;
2229
+ /**
2230
+ * Question for the survey
2231
+ */
2232
+ surveyQuestion: string;
2233
+ /**
2234
+ * Helper text to explain what the survey is for
2235
+ */
2236
+ starSurveyHelperText: string;
2237
+ /**
2238
+ * Helper text displayed below survey question after user select one star
2239
+ */
2240
+ starSurveyOneStarText: string;
2241
+ /**
2242
+ * Helper text displayed below survey question after user select two star
2243
+ */
2244
+ starSurveyTwoStarText: string;
2245
+ /**
2246
+ * Helper text displayed below survey question after user select three star
2247
+ */
2248
+ starSurveyThreeStarText: string;
2249
+ /**
2250
+ * Helper text displayed below survey question after user select four star
2251
+ */
2252
+ starSurveyFourStarText: string;
2253
+ /**
2254
+ * Helper text displayed below survey question after user select five star
2255
+ */
2256
+ starSurveyFiveStarText: string;
2257
+ /**
2258
+ * Aria Label for each individual star rating
2259
+ */
2260
+ starRatingAriaLabel: string;
2261
+ /**
2262
+ * Tags Survey Question
2263
+ */
2264
+ tagsSurveyQuestion: string;
2265
+ /**
2266
+ * Tags Survey helper text
2267
+ */
2268
+ tagsSurveyHelperText: string;
2269
+ /**
2270
+ * Confirm button label for survey
2271
+ */
2272
+ surveyConfirmButtonLabel: string;
2273
+ /**
2274
+ * Aria Label for cancel button
2275
+ */
2276
+ surveyCancelButtonAriaLabel: string;
2277
+ /**
2278
+ * Default text for free form text box
2279
+ */
2280
+ surveyTextboxDefaultText: string;
2281
+ /**
2282
+ * Corresponding texts to each call issue
2283
+ */
2284
+ surveyIssues: SurveyIssues;
2285
+ /**
2286
+ * Corresponding texts to each call category
2287
+ */
2288
+ SurveyIssuesHeadingStrings: SurveyIssuesHeadingStrings;
2189
2289
  /**
2190
2290
  * String for the dismiss control on the local and remote PIP on mobile
2191
2291
  */
@@ -2926,6 +3026,12 @@ export declare interface CallWithChatAdapterManagement {
2926
3026
  * @public
2927
3027
  */
2928
3028
  updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect): void;
3029
+ /**
3030
+ * Send the end of call survey result
3031
+ *
3032
+ * @beta
3033
+ */
3034
+ submitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
2929
3035
  }
2930
3036
 
2931
3037
  /**
@@ -3231,6 +3337,38 @@ export declare type CallWithChatCompositeOptions = {
3231
3337
  */
3232
3338
  layout?: VideoGalleryLayout;
3233
3339
  };
3340
+ /**
3341
+ * Options for end of call survey
3342
+ */
3343
+ surveyOptions?: {
3344
+ /**
3345
+ * Hide call survey at the end of a call.
3346
+ * @defaultValue false
3347
+ */
3348
+ hideSurvey?: boolean;
3349
+ /**
3350
+ * Optional callback to handle survey data including free form text response
3351
+ * Note that free form text response survey option is only going to be enabled when this callback is provided
3352
+ * User will need to handle all free form text response on their own
3353
+ */
3354
+ onSurveySubmitted?: (callId: string, surveyId: string,
3355
+ /**
3356
+ * This is the survey results containing star survey data and API tag survey data.
3357
+ * This part of the result will always be send to calling sdk
3358
+ * This callback provides user with the ability to gain access to survey data
3359
+ */
3360
+ submittedSurvey: CallSurvey,
3361
+ /**
3362
+ * This is the survey results containing free form text
3363
+ * This part of the result will not be handled by composites
3364
+ * User will need to collect and handle this information 100% on their own
3365
+ * Free form text survey is not going to show in the UI if onSurveySubmitted is not populated
3366
+ */
3367
+ improvementSuggestions: {
3368
+ category: 'audio' | 'video' | 'screenshare';
3369
+ suggestion: string;
3370
+ }[]) => Promise<void>;
3371
+ };
3234
3372
  /**
3235
3373
  * Options for setting additional customizations related to personalized branding.
3236
3374
  */
@@ -4695,6 +4833,7 @@ export declare interface CommonCallingHandlers {
4695
4833
  onStopCaptions: () => Promise<void>;
4696
4834
  onSetSpokenLanguage: (language: string) => Promise<void>;
4697
4835
  onSetCaptionLanguage: (language: string) => Promise<void>;
4836
+ onSubmitSurvey(survey: CallSurvey): Promise<CallSurveyResponse | undefined>;
4698
4837
  }
4699
4838
 
4700
4839
  /**
@@ -5808,6 +5947,8 @@ export declare const DEFAULT_COMPONENT_ICONS: {
5808
5947
  ContextMenuCameraIcon: React_2.JSX.Element;
5809
5948
  ContextMenuMicIcon: React_2.JSX.Element;
5810
5949
  ContextMenuSpeakerIcon: React_2.JSX.Element;
5950
+ SurveyStarIcon: React_2.JSX.Element;
5951
+ SurveyStarIconFilled: React_2.JSX.Element;
5811
5952
  };
5812
5953
 
5813
5954
  /**
@@ -5946,6 +6087,8 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
5946
6087
  ContextMenuCameraIcon: React_2.JSX.Element;
5947
6088
  ContextMenuMicIcon: React_2.JSX.Element;
5948
6089
  ContextMenuSpeakerIcon: React_2.JSX.Element;
6090
+ SurveyStarIcon: React_2.JSX.Element;
6091
+ SurveyStarIconFilled: React_2.JSX.Element;
5949
6092
  };
5950
6093
 
5951
6094
  /**
@@ -9381,7 +9524,7 @@ export declare interface StatefulDeviceManager extends DeviceManager {
9381
9524
  * any way to {@link @azure/communication-calling#DeviceManager}. It is entirely contained in
9382
9525
  * {@link StatefulDeviceManager}. See also {@link DeviceManagerState.selectedCamera}.
9383
9526
  */
9384
- selectCamera: (VideoDeviceInfo: any) => void;
9527
+ selectCamera: (device: VideoDeviceInfo) => void;
9385
9528
  /**
9386
9529
  * Gets the list of unparented video streams. This is a list of video streams that have not been added to a
9387
9530
  * {@link @azure/communication-calling#Call}. This is useful for developers who want to interact with rendered
@@ -9423,6 +9566,62 @@ export declare interface StreamMediaProps {
9423
9566
  styles?: BaseCustomStyles;
9424
9567
  }
9425
9568
 
9569
+ /**
9570
+ * @beta
9571
+ * Corresponding texts to each call issue
9572
+ */
9573
+ export declare interface SurveyIssues {
9574
+ overallRating: {
9575
+ callCannotJoin: string;
9576
+ callCannotInvite: string;
9577
+ hadToRejoin: string;
9578
+ callEndedUnexpectedly: string;
9579
+ otherIssues: string;
9580
+ };
9581
+ audioRating: {
9582
+ noLocalAudio: string;
9583
+ noRemoteAudio: string;
9584
+ echo: string;
9585
+ audioNoise: string;
9586
+ lowVolume: string;
9587
+ audioStoppedUnexpectedly: string;
9588
+ distortedSpeech: string;
9589
+ audioInterruption: string;
9590
+ otherIssues: string;
9591
+ };
9592
+ videoRating: {
9593
+ noVideoReceived: string;
9594
+ noVideoSent: string;
9595
+ lowQuality: string;
9596
+ freezes: string;
9597
+ stoppedUnexpectedly: string;
9598
+ darkVideoReceived: string;
9599
+ audioVideoOutOfSync: string;
9600
+ otherIssues: string;
9601
+ };
9602
+ screenshareRating: {
9603
+ noContentLocal: string;
9604
+ noContentRemote: string;
9605
+ cannotPresent: string;
9606
+ lowQuality: string;
9607
+ freezes: string;
9608
+ stoppedUnexpectedly: string;
9609
+ largeDelay: string;
9610
+ otherIssues: string;
9611
+ };
9612
+ }
9613
+
9614
+ /**
9615
+ * @beta
9616
+ * Corresponding texts to each call issue category
9617
+ */
9618
+ export declare interface SurveyIssuesHeadingStrings {
9619
+ overallRating: string;
9620
+ audioRating: string;
9621
+ videoRating: string;
9622
+ screenshareRating: string;
9623
+ }
9624
+
9426
9625
  /**
9427
9626
  * Discriminated union of all system messages.
9428
9627
  *