@azure/communication-react 1.13.0-alpha-202402100012 → 1.13.0-alpha-202402130013

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 (76) hide show
  1. package/dist/communication-react.d.ts +54 -15
  2. package/dist/dist-cjs/communication-react/index.js +155 -92
  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/react-components/src/components/ImageOverlay.d.ts +7 -3
  7. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +14 -15
  8. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  9. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.d.ts +8 -7
  10. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js +43 -27
  11. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js.map +1 -1
  12. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +8 -2
  13. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +8 -2
  14. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +8 -2
  15. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +8 -2
  16. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +8 -2
  17. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +8 -2
  18. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +8 -2
  19. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +8 -2
  20. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +8 -2
  21. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +8 -2
  22. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +8 -2
  23. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +8 -2
  24. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +8 -2
  25. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +8 -2
  26. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +8 -2
  27. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +8 -2
  28. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +8 -2
  29. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +8 -2
  30. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +8 -2
  31. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +8 -2
  32. package/dist/dist-esm/react-components/src/theming/themes.d.ts +21 -8
  33. package/dist/dist-esm/react-components/src/theming/themes.js +16 -7
  34. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/types/CallSurveyImprovementSuggestions.d.ts +4 -4
  36. package/dist/dist-esm/react-components/src/types/CallSurveyImprovementSuggestions.js.map +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -0
  38. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +14 -1
  39. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -0
  41. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +3 -0
  43. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +9 -0
  44. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  45. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  47. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +3 -0
  48. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +17 -1
  49. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +18 -0
  51. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -0
  53. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +2 -2
  55. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +29 -2
  57. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +29 -2
  58. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +29 -2
  59. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +29 -2
  60. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +29 -2
  61. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +29 -2
  62. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +29 -2
  63. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +29 -2
  64. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +29 -2
  65. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +29 -2
  66. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +29 -2
  67. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +29 -2
  68. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +29 -2
  69. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +29 -2
  70. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +29 -2
  71. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +29 -2
  72. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +29 -2
  73. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +29 -2
  74. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +29 -2
  75. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +29 -2
  76. package/package.json +1 -1
@@ -98,6 +98,7 @@ import { SendMessageOptions } from '@azure/communication-chat';
98
98
  import { SpotlightedParticipant } from '@azure/communication-calling';
99
99
  import { StartCallOptions } from '@azure/communication-calling';
100
100
  import { StartCaptionsOptions } from '@azure/communication-calling';
101
+ import { SyntheticEvent } from 'react';
101
102
  import { TeamsCall } from '@azure/communication-calling';
102
103
  import { TeamsCallAgent } from '@azure/communication-calling';
103
104
  import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
@@ -2807,19 +2808,19 @@ export declare interface CallSurveyImprovementSuggestions {
2807
2808
  /**
2808
2809
  * Improvement suggestions for overall call
2809
2810
  */
2810
- overall?: string;
2811
+ overallRating?: string;
2811
2812
  /**
2812
2813
  * Improvement suggestions for audio experience
2813
2814
  */
2814
- audio?: string;
2815
+ audioRating?: string;
2815
2816
  /**
2816
2817
  * Improvement suggestions for video experience
2817
2818
  */
2818
- video?: string;
2819
+ videoRating?: string;
2819
2820
  /**
2820
2821
  * Improvement suggestions for screenshare experience
2821
2822
  */
2822
- screenshare?: string;
2823
+ screenshareRating?: string;
2823
2824
  }
2824
2825
 
2825
2826
  /**
@@ -3133,6 +3134,8 @@ export declare interface CallWithChatAdapterManagement {
3133
3134
  downloadAttachment: (options: {
3134
3135
  attachmentUrl: string;
3135
3136
  }) => Promise<AttachmentDownloadResult>;
3137
+ downloadResourceToCache(resourceDetails: ResourceDetails): void;
3138
+ removeResourceFromCache(resourceDetails: ResourceDetails): void;
3136
3139
  /**
3137
3140
  * Puts the Call in a Localhold.
3138
3141
  *
@@ -4391,6 +4394,14 @@ export declare interface ChatAdapterThreadManagement {
4391
4394
  downloadAttachment: (options: {
4392
4395
  attachmentUrl: string;
4393
4396
  }) => Promise<AttachmentDownloadResult>;
4397
+ /**
4398
+ * Downloads a resource into the cache for the given message.
4399
+ */
4400
+ downloadResourceToCache(resourceDetails: ResourceDetails): void;
4401
+ /**
4402
+ * Removes a resource from the cache for the given message.
4403
+ */
4404
+ removeResourceFromCache(resourceDetails: ResourceDetails): void;
4394
4405
  }
4395
4406
 
4396
4407
  /**
@@ -4745,6 +4756,26 @@ export declare type ChatParticipantListSelector = (state: ChatClientState, props
4745
4756
  */
4746
4757
  export declare type ChatReturnProps<Component extends (props: any) => JSX.Element> = GetChatSelector<Component> extends (state: ChatClientState, props: any) => any ? ReturnType<GetChatSelector<Component>> & Common<ChatHandlers, Parameters<Component>[0]> : never;
4747
4758
 
4759
+ /**
4760
+ * Custom Fluent theme palette used by chat related components in this library.
4761
+ *
4762
+ * @beta
4763
+ */
4764
+ export declare interface ChatTheme {
4765
+ /**
4766
+ * Custom Fluent theme palette used by chat related components in this library.
4767
+ *
4768
+ * @beta
4769
+ */
4770
+ chatPalette: {
4771
+ modalOverlayBlack: string;
4772
+ modalTitleWhite: string;
4773
+ modalButtonBackground: string;
4774
+ modalButtonBackgroundHover: string;
4775
+ modalButtonBackgroundActive: string;
4776
+ };
4777
+ }
4778
+
4748
4779
  /**
4749
4780
  * A {@link React.Context} that stores a {@link @azure/communication-chat#ChatThreadClient}.
4750
4781
  *
@@ -6089,7 +6120,7 @@ export declare interface CustomMessage extends MessageCommon {
6089
6120
  *
6090
6121
  * @public
6091
6122
  */
6092
- export declare const darkTheme: PartialTheme & CallingTheme;
6123
+ export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
6093
6124
 
6094
6125
  /**
6095
6126
  * @beta
@@ -7453,9 +7484,13 @@ export declare interface ImageOverlayProps {
7453
7484
  */
7454
7485
  onDismiss: () => void;
7455
7486
  /**
7456
- * Optional callback called when the download button is clicked. If not provided, the download button will not be rendered.
7487
+ * Callback called when the download button is clicked.
7457
7488
  */
7458
- onDownloadButtonClicked?: (imageSrc: string) => void;
7489
+ onDownloadButtonClicked: (imageSrc: string) => void;
7490
+ /**
7491
+ * Callback called when there's an error loading the image.
7492
+ */
7493
+ onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
7459
7494
  }
7460
7495
 
7461
7496
  /**
@@ -7474,13 +7509,6 @@ export declare interface ImageOverlayStrings {
7474
7509
  dismissButtonAriaLabel: string;
7475
7510
  }
7476
7511
 
7477
- /**
7478
- * Preset dark theme for the ImageOverlay component.
7479
- *
7480
- * @beta
7481
- */
7482
- export declare const imageOverlayTheme: PartialTheme;
7483
-
7484
7512
  /**
7485
7513
  * @beta
7486
7514
  * This contains a readonly array that returns all the active `incomingCalls`.
@@ -7667,7 +7695,7 @@ export declare interface JumpToNewMessageButtonProps {
7667
7695
  *
7668
7696
  * @public
7669
7697
  */
7670
- export declare const lightTheme: PartialTheme & CallingTheme;
7698
+ export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
7671
7699
 
7672
7700
  /**
7673
7701
  * Whether the stream is loading or not.
@@ -9432,6 +9460,17 @@ export declare interface RemoteVideoTileMenuOptions {
9432
9460
  isHidden?: boolean;
9433
9461
  }
9434
9462
 
9463
+ /**
9464
+ * Details required for download a resource to cache.
9465
+ *
9466
+ * @public
9467
+ */
9468
+ export declare type ResourceDetails = {
9469
+ threadId: string;
9470
+ messageId: string;
9471
+ resourceUrl: string;
9472
+ };
9473
+
9435
9474
  /**
9436
9475
  * A button to start / stop screen sharing.
9437
9476
  *