@azure/communication-react 1.16.0-alpha-202405132107 → 1.16.0-alpha-202405140014

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 (161) hide show
  1. package/dist/communication-react.d.ts +96 -113
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js → ChatMessageComponentAsRichTextEditBox-BZZrW3na.js} +23 -14
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BZZrW3na.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{index-W6o1SuXO.js → index-m47fKkX4.js} +647 -869
  5. package/dist/dist-cjs/communication-react/index-m47fKkX4.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/common.d.ts +74 -0
  8. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/index.d.ts +2 -0
  10. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  13. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +3 -6
  14. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +43 -26
  15. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  16. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +0 -2
  17. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  18. package/dist/dist-esm/communication-react/src/index.d.ts +5 -3
  19. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/{AttachmentCard.d.ts → Attachment/AttachmentCard.d.ts} +3 -2
  21. package/dist/dist-esm/react-components/src/components/{AttachmentCard.js → Attachment/AttachmentCard.js} +17 -16
  22. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -0
  23. package/dist/dist-esm/react-components/src/components/{AttachmentCardGroup.js → Attachment/AttachmentCardGroup.js} +1 -1
  24. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js.map +1 -0
  25. package/dist/dist-esm/react-components/src/components/{AttachmentDownloadCards.d.ts → Attachment/AttachmentDownloadCards.d.ts} +3 -2
  26. package/dist/dist-esm/react-components/src/components/{AttachmentDownloadCards.js → Attachment/AttachmentDownloadCards.js} +2 -2
  27. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -0
  28. package/dist/dist-esm/react-components/src/components/{AttachmentUploadCards.d.ts → Attachment/AttachmentUploadCards.d.ts} +3 -3
  29. package/dist/dist-esm/react-components/src/components/{AttachmentUploadCards.js → Attachment/AttachmentUploadCards.js} +3 -3
  30. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js.map +1 -0
  31. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +3 -2
  34. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +1 -1
  36. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +3 -2
  38. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +2 -4
  40. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +21 -12
  41. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +2 -4
  43. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +2 -4
  45. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +25 -14
  46. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +6 -3
  48. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +31 -13
  49. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +3 -2
  51. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +6 -7
  53. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +30 -23
  55. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +43 -27
  56. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  57. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +4 -4
  58. package/dist/dist-esm/react-components/src/components/SendBox.js +42 -17
  59. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/components/index.d.ts +6 -6
  61. package/dist/dist-esm/react-components/src/components/index.js +3 -3
  62. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  63. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +4 -0
  64. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +4 -0
  65. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  66. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +0 -1
  67. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +2 -1
  69. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +27 -2
  71. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +14 -2
  72. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +3 -2
  74. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +6 -5
  75. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js +18 -18
  77. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js.map +1 -1
  78. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +3 -3
  79. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +1 -1
  80. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  81. package/dist/dist-esm/react-components/src/components/utils/common.d.ts +1 -1
  82. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  83. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +18 -18
  84. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +18 -18
  85. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +18 -18
  86. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +18 -18
  87. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +38 -19
  88. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +18 -18
  89. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +18 -18
  90. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +18 -18
  91. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +18 -18
  92. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +18 -18
  93. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +18 -18
  94. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +18 -18
  95. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +18 -18
  96. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +18 -18
  97. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +18 -18
  98. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +18 -18
  99. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +18 -18
  100. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +18 -18
  101. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +18 -18
  102. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +18 -18
  103. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +18 -18
  104. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +21 -49
  105. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  106. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -1
  107. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -14
  109. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +5 -76
  110. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  111. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -23
  112. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  113. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +5 -11
  114. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +22 -40
  115. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  116. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -9
  117. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +1 -5
  118. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  119. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +73 -15
  120. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  121. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +3 -16
  122. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +29 -89
  123. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  124. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +6 -19
  125. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  126. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.d.ts +0 -5
  127. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -31
  128. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  129. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +66 -61
  130. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +33 -44
  131. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -1
  132. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +2 -2
  133. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  134. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +1 -8
  135. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  136. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +22 -10
  137. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  138. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -2
  139. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  140. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +1 -1
  141. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  142. package/package.json +1 -1
  143. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js.map +0 -1
  144. package/dist/dist-cjs/communication-react/index-W6o1SuXO.js.map +0 -1
  145. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +0 -1
  146. package/dist/dist-esm/react-components/src/components/AttachmentCardGroup.js.map +0 -1
  147. package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js.map +0 -1
  148. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +0 -1
  149. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.d.ts +0 -48
  150. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js +0 -188
  151. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js.map +0 -1
  152. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  153. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  154. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  155. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.d.ts +0 -29
  156. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js +0 -12
  157. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js.map +0 -1
  158. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  159. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -15
  160. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  161. /package/dist/dist-esm/react-components/src/components/{AttachmentCardGroup.d.ts → Attachment/AttachmentCardGroup.d.ts} +0 -0
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Fjern fil",
39
39
  "uploading": "Laster opp",
40
40
  "uploadCompleted": "Opplasting fullført",
41
- "boldTooltip": "Fet",
42
- "italicTooltip": "Kursiv",
43
- "underlineTooltip": "Understreking",
44
- "bulletListTooltip": "Punktliste",
45
- "numberListTooltip": "Nummerert liste",
46
- "increaseIndentTooltip": "Øk innrykk",
47
- "decreaseIndentTooltip": "Reduser innrykk",
48
- "insertTableTooltip": "Sett inn tabell",
41
+ "richTextBoldTooltip": "Fet",
42
+ "richTextItalicTooltip": "Kursiv",
43
+ "richTextUnderlineTooltip": "Understreking",
44
+ "richTextBulletListTooltip": "Punktliste",
45
+ "richTextNumberListTooltip": "Nummerert liste",
46
+ "richTextIncreaseIndentTooltip": "Øk innrykk",
47
+ "richTextDecreaseIndentTooltip": "Reduser innrykk",
48
+ "richTextInsertTableTooltip": "Sett inn tabell",
49
49
  "richTextFormatButtonTooltip": "Format",
50
- "insertRowOrColumnMenu": "Sett inn",
51
- "insertTableMenuTitle": "Sett inn {column} x {row}-tabell",
52
- "insertRowAboveMenu": "Sett inn ovenfor",
53
- "insertRowBelowMenu": "Sett inn nedenfor",
54
- "insertColumnLeftMenu": "Sett inn til venstre",
55
- "insertColumnRightMenu": "Sett inn til høyre",
56
- "deleteRowOrColumnMenu": "Slett",
57
- "deleteColumnMenu": "Slett kolonne",
58
- "deleteRowMenu": "Slett rad",
59
- "deleteTableMenu": "Slett tabell",
50
+ "richTextInsertRowOrColumnMenu": "Sett inn",
51
+ "richTextInsertTableMenuTitle": "Sett inn {column} x {row}-tabell",
52
+ "richTextInsertRowAboveMenu": "Sett inn ovenfor",
53
+ "richTextInsertRowBelowMenu": "Sett inn nedenfor",
54
+ "richTextInsertColumnLeftMenu": "Sett inn til venstre",
55
+ "richTextInsertColumnRightMenu": "Sett inn til høyre",
56
+ "richTextDeleteRowOrColumnMenu": "Slett",
57
+ "richTextDeleteColumnMenu": "Slett kolonne",
58
+ "richTextDeleteRowMenu": "Slett rad",
59
+ "richTextDeleteTableMenu": "Slett tabell",
60
60
  "attachmentMoreMenu": "Flere alternativer"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Bestand verwijderen",
39
39
  "uploading": "Uploaden",
40
40
  "uploadCompleted": "Upload voltooid",
41
- "boldTooltip": "Vet",
42
- "italicTooltip": "Cursief",
43
- "underlineTooltip": "Onderstrepen",
44
- "bulletListTooltip": "Lijst met opsommingstekens",
45
- "numberListTooltip": "Genummerde lijst",
46
- "increaseIndentTooltip": "Inspringing vergroten",
47
- "decreaseIndentTooltip": "Inspringing verkleinen",
48
- "insertTableTooltip": "Tabel invoegen",
41
+ "richTextBoldTooltip": "Vet",
42
+ "richTextItalicTooltip": "Cursief",
43
+ "richTextUnderlineTooltip": "Onderstrepen",
44
+ "richTextBulletListTooltip": "Lijst met opsommingstekens",
45
+ "richTextNumberListTooltip": "Genummerde lijst",
46
+ "richTextIncreaseIndentTooltip": "Inspringing vergroten",
47
+ "richTextDecreaseIndentTooltip": "Inspringing verkleinen",
48
+ "richTextInsertTableTooltip": "Tabel invoegen",
49
49
  "richTextFormatButtonTooltip": "Indeling",
50
- "insertRowOrColumnMenu": "Invoegen",
51
- "insertTableMenuTitle": "{column} x {row} tabel invoegen",
52
- "insertRowAboveMenu": "Hierboven invoegen",
53
- "insertRowBelowMenu": "Hieronder invoegen",
54
- "insertColumnLeftMenu": "Links invoegen",
55
- "insertColumnRightMenu": "Rechts invoegen",
56
- "deleteRowOrColumnMenu": "Verwijderen",
57
- "deleteColumnMenu": "Kolom verwijderen",
58
- "deleteRowMenu": "Rij verwijderen",
59
- "deleteTableMenu": "Tabel verwijderen",
50
+ "richTextInsertRowOrColumnMenu": "Invoegen",
51
+ "richTextInsertTableMenuTitle": "{column} x {row} tabel invoegen",
52
+ "richTextInsertRowAboveMenu": "Hierboven invoegen",
53
+ "richTextInsertRowBelowMenu": "Hieronder invoegen",
54
+ "richTextInsertColumnLeftMenu": "Links invoegen",
55
+ "richTextInsertColumnRightMenu": "Rechts invoegen",
56
+ "richTextDeleteRowOrColumnMenu": "Verwijderen",
57
+ "richTextDeleteColumnMenu": "Kolom verwijderen",
58
+ "richTextDeleteRowMenu": "Rij verwijderen",
59
+ "richTextDeleteTableMenu": "Tabel verwijderen",
60
60
  "attachmentMoreMenu": "Meer opties"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Usuwanie pliku",
39
39
  "uploading": "Przekazywanie",
40
40
  "uploadCompleted": "Zakończono przekazywanie",
41
- "boldTooltip": "Pogrubienie",
42
- "italicTooltip": "Kursywa",
43
- "underlineTooltip": "Podkreślenie",
44
- "bulletListTooltip": "Lista punktowana",
45
- "numberListTooltip": "Lista numerowana",
46
- "increaseIndentTooltip": "Zwiększ wcięcie",
47
- "decreaseIndentTooltip": "Zmniejsz wcięcie",
48
- "insertTableTooltip": "Wstaw tabelę",
41
+ "richTextBoldTooltip": "Pogrubienie",
42
+ "richTextItalicTooltip": "Kursywa",
43
+ "richTextUnderlineTooltip": "Podkreślenie",
44
+ "richTextBulletListTooltip": "Lista punktowana",
45
+ "richTextNumberListTooltip": "Lista numerowana",
46
+ "richTextIncreaseIndentTooltip": "Zwiększ wcięcie",
47
+ "richTextDecreaseIndentTooltip": "Zmniejsz wcięcie",
48
+ "richTextInsertTableTooltip": "Wstaw tabelę",
49
49
  "richTextFormatButtonTooltip": "Formatowanie",
50
- "insertRowOrColumnMenu": "Wstaw",
51
- "insertTableMenuTitle": "Wstaw tabelę {column} x {row}",
52
- "insertRowAboveMenu": "Wstaw powyżej",
53
- "insertRowBelowMenu": "Wstaw poniżej",
54
- "insertColumnLeftMenu": "Wstaw z lewej",
55
- "insertColumnRightMenu": "Wstaw z prawej",
56
- "deleteRowOrColumnMenu": "Usuń",
57
- "deleteColumnMenu": "Usuń kolumnę",
58
- "deleteRowMenu": "Usuń wiersz",
59
- "deleteTableMenu": "Usuń tabelę",
50
+ "richTextInsertRowOrColumnMenu": "Wstaw",
51
+ "richTextInsertTableMenuTitle": "Wstaw tabelę {column} x {row}",
52
+ "richTextInsertRowAboveMenu": "Wstaw powyżej",
53
+ "richTextInsertRowBelowMenu": "Wstaw poniżej",
54
+ "richTextInsertColumnLeftMenu": "Wstaw z lewej",
55
+ "richTextInsertColumnRightMenu": "Wstaw z prawej",
56
+ "richTextDeleteRowOrColumnMenu": "Usuń",
57
+ "richTextDeleteColumnMenu": "Usuń kolumnę",
58
+ "richTextDeleteRowMenu": "Usuń wiersz",
59
+ "richTextDeleteTableMenu": "Usuń tabelę",
60
60
  "attachmentMoreMenu": "Więcej opcji"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Remover arquivo",
39
39
  "uploading": "Carregando",
40
40
  "uploadCompleted": "Carregamento concluído",
41
- "boldTooltip": "Negrito",
42
- "italicTooltip": "Itálico",
43
- "underlineTooltip": "Sublinhar",
44
- "bulletListTooltip": "Lista com marcadores",
45
- "numberListTooltip": "Lista numerada",
46
- "increaseIndentTooltip": "Aumentar recuo",
47
- "decreaseIndentTooltip": "Diminuir recuo",
48
- "insertTableTooltip": "Inserir tabela",
41
+ "richTextBoldTooltip": "Negrito",
42
+ "richTextItalicTooltip": "Itálico",
43
+ "richTextUnderlineTooltip": "Sublinhar",
44
+ "richTextBulletListTooltip": "Lista com marcadores",
45
+ "richTextNumberListTooltip": "Lista numerada",
46
+ "richTextIncreaseIndentTooltip": "Aumentar recuo",
47
+ "richTextDecreaseIndentTooltip": "Diminuir recuo",
48
+ "richTextInsertTableTooltip": "Inserir tabela",
49
49
  "richTextFormatButtonTooltip": "Formato",
50
- "insertRowOrColumnMenu": "Inserir",
51
- "insertTableMenuTitle": "Inserir tabela {column} x {row}",
52
- "insertRowAboveMenu": "Inserir acima",
53
- "insertRowBelowMenu": "Inserir abaixo",
54
- "insertColumnLeftMenu": "Inserir à esquerda",
55
- "insertColumnRightMenu": "Inserir à direita",
56
- "deleteRowOrColumnMenu": "Excluir",
57
- "deleteColumnMenu": "Excluir coluna",
58
- "deleteRowMenu": "Excluir linha",
59
- "deleteTableMenu": "Excluir tabela",
50
+ "richTextInsertRowOrColumnMenu": "Inserir",
51
+ "richTextInsertTableMenuTitle": "Inserir tabela {column} x {row}",
52
+ "richTextInsertRowAboveMenu": "Inserir acima",
53
+ "richTextInsertRowBelowMenu": "Inserir abaixo",
54
+ "richTextInsertColumnLeftMenu": "Inserir à esquerda",
55
+ "richTextInsertColumnRightMenu": "Inserir à direita",
56
+ "richTextDeleteRowOrColumnMenu": "Excluir",
57
+ "richTextDeleteColumnMenu": "Excluir coluna",
58
+ "richTextDeleteRowMenu": "Excluir linha",
59
+ "richTextDeleteTableMenu": "Excluir tabela",
60
60
  "attachmentMoreMenu": "Mais Opções"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Удалить файл",
39
39
  "uploading": "Отправка",
40
40
  "uploadCompleted": "Отправка завершена",
41
- "boldTooltip": "Полужирный",
42
- "italicTooltip": "Курсив",
43
- "underlineTooltip": "Подчеркнуть",
44
- "bulletListTooltip": "Маркированный список",
45
- "numberListTooltip": "Нумерованный список",
46
- "increaseIndentTooltip": "Увеличить отступ",
47
- "decreaseIndentTooltip": "Уменьшить отступ",
48
- "insertTableTooltip": "Вставить таблицу",
41
+ "richTextBoldTooltip": "Полужирный",
42
+ "richTextItalicTooltip": "Курсив",
43
+ "richTextUnderlineTooltip": "Подчеркнуть",
44
+ "richTextBulletListTooltip": "Маркированный список",
45
+ "richTextNumberListTooltip": "Нумерованный список",
46
+ "richTextIncreaseIndentTooltip": "Увеличить отступ",
47
+ "richTextDecreaseIndentTooltip": "Уменьшить отступ",
48
+ "richTextInsertTableTooltip": "Вставить таблицу",
49
49
  "richTextFormatButtonTooltip": "Формат",
50
- "insertRowOrColumnMenu": "Вставить",
51
- "insertTableMenuTitle": "Вставить таблицу {column} x {row}",
52
- "insertRowAboveMenu": "Вставить сверху",
53
- "insertRowBelowMenu": "Вставить снизу",
54
- "insertColumnLeftMenu": "Вставить слева",
55
- "insertColumnRightMenu": "Вставить справа",
56
- "deleteRowOrColumnMenu": "Удалить",
57
- "deleteColumnMenu": "Удалить столбец",
58
- "deleteRowMenu": "Удалить строку",
59
- "deleteTableMenu": "Удалить таблицу",
50
+ "richTextInsertRowOrColumnMenu": "Вставить",
51
+ "richTextInsertTableMenuTitle": "Вставить таблицу {column} x {row}",
52
+ "richTextInsertRowAboveMenu": "Вставить сверху",
53
+ "richTextInsertRowBelowMenu": "Вставить снизу",
54
+ "richTextInsertColumnLeftMenu": "Вставить слева",
55
+ "richTextInsertColumnRightMenu": "Вставить справа",
56
+ "richTextDeleteRowOrColumnMenu": "Удалить",
57
+ "richTextDeleteColumnMenu": "Удалить столбец",
58
+ "richTextDeleteRowMenu": "Удалить строку",
59
+ "richTextDeleteTableMenu": "Удалить таблицу",
60
60
  "attachmentMoreMenu": "Дополнительные параметры"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Ta bort filen",
39
39
  "uploading": "Laddar upp",
40
40
  "uploadCompleted": "Uppladdningen har slutförts",
41
- "boldTooltip": "Fet",
42
- "italicTooltip": "Kursiv",
43
- "underlineTooltip": "Understruken",
44
- "bulletListTooltip": "Punktlista",
45
- "numberListTooltip": "Numrerad lista",
46
- "increaseIndentTooltip": "Öka indrag",
47
- "decreaseIndentTooltip": "Minska indrag",
48
- "insertTableTooltip": "Infoga tabell",
41
+ "richTextBoldTooltip": "Fet",
42
+ "richTextItalicTooltip": "Kursiv",
43
+ "richTextUnderlineTooltip": "Understruken",
44
+ "richTextBulletListTooltip": "Punktlista",
45
+ "richTextNumberListTooltip": "Numrerad lista",
46
+ "richTextIncreaseIndentTooltip": "Öka indrag",
47
+ "richTextDecreaseIndentTooltip": "Minska indrag",
48
+ "richTextInsertTableTooltip": "Infoga tabell",
49
49
  "richTextFormatButtonTooltip": "Format",
50
- "insertRowOrColumnMenu": "Infoga",
51
- "insertTableMenuTitle": "Infoga tabell på {column} x {row}",
52
- "insertRowAboveMenu": "Infoga ovan",
53
- "insertRowBelowMenu": "Infoga nedanför",
54
- "insertColumnLeftMenu": "Infoga till vänster",
55
- "insertColumnRightMenu": "Infoga till höger",
56
- "deleteRowOrColumnMenu": "Ta bort",
57
- "deleteColumnMenu": "Ta bort kolumn",
58
- "deleteRowMenu": "Ta bort rad",
59
- "deleteTableMenu": "Ta bort tabell",
50
+ "richTextInsertRowOrColumnMenu": "Infoga",
51
+ "richTextInsertTableMenuTitle": "Infoga tabell på {column} x {row}",
52
+ "richTextInsertRowAboveMenu": "Infoga ovan",
53
+ "richTextInsertRowBelowMenu": "Infoga nedanför",
54
+ "richTextInsertColumnLeftMenu": "Infoga till vänster",
55
+ "richTextInsertColumnRightMenu": "Infoga till höger",
56
+ "richTextDeleteRowOrColumnMenu": "Ta bort",
57
+ "richTextDeleteColumnMenu": "Ta bort kolumn",
58
+ "richTextDeleteRowMenu": "Ta bort rad",
59
+ "richTextDeleteTableMenu": "Ta bort tabell",
60
60
  "attachmentMoreMenu": "Fler alternativ"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "Dosyayı kaldır",
39
39
  "uploading": "Yükleniyor",
40
40
  "uploadCompleted": "Karşıya yükleme tamamlandı",
41
- "boldTooltip": "Kalın",
42
- "italicTooltip": "İtalik",
43
- "underlineTooltip": "Altı çizili",
44
- "bulletListTooltip": "Madde işaretli liste",
45
- "numberListTooltip": "Numaralandırılmış liste",
46
- "increaseIndentTooltip": "Girintiyi artır",
47
- "decreaseIndentTooltip": "Girintiyi azalt",
48
- "insertTableTooltip": "Tablo ekle",
41
+ "richTextBoldTooltip": "Kalın",
42
+ "richTextItalicTooltip": "İtalik",
43
+ "richTextUnderlineTooltip": "Altı çizili",
44
+ "richTextBulletListTooltip": "Madde işaretli liste",
45
+ "richTextNumberListTooltip": "Numaralandırılmış liste",
46
+ "richTextIncreaseIndentTooltip": "Girintiyi artır",
47
+ "richTextDecreaseIndentTooltip": "Girintiyi azalt",
48
+ "richTextInsertTableTooltip": "Tablo ekle",
49
49
  "richTextFormatButtonTooltip": "Biçim",
50
- "insertRowOrColumnMenu": "Ekle",
51
- "insertTableMenuTitle": "{column} x {row} tablosunu ekleme",
52
- "insertRowAboveMenu": "Üste ekle",
53
- "insertRowBelowMenu": "Aşağıya ekle",
54
- "insertColumnLeftMenu": "Sola ekle",
55
- "insertColumnRightMenu": "Sağa ekle",
56
- "deleteRowOrColumnMenu": "Sil",
57
- "deleteColumnMenu": "Sütunu sil",
58
- "deleteRowMenu": "Satırı sil",
59
- "deleteTableMenu": "Tabloyu sil",
50
+ "richTextInsertRowOrColumnMenu": "Ekle",
51
+ "richTextInsertTableMenuTitle": "{column} x {row} tablosunu ekleme",
52
+ "richTextInsertRowAboveMenu": "Üste ekle",
53
+ "richTextInsertRowBelowMenu": "Aşağıya ekle",
54
+ "richTextInsertColumnLeftMenu": "Sola ekle",
55
+ "richTextInsertColumnRightMenu": "Sağa ekle",
56
+ "richTextDeleteRowOrColumnMenu": "Sil",
57
+ "richTextDeleteColumnMenu": "Sütunu sil",
58
+ "richTextDeleteRowMenu": "Satırı sil",
59
+ "richTextDeleteTableMenu": "Tabloyu sil",
60
60
  "attachmentMoreMenu": "Diğer Seçenekler"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "删除文件",
39
39
  "uploading": "正在上传",
40
40
  "uploadCompleted": "已完成上传",
41
- "boldTooltip": "粗体",
42
- "italicTooltip": "斜体",
43
- "underlineTooltip": "下划线",
44
- "bulletListTooltip": "项目符号列表",
45
- "numberListTooltip": "编号列表",
46
- "increaseIndentTooltip": "增加缩进量",
47
- "decreaseIndentTooltip": "减少缩进量",
48
- "insertTableTooltip": "插入表格",
41
+ "richTextBoldTooltip": "粗体",
42
+ "richTextItalicTooltip": "斜体",
43
+ "richTextUnderlineTooltip": "下划线",
44
+ "richTextBulletListTooltip": "项目符号列表",
45
+ "richTextNumberListTooltip": "编号列表",
46
+ "richTextIncreaseIndentTooltip": "增加缩进量",
47
+ "richTextDecreaseIndentTooltip": "减少缩进量",
48
+ "richTextInsertTableTooltip": "插入表格",
49
49
  "richTextFormatButtonTooltip": "格式",
50
- "insertRowOrColumnMenu": "插入",
51
- "insertTableMenuTitle": "插入 {column} x {row} 表",
52
- "insertRowAboveMenu": "在上方插入",
53
- "insertRowBelowMenu": "在下方插入",
54
- "insertColumnLeftMenu": "在左侧插入",
55
- "insertColumnRightMenu": "在右侧插入",
56
- "deleteRowOrColumnMenu": "删除",
57
- "deleteColumnMenu": "删除列",
58
- "deleteRowMenu": "删除行",
59
- "deleteTableMenu": "删除表格",
50
+ "richTextInsertRowOrColumnMenu": "插入",
51
+ "richTextInsertTableMenuTitle": "插入 {column} x {row} 表",
52
+ "richTextInsertRowAboveMenu": "在上方插入",
53
+ "richTextInsertRowBelowMenu": "在下方插入",
54
+ "richTextInsertColumnLeftMenu": "在左侧插入",
55
+ "richTextInsertColumnRightMenu": "在右侧插入",
56
+ "richTextDeleteRowOrColumnMenu": "删除",
57
+ "richTextDeleteColumnMenu": "删除列",
58
+ "richTextDeleteRowMenu": "删除行",
59
+ "richTextDeleteTableMenu": "删除表格",
60
60
  "attachmentMoreMenu": "更多选项"
61
61
  },
62
62
  "mentionPopover": {
@@ -38,25 +38,25 @@
38
38
  "removeAttachment": "移除檔案",
39
39
  "uploading": "正在上傳",
40
40
  "uploadCompleted": "上傳完成",
41
- "boldTooltip": "粗體",
42
- "italicTooltip": "斜體",
43
- "underlineTooltip": "底線",
44
- "bulletListTooltip": "項目符號清單",
45
- "numberListTooltip": "編號清單",
46
- "increaseIndentTooltip": "增加縮排",
47
- "decreaseIndentTooltip": "減少縮排",
48
- "insertTableTooltip": "插入表格",
41
+ "richTextBoldTooltip": "粗體",
42
+ "richTextItalicTooltip": "斜體",
43
+ "richTextUnderlineTooltip": "底線",
44
+ "richTextBulletListTooltip": "項目符號清單",
45
+ "richTextNumberListTooltip": "編號清單",
46
+ "richTextIncreaseIndentTooltip": "增加縮排",
47
+ "richTextDecreaseIndentTooltip": "減少縮排",
48
+ "richTextInsertTableTooltip": "插入表格",
49
49
  "richTextFormatButtonTooltip": "格式",
50
- "insertRowOrColumnMenu": "插入",
51
- "insertTableMenuTitle": "插入 {column} x {row} 表格",
52
- "insertRowAboveMenu": "在上方插入",
53
- "insertRowBelowMenu": "在下方插入",
54
- "insertColumnLeftMenu": "於左方插入",
55
- "insertColumnRightMenu": "於右方插入",
56
- "deleteRowOrColumnMenu": "刪除",
57
- "deleteColumnMenu": "刪除欄",
58
- "deleteRowMenu": "刪除列",
59
- "deleteTableMenu": "刪除表格",
50
+ "richTextInsertRowOrColumnMenu": "插入",
51
+ "richTextInsertTableMenuTitle": "插入 {column} x {row} 表格",
52
+ "richTextInsertRowAboveMenu": "在上方插入",
53
+ "richTextInsertRowBelowMenu": "在下方插入",
54
+ "richTextInsertColumnLeftMenu": "於左方插入",
55
+ "richTextInsertColumnRightMenu": "於右方插入",
56
+ "richTextDeleteRowOrColumnMenu": "刪除",
57
+ "richTextDeleteColumnMenu": "刪除欄",
58
+ "richTextDeleteRowMenu": "刪除列",
59
+ "richTextDeleteTableMenu": "刪除表格",
60
60
  "attachmentMoreMenu": "其他選項"
61
61
  },
62
62
  "mentionPopover": {
@@ -1,53 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ChatMessage } from './ChatMessage';
3
- /**
4
- * Metadata containing basic information about the attachment.
5
- *
6
- * @beta
7
- */
8
- export interface AttachmentMetadata {
9
- /**
10
- * Extension hint, useful for rendering a specific icon.
11
- * An unknown or empty extension will be rendered as a generic icon.
12
- * Example: `pdf`
13
- */
14
- extension?: string;
15
- /**
16
- * Unique ID of the attachment.
17
- */
18
- id: string;
19
- /**
20
- * Attachment name to be displayed.
21
- */
22
- name: string;
23
- /**
24
- * Download URL for the attachment.
25
- */
26
- url?: string;
27
- }
28
- /**
29
- * Metadata containing basic information about the uploading attachment.
30
- *
31
- * @beta
32
- */
33
- export interface AttachmentMetadataWithProgress extends AttachmentMetadata {
34
- /**
35
- * A number between 0 and 1 indicating the progress of the upload.
36
- */
37
- progress?: number;
38
- /**
39
- * A object contains error message would be shown to the user.
40
- */
41
- error?: AttachmentProgressError;
42
- }
43
- /**
44
- * @beta
45
- * A attachment progress error object that contains message to be shown to
46
- * the user when upload fails.
47
- */
48
- export interface AttachmentProgressError {
49
- message: string;
50
- }
3
+ import { AttachmentMetadata } from "../../../acs-ui-common/src";
51
4
  /**
52
5
  * @beta
53
6
  *
@@ -63,7 +16,7 @@ export interface AttachmentOptions {
63
16
  * Attachment download options defines the list of actions that can be performed on an attachment.
64
17
  */
65
18
  export interface AttachmentDownloadOptions {
66
- actionsForAttachment: (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];
19
+ actionsForAttachment: AttachmentActionHandler;
67
20
  }
68
21
  /**
69
22
  * @beta
@@ -145,6 +98,18 @@ export interface AttachmentUploadTask {
145
98
  */
146
99
  notifyUploadFailed: (message: string) => void;
147
100
  }
101
+ /**
102
+ * @beta
103
+ * A callback function that defines what actions user can perform on an attachment.
104
+ * By default, the UI library would have default actions that opens attachment URL in a new tab.
105
+ * You can override the default actions or add new actions by providing this callback function.
106
+ * Moreover, you can also return dynamic actions based on the properties in {@link AttachmentMetadata} and/or {@link ChatMessage}.
107
+ *
108
+ * @param attachment - The file attachment that user is trying to perform actions on.
109
+ * @param message - The chat message that contains this attachment.
110
+ * @returns A list of {@link AttachmentMenuAction} that defines the type of actions user can perform on the attachment.
111
+ */
112
+ export type AttachmentActionHandler = (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];
148
113
  /**
149
114
  * @beta
150
115
  * A callback function for handling list of upload tasks that contains files selected by user to upload.
@@ -159,4 +124,11 @@ export type AttachmentSelectionHandler = (attachmentUploads: AttachmentUploadTas
159
124
  * @param attachmentId - The ID of uploaded attachments.
160
125
  */
161
126
  export type AttachmentRemovalHandler = (attachmentId: string) => void;
127
+ /**
128
+ * A wrapper for list of attachment metadata that is used for new message requests and update message requsts.
129
+ * @internal
130
+ */
131
+ export type AttachmentMetadataWrapper = {
132
+ fileSharingMetadata: string;
133
+ };
162
134
  //# sourceMappingURL=Attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/Attachment.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ChatMessage } from './ChatMessage';\n\n/**\n * Metadata containing basic information about the attachment.\n *\n * @beta\n */\nexport interface AttachmentMetadata {\n /**\n * Extension hint, useful for rendering a specific icon.\n * An unknown or empty extension will be rendered as a generic icon.\n * Example: `pdf`\n */\n extension?: string;\n /**\n * Unique ID of the attachment.\n */\n id: string;\n /**\n * Attachment name to be displayed.\n */\n name: string;\n /**\n * Download URL for the attachment.\n */\n url?: string;\n}\n\n/**\n * Metadata containing basic information about the uploading attachment.\n *\n * @beta\n */\nexport interface AttachmentMetadataWithProgress extends AttachmentMetadata {\n /**\n * A number between 0 and 1 indicating the progress of the upload.\n */\n progress?: number;\n /**\n * A object contains error message would be shown to the user.\n */\n error?: AttachmentProgressError;\n}\n\n/**\n * @beta\n * A attachment progress error object that contains message to be shown to\n * the user when upload fails.\n */\nexport interface AttachmentProgressError {\n message: string;\n}\n\n/**\n * @beta\n *\n * Attachment Options that defines behaviour for uploading and downloading attachments.\n */\nexport interface AttachmentOptions {\n uploadOptions?: AttachmentUploadOptions;\n downloadOptions?: AttachmentDownloadOptions;\n}\n\n/**\n * @beta\n *\n * Attachment download options defines the list of actions that can be performed on an attachment.\n */\nexport interface AttachmentDownloadOptions {\n // A callback function that defines what action user can perform on an attachment.\n // by default, the UI library would have default actions that opens attachment URL in a new tab\n // provide this callback function to override the default actions or add new actions.\n actionsForAttachment: (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];\n}\n\n/**\n * @beta\n *\n * Attachment menu action defines buttons that can be shown on the attachment card.\n * If there's one action, it will be shown as a button, if there are multiple actions, it will be shown as a dropdown.\n */\nexport interface AttachmentMenuAction {\n name: string;\n icon: JSX.Element;\n onClick: (attachment: AttachmentMetadata) => Promise<void>;\n}\n\n/**\n * @beta\n */\nexport interface AttachmentUploadOptions {\n /**\n * A list of strings containing the comma separated list of supported media (aka. mime) types.\n * i.e. ['image/*', 'video/*', 'audio/*']\n * Default value is `['*']`, meaning all media types are supported.\n * Similar to the `accept` attribute of the `<input type=\"attachment\" />` element.\n * @beta\n */\n supportedMediaTypes?: string[];\n /**\n * Disable multiple attachments to be selected if set to `true`.\n * Default value is `false`, meaning multiple attachments can be selected.\n * Similar to the `multiple` attribute of the `<input type=\"attachment\" />` element.\n * @beta\n */\n disableMultipleUploads?: boolean;\n /**\n * A callback function of type {@link AttachmentSelectionHandler} that will be called\n * when user finishes selecting files in browser's file picker. This function is required since\n * this would be where upload logic is implemented to your own storage.\n * @beta\n */\n handleAttachmentSelection: AttachmentSelectionHandler;\n /**\n * A optional callback function that will be called\n * when user removing files before clicking send message button. This function will be\n * where you can remove the file from your storage.\n * @beta\n */\n handleAttachmentRemoval?: AttachmentRemovalHandler;\n}\n\n/**\n * A upload task represents and manages an attachment that is being uploaded.\n * When using the Composite, an attachment upload task is created for each file user is selected to upload.\n * A upload task is complete when notifyUploadCompleted is called.\n * A upload task is failed when notifyUploadFailed is called.\n * @beta\n */\nexport interface AttachmentUploadTask {\n /**\n * Unique identifier for the attachment upload task.\n */\n taskId: string;\n /**\n * HTML {@link File} object for the uploaded attachment.\n */\n file?: File;\n /**\n * Update the progress of the upload changed.\n * A upload is considered complete when the progress reaches 1.\n * @param value - number between 0 and 1\n */\n notifyUploadProgressChanged: (value: number) => void;\n /**\n * Mark the upload task as complete.\n * An attachment is considered completed uploading when ID and URL are provided.\n * @param id - the unique identifier of the attachment.\n * @param url - the download URL of the attachment.\n */\n notifyUploadCompleted: (id: string, url: string) => void;\n /**\n * Mark the upload task as failed.\n * @param message - An error message that can be displayed to the user.\n */\n notifyUploadFailed: (message: string) => void;\n}\n\n/**\n * @beta\n * A callback function for handling list of upload tasks that contains files selected by user to upload.\n *\n * @param AttachmentUploads - The list of uploaded attachments. Each attachment is represented by an {@link AttachmentUpload} object.\n */\nexport type AttachmentSelectionHandler = (attachmentUploads: AttachmentUploadTask[]) => void;\n\n/**\n * @beta\n * A callback function for handling attachment removed by the user in send box.\n *\n * @param attachmentId - The ID of uploaded attachments.\n */\nexport type AttachmentRemovalHandler = (attachmentId: string) => void;\n"]}
1
+ {"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/Attachment.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ChatMessage } from './ChatMessage';\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\n\n/**\n * @beta\n *\n * Attachment Options that defines behaviour for uploading and downloading attachments.\n */\nexport interface AttachmentOptions {\n uploadOptions?: AttachmentUploadOptions;\n downloadOptions?: AttachmentDownloadOptions;\n}\n\n/**\n * @beta\n *\n * Attachment download options defines the list of actions that can be performed on an attachment.\n */\nexport interface AttachmentDownloadOptions {\n // A callback function that defines what action user can perform on an attachment.\n // by default, the UI library would have default actions that opens attachment URL in a new tab\n // provide this callback function to override the default actions or add new actions.\n actionsForAttachment: AttachmentActionHandler;\n}\n\n/**\n * @beta\n *\n * Attachment menu action defines buttons that can be shown on the attachment card.\n * If there's one action, it will be shown as a button, if there are multiple actions, it will be shown as a dropdown.\n */\nexport interface AttachmentMenuAction {\n name: string;\n icon: JSX.Element;\n onClick: (attachment: AttachmentMetadata) => Promise<void>;\n}\n\n/**\n * @beta\n */\nexport interface AttachmentUploadOptions {\n /**\n * A list of strings containing the comma separated list of supported media (aka. mime) types.\n * i.e. ['image/*', 'video/*', 'audio/*']\n * Default value is `['*']`, meaning all media types are supported.\n * Similar to the `accept` attribute of the `<input type=\"attachment\" />` element.\n * @beta\n */\n supportedMediaTypes?: string[];\n /**\n * Disable multiple attachments to be selected if set to `true`.\n * Default value is `false`, meaning multiple attachments can be selected.\n * Similar to the `multiple` attribute of the `<input type=\"attachment\" />` element.\n * @beta\n */\n disableMultipleUploads?: boolean;\n /**\n * A callback function of type {@link AttachmentSelectionHandler} that will be called\n * when user finishes selecting files in browser's file picker. This function is required since\n * this would be where upload logic is implemented to your own storage.\n * @beta\n */\n handleAttachmentSelection: AttachmentSelectionHandler;\n /**\n * A optional callback function that will be called\n * when user removing files before clicking send message button. This function will be\n * where you can remove the file from your storage.\n * @beta\n */\n handleAttachmentRemoval?: AttachmentRemovalHandler;\n}\n\n/**\n * A upload task represents and manages an attachment that is being uploaded.\n * When using the Composite, an attachment upload task is created for each file user is selected to upload.\n * A upload task is complete when notifyUploadCompleted is called.\n * A upload task is failed when notifyUploadFailed is called.\n * @beta\n */\nexport interface AttachmentUploadTask {\n /**\n * Unique identifier for the attachment upload task.\n */\n taskId: string;\n /**\n * HTML {@link File} object for the uploaded attachment.\n */\n file?: File;\n /**\n * Update the progress of the upload changed.\n * A upload is considered complete when the progress reaches 1.\n * @param value - number between 0 and 1\n */\n notifyUploadProgressChanged: (value: number) => void;\n /**\n * Mark the upload task as complete.\n * An attachment is considered completed uploading when ID and URL are provided.\n * @param id - the unique identifier of the attachment.\n * @param url - the download URL of the attachment.\n */\n notifyUploadCompleted: (id: string, url: string) => void;\n /**\n * Mark the upload task as failed.\n * @param message - An error message that can be displayed to the user.\n */\n notifyUploadFailed: (message: string) => void;\n}\n\n/**\n * @beta\n * A callback function that defines what actions user can perform on an attachment.\n * By default, the UI library would have default actions that opens attachment URL in a new tab.\n * You can override the default actions or add new actions by providing this callback function.\n * Moreover, you can also return dynamic actions based on the properties in {@link AttachmentMetadata} and/or {@link ChatMessage}.\n *\n * @param attachment - The file attachment that user is trying to perform actions on.\n * @param message - The chat message that contains this attachment.\n * @returns A list of {@link AttachmentMenuAction} that defines the type of actions user can perform on the attachment.\n */\nexport type AttachmentActionHandler = (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];\n\n/**\n * @beta\n * A callback function for handling list of upload tasks that contains files selected by user to upload.\n *\n * @param AttachmentUploads - The list of uploaded attachments. Each attachment is represented by an {@link AttachmentUpload} object.\n */\nexport type AttachmentSelectionHandler = (attachmentUploads: AttachmentUploadTask[]) => void;\n\n/**\n * @beta\n * A callback function for handling attachment removed by the user in send box.\n *\n * @param attachmentId - The ID of uploaded attachments.\n */\nexport type AttachmentRemovalHandler = (attachmentId: string) => void;\n\n/**\n * A wrapper for list of attachment metadata that is used for new message requests and update message requsts.\n * @internal\n */\nexport type AttachmentMetadataWrapper = {\n fileSharingMetadata: string;\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { MessageStatus } from "../../../acs-ui-common/src";
2
2
  import { CommunicationParticipant } from './CommunicationParticipant';
3
- import { AttachmentMetadata } from './Attachment';
3
+ import { AttachmentMetadata } from "../../../acs-ui-common/src";
4
4
  /**
5
5
  * Indicate whether a chat message should be displayed merged with the message before / after it.
6
6
  * If `true`, the message will be appear grouped with the message before it.
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ChatMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { MessageStatus } from '@internal/acs-ui-common';\nimport { CommunicationParticipant } from './CommunicationParticipant';\n/* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\nimport { AttachmentMetadata } from './Attachment';\n\n/**\n * Indicate whether a chat message should be displayed merged with the message before / after it.\n * If `true`, the message will be appear grouped with the message before it.\n * 'top' and 'bottom' are used to indicate that the message is the start or end of a group.\n *\n * @public\n */\nexport type MessageAttachedStatus = 'bottom' | 'top' | boolean;\n\n/**\n * Supported types of chat message content.\n *\n * @public\n */\nexport type MessageContentType = 'text' | 'html' | 'richtext/html' | 'unknown';\n\n/**\n * Discriminated union of all messages.\n *\n * The `messageType` field specializes into union variants.\n *\n * @public\n */\nexport type Message =\n | ChatMessage\n | SystemMessage\n | CustomMessage\n | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage;\n\n/**\n * Discriminated union of all system messages.\n *\n * The `systemMessageType` field specializes into union variants.\n *\n * @public\n */\nexport type SystemMessage =\n | ParticipantAddedSystemMessage\n | ParticipantRemovedSystemMessage\n | TopicUpdatedSystemMessage\n | ContentSystemMessage;\n\n/**\n * A chat message.\n *\n * @public\n */\nexport interface ChatMessage extends MessageCommon {\n messageType: 'chat';\n content?: string;\n editedOn?: Date;\n deletedOn?: Date;\n senderId?: string;\n senderDisplayName?: string;\n status?: MessageStatus;\n failureReason?: string;\n attached?: MessageAttachedStatus;\n mine?: boolean;\n clientMessageId?: string;\n contentType: MessageContentType;\n /**\n * A metadata field for the message.\n * {@link @azure/communication-chat#ChatMessage.metadata}\n */\n metadata?: Record<string, string>;\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n /**\n * @beta\n * A list of attachments in the message.\n * {@link AttachmentMetadata}\n */\n attachments?: AttachmentMetadata[];\n}\n\n/**\n * A system message notifying that a participant was added to the chat thread.\n *\n * @public\n */\nexport interface ParticipantAddedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'participantAdded';\n\n participants: CommunicationParticipant[];\n}\n\n/**\n * A system message notifying that a participant was removed from the chat thread.\n *\n * @public\n */\nexport interface ParticipantRemovedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'participantRemoved';\n\n participants: CommunicationParticipant[];\n}\n\n/**\n * A system message notifying that the chat thread topic was updated.\n *\n * @public\n */\nexport interface TopicUpdatedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'topicUpdated';\n\n topic: string;\n}\n\n/**\n * A system message with arbitary content.\n *\n * @public\n */\nexport interface ContentSystemMessage extends SystemMessageCommon {\n systemMessageType: 'content';\n\n content: string;\n}\n\n/* @conditional-compile-remove(data-loss-prevention) */\n/**\n * Content blocked message type.\n *\n * Content blocked messages will rendered default value, but applications can provide custom strings and icon to renderers.\n *\n * @beta\n */\nexport interface BlockedMessage extends MessageCommon {\n messageType: 'blocked';\n warningText?: string;\n linkText?: string;\n link?: string;\n deletedOn?: Date;\n senderId?: string;\n senderDisplayName?: string;\n status?: MessageStatus;\n attached?: MessageAttachedStatus;\n mine?: boolean;\n}\n\n/**\n * A custom message type.\n *\n * Custom messages are not rendered by default, but applications can provide custom renderers for them.\n *\n * @public\n */\nexport interface CustomMessage extends MessageCommon {\n messageType: 'custom';\n\n content: string;\n}\n\n/**\n * Common properties of all system messages.\n *\n * @public\n */\nexport interface SystemMessageCommon extends MessageCommon {\n messageType: 'system';\n iconName: string;\n}\n\n/**\n * Common properties of all message types.\n *\n * @public\n */\nexport interface MessageCommon {\n messageId: string;\n // ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`\n createdOn: Date;\n}\n"]}
1
+ {"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ChatMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { MessageStatus } from '@internal/acs-ui-common';\nimport { CommunicationParticipant } from './CommunicationParticipant';\n/* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\n\n/**\n * Indicate whether a chat message should be displayed merged with the message before / after it.\n * If `true`, the message will be appear grouped with the message before it.\n * 'top' and 'bottom' are used to indicate that the message is the start or end of a group.\n *\n * @public\n */\nexport type MessageAttachedStatus = 'bottom' | 'top' | boolean;\n\n/**\n * Supported types of chat message content.\n *\n * @public\n */\nexport type MessageContentType = 'text' | 'html' | 'richtext/html' | 'unknown';\n\n/**\n * Discriminated union of all messages.\n *\n * The `messageType` field specializes into union variants.\n *\n * @public\n */\nexport type Message =\n | ChatMessage\n | SystemMessage\n | CustomMessage\n | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage;\n\n/**\n * Discriminated union of all system messages.\n *\n * The `systemMessageType` field specializes into union variants.\n *\n * @public\n */\nexport type SystemMessage =\n | ParticipantAddedSystemMessage\n | ParticipantRemovedSystemMessage\n | TopicUpdatedSystemMessage\n | ContentSystemMessage;\n\n/**\n * A chat message.\n *\n * @public\n */\nexport interface ChatMessage extends MessageCommon {\n messageType: 'chat';\n content?: string;\n editedOn?: Date;\n deletedOn?: Date;\n senderId?: string;\n senderDisplayName?: string;\n status?: MessageStatus;\n failureReason?: string;\n attached?: MessageAttachedStatus;\n mine?: boolean;\n clientMessageId?: string;\n contentType: MessageContentType;\n /**\n * A metadata field for the message.\n * {@link @azure/communication-chat#ChatMessage.metadata}\n */\n metadata?: Record<string, string>;\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n /**\n * @beta\n * A list of attachments in the message.\n * {@link AttachmentMetadata}\n */\n attachments?: AttachmentMetadata[];\n}\n\n/**\n * A system message notifying that a participant was added to the chat thread.\n *\n * @public\n */\nexport interface ParticipantAddedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'participantAdded';\n\n participants: CommunicationParticipant[];\n}\n\n/**\n * A system message notifying that a participant was removed from the chat thread.\n *\n * @public\n */\nexport interface ParticipantRemovedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'participantRemoved';\n\n participants: CommunicationParticipant[];\n}\n\n/**\n * A system message notifying that the chat thread topic was updated.\n *\n * @public\n */\nexport interface TopicUpdatedSystemMessage extends SystemMessageCommon {\n systemMessageType: 'topicUpdated';\n\n topic: string;\n}\n\n/**\n * A system message with arbitary content.\n *\n * @public\n */\nexport interface ContentSystemMessage extends SystemMessageCommon {\n systemMessageType: 'content';\n\n content: string;\n}\n\n/* @conditional-compile-remove(data-loss-prevention) */\n/**\n * Content blocked message type.\n *\n * Content blocked messages will rendered default value, but applications can provide custom strings and icon to renderers.\n *\n * @beta\n */\nexport interface BlockedMessage extends MessageCommon {\n messageType: 'blocked';\n warningText?: string;\n linkText?: string;\n link?: string;\n deletedOn?: Date;\n senderId?: string;\n senderDisplayName?: string;\n status?: MessageStatus;\n attached?: MessageAttachedStatus;\n mine?: boolean;\n}\n\n/**\n * A custom message type.\n *\n * Custom messages are not rendered by default, but applications can provide custom renderers for them.\n *\n * @public\n */\nexport interface CustomMessage extends MessageCommon {\n messageType: 'custom';\n\n content: string;\n}\n\n/**\n * Common properties of all system messages.\n *\n * @public\n */\nexport interface SystemMessageCommon extends MessageCommon {\n messageType: 'system';\n iconName: string;\n}\n\n/**\n * Common properties of all message types.\n *\n * @public\n */\nexport interface MessageCommon {\n messageId: string;\n // ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`\n createdOn: Date;\n}\n"]}
@@ -5,7 +5,7 @@ import { StartCaptionsOptions } from '@azure/communication-calling';
5
5
  import { AddPhoneNumberOptions } from '@azure/communication-calling';
6
6
  import { DtmfTone } from '@azure/communication-calling';
7
7
  import { CreateVideoStreamViewResult, VideoStreamOptions } from "../../../../../react-components/src";
8
- import { AttachmentMetadata, AttachmentUploadTask } from "../../../../../react-components/src";
8
+ import { MessageOptions } from "../../../../../acs-ui-common/src";
9
9
  import { ParticipantsJoinedListener, ParticipantsLeftListener, IsMutedChangedListener, CallIdChangedListener, IsLocalScreenSharingActiveChangedListener, DisplayNameChangedListener, IsSpeakingChangedListener, CallAdapter, CallEndedListener } from '../../CallComposite';
10
10
  import { MessageReceivedListener, MessageReadListener, ChatAdapter, ParticipantsRemovedListener, ParticipantsAddedListener, MessageEditedListener, MessageDeletedListener } from '../../ChatComposite';
11
11
  import { ResourceDetails } from '../../ChatComposite';
@@ -109,9 +109,7 @@ export declare class AzureCommunicationCallWithChatAdapter implements CallWithCh
109
109
  /** Fetch initial Call and Chat data such as chat messages. */
110
110
  fetchInitialData(): Promise<void>;
111
111
  /** Send a chat message. */
112
- sendMessage(content: string): Promise<void>;
113
- /** Send a chat message with attachments. */
114
- sendMessageWithAttachments(content: string, attachments: AttachmentMetadata[]): Promise<void>;
112
+ sendMessage(content: string, options?: MessageOptions): Promise<void>;
115
113
  /** Send a chat read receipt. */
116
114
  sendReadReceipt(chatMessageId: string): Promise<void>;
117
115
  /** Send an isTyping indicator. */
@@ -119,18 +117,9 @@ export declare class AzureCommunicationCallWithChatAdapter implements CallWithCh
119
117
  /** Load previous Chat messages. */
120
118
  loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>;
121
119
  /** Update an existing message. */
122
- updateMessage(messageId: string, content: string, metadata?: Record<string, string>, options?: {
123
- attachmentMetadata?: AttachmentMetadata[];
124
- }): Promise<void>;
120
+ updateMessage(messageId: string, content: string, options?: Record<string, string> | /* @conditional-compile-remove(attachment-upload) */ MessageOptions): Promise<void>;
125
121
  /** Delete an existing message. */
126
122
  deleteMessage(messageId: string): Promise<void>;
127
- registerActiveUploads: (files: File[]) => AttachmentUploadTask[];
128
- registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadTask[];
129
- clearUploads: () => void;
130
- cancelUpload: (id: string) => void;
131
- updateUploadProgress: (id: string, progress: number) => void;
132
- updateUploadStatusMessage: (id: string, errorMessage: string) => void;
133
- updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
134
123
  downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
135
124
  removeResourceFromCache(resourceDetails: ResourceDetails): void;
136
125
  holdCall(): Promise<void>;