@azure/communication-react 1.14.0-alpha-202403070010 → 1.14.0-alpha-202403090011

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 (58) hide show
  1. package/dist/communication-react.d.ts +21 -10
  2. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DQB5BrFt.js → RichTextSendBoxWrapper-DXy3ttBO.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DQB5BrFt.js.map → RichTextSendBoxWrapper-DXy3ttBO.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{index-szH03w3_.js → index-DNgYW17b.js} +148 -92
  5. package/dist/dist-cjs/communication-react/index-DNgYW17b.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  9. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +25 -27
  10. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  11. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +17 -6
  12. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  13. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.d.ts +11 -13
  14. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +52 -56
  15. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
  16. package/dist/dist-esm/chat-stateful-client/src/index.d.ts +1 -0
  17. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  18. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +9 -1
  19. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  20. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  21. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +4 -4
  23. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +2 -2
  25. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +18 -20
  26. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +2 -2
  28. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/ImageOverlay.d.ts +2 -2
  30. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +1 -1
  31. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/ReactionButton.d.ts +2 -0
  34. package/dist/dist-esm/react-components/src/components/ReactionButton.js +1 -1
  35. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +1 -0
  37. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +3 -1
  38. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +1 -0
  40. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +12 -2
  41. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +1 -1
  43. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +1 -0
  45. package/dist/dist-esm/react-components/src/theming/themes.d.ts +1 -1
  46. package/dist/dist-esm/react-components/src/theming/themes.js +1 -1
  47. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +7 -0
  49. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +2 -2
  51. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +2 -2
  53. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/common/SendBox.js +1 -2
  55. package/dist/dist-esm/react-composites/src/composites/common/SendBox.js.map +1 -1
  56. package/dist/tsdoc-metadata.json +1 -1
  57. package/package.json +3 -3
  58. package/dist/dist-cjs/communication-react/index-szH03w3_.js.map +0 -1
@@ -3181,9 +3181,9 @@ export declare interface CallWithChatAdapterManagement {
3181
3181
  updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
3182
3182
  /** @beta */
3183
3183
  updateFileUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
3184
- /** @beta */
3184
+ /** @public */
3185
3185
  downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
3186
- /** @beta */
3186
+ /** @public */
3187
3187
  removeResourceFromCache(resourceDetails: ResourceDetails): void;
3188
3188
  /**
3189
3189
  * Puts the Call in a Localhold.
@@ -4484,9 +4484,9 @@ export declare type ChatAdapterUiState = {
4484
4484
 
4485
4485
  /**
4486
4486
  * Represents the type of attachment
4487
- * @beta
4487
+ * @public
4488
4488
  */
4489
- export declare type ChatAttachmentType = 'unknown' | /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ 'inlineImage' | /* @conditional-compile-remove(file-sharing) */ 'file';
4489
+ export declare type ChatAttachmentType = 'unknown' | /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ 'image' | /* @conditional-compile-remove(file-sharing) */ 'file';
4490
4490
 
4491
4491
  /**
4492
4492
  * Common props for selectors for {@link ChatClientState}.
@@ -4799,7 +4799,7 @@ export declare type ChatMessageWithStatus = ChatMessage_2 & {
4799
4799
  clientMessageId?: string;
4800
4800
  status: MessageStatus;
4801
4801
  policyViolation?: boolean;
4802
- resourceCache?: Record<string, string>;
4802
+ resourceCache?: Record<string, ResourceFetchResult>;
4803
4803
  };
4804
4804
 
4805
4805
  /**
@@ -7492,14 +7492,14 @@ export declare interface _Identifiers {
7492
7492
  /**
7493
7493
  * Component to render a fullscreen modal for a selected image.
7494
7494
  *
7495
- * @beta
7495
+ * @public
7496
7496
  */
7497
7497
  export declare const ImageOverlay: (props: ImageOverlayProps) => JSX.Element;
7498
7498
 
7499
7499
  /**
7500
7500
  * Props for {@link ImageOverlay}.
7501
7501
  *
7502
- * @beta
7502
+ * @public
7503
7503
  */
7504
7504
  export declare interface ImageOverlayProps {
7505
7505
  /**
@@ -7551,7 +7551,7 @@ export declare interface ImageOverlayStrings {
7551
7551
  /**
7552
7552
  * Preset dark theme for the ImageOverlay component.
7553
7553
  *
7554
- * @beta
7554
+ * @public
7555
7555
  */
7556
7556
  export declare const imageOverlayTheme: PartialTheme;
7557
7557
 
@@ -7604,7 +7604,7 @@ export declare interface IncomingCallState {
7604
7604
  /**
7605
7605
  * InlineImage's state, as reflected in the UI.
7606
7606
  *
7607
- * @beta
7607
+ * @public
7608
7608
  */
7609
7609
  export declare interface InlineImage {
7610
7610
  /** ID of the message that the inline image is belonged to */
@@ -7616,7 +7616,7 @@ export declare interface InlineImage {
7616
7616
  /**
7617
7617
  * Options to display inline image in the inline image scenario.
7618
7618
  *
7619
- * @beta
7619
+ * @public
7620
7620
  */
7621
7621
  export declare interface InlineImageOptions {
7622
7622
  /**
@@ -9289,6 +9289,8 @@ export declare interface ReactionButtonProps extends ControlBarButtonProps {
9289
9289
  export declare interface ReactionButtonStrings {
9290
9290
  /** Label of the button. */
9291
9291
  label: string;
9292
+ /** Aria label for reaction button accessibility announcement */
9293
+ ariaLabel: string;
9292
9294
  /** Tooltip content when the button is disabled. */
9293
9295
  tooltipDisabledContent?: string;
9294
9296
  /** Tooltip content when the button is enabled. */
@@ -9520,6 +9522,15 @@ export declare type ResourceDetails = {
9520
9522
  resourceUrl: string;
9521
9523
  };
9522
9524
 
9525
+ /**
9526
+ * Result of the Resource downloaded from stateful client
9527
+ * @public
9528
+ */
9529
+ export declare type ResourceFetchResult = {
9530
+ sourceUrl: string;
9531
+ error?: Error;
9532
+ };
9533
+
9523
9534
  /**
9524
9535
  * Options for configuring the rich text editor.
9525
9536
  *
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var index = require('./index-szH03w3_.js');
4
+ var index = require('./index-DNgYW17b.js');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-file-type-icons');
7
7
  require('@azure/communication-common');
@@ -48,4 +48,4 @@ const RichTextSendBoxWrapper = () => {
48
48
  };
49
49
 
50
50
  exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
51
- //# sourceMappingURL=RichTextSendBoxWrapper-DQB5BrFt.js.map
51
+ //# sourceMappingURL=RichTextSendBoxWrapper-DXy3ttBO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextSendBoxWrapper-DQB5BrFt.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { RichTextSendBox } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACI,MAAM,sBAAsB,GAAG,MAAkB;AACtD,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,KAAC,CAAA,aAAA,CAAAA,qBAAe,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,oBAAoB,EAAI,CAAC;AACvD;;;;"}
1
+ {"version":3,"file":"RichTextSendBoxWrapper-DXy3ttBO.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { RichTextSendBox } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACI,MAAM,sBAAsB,GAAG,MAAkB;AACtD,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,KAAC,CAAA,aAAA,CAAAA,qBAAe,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,oBAAoB,EAAI,CAAC;AACvD;;;;"}