botframework-webchat-component 4.18.0 → 4.18.1-hotfix.20260127.b53acdf

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 (1195) hide show
  1. package/decorator.js +3 -0
  2. package/dist/botframework-webchat-component.d.mts +1044 -462
  3. package/{lib/Styles/createStyleSet.d.ts → dist/botframework-webchat-component.d.ts} +1380 -263
  4. package/dist/botframework-webchat-component.decorator.css +3 -0
  5. package/dist/botframework-webchat-component.decorator.css.map +1 -0
  6. package/dist/botframework-webchat-component.decorator.d.mts +9 -0
  7. package/dist/botframework-webchat-component.decorator.d.ts +9 -0
  8. package/dist/botframework-webchat-component.decorator.js +3 -0
  9. package/dist/botframework-webchat-component.decorator.js.LEGAL.txt +1 -0
  10. package/dist/botframework-webchat-component.decorator.js.map +1 -0
  11. package/dist/botframework-webchat-component.decorator.mjs +3 -0
  12. package/dist/botframework-webchat-component.decorator.mjs.LEGAL.txt +1 -0
  13. package/dist/botframework-webchat-component.decorator.mjs.map +1 -0
  14. package/dist/botframework-webchat-component.internal.d.mts +28 -3
  15. package/dist/botframework-webchat-component.internal.d.ts +30 -0
  16. package/dist/botframework-webchat-component.internal.js +3 -0
  17. package/dist/botframework-webchat-component.internal.js.LEGAL.txt +0 -0
  18. package/dist/botframework-webchat-component.internal.js.map +1 -0
  19. package/dist/botframework-webchat-component.internal.mjs +1 -1
  20. package/dist/botframework-webchat-component.js +33 -0
  21. package/dist/botframework-webchat-component.js.LEGAL.txt +0 -0
  22. package/dist/botframework-webchat-component.js.map +1 -0
  23. package/dist/botframework-webchat-component.mjs +29 -8
  24. package/dist/botframework-webchat-component.mjs.map +1 -1
  25. package/dist/chunk-2PXHDPNQ.js +3 -0
  26. package/dist/chunk-2PXHDPNQ.js.LEGAL.txt +0 -0
  27. package/dist/chunk-2PXHDPNQ.js.map +1 -0
  28. package/dist/chunk-HZWWJL43.mjs +3 -0
  29. package/dist/chunk-HZWWJL43.mjs.LEGAL.txt +0 -0
  30. package/dist/chunk-HZWWJL43.mjs.map +1 -0
  31. package/dist/chunk-O4CKKYSK.js +3 -0
  32. package/dist/chunk-O4CKKYSK.js.LEGAL.txt +2 -0
  33. package/dist/chunk-O4CKKYSK.js.map +1 -0
  34. package/dist/chunk-Q5KJQWAB.mjs +3 -0
  35. package/dist/chunk-Q5KJQWAB.mjs.LEGAL.txt +0 -0
  36. package/dist/chunk-Q5KJQWAB.mjs.map +1 -0
  37. package/dist/chunk-TTVXUQC5.mjs +3 -0
  38. package/dist/chunk-TTVXUQC5.mjs.LEGAL.txt +2 -0
  39. package/dist/chunk-TTVXUQC5.mjs.map +1 -0
  40. package/dist/chunk-XOE3AOSM.js +3 -0
  41. package/dist/chunk-XOE3AOSM.js.LEGAL.txt +0 -0
  42. package/dist/chunk-XOE3AOSM.js.map +1 -0
  43. package/dist/metafile-cjs.json +1 -0
  44. package/dist/metafile-esm.json +1 -1
  45. package/internal.js +1 -1
  46. package/package.json +58 -49
  47. package/src/Activity/Avatar.tsx +19 -22
  48. package/src/Activity/Bubble.tsx +30 -32
  49. package/src/Activity/CarouselFilmStrip.js +2 -2
  50. package/src/Activity/CarouselLayout.js +11 -3
  51. package/src/Activity/SayAlt.tsx +30 -0
  52. package/src/Activity/Speak.tsx +66 -35
  53. package/src/Activity/StackedLayout.tsx +34 -68
  54. package/src/ActivityFeedback/ActivityFeedback.tsx +27 -0
  55. package/src/ActivityFeedback/private/FeedbackForm.tsx +88 -0
  56. package/src/ActivityFeedback/private/FeedbackLoopWithMessage.tsx +29 -0
  57. package/src/ActivityFeedback/private/FeedbackLoopWithoutMessage.tsx +8 -0
  58. package/src/ActivityFeedback/private/FeedbackTextArea.tsx +122 -0
  59. package/src/ActivityFeedback/private/FeedbackVoteButton.tsx +63 -0
  60. package/src/ActivityFeedback/private/FeedbackVoteButtonBar.tsx +25 -0
  61. package/src/{ActivityStatus/private/Feedback → ActivityFeedback}/private/ThumbButton.Image.tsx +4 -4
  62. package/src/{ActivityStatus/private/Feedback → ActivityFeedback}/private/ThumbButton.tsx +21 -8
  63. package/src/ActivityFeedback/private/getDisclaimer.ts +6 -0
  64. package/src/ActivityFeedback/private/hasFeedbackLoop.ts +36 -0
  65. package/src/ActivityFeedback/providers/ActivityFeedbackComposer.tsx +302 -0
  66. package/src/ActivityFeedback/providers/private/ActivityFeedbackContext.ts +23 -0
  67. package/src/ActivityFeedback/providers/private/useActivityFeedbackContext.ts +6 -0
  68. package/src/ActivityFeedback/providers/useActions.ts +6 -0
  69. package/src/ActivityFeedback/providers/useActivity.ts +6 -0
  70. package/src/ActivityFeedback/providers/useHasSubmitted.ts +5 -0
  71. package/src/ActivityFeedback/providers/useSelectedAction.ts +6 -0
  72. package/src/ActivityFeedback/providers/useShouldAllowResubmit.ts +5 -0
  73. package/src/ActivityFeedback/providers/useShouldShowFeedbackForm.ts +5 -0
  74. package/src/ActivityFeedback/providers/useSubmitCallback.ts +6 -0
  75. package/src/ActivityStatus/OthersActivityStatus.tsx +25 -36
  76. package/src/ActivityStatus/SelfActivityStatus.tsx +6 -5
  77. package/src/ActivityStatus/SendStatus/SendStatus.tsx +20 -21
  78. package/src/ActivityStatus/StatusSlot.tsx +12 -0
  79. package/src/ActivityStatus/Timestamp.tsx +17 -12
  80. package/src/Assets/TypingAnimation.js +3 -1
  81. package/src/Attachment/Assets/DownloadIcon.tsx +35 -0
  82. package/src/Attachment/AudioContent.tsx +20 -29
  83. package/src/Attachment/FileContent.tsx +40 -44
  84. package/src/Attachment/HTMLVideoContent.tsx +21 -27
  85. package/src/Attachment/ImageContent.tsx +13 -27
  86. package/src/Attachment/Text/TextAttachment.tsx +38 -14
  87. package/src/Attachment/Text/TextContent.tsx +49 -16
  88. package/src/Attachment/Text/private/ActivityButton.tsx +72 -0
  89. package/src/Attachment/Text/private/ActivityCopyButton.tsx +114 -0
  90. package/src/Attachment/Text/private/ActivityViewCodeButton.tsx +67 -0
  91. package/src/Attachment/Text/private/CitationModalContent.tsx +21 -11
  92. package/src/Attachment/Text/private/CodeContent.tsx +41 -0
  93. package/src/Attachment/Text/private/MarkdownTextContent.tsx +47 -11
  94. package/src/Attachment/Text/private/Markdownable.tsx +33 -0
  95. package/src/Attachment/Text/private/MessageSensitivityLabel.tsx +37 -29
  96. package/src/Attachment/Text/private/PlainTextContent.tsx +26 -7
  97. package/src/Attachment/Text/private/ShieldIcon.tsx +52 -34
  98. package/src/Attachment/Text/private/isAIGeneratedActivity.ts +5 -0
  99. package/src/Attachment/Text/private/isBasedOnSoftwareSourceCode.ts +18 -0
  100. package/src/Attachment/VideoAttachment.js +1 -1
  101. package/src/Attachment/VideoContent.tsx +21 -27
  102. package/src/Attachment/VimeoContent.tsx +21 -25
  103. package/src/Attachment/YouTubeContent.tsx +21 -25
  104. package/src/Avatar/ImageAvatar.tsx +48 -0
  105. package/src/Avatar/{InitialsAvatar.js → InitialsAvatar.tsx} +19 -14
  106. package/src/BasicToast.js +1 -1
  107. package/src/BasicToaster.js +41 -5
  108. package/src/BasicTranscript.tsx +90 -268
  109. package/src/BasicWebChat.tsx +34 -35
  110. package/src/BuiltInDecorator.tsx +17 -0
  111. package/src/ChatHistory/ChatHistoryBox.tsx +28 -0
  112. package/src/ChatHistory/ChatHistoryToolbar.tsx +38 -0
  113. package/src/ChatHistory/private/ScrollToEndButton.tsx +105 -0
  114. package/src/Composer.tsx +99 -56
  115. package/src/ConnectivityStatus/{Connecting.js → Connecting.tsx} +25 -20
  116. package/src/Dictation.js +15 -23
  117. package/src/ErrorBox.tsx +19 -19
  118. package/src/LinkDefinition/LinkDefinitions.tsx +61 -12
  119. package/src/LinkDefinition/private/extractHostnameWithSubdomain.ts +1 -1
  120. package/src/LiveRegion/LiveRegionActivity.tsx +18 -18
  121. package/src/LiveRegion/private/LiveRegionSuggestedActions.tsx +34 -25
  122. package/src/Middleware/Activity/createCoreMiddleware.tsx +20 -52
  123. package/src/Middleware/ActivityGrouping/createDefaultActivityGroupingDecoratorMiddleware.tsx +22 -0
  124. package/src/Middleware/ActivityGrouping/ui/RenderActivityGrouping.tsx +33 -0
  125. package/src/Middleware/ActivityGrouping/ui/SenderGrouping/SenderGrouping.tsx +49 -0
  126. package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/SenderGroupingContext.ts +18 -0
  127. package/src/Middleware/ActivityGrouping/ui/SenderGrouping/private/useSenderGroupingContext.ts +6 -0
  128. package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useFirstActivity.ts +6 -0
  129. package/src/Middleware/ActivityGrouping/ui/SenderGrouping/useLastActivity.ts +6 -0
  130. package/src/Middleware/ActivityGrouping/ui/StatusGrouping/StatusGrouping.tsx +49 -0
  131. package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/StatusGroupingContext.ts +18 -0
  132. package/src/Middleware/ActivityGrouping/ui/StatusGrouping/private/useStatusGroupingContext.ts +6 -0
  133. package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useFirstActivity.ts +6 -0
  134. package/src/Middleware/ActivityGrouping/ui/StatusGrouping/useLastActivity.ts +6 -0
  135. package/src/Middleware/ActivityStatus/createTimestampMiddleware.tsx +2 -2
  136. package/src/Middleware/Avatar/createCoreMiddleware.tsx +23 -24
  137. package/src/Middleware/ScrollToEndButton/ScrollToEndButton.tsx +58 -0
  138. package/src/ScreenReaderText.tsx +27 -34
  139. package/src/SendBox/Assets/SendIcon.js +1 -1
  140. package/src/SendBox/AutoResizeTextArea.tsx +28 -64
  141. package/src/SendBox/BasicSendBox.tsx +21 -23
  142. package/src/SendBox/DictationInterims.tsx +32 -21
  143. package/src/SendBox/IconButton.tsx +35 -30
  144. package/src/SendBox/MicrophoneButton.tsx +21 -21
  145. package/src/SendBox/SendButton.tsx +19 -20
  146. package/src/SendBox/SuggestedAction.tsx +57 -71
  147. package/src/SendBox/SuggestedActions.tsx +1 -3
  148. package/src/SendBox/TextBox.tsx +25 -38
  149. package/src/SendBoxToolbar/Assets/AttachmentIcon.tsx +1 -1
  150. package/src/SendBoxToolbar/UploadButton.tsx +22 -20
  151. package/src/Styles/CustomPropertyNames.ts +14 -6
  152. package/src/Styles/StyleSet/ActivityButton.ts +46 -0
  153. package/src/Styles/StyleSet/ActivityCopyButton.ts +40 -0
  154. package/src/Styles/StyleSet/AudioAttachment.ts +3 -3
  155. package/src/Styles/StyleSet/Avatar.ts +4 -3
  156. package/src/Styles/StyleSet/CarouselFilmStrip.ts +9 -7
  157. package/src/Styles/StyleSet/CarouselFilmStripAttachment.ts +3 -4
  158. package/src/Styles/StyleSet/ChatHistoryBox.ts +22 -0
  159. package/src/Styles/StyleSet/CodeBlock.ts +39 -0
  160. package/src/Styles/StyleSet/CodeBlockCopyButton.ts +80 -0
  161. package/src/Styles/StyleSet/FeedbackForm.ts +78 -0
  162. package/src/Styles/StyleSet/FeedbackTextArea.ts +81 -0
  163. package/src/Styles/StyleSet/ImageAvatar.ts +8 -5
  164. package/src/Styles/StyleSet/InitialsAvatar.ts +4 -5
  165. package/src/Styles/StyleSet/LinkDefinitions.ts +14 -8
  166. package/src/Styles/StyleSet/ModalDialog.ts +7 -1
  167. package/src/Styles/StyleSet/MonochromeImageMasker.ts +10 -0
  168. package/src/Styles/StyleSet/RenderMarkdown.ts +26 -0
  169. package/src/Styles/StyleSet/ScrollToEndButton.ts +0 -11
  170. package/src/Styles/StyleSet/SendStatus.ts +12 -0
  171. package/src/Styles/StyleSet/StackedLayout.ts +18 -9
  172. package/src/Styles/StyleSet/TextContent.ts +13 -1
  173. package/src/Styles/StyleSet/ThumbButton.ts +54 -16
  174. package/src/Styles/StyleSet/Tooltip.ts +62 -0
  175. package/src/Styles/StyleSet/ViewCodeDialog.ts +70 -0
  176. package/src/Styles/createStyleSet.ts +23 -11
  177. package/src/Styles/createStyles.ts +5 -0
  178. package/src/Styles/index.ts +3 -0
  179. package/src/Styles/useCustomPropertiesClassName.ts +75 -0
  180. package/src/Tooltip/index.ts +1 -0
  181. package/src/Tooltip/private/Tooltip.tsx +26 -0
  182. package/src/Transcript/ActivityRow.tsx +57 -9
  183. package/src/Transcript/ActivityTree.tsx +35 -0
  184. package/src/Transcript/FocusTrap.tsx +82 -34
  185. package/src/Transcript/LiveRegion/SendFailed.tsx +8 -10
  186. package/src/Transcript/LiveRegionTranscript.tsx +11 -62
  187. package/src/Transcript/TranscriptActivity.tsx +105 -0
  188. package/src/Utils/AccessibleInputText.tsx +30 -59
  189. package/src/Utils/AccessibleTextArea.tsx +10 -41
  190. package/src/Utils/FixedWidthImage.tsx +60 -0
  191. package/src/Utils/FocusRedirector.tsx +31 -26
  192. package/src/Utils/InlineMarkdown.js +1 -1
  193. package/src/Utils/JSONLinkedData/dereferenceBlankNodes.ts +1 -1
  194. package/src/Utils/JSONLinkedData/getSafeOwnPropertyNames.ts +2 -2
  195. package/src/Utils/MonochromeImageMasker.tsx +21 -0
  196. package/src/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.ts +4 -4
  197. package/src/Utils/firstTabbableDescendant.js +0 -1
  198. package/src/Utils/parseDocumentFragmentFromString.ts +9 -0
  199. package/src/Utils/serializeDocumentFragmentIntoString.ts +3 -0
  200. package/src/Utils/supportPseudoClass.ts +1 -1
  201. package/src/Utils/{textFormatToContentType.js → textFormatToContentType.ts} +3 -1
  202. package/src/decorator/index.ts +1 -0
  203. package/src/decorator/private/BorderFlair.module.css +564 -0
  204. package/src/decorator/private/BorderFlair.tsx +30 -0
  205. package/src/decorator/private/BorderLoader.module.css +48 -0
  206. package/src/decorator/private/BorderLoader.tsx +19 -0
  207. package/src/decorator/private/WebChatDecorator.tsx +30 -0
  208. package/src/decorator/private/WebChatTheme.tsx +17 -0
  209. package/src/decorator/private/createStyles.ts +5 -0
  210. package/src/env.d.ts +1 -0
  211. package/src/hooks/index.ts +4 -0
  212. package/src/hooks/internal/codeHighlighter/index.ts +3 -0
  213. package/src/hooks/internal/codeHighlighter/private/CodeHighlighterComposer.tsx +32 -0
  214. package/src/hooks/internal/codeHighlighter/private/createCodeHighlighterComposer.tsx +32 -0
  215. package/src/hooks/internal/codeHighlighter/private/defaultHighlightCode.tsx +22 -0
  216. package/src/hooks/internal/createWaitUntilable.spec.ts +2 -2
  217. package/src/hooks/internal/createWaitUntilable.ts +1 -1
  218. package/src/hooks/internal/styleToEmotionObject/index.ts +1 -0
  219. package/src/hooks/internal/styleToEmotionObject/private/StyleToEmotionObjectComposer.tsx +20 -0
  220. package/src/hooks/internal/styleToEmotionObject/private/createStyleToEmotionObjectComposer.tsx +22 -0
  221. package/src/hooks/internal/useEmotion.ts +37 -0
  222. package/src/hooks/internal/useFeedbackActions.ts +114 -0
  223. package/src/hooks/internal/useInjectStyles.ts +86 -0
  224. package/src/hooks/internal/useMemoWithPrevious.ts +1 -1
  225. package/src/hooks/internal/useMemoized.spec.jsx +3 -3
  226. package/src/hooks/internal/useObserveFocusVisible.ts +0 -1
  227. package/src/hooks/internal/useStateRef.ts +1 -1
  228. package/src/hooks/sendBoxFocus.ts +6 -2
  229. package/src/hooks/transcriptScrollRelative.ts +6 -3
  230. package/src/hooks/useRenderMarkdownAsHTML.ts +11 -9
  231. package/src/index.ts +25 -4
  232. package/src/internal.ts +19 -3
  233. package/src/providers/ChatHistoryDOM/ChatHistoryDOMComposer.tsx +18 -0
  234. package/src/providers/ChatHistoryDOM/private/ChatHistoryDOMContext.ts +11 -0
  235. package/src/providers/ChatHistoryDOM/useActivityElementRef.ts +6 -0
  236. package/src/providers/CustomElements/CustomElementsComposer.tsx +58 -0
  237. package/src/providers/CustomElements/customElements/CodeBlock.ts +230 -0
  238. package/src/providers/CustomElements/customElements/CodeBlockCopyButton.tsx +101 -0
  239. package/src/providers/CustomElements/customElements/wrapAsCustomElement.ts +85 -0
  240. package/src/providers/CustomElements/private/CustomElementsContext.ts +15 -0
  241. package/src/providers/CustomElements/private/useCustomElementsContext.ts +6 -0
  242. package/src/providers/CustomElements/useCodeBlockCopyButtonTagName.ts +8 -0
  243. package/src/providers/CustomElements/useCodeBlockTagName.ts +19 -0
  244. package/src/providers/GroupedRenderingActivities/GroupedRenderingActivities.ts +10 -0
  245. package/src/providers/GroupedRenderingActivities/GroupedRenderingActivitiesComposer.tsx +87 -0
  246. package/src/providers/GroupedRenderingActivities/private/GroupedRenderingActivitiesContext.ts +14 -0
  247. package/src/providers/GroupedRenderingActivities/private/group.spec.ts +29 -0
  248. package/src/providers/GroupedRenderingActivities/private/group.ts +19 -0
  249. package/src/providers/GroupedRenderingActivities/private/pick.spec.ts +33 -0
  250. package/src/providers/GroupedRenderingActivities/private/pick.ts +22 -0
  251. package/src/providers/GroupedRenderingActivities/useGroupedRenderingActivities.ts +6 -0
  252. package/src/providers/GroupedRenderingActivities/useNumRenderingActivities.ts +5 -0
  253. package/src/providers/HTMLContentTransformCOR/HTMLContentTransformComposer.tsx +41 -0
  254. package/src/providers/HTMLContentTransformCOR/index.ts +8 -0
  255. package/src/providers/HTMLContentTransformCOR/private/HTMLContentTransformContext.ts +34 -0
  256. package/src/providers/HTMLContentTransformCOR/private/useHTMLContentTransformContext.ts +6 -0
  257. package/src/providers/HTMLContentTransformCOR/useTransformHTMLContent.ts +187 -0
  258. package/src/providers/LiveRegionTwin/index.ts +3 -0
  259. package/src/providers/LiveRegionTwin/private/LiveRegionTwinComposer.ts +27 -0
  260. package/src/providers/LiveRegionTwin/private/LiveRegionTwinContainer.tsx +27 -39
  261. package/src/providers/LiveRegionTwin/private/createLiveRegionTwinComposer.tsx +155 -0
  262. package/src/providers/LiveRegionTwin/private/useContext.ts +2 -8
  263. package/src/providers/LiveRegionTwin/useLiveRegion.ts +27 -0
  264. package/src/providers/LiveRegionTwin/useQueueStaticElement.ts +2 -2
  265. package/src/providers/ModalDialog/private/Popover.tsx +3 -3
  266. package/src/providers/ReducedMotion/ReducedMotionComposer.tsx +35 -0
  267. package/src/providers/ReducedMotion/private/Context.ts +22 -0
  268. package/src/providers/ReducedMotion/private/useContext.ts +8 -0
  269. package/src/providers/ReducedMotion/useShouldReduceMotion.ts +5 -0
  270. package/src/providers/RenderingActivities/RenderingActivitiesComposer.tsx +84 -0
  271. package/src/providers/RenderingActivities/private/RenderingActivitiesContext.ts +15 -0
  272. package/src/providers/RenderingActivities/private/useInternalActivitiesWithRenderer.ts +78 -0
  273. package/src/providers/RenderingActivities/useGetRenderActivityCallback.ts +11 -0
  274. package/src/providers/RenderingActivities/useRenderingActivities.ts +7 -0
  275. package/src/providers/RenderingActivities/useRenderingActivityKeys.ts +5 -0
  276. package/src/providers/RovingTabIndex/RovingTabIndexComposer.tsx +32 -23
  277. package/src/providers/Theme/ThemeProvider.tsx +24 -16
  278. package/src/providers/Theme/private/Context.ts +4 -2
  279. package/src/providers/TranscriptFocus/TranscriptFocusComposer.tsx +17 -27
  280. package/src/providers/TranscriptFocus/useFocusRelativeActivity.ts +1 -1
  281. package/src/providers/createContextAndHook.ts +23 -0
  282. package/src/providers/internal/SendBox/SendBoxComposer.tsx +28 -38
  283. package/src/testIds.ts +11 -0
  284. package/src/tsconfig.json +5 -8
  285. package/src/types/internal/mutableRefObject.ts +33 -0
  286. package/src/types/internal/reactNode.ts +16 -0
  287. package/src/types/internal/refObject.ts +40 -0
  288. package/dist/chunk-X37JABN5.mjs +0 -5
  289. package/dist/chunk-X37JABN5.mjs.map +0 -1
  290. package/lib/Activity/Avatar.d.ts +0 -10
  291. package/lib/Activity/Avatar.d.ts.map +0 -1
  292. package/lib/Activity/Avatar.js +0 -35
  293. package/lib/Activity/Bubble.d.ts +0 -11
  294. package/lib/Activity/Bubble.d.ts.map +0 -1
  295. package/lib/Activity/Bubble.js +0 -137
  296. package/lib/Activity/CarouselFilmStrip.js +0 -264
  297. package/lib/Activity/CarouselFilmStripAttachment.js +0 -93
  298. package/lib/Activity/CarouselLayout.js +0 -133
  299. package/lib/Activity/SayAlt.js +0 -31
  300. package/lib/Activity/Speak.d.ts +0 -8
  301. package/lib/Activity/Speak.d.ts.map +0 -1
  302. package/lib/Activity/Speak.js +0 -99
  303. package/lib/Activity/StackedLayout.d.ts +0 -17
  304. package/lib/Activity/StackedLayout.d.ts.map +0 -1
  305. package/lib/Activity/StackedLayout.js +0 -233
  306. package/lib/ActivityStatus/AbsoluteTime.js +0 -38
  307. package/lib/ActivityStatus/OthersActivityStatus.d.ts +0 -8
  308. package/lib/ActivityStatus/OthersActivityStatus.d.ts.map +0 -1
  309. package/lib/ActivityStatus/OthersActivityStatus.js +0 -105
  310. package/lib/ActivityStatus/SelfActivityStatus.d.ts +0 -8
  311. package/lib/ActivityStatus/SelfActivityStatus.d.ts.map +0 -1
  312. package/lib/ActivityStatus/SelfActivityStatus.js +0 -37
  313. package/lib/ActivityStatus/SendStatus/SendStatus.d.ts +0 -10
  314. package/lib/ActivityStatus/SendStatus/SendStatus.d.ts.map +0 -1
  315. package/lib/ActivityStatus/SendStatus/SendStatus.js +0 -58
  316. package/lib/ActivityStatus/SendStatus/private/SendFailedRetry.js +0 -35
  317. package/lib/ActivityStatus/Slotted.d.ts +0 -7
  318. package/lib/ActivityStatus/Slotted.d.ts.map +0 -1
  319. package/lib/ActivityStatus/Slotted.js +0 -31
  320. package/lib/ActivityStatus/Timestamp.d.ts +0 -7
  321. package/lib/ActivityStatus/Timestamp.d.ts.map +0 -1
  322. package/lib/ActivityStatus/Timestamp.js +0 -36
  323. package/lib/ActivityStatus/private/Feedback/Feedback.d.ts +0 -8
  324. package/lib/ActivityStatus/private/Feedback/Feedback.d.ts.map +0 -1
  325. package/lib/ActivityStatus/private/Feedback/Feedback.js +0 -67
  326. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts +0 -9
  327. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.d.ts.map +0 -1
  328. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.Image.js +0 -34
  329. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts +0 -9
  330. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.d.ts.map +0 -1
  331. package/lib/ActivityStatus/private/Feedback/private/ThumbButton.js +0 -57
  332. package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts +0 -10
  333. package/lib/ActivityStatus/private/Feedback/private/VoteButton.d.ts.map +0 -1
  334. package/lib/ActivityStatus/private/Feedback/private/VoteButton.js +0 -43
  335. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts +0 -7
  336. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.d.ts.map +0 -1
  337. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Filled.js +0 -28
  338. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts +0 -7
  339. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.d.ts.map +0 -1
  340. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbDislike16Regular.js +0 -28
  341. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts +0 -7
  342. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.d.ts.map +0 -1
  343. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Filled.js +0 -28
  344. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts +0 -7
  345. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.d.ts.map +0 -1
  346. package/lib/ActivityStatus/private/Feedback/private/icons/ThumbLike16Regular.js +0 -28
  347. package/lib/ActivityStatus/private/Originator.d.ts +0 -8
  348. package/lib/ActivityStatus/private/Originator.d.ts.map +0 -1
  349. package/lib/ActivityStatus/private/Originator.js +0 -29
  350. package/lib/ActivityStatus/private/RelativeTime.js +0 -37
  351. package/lib/Assets/TypingAnimation.js +0 -47
  352. package/lib/Attachment/Assets/DownloadIcon.js +0 -35
  353. package/lib/Attachment/AudioAttachment.js +0 -38
  354. package/lib/Attachment/AudioContent.d.ts +0 -11
  355. package/lib/Attachment/AudioContent.d.ts.map +0 -1
  356. package/lib/Attachment/AudioContent.js +0 -51
  357. package/lib/Attachment/FileAttachment.js +0 -43
  358. package/lib/Attachment/FileContent.d.ts +0 -10
  359. package/lib/Attachment/FileContent.d.ts.map +0 -1
  360. package/lib/Attachment/FileContent.js +0 -120
  361. package/lib/Attachment/HTMLVideoContent.d.ts +0 -11
  362. package/lib/Attachment/HTMLVideoContent.d.ts.map +0 -1
  363. package/lib/Attachment/HTMLVideoContent.js +0 -51
  364. package/lib/Attachment/ImageAttachment.js +0 -41
  365. package/lib/Attachment/ImageContent.d.ts +0 -8
  366. package/lib/Attachment/ImageContent.d.ts.map +0 -1
  367. package/lib/Attachment/ImageContent.js +0 -41
  368. package/lib/Attachment/Text/TextAttachment.d.ts +0 -12
  369. package/lib/Attachment/Text/TextAttachment.d.ts.map +0 -1
  370. package/lib/Attachment/Text/TextAttachment.js +0 -27
  371. package/lib/Attachment/Text/TextContent.d.ts +0 -10
  372. package/lib/Attachment/Text/TextContent.d.ts.map +0 -1
  373. package/lib/Attachment/Text/TextContent.js +0 -34
  374. package/lib/Attachment/Text/private/CitationModalContent.d.ts +0 -8
  375. package/lib/Attachment/Text/private/CitationModalContent.d.ts.map +0 -1
  376. package/lib/Attachment/Text/private/CitationModalContent.js +0 -45
  377. package/lib/Attachment/Text/private/MarkdownTextContent.d.ts +0 -9
  378. package/lib/Attachment/Text/private/MarkdownTextContent.d.ts.map +0 -1
  379. package/lib/Attachment/Text/private/MarkdownTextContent.js +0 -204
  380. package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts +0 -12
  381. package/lib/Attachment/Text/private/MessageSensitivityLabel.d.ts.map +0 -1
  382. package/lib/Attachment/Text/private/MessageSensitivityLabel.js +0 -38
  383. package/lib/Attachment/Text/private/PlainTextContent.d.ts +0 -7
  384. package/lib/Attachment/Text/private/PlainTextContent.d.ts.map +0 -1
  385. package/lib/Attachment/Text/private/PlainTextContent.js +0 -35
  386. package/lib/Attachment/Text/private/ShieldIcon.d.ts +0 -9
  387. package/lib/Attachment/Text/private/ShieldIcon.d.ts.map +0 -1
  388. package/lib/Attachment/Text/private/ShieldIcon.js +0 -39
  389. package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts +0 -2
  390. package/lib/Attachment/Text/private/isHTMLButtonElement.d.ts.map +0 -1
  391. package/lib/Attachment/Text/private/isHTMLButtonElement.js +0 -10
  392. package/lib/Attachment/VideoAttachment.js +0 -45
  393. package/lib/Attachment/VideoContent.d.ts +0 -11
  394. package/lib/Attachment/VideoContent.d.ts.map +0 -1
  395. package/lib/Attachment/VideoContent.js +0 -103
  396. package/lib/Attachment/VimeoContent.d.ts +0 -10
  397. package/lib/Attachment/VimeoContent.d.ts.map +0 -1
  398. package/lib/Attachment/VimeoContent.js +0 -59
  399. package/lib/Attachment/YouTubeContent.d.ts +0 -10
  400. package/lib/Attachment/YouTubeContent.d.ts.map +0 -1
  401. package/lib/Attachment/YouTubeContent.js +0 -60
  402. package/lib/Attachment/createMiddleware.d.ts +0 -3
  403. package/lib/Attachment/createMiddleware.d.ts.map +0 -1
  404. package/lib/Attachment/createMiddleware.js +0 -64
  405. package/lib/Attachment/private/types/WebChatAttachment.d.ts +0 -9
  406. package/lib/Attachment/private/types/WebChatAttachment.d.ts.map +0 -1
  407. package/lib/Attachment/private/types/WebChatAttachment.js +0 -2
  408. package/lib/Avatar/ImageAvatar.js +0 -59
  409. package/lib/Avatar/InitialsAvatar.js +0 -57
  410. package/lib/BasicConnectivityStatus.js +0 -46
  411. package/lib/BasicToast.js +0 -103
  412. package/lib/BasicToaster.js +0 -176
  413. package/lib/BasicTranscript.d.ts +0 -7
  414. package/lib/BasicTranscript.d.ts.map +0 -1
  415. package/lib/BasicTranscript.js +0 -735
  416. package/lib/BasicTypingIndicator.d.ts +0 -6
  417. package/lib/BasicTypingIndicator.d.ts.map +0 -1
  418. package/lib/BasicTypingIndicator.js +0 -54
  419. package/lib/BasicWebChat.d.ts +0 -9
  420. package/lib/BasicWebChat.d.ts.map +0 -1
  421. package/lib/BasicWebChat.js +0 -90
  422. package/lib/Composer.d.ts +0 -50
  423. package/lib/Composer.d.ts.map +0 -1
  424. package/lib/Composer.js +0 -336
  425. package/lib/ConnectivityStatus/Assets/ErrorNotificationIcon.js +0 -47
  426. package/lib/ConnectivityStatus/Assets/SpinnerAnimation.js +0 -32
  427. package/lib/ConnectivityStatus/Assets/WarningNotificationIcon.js +0 -47
  428. package/lib/ConnectivityStatus/Connected.js +0 -20
  429. package/lib/ConnectivityStatus/Connecting.js +0 -82
  430. package/lib/ConnectivityStatus/FailedToConnect.js +0 -41
  431. package/lib/ConnectivityStatus/JavaScriptError.js +0 -41
  432. package/lib/Dictation.js +0 -158
  433. package/lib/ErrorBox.d.ts +0 -8
  434. package/lib/ErrorBox.d.ts.map +0 -1
  435. package/lib/ErrorBox.js +0 -42
  436. package/lib/LinkDefinition/LinkDefinitionItem.d.ts +0 -12
  437. package/lib/LinkDefinition/LinkDefinitionItem.d.ts.map +0 -1
  438. package/lib/LinkDefinition/LinkDefinitionItem.js +0 -57
  439. package/lib/LinkDefinition/LinkDefinitions.d.ts +0 -12
  440. package/lib/LinkDefinition/LinkDefinitions.d.ts.map +0 -1
  441. package/lib/LinkDefinition/LinkDefinitions.js +0 -69
  442. package/lib/LinkDefinition/index.d.ts +0 -4
  443. package/lib/LinkDefinition/index.d.ts.map +0 -1
  444. package/lib/LinkDefinition/index.js +0 -21
  445. package/lib/LinkDefinition/private/Badge.d.ts +0 -7
  446. package/lib/LinkDefinition/private/Badge.d.ts.map +0 -1
  447. package/lib/LinkDefinition/private/Badge.js +0 -20
  448. package/lib/LinkDefinition/private/Chevron.d.ts +0 -4
  449. package/lib/LinkDefinition/private/Chevron.d.ts.map +0 -1
  450. package/lib/LinkDefinition/private/Chevron.js +0 -27
  451. package/lib/LinkDefinition/private/ItemBody.d.ts +0 -11
  452. package/lib/LinkDefinition/private/ItemBody.d.ts.map +0 -1
  453. package/lib/LinkDefinition/private/ItemBody.js +0 -41
  454. package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts +0 -7
  455. package/lib/LinkDefinition/private/OpenInNewWindowIcon.d.ts.map +0 -1
  456. package/lib/LinkDefinition/private/OpenInNewWindowIcon.js +0 -23
  457. package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts +0 -2
  458. package/lib/LinkDefinition/private/extractHostnameWithSubdomain.d.ts.map +0 -1
  459. package/lib/LinkDefinition/private/extractHostnameWithSubdomain.js +0 -24
  460. package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts +0 -2
  461. package/lib/LinkDefinition/private/extractHostnameWithSubdomain.spec.d.ts.map +0 -1
  462. package/lib/LiveRegion/LiveRegionActivity.d.ts +0 -9
  463. package/lib/LiveRegion/LiveRegionActivity.d.ts.map +0 -1
  464. package/lib/LiveRegion/LiveRegionActivity.js +0 -70
  465. package/lib/LiveRegion/private/LiveRegionAttachments.d.ts +0 -11
  466. package/lib/LiveRegion/private/LiveRegionAttachments.d.ts.map +0 -1
  467. package/lib/LiveRegion/private/LiveRegionAttachments.js +0 -53
  468. package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts +0 -8
  469. package/lib/LiveRegion/private/LiveRegionSuggestedActions.d.ts.map +0 -1
  470. package/lib/LiveRegion/private/LiveRegionSuggestedActions.js +0 -37
  471. package/lib/Middleware/Activity/createCoreMiddleware.d.ts +0 -3
  472. package/lib/Middleware/Activity/createCoreMiddleware.d.ts.map +0 -1
  473. package/lib/Middleware/Activity/createCoreMiddleware.js +0 -95
  474. package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts +0 -3
  475. package/lib/Middleware/ActivityStatus/createCoreMiddleware.d.ts.map +0 -1
  476. package/lib/Middleware/ActivityStatus/createCoreMiddleware.js +0 -13
  477. package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts +0 -3
  478. package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.d.ts.map +0 -1
  479. package/lib/Middleware/ActivityStatus/createSendStatusMiddleware.js +0 -41
  480. package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts +0 -3
  481. package/lib/Middleware/ActivityStatus/createTimestampMiddleware.d.ts.map +0 -1
  482. package/lib/Middleware/ActivityStatus/createTimestampMiddleware.js +0 -48
  483. package/lib/Middleware/AttachmentForScreenReader/AudioAttachment.js +0 -18
  484. package/lib/Middleware/AttachmentForScreenReader/FileAttachment.js +0 -28
  485. package/lib/Middleware/AttachmentForScreenReader/ImageAttachment.js +0 -18
  486. package/lib/Middleware/AttachmentForScreenReader/TextAttachment.js +0 -28
  487. package/lib/Middleware/AttachmentForScreenReader/VideoAttachment.js +0 -18
  488. package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts +0 -3
  489. package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.d.ts.map +0 -1
  490. package/lib/Middleware/AttachmentForScreenReader/createCoreMiddleware.js +0 -61
  491. package/lib/Middleware/Avatar/createCoreMiddleware.d.ts +0 -11
  492. package/lib/Middleware/Avatar/createCoreMiddleware.d.ts.map +0 -1
  493. package/lib/Middleware/Avatar/createCoreMiddleware.js +0 -82
  494. package/lib/Middleware/CardAction/createCoreMiddleware.js +0 -108
  495. package/lib/Middleware/ScrollToEndButton/ScrollToEndButton.js +0 -52
  496. package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts +0 -3
  497. package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.d.ts.map +0 -1
  498. package/lib/Middleware/ScrollToEndButton/createScrollToEndButtonMiddleware.js +0 -27
  499. package/lib/Middleware/Toast/createCoreMiddleware.d.ts +0 -4
  500. package/lib/Middleware/Toast/createCoreMiddleware.d.ts.map +0 -1
  501. package/lib/Middleware/Toast/createCoreMiddleware.js +0 -27
  502. package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts +0 -3
  503. package/lib/Middleware/TypingIndicator/createCoreMiddleware.d.ts.map +0 -1
  504. package/lib/Middleware/TypingIndicator/createCoreMiddleware.js +0 -47
  505. package/lib/ReactWebChat.d.ts +0 -42
  506. package/lib/ReactWebChat.d.ts.map +0 -1
  507. package/lib/ReactWebChat.js +0 -52
  508. package/lib/ScreenReaderText.d.ts +0 -9
  509. package/lib/ScreenReaderText.d.ts.map +0 -1
  510. package/lib/ScreenReaderText.js +0 -58
  511. package/lib/SendBox/Assets/MicrophoneIcon.js +0 -25
  512. package/lib/SendBox/Assets/SendIcon.js +0 -45
  513. package/lib/SendBox/AutoResizeTextArea.d.ts +0 -24
  514. package/lib/SendBox/AutoResizeTextArea.d.ts.map +0 -1
  515. package/lib/SendBox/AutoResizeTextArea.js +0 -113
  516. package/lib/SendBox/BasicSendBox.d.ts +0 -9
  517. package/lib/SendBox/BasicSendBox.d.ts.map +0 -1
  518. package/lib/SendBox/BasicSendBox.js +0 -123
  519. package/lib/SendBox/DictationInterims.d.ts +0 -7
  520. package/lib/SendBox/DictationInterims.d.ts.map +0 -1
  521. package/lib/SendBox/DictationInterims.js +0 -68
  522. package/lib/SendBox/IconButton.d.ts +0 -11
  523. package/lib/SendBox/IconButton.d.ts.map +0 -1
  524. package/lib/SendBox/IconButton.js +0 -73
  525. package/lib/SendBox/MicrophoneButton.d.ts +0 -10
  526. package/lib/SendBox/MicrophoneButton.d.ts.map +0 -1
  527. package/lib/SendBox/MicrophoneButton.js +0 -160
  528. package/lib/SendBox/SendButton.d.ts +0 -7
  529. package/lib/SendBox/SendButton.d.ts.map +0 -1
  530. package/lib/SendBox/SendButton.js +0 -53
  531. package/lib/SendBox/SuggestedAction.d.ts +0 -16
  532. package/lib/SendBox/SuggestedAction.d.ts.map +0 -1
  533. package/lib/SendBox/SuggestedAction.js +0 -166
  534. package/lib/SendBox/SuggestedActions.d.ts +0 -7
  535. package/lib/SendBox/SuggestedActions.d.ts.map +0 -1
  536. package/lib/SendBox/SuggestedActions.js +0 -256
  537. package/lib/SendBox/TextBox.d.ts +0 -24
  538. package/lib/SendBox/TextBox.d.ts.map +0 -1
  539. package/lib/SendBox/TextBox.js +0 -252
  540. package/lib/SendBox/createMiddleware.d.ts +0 -4
  541. package/lib/SendBox/createMiddleware.d.ts.map +0 -1
  542. package/lib/SendBox/createMiddleware.js +0 -38
  543. package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts +0 -7
  544. package/lib/SendBoxToolbar/Assets/AttachmentIcon.d.ts.map +0 -1
  545. package/lib/SendBoxToolbar/Assets/AttachmentIcon.js +0 -63
  546. package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts +0 -6
  547. package/lib/SendBoxToolbar/BasicSendBoxToolbar.d.ts.map +0 -1
  548. package/lib/SendBoxToolbar/BasicSendBoxToolbar.js +0 -32
  549. package/lib/SendBoxToolbar/UploadButton.d.ts +0 -7
  550. package/lib/SendBoxToolbar/UploadButton.d.ts.map +0 -1
  551. package/lib/SendBoxToolbar/UploadButton.js +0 -156
  552. package/lib/SendBoxToolbar/createMiddleware.d.ts +0 -4
  553. package/lib/SendBoxToolbar/createMiddleware.d.ts.map +0 -1
  554. package/lib/SendBoxToolbar/createMiddleware.js +0 -20
  555. package/lib/Styles/CSSTokens.d.ts +0 -16
  556. package/lib/Styles/CSSTokens.d.ts.map +0 -1
  557. package/lib/Styles/CSSTokens.js +0 -19
  558. package/lib/Styles/CustomPropertyNames.d.ts +0 -13
  559. package/lib/Styles/CustomPropertyNames.d.ts.map +0 -1
  560. package/lib/Styles/CustomPropertyNames.js +0 -24
  561. package/lib/Styles/StyleSet/Activities.d.ts +0 -5
  562. package/lib/Styles/StyleSet/Activities.d.ts.map +0 -1
  563. package/lib/Styles/StyleSet/Activities.js +0 -13
  564. package/lib/Styles/StyleSet/AudioAttachment.d.ts +0 -6
  565. package/lib/Styles/StyleSet/AudioAttachment.d.ts.map +0 -1
  566. package/lib/Styles/StyleSet/AudioAttachment.js +0 -15
  567. package/lib/Styles/StyleSet/AudioContent.d.ts +0 -4
  568. package/lib/Styles/StyleSet/AudioContent.d.ts.map +0 -1
  569. package/lib/Styles/StyleSet/AudioContent.js +0 -12
  570. package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts +0 -37
  571. package/lib/Styles/StyleSet/AutoResizeTextArea.d.ts.map +0 -1
  572. package/lib/Styles/StyleSet/AutoResizeTextArea.js +0 -45
  573. package/lib/Styles/StyleSet/Avatar.d.ts +0 -9
  574. package/lib/Styles/StyleSet/Avatar.d.ts.map +0 -1
  575. package/lib/Styles/StyleSet/Avatar.js +0 -18
  576. package/lib/Styles/StyleSet/BasicTranscript.d.ts +0 -85
  577. package/lib/Styles/StyleSet/BasicTranscript.d.ts.map +0 -1
  578. package/lib/Styles/StyleSet/BasicTranscript.js +0 -110
  579. package/lib/Styles/StyleSet/Bubble.d.ts +0 -5
  580. package/lib/Styles/StyleSet/Bubble.d.ts.map +0 -1
  581. package/lib/Styles/StyleSet/Bubble.js +0 -153
  582. package/lib/Styles/StyleSet/CSSCustomProperties.d.ts +0 -16
  583. package/lib/Styles/StyleSet/CSSCustomProperties.d.ts.map +0 -1
  584. package/lib/Styles/StyleSet/CSSCustomProperties.js +0 -27
  585. package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts +0 -5
  586. package/lib/Styles/StyleSet/CarouselFilmStrip.d.ts.map +0 -1
  587. package/lib/Styles/StyleSet/CarouselFilmStrip.js +0 -90
  588. package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts +0 -3
  589. package/lib/Styles/StyleSet/CarouselFilmStripAttachment.d.ts.map +0 -1
  590. package/lib/Styles/StyleSet/CarouselFilmStripAttachment.js +0 -57
  591. package/lib/Styles/StyleSet/CarouselFlipper.d.ts +0 -27
  592. package/lib/Styles/StyleSet/CarouselFlipper.d.ts.map +0 -1
  593. package/lib/Styles/StyleSet/CarouselFlipper.js +0 -42
  594. package/lib/Styles/StyleSet/CitationModalDialog.d.ts +0 -8
  595. package/lib/Styles/StyleSet/CitationModalDialog.d.ts.map +0 -1
  596. package/lib/Styles/StyleSet/CitationModalDialog.js +0 -16
  597. package/lib/Styles/StyleSet/ConnectivityNotification.d.ts +0 -13
  598. package/lib/Styles/StyleSet/ConnectivityNotification.d.ts.map +0 -1
  599. package/lib/Styles/StyleSet/ConnectivityNotification.js +0 -26
  600. package/lib/Styles/StyleSet/Constants.d.ts +0 -6
  601. package/lib/Styles/StyleSet/Constants.d.ts.map +0 -1
  602. package/lib/Styles/StyleSet/Constants.js +0 -15
  603. package/lib/Styles/StyleSet/DictationInterims.d.ts +0 -13
  604. package/lib/Styles/StyleSet/DictationInterims.d.ts.map +0 -1
  605. package/lib/Styles/StyleSet/DictationInterims.js +0 -22
  606. package/lib/Styles/StyleSet/ErrorBox.d.ts +0 -33
  607. package/lib/Styles/StyleSet/ErrorBox.d.ts.map +0 -1
  608. package/lib/Styles/StyleSet/ErrorBox.js +0 -43
  609. package/lib/Styles/StyleSet/ErrorNotification.d.ts +0 -23
  610. package/lib/Styles/StyleSet/ErrorNotification.d.ts.map +0 -1
  611. package/lib/Styles/StyleSet/ErrorNotification.js +0 -36
  612. package/lib/Styles/StyleSet/FileContent.d.ts +0 -32
  613. package/lib/Styles/StyleSet/FileContent.d.ts.map +0 -1
  614. package/lib/Styles/StyleSet/FileContent.js +0 -43
  615. package/lib/Styles/StyleSet/ImageAvatar.d.ts +0 -7
  616. package/lib/Styles/StyleSet/ImageAvatar.d.ts.map +0 -1
  617. package/lib/Styles/StyleSet/ImageAvatar.js +0 -15
  618. package/lib/Styles/StyleSet/InitialsAvatar.d.ts +0 -19
  619. package/lib/Styles/StyleSet/InitialsAvatar.d.ts.map +0 -1
  620. package/lib/Styles/StyleSet/InitialsAvatar.js +0 -31
  621. package/lib/Styles/StyleSet/KeyboardHelp.d.ts +0 -152
  622. package/lib/Styles/StyleSet/KeyboardHelp.d.ts.map +0 -1
  623. package/lib/Styles/StyleSet/KeyboardHelp.js +0 -168
  624. package/lib/Styles/StyleSet/LinkDefinitions.d.ts +0 -165
  625. package/lib/Styles/StyleSet/LinkDefinitions.d.ts.map +0 -1
  626. package/lib/Styles/StyleSet/LinkDefinitions.js +0 -180
  627. package/lib/Styles/StyleSet/MicrophoneButton.d.ts +0 -13
  628. package/lib/Styles/StyleSet/MicrophoneButton.d.ts.map +0 -1
  629. package/lib/Styles/StyleSet/MicrophoneButton.js +0 -21
  630. package/lib/Styles/StyleSet/ModalDialog.d.ts +0 -94
  631. package/lib/Styles/StyleSet/ModalDialog.d.ts.map +0 -1
  632. package/lib/Styles/StyleSet/ModalDialog.js +0 -98
  633. package/lib/Styles/StyleSet/RenderMarkdown.d.ts +0 -51
  634. package/lib/Styles/StyleSet/RenderMarkdown.d.ts.map +0 -1
  635. package/lib/Styles/StyleSet/RenderMarkdown.js +0 -67
  636. package/lib/Styles/StyleSet/Root.d.ts +0 -8
  637. package/lib/Styles/StyleSet/Root.d.ts.map +0 -1
  638. package/lib/Styles/StyleSet/Root.js +0 -19
  639. package/lib/Styles/StyleSet/ScrollToEndButton.d.ts +0 -36
  640. package/lib/Styles/StyleSet/ScrollToEndButton.d.ts.map +0 -1
  641. package/lib/Styles/StyleSet/ScrollToEndButton.js +0 -55
  642. package/lib/Styles/StyleSet/SendBox.d.ts +0 -24
  643. package/lib/Styles/StyleSet/SendBox.d.ts.map +0 -1
  644. package/lib/Styles/StyleSet/SendBox.js +0 -37
  645. package/lib/Styles/StyleSet/SendBoxButton.d.ts +0 -79
  646. package/lib/Styles/StyleSet/SendBoxButton.d.ts.map +0 -1
  647. package/lib/Styles/StyleSet/SendBoxButton.js +0 -112
  648. package/lib/Styles/StyleSet/SendBoxTextBox.d.ts +0 -41
  649. package/lib/Styles/StyleSet/SendBoxTextBox.d.ts.map +0 -1
  650. package/lib/Styles/StyleSet/SendBoxTextBox.js +0 -57
  651. package/lib/Styles/StyleSet/SendStatus.d.ts +0 -19
  652. package/lib/Styles/StyleSet/SendStatus.d.ts.map +0 -1
  653. package/lib/Styles/StyleSet/SendStatus.js +0 -29
  654. package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts +0 -11
  655. package/lib/Styles/StyleSet/SingleAttachmentActivity.d.ts.map +0 -1
  656. package/lib/Styles/StyleSet/SingleAttachmentActivity.js +0 -21
  657. package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts +0 -12
  658. package/lib/Styles/StyleSet/SlottedActivityStatus.d.ts.map +0 -1
  659. package/lib/Styles/StyleSet/SlottedActivityStatus.js +0 -22
  660. package/lib/Styles/StyleSet/SpinnerAnimation.d.ts +0 -15
  661. package/lib/Styles/StyleSet/SpinnerAnimation.d.ts.map +0 -1
  662. package/lib/Styles/StyleSet/SpinnerAnimation.js +0 -34
  663. package/lib/Styles/StyleSet/StackedLayout.d.ts +0 -63
  664. package/lib/Styles/StyleSet/StackedLayout.d.ts.map +0 -1
  665. package/lib/Styles/StyleSet/StackedLayout.js +0 -77
  666. package/lib/Styles/StyleSet/SuggestedAction.d.ts +0 -94
  667. package/lib/Styles/StyleSet/SuggestedAction.d.ts.map +0 -1
  668. package/lib/Styles/StyleSet/SuggestedAction.js +0 -152
  669. package/lib/Styles/StyleSet/SuggestedActions.d.ts +0 -139
  670. package/lib/Styles/StyleSet/SuggestedActions.d.ts.map +0 -1
  671. package/lib/Styles/StyleSet/SuggestedActions.js +0 -165
  672. package/lib/Styles/StyleSet/TextContent.d.ts +0 -24
  673. package/lib/Styles/StyleSet/TextContent.d.ts.map +0 -1
  674. package/lib/Styles/StyleSet/TextContent.js +0 -34
  675. package/lib/Styles/StyleSet/ThumbButton.d.ts +0 -32
  676. package/lib/Styles/StyleSet/ThumbButton.d.ts.map +0 -1
  677. package/lib/Styles/StyleSet/ThumbButton.js +0 -44
  678. package/lib/Styles/StyleSet/Toast.d.ts +0 -65
  679. package/lib/Styles/StyleSet/Toast.d.ts.map +0 -1
  680. package/lib/Styles/StyleSet/Toast.js +0 -83
  681. package/lib/Styles/StyleSet/Toaster.d.ts +0 -111
  682. package/lib/Styles/StyleSet/Toaster.d.ts.map +0 -1
  683. package/lib/Styles/StyleSet/Toaster.js +0 -137
  684. package/lib/Styles/StyleSet/TypingAnimation.d.ts +0 -8
  685. package/lib/Styles/StyleSet/TypingAnimation.d.ts.map +0 -1
  686. package/lib/Styles/StyleSet/TypingAnimation.js +0 -26
  687. package/lib/Styles/StyleSet/TypingIndicator.d.ts +0 -11
  688. package/lib/Styles/StyleSet/TypingIndicator.d.ts.map +0 -1
  689. package/lib/Styles/StyleSet/TypingIndicator.js +0 -19
  690. package/lib/Styles/StyleSet/UploadButton.d.ts +0 -14
  691. package/lib/Styles/StyleSet/UploadButton.d.ts.map +0 -1
  692. package/lib/Styles/StyleSet/UploadButton.js +0 -27
  693. package/lib/Styles/StyleSet/VideoAttachment.d.ts +0 -2
  694. package/lib/Styles/StyleSet/VideoAttachment.d.ts.map +0 -1
  695. package/lib/Styles/StyleSet/VideoAttachment.js +0 -10
  696. package/lib/Styles/StyleSet/VideoContent.d.ts +0 -6
  697. package/lib/Styles/StyleSet/VideoContent.d.ts.map +0 -1
  698. package/lib/Styles/StyleSet/VideoContent.js +0 -14
  699. package/lib/Styles/StyleSet/VimeoContent.d.ts +0 -7
  700. package/lib/Styles/StyleSet/VimeoContent.d.ts.map +0 -1
  701. package/lib/Styles/StyleSet/VimeoContent.js +0 -15
  702. package/lib/Styles/StyleSet/WarningNotification.d.ts +0 -22
  703. package/lib/Styles/StyleSet/WarningNotification.d.ts.map +0 -1
  704. package/lib/Styles/StyleSet/WarningNotification.js +0 -37
  705. package/lib/Styles/StyleSet/YouTubeContent.d.ts +0 -7
  706. package/lib/Styles/StyleSet/YouTubeContent.d.ts.map +0 -1
  707. package/lib/Styles/StyleSet/YouTubeContent.js +0 -15
  708. package/lib/Styles/createStyleSet.d.ts.map +0 -1
  709. package/lib/Styles/createStyleSet.js +0 -121
  710. package/lib/Styles/mirrorStyle.js +0 -40
  711. package/lib/Toast/CheckMarkIcon.js +0 -36
  712. package/lib/Toast/CollapseIcon.js +0 -32
  713. package/lib/Toast/DismissIcon.js +0 -32
  714. package/lib/Toast/ExclamationMarkIcon.js +0 -34
  715. package/lib/Toast/ExpandIcon.js +0 -32
  716. package/lib/Toast/NotificationIcon.js +0 -46
  717. package/lib/Toast/createToastMiddleware.d.ts +0 -4
  718. package/lib/Toast/createToastMiddleware.d.ts.map +0 -1
  719. package/lib/Toast/createToastMiddleware.js +0 -26
  720. package/lib/Transcript/ActivityRow.d.ts +0 -9
  721. package/lib/Transcript/ActivityRow.d.ts.map +0 -1
  722. package/lib/Transcript/ActivityRow.js +0 -137
  723. package/lib/Transcript/FocusTrap.d.ts +0 -9
  724. package/lib/Transcript/FocusTrap.d.ts.map +0 -1
  725. package/lib/Transcript/FocusTrap.js +0 -76
  726. package/lib/Transcript/KeyboardHelp.d.ts +0 -4
  727. package/lib/Transcript/KeyboardHelp.d.ts.map +0 -1
  728. package/lib/Transcript/KeyboardHelp.js +0 -562
  729. package/lib/Transcript/LiveRegion/SendFailed.d.ts +0 -14
  730. package/lib/Transcript/LiveRegion/SendFailed.d.ts.map +0 -1
  731. package/lib/Transcript/LiveRegion/SendFailed.js +0 -90
  732. package/lib/Transcript/LiveRegion/isPresentational.d.ts +0 -9
  733. package/lib/Transcript/LiveRegion/isPresentational.d.ts.map +0 -1
  734. package/lib/Transcript/LiveRegion/isPresentational.js +0 -30
  735. package/lib/Transcript/LiveRegionTranscript.d.ts +0 -8
  736. package/lib/Transcript/LiveRegionTranscript.d.ts.map +0 -1
  737. package/lib/Transcript/LiveRegionTranscript.js +0 -178
  738. package/lib/Transcript/types.d.ts +0 -2
  739. package/lib/Transcript/types.d.ts.map +0 -1
  740. package/lib/Transcript/types.js +0 -2
  741. package/lib/Transcript/useActivityAccessibleName.d.ts +0 -11
  742. package/lib/Transcript/useActivityAccessibleName.d.ts.map +0 -1
  743. package/lib/Transcript/useActivityAccessibleName.js +0 -103
  744. package/lib/Transcript/useTypistNames.d.ts +0 -3
  745. package/lib/Transcript/useTypistNames.d.ts.map +0 -1
  746. package/lib/Transcript/useTypistNames.js +0 -50
  747. package/lib/TranscriptActivity.d.ts +0 -17
  748. package/lib/TranscriptActivity.d.ts.map +0 -1
  749. package/lib/TranscriptActivity.js +0 -48
  750. package/lib/Utils/AccessKeySink/Surface.js +0 -74
  751. package/lib/Utils/AccessKeySink/internal/Context.js +0 -11
  752. package/lib/Utils/AccessKeySink/internal/useContext.js +0 -13
  753. package/lib/Utils/AccessKeySink/useFocusAccessKeyEffect.js +0 -34
  754. package/lib/Utils/AccessibleButton.d.ts +0 -11
  755. package/lib/Utils/AccessibleButton.d.ts.map +0 -1
  756. package/lib/Utils/AccessibleButton.js +0 -78
  757. package/lib/Utils/AccessibleInputText.d.ts +0 -22
  758. package/lib/Utils/AccessibleInputText.d.ts.map +0 -1
  759. package/lib/Utils/AccessibleInputText.js +0 -114
  760. package/lib/Utils/AccessibleTextArea.d.ts +0 -20
  761. package/lib/Utils/AccessibleTextArea.d.ts.map +0 -1
  762. package/lib/Utils/AccessibleTextArea.js +0 -105
  763. package/lib/Utils/CroppedImage.js +0 -61
  764. package/lib/Utils/FocusRedirector.d.ts +0 -9
  765. package/lib/Utils/FocusRedirector.d.ts.map +0 -1
  766. package/lib/Utils/FocusRedirector.js +0 -61
  767. package/lib/Utils/InlineMarkdown.js +0 -166
  768. package/lib/Utils/JSONLinkedData/BlankNode.d.ts +0 -15
  769. package/lib/Utils/JSONLinkedData/BlankNode.d.ts.map +0 -1
  770. package/lib/Utils/JSONLinkedData/BlankNode.js +0 -2
  771. package/lib/Utils/JSONLinkedData/__snapshots__/dereferenceBlankNodes.spec.ts.snap +0 -92
  772. package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts +0 -16
  773. package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.d.ts.map +0 -1
  774. package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.js +0 -96
  775. package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts +0 -2
  776. package/lib/Utils/JSONLinkedData/dereferenceBlankNodes.spec.d.ts.map +0 -1
  777. package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts +0 -10
  778. package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.d.ts.map +0 -1
  779. package/lib/Utils/JSONLinkedData/getSafeOwnPropertyNames.js +0 -22
  780. package/lib/Utils/JSONLinkedData/isBlankNode.d.ts +0 -10
  781. package/lib/Utils/JSONLinkedData/isBlankNode.d.ts.map +0 -1
  782. package/lib/Utils/JSONLinkedData/isBlankNode.js +0 -22
  783. package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts +0 -2
  784. package/lib/Utils/JSONLinkedData/isBlankNode.spec.d.ts.map +0 -1
  785. package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts +0 -10
  786. package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.d.ts.map +0 -1
  787. package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.js +0 -21
  788. package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts +0 -2
  789. package/lib/Utils/JSONLinkedData/isUnconnectedBlankNode.spec.d.ts.map +0 -1
  790. package/lib/Utils/JSONLinkedData/visitOnce.d.ts +0 -2
  791. package/lib/Utils/JSONLinkedData/visitOnce.d.ts.map +0 -1
  792. package/lib/Utils/JSONLinkedData/visitOnce.js +0 -17
  793. package/lib/Utils/LocalizedString.d.ts +0 -26
  794. package/lib/Utils/LocalizedString.d.ts.map +0 -1
  795. package/lib/Utils/LocalizedString.js +0 -138
  796. package/lib/Utils/TypeFocusSink/Context.js +0 -14
  797. package/lib/Utils/TypeFocusSink/FocusBox.js +0 -91
  798. package/lib/Utils/TypeFocusSink/getTabIndex.d.ts +0 -2
  799. package/lib/Utils/TypeFocusSink/getTabIndex.d.ts.map +0 -1
  800. package/lib/Utils/TypeFocusSink/getTabIndex.js +0 -27
  801. package/lib/Utils/TypeFocusSink/index.js +0 -18
  802. package/lib/Utils/TypeFocusSink/inputtableKey.d.ts +0 -2
  803. package/lib/Utils/TypeFocusSink/inputtableKey.d.ts.map +0 -1
  804. package/lib/Utils/TypeFocusSink/inputtableKey.js +0 -28
  805. package/lib/Utils/TypeFocusSink/navigableEvent.js +0 -59
  806. package/lib/Utils/activityAltText.d.ts +0 -8
  807. package/lib/Utils/activityAltText.d.ts.map +0 -1
  808. package/lib/Utils/activityAltText.js +0 -79
  809. package/lib/Utils/addTargetBlankToHyperlinksMarkdown.js +0 -34
  810. package/lib/Utils/betterLinks.d.ts +0 -28
  811. package/lib/Utils/betterLinks.d.ts.map +0 -1
  812. package/lib/Utils/betterLinks.js +0 -142
  813. package/lib/Utils/computeSuggestedActionText.d.ts +0 -3
  814. package/lib/Utils/computeSuggestedActionText.d.ts.map +0 -1
  815. package/lib/Utils/computeSuggestedActionText.js +0 -24
  816. package/lib/Utils/createCSSKey.js +0 -16
  817. package/lib/Utils/createCustomEvent.js +0 -34
  818. package/lib/Utils/detectBrowser.js +0 -27
  819. package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts +0 -16
  820. package/lib/Utils/downscaleImageToDataURL/WorkerJob.d.ts.map +0 -1
  821. package/lib/Utils/downscaleImageToDataURL/WorkerJob.js +0 -2
  822. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts +0 -2
  823. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.d.ts.map +0 -1
  824. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingBrowser.js +0 -90
  825. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts +0 -4
  826. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.d.ts.map +0 -1
  827. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.js +0 -198
  828. package/lib/Utils/downscaleImageToDataURL/downscaleImageToDataURLUsingWorker.worker.js +0 -96
  829. package/lib/Utils/downscaleImageToDataURL/index.d.ts +0 -2
  830. package/lib/Utils/downscaleImageToDataURL/index.d.ts.map +0 -1
  831. package/lib/Utils/downscaleImageToDataURL/index.js +0 -44
  832. package/lib/Utils/filterMap.js +0 -28
  833. package/lib/Utils/findAncestor.d.ts +0 -2
  834. package/lib/Utils/findAncestor.d.ts.map +0 -1
  835. package/lib/Utils/findAncestor.js +0 -15
  836. package/lib/Utils/firstTabbableDescendant.js +0 -40
  837. package/lib/Utils/getActivityUniqueId.d.ts +0 -3
  838. package/lib/Utils/getActivityUniqueId.d.ts.map +0 -1
  839. package/lib/Utils/getActivityUniqueId.js +0 -11
  840. package/lib/Utils/intersectionOf.d.ts +0 -5
  841. package/lib/Utils/intersectionOf.d.ts.map +0 -1
  842. package/lib/Utils/intersectionOf.js +0 -27
  843. package/lib/Utils/isZeroOrPositive.d.ts +0 -5
  844. package/lib/Utils/isZeroOrPositive.d.ts.map +0 -1
  845. package/lib/Utils/isZeroOrPositive.js +0 -14
  846. package/lib/Utils/mapMap.js +0 -27
  847. package/lib/Utils/parseDocumentFromString.d.ts +0 -2
  848. package/lib/Utils/parseDocumentFromString.d.ts.map +0 -1
  849. package/lib/Utils/parseDocumentFromString.js +0 -11
  850. package/lib/Utils/randomId.js +0 -15
  851. package/lib/Utils/readDataURIToBlob.js +0 -44
  852. package/lib/Utils/removeInline.js +0 -18
  853. package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts +0 -7
  854. package/lib/Utils/scrollIntoViewWithBlockNearest.d.ts.map +0 -1
  855. package/lib/Utils/scrollIntoViewWithBlockNearest.js +0 -38
  856. package/lib/Utils/serializeDocumentIntoString.d.ts +0 -2
  857. package/lib/Utils/serializeDocumentIntoString.d.ts.map +0 -1
  858. package/lib/Utils/serializeDocumentIntoString.js +0 -27
  859. package/lib/Utils/shallowEquals.js +0 -21
  860. package/lib/Utils/singleToArray.d.ts +0 -2
  861. package/lib/Utils/singleToArray.d.ts.map +0 -1
  862. package/lib/Utils/singleToArray.js +0 -10
  863. package/lib/Utils/supportPseudoClass.d.ts +0 -2
  864. package/lib/Utils/supportPseudoClass.d.ts.map +0 -1
  865. package/lib/Utils/supportPseudoClass.js +0 -21
  866. package/lib/Utils/tabbableElements.d.ts +0 -2
  867. package/lib/Utils/tabbableElements.d.ts.map +0 -1
  868. package/lib/Utils/tabbableElements.js +0 -20
  869. package/lib/Utils/textFormatToContentType.js +0 -17
  870. package/lib/Utils/updateMarkdownAttrs.js +0 -16
  871. package/lib/Utils/walkMarkdownTokens.js +0 -19
  872. package/lib/hooks/index.d.ts +0 -22
  873. package/lib/hooks/index.d.ts.map +0 -1
  874. package/lib/hooks/index.js +0 -152
  875. package/lib/hooks/internal/BypassSpeechSynthesisPonyfill.js +0 -278
  876. package/lib/hooks/internal/UITracker.js +0 -39
  877. package/lib/hooks/internal/WebChatUIContext.d.ts +0 -8
  878. package/lib/hooks/internal/WebChatUIContext.d.ts.map +0 -1
  879. package/lib/hooks/internal/WebChatUIContext.js +0 -11
  880. package/lib/hooks/internal/createWaitUntilable.d.ts +0 -5
  881. package/lib/hooks/internal/createWaitUntilable.d.ts.map +0 -1
  882. package/lib/hooks/internal/createWaitUntilable.js +0 -50
  883. package/lib/hooks/internal/createWaitUntilable.spec.d.ts +0 -2
  884. package/lib/hooks/internal/createWaitUntilable.spec.d.ts.map +0 -1
  885. package/lib/hooks/internal/private/createOnEventShim.d.ts +0 -5
  886. package/lib/hooks/internal/private/createOnEventShim.d.ts.map +0 -1
  887. package/lib/hooks/internal/private/createOnEventShim.js +0 -25
  888. package/lib/hooks/internal/private/createOnEventShim.spec.d.ts +0 -2
  889. package/lib/hooks/internal/private/createOnEventShim.spec.d.ts.map +0 -1
  890. package/lib/hooks/internal/useChanged.d.ts +0 -9
  891. package/lib/hooks/internal/useChanged.d.ts.map +0 -1
  892. package/lib/hooks/internal/useChanged.js +0 -21
  893. package/lib/hooks/internal/useDispatchScrollPosition.js +0 -12
  894. package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts +0 -2
  895. package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.d.ts.map +0 -1
  896. package/lib/hooks/internal/useDispatchTranscriptFocusByActivityKey.js +0 -12
  897. package/lib/hooks/internal/useEnterKeyHint.js +0 -18
  898. package/lib/hooks/internal/useFocusVisible.d.ts +0 -3
  899. package/lib/hooks/internal/useFocusVisible.d.ts.map +0 -1
  900. package/lib/hooks/internal/useFocusVisible.js +0 -37
  901. package/lib/hooks/internal/useFocusWithin.d.ts +0 -3
  902. package/lib/hooks/internal/useFocusWithin.d.ts.map +0 -1
  903. package/lib/hooks/internal/useFocusWithin.js +0 -38
  904. package/lib/hooks/internal/useForceRender.js +0 -24
  905. package/lib/hooks/internal/useForceRenderAtInterval.d.ts +0 -3
  906. package/lib/hooks/internal/useForceRenderAtInterval.d.ts.map +0 -1
  907. package/lib/hooks/internal/useForceRenderAtInterval.js +0 -57
  908. package/lib/hooks/internal/useInternalMarkdownIt.js +0 -14
  909. package/lib/hooks/internal/useInternalRenderMarkdownInline.js +0 -16
  910. package/lib/hooks/internal/useLocalizeAccessKey.d.ts +0 -2
  911. package/lib/hooks/internal/useLocalizeAccessKey.d.ts.map +0 -1
  912. package/lib/hooks/internal/useLocalizeAccessKey.js +0 -38
  913. package/lib/hooks/internal/useMemoWithPrevious.d.ts +0 -3
  914. package/lib/hooks/internal/useMemoWithPrevious.d.ts.map +0 -1
  915. package/lib/hooks/internal/useMemoWithPrevious.js +0 -20
  916. package/lib/hooks/internal/useMemoized.d.ts +0 -11
  917. package/lib/hooks/internal/useMemoized.d.ts.map +0 -1
  918. package/lib/hooks/internal/useMemoized.js +0 -82
  919. package/lib/hooks/internal/useMemoized.spec.jsx +0 -159
  920. package/lib/hooks/internal/useNavigatorPlatform.js +0 -31
  921. package/lib/hooks/internal/useNonce.js +0 -14
  922. package/lib/hooks/internal/useObserveFocusVisible.d.ts +0 -3
  923. package/lib/hooks/internal/useObserveFocusVisible.d.ts.map +0 -1
  924. package/lib/hooks/internal/useObserveFocusVisible.js +0 -201
  925. package/lib/hooks/internal/usePrevious.d.ts +0 -2
  926. package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
  927. package/lib/hooks/internal/usePrevious.js +0 -17
  928. package/lib/hooks/internal/useRegisterFocusTranscript.js +0 -27
  929. package/lib/hooks/internal/useRegisterScrollTo.js +0 -27
  930. package/lib/hooks/internal/useRegisterScrollToEnd.js +0 -25
  931. package/lib/hooks/internal/useReplaceEmoticon.js +0 -58
  932. package/lib/hooks/internal/useResumeAudioContext.d.ts +0 -2
  933. package/lib/hooks/internal/useResumeAudioContext.d.ts.map +0 -1
  934. package/lib/hooks/internal/useResumeAudioContext.js +0 -23
  935. package/lib/hooks/internal/useSendBoxFocusRef.js +0 -12
  936. package/lib/hooks/internal/useSettableDictateAbortable.js +0 -15
  937. package/lib/hooks/internal/useStateRef.d.ts +0 -3
  938. package/lib/hooks/internal/useStateRef.d.ts.map +0 -1
  939. package/lib/hooks/internal/useStateRef.js +0 -30
  940. package/lib/hooks/internal/useStyleToEmotionObject.js +0 -12
  941. package/lib/hooks/internal/useSuggestedActionsAccessKey.js +0 -14
  942. package/lib/hooks/internal/useTimer.d.ts +0 -5
  943. package/lib/hooks/internal/useTimer.d.ts.map +0 -1
  944. package/lib/hooks/internal/useTimer.js +0 -46
  945. package/lib/hooks/internal/useTranscriptActivityElementsRef.js +0 -12
  946. package/lib/hooks/internal/useTranscriptFocusRef.js +0 -12
  947. package/lib/hooks/internal/useUniqueId.d.ts +0 -2
  948. package/lib/hooks/internal/useUniqueId.d.ts.map +0 -1
  949. package/lib/hooks/internal/useUniqueId.js +0 -19
  950. package/lib/hooks/internal/useValueRef.d.ts +0 -3
  951. package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
  952. package/lib/hooks/internal/useValueRef.js +0 -24
  953. package/lib/hooks/internal/useWebChatUIContext.js +0 -17
  954. package/lib/hooks/sendBoxFocus.d.ts +0 -7
  955. package/lib/hooks/sendBoxFocus.d.ts.map +0 -1
  956. package/lib/hooks/sendBoxFocus.js +0 -13
  957. package/lib/hooks/transcriptScrollRelative.d.ts +0 -7
  958. package/lib/hooks/transcriptScrollRelative.d.ts.map +0 -1
  959. package/lib/hooks/transcriptScrollRelative.js +0 -13
  960. package/lib/hooks/useDictateAbortable.d.ts +0 -2
  961. package/lib/hooks/useDictateAbortable.d.ts.map +0 -1
  962. package/lib/hooks/useDictateAbortable.js +0 -22
  963. package/lib/hooks/useFocus.d.ts +0 -2
  964. package/lib/hooks/useFocus.d.ts.map +0 -1
  965. package/lib/hooks/useFocus.js +0 -65
  966. package/lib/hooks/useMakeThumbnail.d.ts +0 -2
  967. package/lib/hooks/useMakeThumbnail.d.ts.map +0 -1
  968. package/lib/hooks/useMakeThumbnail.js +0 -74
  969. package/lib/hooks/useObserveScrollPosition.d.ts +0 -3
  970. package/lib/hooks/useObserveScrollPosition.d.ts.map +0 -1
  971. package/lib/hooks/useObserveScrollPosition.js +0 -31
  972. package/lib/hooks/useObserveTranscriptFocus.d.ts +0 -5
  973. package/lib/hooks/useObserveTranscriptFocus.d.ts.map +0 -1
  974. package/lib/hooks/useObserveTranscriptFocus.js +0 -31
  975. package/lib/hooks/useRenderMarkdownAsHTML.d.ts +0 -5
  976. package/lib/hooks/useRenderMarkdownAsHTML.d.ts.map +0 -1
  977. package/lib/hooks/useRenderMarkdownAsHTML.js +0 -62
  978. package/lib/hooks/useScrollDown.d.ts +0 -4
  979. package/lib/hooks/useScrollDown.d.ts.map +0 -1
  980. package/lib/hooks/useScrollDown.js +0 -20
  981. package/lib/hooks/useScrollTo.d.ts +0 -5
  982. package/lib/hooks/useScrollTo.d.ts.map +0 -1
  983. package/lib/hooks/useScrollTo.js +0 -22
  984. package/lib/hooks/useScrollToEnd.d.ts +0 -2
  985. package/lib/hooks/useScrollToEnd.d.ts.map +0 -1
  986. package/lib/hooks/useScrollToEnd.js +0 -21
  987. package/lib/hooks/useScrollUp.d.ts +0 -4
  988. package/lib/hooks/useScrollUp.d.ts.map +0 -1
  989. package/lib/hooks/useScrollUp.js +0 -20
  990. package/lib/hooks/useSendFiles.d.ts +0 -5
  991. package/lib/hooks/useSendFiles.d.ts.map +0 -1
  992. package/lib/hooks/useSendFiles.js +0 -63
  993. package/lib/hooks/useSendMessage.d.ts +0 -8
  994. package/lib/hooks/useSendMessage.d.ts.map +0 -1
  995. package/lib/hooks/useSendMessage.js +0 -102
  996. package/lib/hooks/useStyleSet.d.ts +0 -3
  997. package/lib/hooks/useStyleSet.d.ts.map +0 -1
  998. package/lib/hooks/useStyleSet.js +0 -13
  999. package/lib/hooks/useWebSpeechPonyfill.d.ts +0 -3
  1000. package/lib/hooks/useWebSpeechPonyfill.d.ts.map +0 -1
  1001. package/lib/hooks/useWebSpeechPonyfill.js +0 -12
  1002. package/lib/index.d.ts +0 -330
  1003. package/lib/index.d.ts.map +0 -1
  1004. package/lib/index.js +0 -164
  1005. package/lib/internal.d.ts +0 -4
  1006. package/lib/internal.d.ts.map +0 -1
  1007. package/lib/internal.js +0 -21
  1008. package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts +0 -7
  1009. package/lib/providers/ActivityTree/ActivityTreeComposer.d.ts.map +0 -1
  1010. package/lib/providers/ActivityTree/ActivityTreeComposer.js +0 -90
  1011. package/lib/providers/ActivityTree/private/Context.d.ts +0 -9
  1012. package/lib/providers/ActivityTree/private/Context.d.ts.map +0 -1
  1013. package/lib/providers/ActivityTree/private/Context.js +0 -10
  1014. package/lib/providers/ActivityTree/private/types.d.ts +0 -10
  1015. package/lib/providers/ActivityTree/private/types.d.ts.map +0 -1
  1016. package/lib/providers/ActivityTree/private/types.js +0 -2
  1017. package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts +0 -4
  1018. package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.d.ts.map +0 -1
  1019. package/lib/providers/ActivityTree/private/useActivitiesWithRenderer.js +0 -36
  1020. package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts +0 -5
  1021. package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.d.ts.map +0 -1
  1022. package/lib/providers/ActivityTree/private/useActivityTreeWithRenderer.js +0 -147
  1023. package/lib/providers/ActivityTree/private/useContext.d.ts +0 -3
  1024. package/lib/providers/ActivityTree/private/useContext.d.ts.map +0 -1
  1025. package/lib/providers/ActivityTree/private/useContext.js +0 -18
  1026. package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts +0 -8
  1027. package/lib/providers/ActivityTree/useActivityTreeWithRenderer.d.ts.map +0 -1
  1028. package/lib/providers/ActivityTree/useActivityTreeWithRenderer.js +0 -14
  1029. package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts +0 -37
  1030. package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.d.ts.map +0 -1
  1031. package/lib/providers/LiveRegionTwin/LiveRegionTwinComposer.js +0 -145
  1032. package/lib/providers/LiveRegionTwin/private/Context.d.ts +0 -10
  1033. package/lib/providers/LiveRegionTwin/private/Context.d.ts.map +0 -1
  1034. package/lib/providers/LiveRegionTwin/private/Context.js +0 -11
  1035. package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts +0 -12
  1036. package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.d.ts.map +0 -1
  1037. package/lib/providers/LiveRegionTwin/private/LiveRegionTwinContainer.js +0 -77
  1038. package/lib/providers/LiveRegionTwin/private/types.d.ts +0 -8
  1039. package/lib/providers/LiveRegionTwin/private/types.d.ts.map +0 -1
  1040. package/lib/providers/LiveRegionTwin/private/types.js +0 -2
  1041. package/lib/providers/LiveRegionTwin/private/useContext.d.ts +0 -3
  1042. package/lib/providers/LiveRegionTwin/private/useContext.d.ts.map +0 -1
  1043. package/lib/providers/LiveRegionTwin/private/useContext.js +0 -18
  1044. package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts +0 -2
  1045. package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.d.ts.map +0 -1
  1046. package/lib/providers/LiveRegionTwin/private/useMarkAllAsRenderedEffect.js +0 -20
  1047. package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts +0 -3
  1048. package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.d.ts.map +0 -1
  1049. package/lib/providers/LiveRegionTwin/private/useStaticElementEntries.js +0 -12
  1050. package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts +0 -8
  1051. package/lib/providers/LiveRegionTwin/useQueueStaticElement.d.ts.map +0 -1
  1052. package/lib/providers/LiveRegionTwin/useQueueStaticElement.js +0 -17
  1053. package/lib/providers/ModalDialog/ModalDialogComposer.d.ts +0 -7
  1054. package/lib/providers/ModalDialog/ModalDialogComposer.d.ts.map +0 -1
  1055. package/lib/providers/ModalDialog/ModalDialogComposer.js +0 -51
  1056. package/lib/providers/ModalDialog/private/Context.d.ts +0 -13
  1057. package/lib/providers/ModalDialog/private/Context.d.ts.map +0 -1
  1058. package/lib/providers/ModalDialog/private/Context.js +0 -24
  1059. package/lib/providers/ModalDialog/private/Popover.d.ts +0 -10
  1060. package/lib/providers/ModalDialog/private/Popover.d.ts.map +0 -1
  1061. package/lib/providers/ModalDialog/private/Popover.js +0 -79
  1062. package/lib/providers/ModalDialog/private/useContext.d.ts +0 -4
  1063. package/lib/providers/ModalDialog/private/useContext.d.ts.map +0 -1
  1064. package/lib/providers/ModalDialog/private/useContext.js +0 -13
  1065. package/lib/providers/ModalDialog/useClose.d.ts +0 -3
  1066. package/lib/providers/ModalDialog/useClose.d.ts.map +0 -1
  1067. package/lib/providers/ModalDialog/useClose.js +0 -12
  1068. package/lib/providers/ModalDialog/useShowModal.d.ts +0 -3
  1069. package/lib/providers/ModalDialog/useShowModal.d.ts.map +0 -1
  1070. package/lib/providers/ModalDialog/useShowModal.js +0 -12
  1071. package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts +0 -8
  1072. package/lib/providers/RovingTabIndex/RovingTabIndexComposer.d.ts.map +0 -1
  1073. package/lib/providers/RovingTabIndex/RovingTabIndexComposer.js +0 -163
  1074. package/lib/providers/RovingTabIndex/private/Context.d.ts +0 -8
  1075. package/lib/providers/RovingTabIndex/private/Context.d.ts.map +0 -1
  1076. package/lib/providers/RovingTabIndex/private/Context.js +0 -17
  1077. package/lib/providers/RovingTabIndex/private/useContext.d.ts +0 -2
  1078. package/lib/providers/RovingTabIndex/private/useContext.d.ts.map +0 -1
  1079. package/lib/providers/RovingTabIndex/private/useContext.js +0 -18
  1080. package/lib/providers/RovingTabIndex/useItemRef.d.ts +0 -3
  1081. package/lib/providers/RovingTabIndex/useItemRef.d.ts.map +0 -1
  1082. package/lib/providers/RovingTabIndex/useItemRef.js +0 -19
  1083. package/lib/providers/Theme/ThemeProvider.d.ts +0 -7
  1084. package/lib/providers/Theme/ThemeProvider.d.ts.map +0 -1
  1085. package/lib/providers/Theme/ThemeProvider.js +0 -103
  1086. package/lib/providers/Theme/private/Context.d.ts +0 -19
  1087. package/lib/providers/Theme/private/Context.d.ts.map +0 -1
  1088. package/lib/providers/Theme/private/Context.js +0 -26
  1089. package/lib/providers/Theme/useTheme.d.ts +0 -2
  1090. package/lib/providers/Theme/useTheme.d.ts.map +0 -1
  1091. package/lib/providers/Theme/useTheme.js +0 -13
  1092. package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts +0 -7
  1093. package/lib/providers/TranscriptFocus/TranscriptFocusComposer.d.ts.map +0 -1
  1094. package/lib/providers/TranscriptFocus/TranscriptFocusComposer.js +0 -153
  1095. package/lib/providers/TranscriptFocus/private/Context.d.ts +0 -12
  1096. package/lib/providers/TranscriptFocus/private/Context.d.ts.map +0 -1
  1097. package/lib/providers/TranscriptFocus/private/Context.js +0 -11
  1098. package/lib/providers/TranscriptFocus/private/useContext.d.ts +0 -2
  1099. package/lib/providers/TranscriptFocus/private/useContext.d.ts.map +0 -1
  1100. package/lib/providers/TranscriptFocus/private/useContext.js +0 -18
  1101. package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts +0 -2
  1102. package/lib/providers/TranscriptFocus/useActiveDescendantId.d.ts.map +0 -1
  1103. package/lib/providers/TranscriptFocus/useActiveDescendantId.js +0 -12
  1104. package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts +0 -8
  1105. package/lib/providers/TranscriptFocus/useFocusByActivityKey.d.ts.map +0 -1
  1106. package/lib/providers/TranscriptFocus/useFocusByActivityKey.js +0 -18
  1107. package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts +0 -2
  1108. package/lib/providers/TranscriptFocus/useFocusRelativeActivity.d.ts.map +0 -1
  1109. package/lib/providers/TranscriptFocus/useFocusRelativeActivity.js +0 -12
  1110. package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts +0 -2
  1111. package/lib/providers/TranscriptFocus/useFocusedActivityKey.d.ts.map +0 -1
  1112. package/lib/providers/TranscriptFocus/useFocusedActivityKey.js +0 -12
  1113. package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts +0 -2
  1114. package/lib/providers/TranscriptFocus/useFocusedExplicitly.d.ts.map +0 -1
  1115. package/lib/providers/TranscriptFocus/useFocusedExplicitly.js +0 -12
  1116. package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts +0 -2
  1117. package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.d.ts.map +0 -1
  1118. package/lib/providers/TranscriptFocus/useGetDescendantIdByActivityKey.js +0 -12
  1119. package/lib/providers/internal/SendBox/SendBoxComposer.d.ts +0 -4
  1120. package/lib/providers/internal/SendBox/SendBoxComposer.d.ts.map +0 -1
  1121. package/lib/providers/internal/SendBox/SendBoxComposer.js +0 -161
  1122. package/lib/providers/internal/SendBox/private/Context.d.ts +0 -4
  1123. package/lib/providers/internal/SendBox/private/Context.d.ts.map +0 -1
  1124. package/lib/providers/internal/SendBox/private/Context.js +0 -11
  1125. package/lib/providers/internal/SendBox/private/types.d.ts +0 -8
  1126. package/lib/providers/internal/SendBox/private/types.d.ts.map +0 -1
  1127. package/lib/providers/internal/SendBox/private/types.js +0 -2
  1128. package/lib/providers/internal/SendBox/private/useContext.d.ts +0 -3
  1129. package/lib/providers/internal/SendBox/private/useContext.d.ts.map +0 -1
  1130. package/lib/providers/internal/SendBox/private/useContext.js +0 -17
  1131. package/lib/providers/internal/SendBox/useErrorMessageId.d.ts +0 -12
  1132. package/lib/providers/internal/SendBox/useErrorMessageId.d.ts.map +0 -1
  1133. package/lib/providers/internal/SendBox/useErrorMessageId.js +0 -22
  1134. package/lib/providers/internal/SendBox/useSubmit.d.ts +0 -14
  1135. package/lib/providers/internal/SendBox/useSubmit.d.ts.map +0 -1
  1136. package/lib/providers/internal/SendBox/useSubmit.js +0 -20
  1137. package/lib/tsconfig.json +0 -18
  1138. package/lib/types/ContextOf.d.ts +0 -4
  1139. package/lib/types/ContextOf.d.ts.map +0 -1
  1140. package/lib/types/ContextOf.js +0 -2
  1141. package/lib/types/PropsOf.d.ts +0 -3
  1142. package/lib/types/PropsOf.d.ts.map +0 -1
  1143. package/lib/types/PropsOf.js +0 -2
  1144. package/lib/types/ScrollPosition.d.ts +0 -6
  1145. package/lib/types/ScrollPosition.d.ts.map +0 -1
  1146. package/lib/types/ScrollPosition.js +0 -2
  1147. package/lib/types/internal/FocusTranscriptInit.d.ts +0 -4
  1148. package/lib/types/internal/FocusTranscriptInit.d.ts.map +0 -1
  1149. package/lib/types/internal/FocusTranscriptInit.js +0 -2
  1150. package/lib/types/internal/SendStatus.d.ts +0 -7
  1151. package/lib/types/internal/SendStatus.d.ts.map +0 -1
  1152. package/lib/types/internal/SendStatus.js +0 -19
  1153. package/lib/types/internal/TypeOfArray.d.ts +0 -2
  1154. package/lib/types/internal/TypeOfArray.d.ts.map +0 -1
  1155. package/lib/types/internal/TypeOfArray.js +0 -2
  1156. package/lib/withEmoji/private/UndoEntry.d.ts +0 -9
  1157. package/lib/withEmoji/private/UndoEntry.d.ts.map +0 -1
  1158. package/lib/withEmoji/private/UndoEntry.js +0 -69
  1159. package/lib/withEmoji/private/useUndoStack.d.ts +0 -6
  1160. package/lib/withEmoji/private/useUndoStack.d.ts.map +0 -1
  1161. package/lib/withEmoji/private/useUndoStack.js +0 -64
  1162. package/lib/withEmoji/withEmoji.d.ts +0 -15
  1163. package/lib/withEmoji/withEmoji.d.ts.map +0 -1
  1164. package/lib/withEmoji/withEmoji.js +0 -128
  1165. package/src/Activity/SayAlt.js +0 -26
  1166. package/src/ActivityStatus/Slotted.tsx +0 -26
  1167. package/src/ActivityStatus/private/Feedback/Feedback.tsx +0 -60
  1168. package/src/ActivityStatus/private/Feedback/private/VoteButton.tsx +0 -36
  1169. package/src/Attachment/Assets/DownloadIcon.js +0 -29
  1170. package/src/Avatar/ImageAvatar.js +0 -49
  1171. package/src/Middleware/ScrollToEndButton/ScrollToEndButton.js +0 -45
  1172. package/src/Styles/StyleSet/CSSCustomProperties.ts +0 -46
  1173. package/src/Styles/StyleSet/KeyboardHelp.ts +0 -204
  1174. package/src/Styles/StyleSet/SingleAttachmentActivity.ts +0 -18
  1175. package/src/Styles/StyleSet/SlottedActivityStatus.ts +0 -16
  1176. package/src/Transcript/KeyboardHelp.tsx +0 -319
  1177. package/src/TranscriptActivity.tsx +0 -64
  1178. package/src/Utils/CroppedImage.js +0 -45
  1179. package/src/Utils/parseDocumentFromString.ts +0 -5
  1180. package/src/Utils/serializeDocumentIntoString.ts +0 -10
  1181. package/src/hooks/internal/useStyleToEmotionObject.js +0 -5
  1182. package/src/providers/ActivityTree/ActivityTreeComposer.tsx +0 -90
  1183. package/src/providers/ActivityTree/private/Context.ts +0 -12
  1184. package/src/providers/ActivityTree/private/types.ts +0 -12
  1185. package/src/providers/ActivityTree/private/useActivitiesWithRenderer.ts +0 -40
  1186. package/src/providers/ActivityTree/private/useActivityTreeWithRenderer.ts +0 -140
  1187. package/src/providers/ActivityTree/private/useContext.ts +0 -15
  1188. package/src/providers/ActivityTree/useActivityTreeWithRenderer.ts +0 -16
  1189. package/src/providers/LiveRegionTwin/LiveRegionTwinComposer.tsx +0 -172
  1190. package/src/providers/LiveRegionTwin/private/Context.ts +0 -15
  1191. /package/dist/{chunk-X37JABN5.mjs.LEGAL.txt → botframework-webchat-component.decorator.css.LEGAL.txt} +0 -0
  1192. /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbDislike16Filled.tsx +0 -0
  1193. /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbDislike16Regular.tsx +0 -0
  1194. /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbLike16Filled.tsx +0 -0
  1195. /package/src/{ActivityStatus/private/Feedback/private/icons → ActivityFeedback/private}/ThumbLike16Regular.tsx +0 -0
@@ -1,65 +1,72 @@
1
+ // TODO: [P2] Fix ESLint error `no-use-before-define`
2
+ /* eslint-disable @typescript-eslint/no-use-before-define */
3
+
1
4
  import { hooks } from 'botframework-webchat-api';
5
+ import classNames from 'classnames';
6
+ import React, {
7
+ forwardRef,
8
+ Fragment,
9
+ memo,
10
+ useCallback,
11
+ useMemo,
12
+ useRef,
13
+ type KeyboardEventHandler,
14
+ type MutableRefObject,
15
+ type ReactNode
16
+ } from 'react';
2
17
  import {
3
18
  Composer as ReactScrollToBottomComposer,
4
19
  Panel as ReactScrollToBottomPanel,
5
- useAnimatingToEnd,
6
- useAtEnd,
7
20
  useObserveScrollPosition,
8
21
  useScrollTo,
9
22
  useScrollToEnd,
10
23
  useSticky
11
24
  } from 'react-scroll-to-bottom';
12
- import classNames from 'classnames';
13
- import PropTypes from 'prop-types';
14
- import React, { forwardRef, Fragment, memo, useCallback, useMemo, useRef } from 'react';
25
+ import { wrapWith } from 'react-wrap-with';
15
26
 
16
- import type { ActivityElementMap } from './Transcript/types';
17
- import type { FC, KeyboardEventHandler, MutableRefObject, ReactNode } from 'react';
18
- import type { WebChatActivity } from 'botframework-webchat-core';
19
-
20
- import { android } from './Utils/detectBrowser';
21
27
  import BasicTypingIndicator from './BasicTypingIndicator';
28
+ import ChatHistoryBox from './ChatHistory/ChatHistoryBox';
29
+ import ChatHistoryToolbar from './ChatHistory/ChatHistoryToolbar';
30
+ import ScrollToEndButton from './ChatHistory/private/ScrollToEndButton';
31
+ import ActivityTree from './Transcript/ActivityTree';
32
+ import LiveRegionTranscript from './Transcript/LiveRegionTranscript';
33
+ import { type ActivityElementMap } from './Transcript/types';
22
34
  import FocusRedirector from './Utils/FocusRedirector';
23
35
  import inputtableKey from './Utils/TypeFocusSink/inputtableKey';
24
- import isZeroOrPositive from './Utils/isZeroOrPositive';
25
- import KeyboardHelp from './Transcript/KeyboardHelp';
26
- import LiveRegionTranscript from './Transcript/LiveRegionTranscript';
27
- // TODO: [P2] #4133 Rename to "getTabbableElements".
28
- import tabbableElements from './Utils/tabbableElements';
29
- import TranscriptFocusComposer from './providers/TranscriptFocus/TranscriptFocusComposer';
30
- import useActiveDescendantId from './providers/TranscriptFocus/useActiveDescendantId';
31
- import useActivityTreeWithRenderer from './providers/ActivityTree/useActivityTreeWithRenderer';
36
+ import { android } from './Utils/detectBrowser';
37
+ import { useStyleToEmotionObject } from './hooks/internal/styleToEmotionObject';
32
38
  import useDispatchScrollPosition from './hooks/internal/useDispatchScrollPosition';
33
39
  import useDispatchTranscriptFocusByActivityKey from './hooks/internal/useDispatchTranscriptFocusByActivityKey';
34
- import useFocus from './hooks/useFocus';
35
- import useFocusByActivityKey from './providers/TranscriptFocus/useFocusByActivityKey';
36
- import useFocusedActivityKey from './providers/TranscriptFocus/useFocusedActivityKey';
37
- import useFocusedExplicitly from './providers/TranscriptFocus/useFocusedExplicitly';
38
- import useFocusRelativeActivity from './providers/TranscriptFocus/useFocusRelativeActivity';
40
+ import useNonce from './hooks/internal/useNonce';
39
41
  import useObserveFocusVisible from './hooks/internal/useObserveFocusVisible';
40
42
  import usePrevious from './hooks/internal/usePrevious';
41
43
  import useRegisterFocusTranscript from './hooks/internal/useRegisterFocusTranscript';
42
44
  import useRegisterScrollTo from './hooks/internal/useRegisterScrollTo';
43
45
  import useRegisterScrollToEnd from './hooks/internal/useRegisterScrollToEnd';
44
- import useStyleSet from './hooks/useStyleSet';
45
- import useStyleToEmotionObject from './hooks/internal/useStyleToEmotionObject';
46
46
  import useUniqueId from './hooks/internal/useUniqueId';
47
47
  import useValueRef from './hooks/internal/useValueRef';
48
- import TranscriptActivity from './TranscriptActivity';
49
- import useMemoized from './hooks/internal/useMemoized';
50
48
  import {
51
49
  useRegisterScrollRelativeTranscript,
52
50
  type TranscriptScrollRelativeOptions
53
51
  } from './hooks/transcriptScrollRelative';
52
+ import useFocus from './hooks/useFocus';
53
+ import useStyleSet from './hooks/useStyleSet';
54
+ import ChatHistoryDOMComposer from './providers/ChatHistoryDOM/ChatHistoryDOMComposer';
55
+ import useActivityElementMapRef from './providers/ChatHistoryDOM/useActivityElementRef';
56
+ import GroupedRenderingActivitiesComposer from './providers/GroupedRenderingActivities/GroupedRenderingActivitiesComposer';
57
+ import useNumRenderingActivities from './providers/GroupedRenderingActivities/useNumRenderingActivities';
58
+ import RenderingActivitiesComposer from './providers/RenderingActivities/RenderingActivitiesComposer';
59
+ import TranscriptFocusComposer from './providers/TranscriptFocus/TranscriptFocusComposer';
60
+ import useActiveDescendantId from './providers/TranscriptFocus/useActiveDescendantId';
61
+ import useFocusByActivityKey from './providers/TranscriptFocus/useFocusByActivityKey';
62
+ import useFocusRelativeActivity from './providers/TranscriptFocus/useFocusRelativeActivity';
63
+ import useFocusedActivityKey from './providers/TranscriptFocus/useFocusedActivityKey';
64
+ import useFocusedExplicitly from './providers/TranscriptFocus/useFocusedExplicitly';
54
65
 
55
66
  const {
56
67
  useActivityKeys,
57
- useActivityKeysByRead,
58
- useCreateAvatarRenderer,
59
- useCreateScrollToEndButtonRenderer,
60
68
  useDirection,
61
69
  useGetActivityByKey,
62
- useGetKeyByActivity,
63
70
  useGetKeyByActivityId,
64
71
  useLastAcknowledgedActivityKey,
65
72
  useLocalizer,
@@ -99,36 +106,31 @@ type ScrollBehavior = 'auto' | 'smooth';
99
106
  type ScrollToOptions = { behavior?: ScrollBehavior };
100
107
  type ScrollToPosition = { activityID?: string; scrollTop?: number };
101
108
 
102
- type InternalTranscriptProps = {
103
- activityElementMapRef: MutableRefObject<ActivityElementMap>;
109
+ type InternalTranscriptProps = Readonly<{
104
110
  className?: string;
105
- };
111
+ terminatorRef: React.MutableRefObject<HTMLDivElement>;
112
+ }>;
106
113
 
107
114
  // TODO: [P1] #4133 Add telemetry for computing how many re-render done so far.
108
115
  const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
109
- ({ activityElementMapRef, className }, ref) => {
116
+ ({ className, terminatorRef }: InternalTranscriptProps, ref) => {
110
117
  const [{ basicTranscript: basicTranscriptStyleSet }] = useStyleSet();
111
- const [{ bubbleFromUserNubOffset, bubbleNubOffset, groupTimestamp, showAvatarInGroup }] = useStyleOptions();
112
118
  const [activeDescendantId] = useActiveDescendantId();
113
- const [activityWithRendererTree] = useActivityTreeWithRenderer();
114
119
  const [direction] = useDirection();
115
120
  const [focusedActivityKey] = useFocusedActivityKey();
116
121
  const [focusedExplicitly] = useFocusedExplicitly();
117
- const createAvatarRenderer = useCreateAvatarRenderer();
122
+ const activityElementMapRef = useActivityElementMapRef();
118
123
  const focus = useFocus();
119
124
  const focusByActivityKey = useFocusByActivityKey();
120
125
  const focusRelativeActivity = useFocusRelativeActivity();
121
126
  const getActivityByKey = useGetActivityByKey();
122
- const getKeyByActivity = useGetKeyByActivity();
123
127
  const getKeyByActivityId = useGetKeyByActivityId();
124
128
  const localize = useLocalizer();
125
129
  const rootClassName = useStyleToEmotionObject()(ROOT_STYLE) + '';
126
130
  const rootElementRef = useRef<HTMLDivElement>();
127
131
  const terminatorLabelId = useUniqueId('webchat__basic-transcript__terminator-label');
128
- const terminatorRef = useRef<HTMLDivElement>();
129
132
 
130
133
  const focusedActivityKeyRef = useValueRef(focusedActivityKey);
131
- const hideAllTimestamps = groupTimestamp === false;
132
134
  const terminatorText = localize('TRANSCRIPT_TERMINATOR_TEXT');
133
135
  const transcriptAriaLabel = localize('TRANSCRIPT_ARIA_LABEL_ALT');
134
136
 
@@ -145,84 +147,7 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
145
147
  [ref, rootElementRef]
146
148
  );
147
149
 
148
- const createAvatarRendererMemoized = useMemoized(
149
- (activity: WebChatActivity) => createAvatarRenderer({ activity }),
150
- [createAvatarRenderer]
151
- );
152
-
153
- // Flatten the tree back into an array with information related to rendering.
154
- const renderingElements = useMemo(() => {
155
- const renderingElements: ReactNode[] = [];
156
- const topSideBotNub = isZeroOrPositive(bubbleNubOffset);
157
- const topSideUserNub = isZeroOrPositive(bubbleFromUserNubOffset);
158
-
159
- activityWithRendererTree.forEach(entriesWithSameSender => {
160
- const [[{ activity: firstActivity }]] = entriesWithSameSender;
161
- const renderAvatar = createAvatarRendererMemoized(firstActivity);
162
-
163
- entriesWithSameSender.forEach((entriesWithSameSenderAndStatus, indexWithinSenderGroup) => {
164
- const firstInSenderGroup = !indexWithinSenderGroup;
165
- const lastInSenderGroup = indexWithinSenderGroup === entriesWithSameSender.length - 1;
166
-
167
- entriesWithSameSenderAndStatus.forEach(({ activity, renderActivity }, indexWithinSenderAndStatusGroup) => {
168
- // We only show the timestamp at the end of the sender group. But we always show the "Send failed, retry" prompt.
169
- const firstInSenderAndStatusGroup = !indexWithinSenderAndStatusGroup;
170
- const key: string = getKeyByActivity(activity);
171
- const lastInSenderAndStatusGroup =
172
- indexWithinSenderAndStatusGroup === entriesWithSameSenderAndStatus.length - 1;
173
- const topSideNub = activity.from?.role === 'user' ? topSideUserNub : topSideBotNub;
174
-
175
- let showCallout: boolean;
176
-
177
- // Depending on the "showAvatarInGroup" setting, the avatar will render in different positions.
178
- if (showAvatarInGroup === 'sender') {
179
- if (topSideNub) {
180
- showCallout = firstInSenderGroup && firstInSenderAndStatusGroup;
181
- } else {
182
- showCallout = lastInSenderGroup && lastInSenderAndStatusGroup;
183
- }
184
- } else if (showAvatarInGroup === 'status') {
185
- if (topSideNub) {
186
- showCallout = firstInSenderAndStatusGroup;
187
- } else {
188
- showCallout = lastInSenderAndStatusGroup;
189
- }
190
- } else {
191
- showCallout = true;
192
- }
193
-
194
- renderingElements.push(
195
- <TranscriptActivity
196
- activity={activity}
197
- activityElementMapRef={activityElementMapRef}
198
- // "hideTimestamp" is a render-time parameter for renderActivityStatus().
199
- // If true, it will hide the timestamp, but it will continue to show the
200
- // retry prompt. And show the screen reader version of the timestamp.
201
- activityKey={key}
202
- hideTimestamp={
203
- hideAllTimestamps || indexWithinSenderAndStatusGroup !== entriesWithSameSenderAndStatus.length - 1
204
- }
205
- key={key}
206
- renderActivity={renderActivity}
207
- renderAvatar={renderAvatar}
208
- showCallout={showCallout}
209
- />
210
- );
211
- });
212
- });
213
- });
214
-
215
- return renderingElements;
216
- }, [
217
- activityElementMapRef,
218
- activityWithRendererTree,
219
- bubbleFromUserNubOffset,
220
- bubbleNubOffset,
221
- createAvatarRendererMemoized,
222
- getKeyByActivity,
223
- hideAllTimestamps,
224
- showAvatarInGroup
225
- ]);
150
+ const [numRenderingActivities] = useNumRenderingActivities();
226
151
 
227
152
  const scrollToBottomScrollTo: (scrollTop: number, options?: ScrollToOptions) => void = useScrollTo();
228
153
  const scrollToBottomScrollToEnd: (options?: ScrollToOptions) => void = useScrollToEnd();
@@ -409,11 +334,15 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
409
334
  // This is capturing plain ENTER.
410
335
  // When screen reader is not running, or screen reader is running outside of scan mode, the ENTER key will be captured here.
411
336
  if (!fromEndOfTranscriptIndicator) {
412
- const body: HTMLElement = activityElementMapRef.current
337
+ const activityFocusTrapTarget: HTMLElement = activityElementMapRef.current
413
338
  .get(focusedActivityKeyRef.current)
414
- ?.querySelector('.webchat__basic-transcript__activity-body');
415
-
416
- tabbableElements(body)[0]?.focus();
339
+ ?.querySelector('.webchat__basic-transcript__activity-focus-target');
340
+ // TODO: review focus approach:
341
+ // It is not clear how to handle focus without introducing something like context.
342
+ // Ideally we would want a way to interact with focus outside of React
343
+ // so it doesn't cause transcript re-renders while still having an ability
344
+ // to scope activity-related handlers and data in a single place.
345
+ activityFocusTrapTarget?.focus();
417
346
  }
418
347
 
419
348
  break;
@@ -459,7 +388,7 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
459
388
  focus('sendBox');
460
389
  }
461
390
  },
462
- [focus]
391
+ [focus, terminatorRef]
463
392
  );
464
393
 
465
394
  useRegisterFocusTranscript(useCallback(() => focusByActivityKey(undefined), [focusByActivityKey]));
@@ -494,6 +423,8 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
494
423
  useCallback(() => focusByActivityKey(undefined), [focusByActivityKey])
495
424
  );
496
425
 
426
+ const hasAnyChild = !!numRenderingActivities;
427
+
497
428
  return (
498
429
  <div
499
430
  // Although Android TalkBack 12.1 does not support `aria-activedescendant`, when used, it become buggy and will narrate content twice.
@@ -520,12 +451,11 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
520
451
  tabIndex={0}
521
452
  >
522
453
  <LiveRegionTranscript activityElementMapRef={activityElementMapRef} />
523
- {/* TODO: [P2] Fix ESLint error `no-use-before-define` */}
524
- {/* eslint-disable-next-line @typescript-eslint/no-use-before-define */}
525
- <InternalTranscriptScrollable onFocusFiller={handleFocusFiller} terminatorRef={terminatorRef}>
526
- {renderingElements}
454
+ {hasAnyChild && <FocusRedirector redirectRef={terminatorRef} />}
455
+ <InternalTranscriptScrollable onFocusFiller={handleFocusFiller}>
456
+ {hasAnyChild && <ActivityTree />}
527
457
  </InternalTranscriptScrollable>
528
- {!!renderingElements.length && (
458
+ {hasAnyChild && (
529
459
  <Fragment>
530
460
  <FocusRedirector redirectRef={rootElementRef} />
531
461
  <div
@@ -551,73 +481,25 @@ const InternalTranscript = forwardRef<HTMLDivElement, InternalTranscriptProps>(
551
481
  }
552
482
  );
553
483
 
554
- InternalTranscript.defaultProps = {
555
- className: ''
556
- };
557
-
558
484
  InternalTranscript.displayName = 'InternalTranscript';
559
485
 
560
- InternalTranscript.propTypes = {
561
- // PropTypes cannot validate precisely with its TypeScript counterpart.
562
- // @ts-ignore
563
- activityElementMapRef: PropTypes.shape({
564
- current: PropTypes.instanceOf(Map)
565
- }).isRequired,
566
- className: PropTypes.string
567
- };
568
-
569
- type InternalTranscriptScrollableProps = {
486
+ type InternalTranscriptScrollableProps = Readonly<{
570
487
  children?: ReactNode;
571
488
  onFocusFiller: () => void;
572
- terminatorRef: MutableRefObject<HTMLDivElement>;
573
- };
489
+ }>;
574
490
 
575
491
  // Separating high-frequency hooks to improve performance.
576
- const InternalTranscriptScrollable: FC<InternalTranscriptScrollableProps> = ({
577
- children,
578
- onFocusFiller,
579
- terminatorRef
580
- }) => {
492
+ const InternalTranscriptScrollable = ({ children, onFocusFiller }: InternalTranscriptScrollableProps) => {
581
493
  const [{ activities: activitiesStyleSet }] = useStyleSet();
582
- const [animatingToEnd]: [boolean] = useAnimatingToEnd();
583
- const [atEnd]: [boolean] = useAtEnd();
584
- const [, unreadActivityKeys] = useActivityKeysByRead();
585
494
  const [sticky]: [boolean] = useSticky();
586
- const [styleOptions] = useStyleOptions();
587
- const focusByActivityKey = useFocusByActivityKey();
588
495
  const localize = useLocalizer();
589
- const markActivityKeyAsRead = useMarkActivityKeyAsRead();
590
496
  const markAllAsAcknowledged = useMarkAllAsAcknowledged();
591
- const scrollToEnd: (options?: ScrollToOptions) => void = useScrollToEnd();
592
497
 
593
498
  const prevSticky = usePrevious(sticky);
594
499
  const transcriptRoleDescription = localize('TRANSCRIPT_ARIA_ROLE_ALT');
595
500
 
596
501
  const stickyChangedToTrue = prevSticky !== sticky && sticky;
597
502
 
598
- // Acknowledged means either:
599
- // 1. The user sent a message
600
- // - We don't need a condition here. When Web Chat sends the user's message, it will scroll to bottom, and it will trigger condition 2 below.
601
- // 2. The user scroll to the bottom of the transcript, from a non-bottom scroll position
602
- // - If the transcript is already at the bottom, the user needs to scroll up and then go back down
603
- // - What happens if we are relaxing "scrolled from a non-bottom scroll position":
604
- // 1. The condition will become solely "at the bottom of the transcript"
605
- // 2. Auto-scroll will always scroll the transcript to the bottom
606
- // 3. Web Chat will always acknowledge all activities as it is at the bottom
607
- // 4. Acknowledge flag become useless
608
- // 5. Therefore, even the developer set "pause after 3 activities", if activities are coming in at a slow pace (not batched in a single render)
609
- // Web Chat will keep scrolling and not snapped/paused
610
-
611
- // Note: When Web Chat is loaded, there are no activities acknowledged. We need to assume all arriving activities are acknowledged until end-user sends their first activity.
612
- // Activities loaded initially could be from conversation history. Without assuming acknowledgement, Web Chat will not scroll initially (as everything is not acknowledged).
613
- // It would be better if the chat adapter should let Web Chat know if the activity is loaded from history or not.
614
-
615
- // TODO: [P2] #3670 Move the "conversation history acknowledgement" logic mentioned above to polyfill of chat adapters.
616
- // 1. Chat adapter should send "acknowledged" as part of "channelData"
617
- // 2. If "acknowledged" is "undefined", we set it to:
618
- // a. true, if there are no egress activities yet
619
- // b. Otherwise, false
620
-
621
503
  useMemo(
622
504
  () =>
623
505
  stickyChangedToTrue &&
@@ -628,71 +510,12 @@ const InternalTranscriptScrollable: FC<InternalTranscriptScrollableProps> = ({
628
510
  [markAllAsAcknowledged, stickyChangedToTrue]
629
511
  );
630
512
 
631
- const [flattenedActivityTreeWithRenderer] = useActivityTreeWithRenderer({ flat: true });
632
- const getKeyByActivity = useGetKeyByActivity();
633
-
634
- const renderingActivityKeys: string[] = useMemo<string[]>(
635
- () => flattenedActivityTreeWithRenderer.map(({ activity }) => getKeyByActivity(activity)),
636
- [flattenedActivityTreeWithRenderer, getKeyByActivity]
637
- );
638
-
639
- const renderingActivityKeysRef = useValueRef(renderingActivityKeys);
640
-
641
- // To prevent flashy button, we are not waiting for another render loop to update the `[readActivityKeys, unreadActivityKeys]` state.
642
- // Instead, we are building the next one in this `useMemo` call.
643
- const nextUnreadActivityKeys = useMemo(() => {
644
- // This code need to be careful reviewed as it will cause another render. The code should be converging.
645
- // After we call `markActivityKeyAsRead`, everything will be read and nothing will be unread.
646
- // That means, in next render, `unreadActivityKeys` will be emptied and the `markActivityKeyAsRead` will not get called again.
647
- if (sticky && unreadActivityKeys.length) {
648
- markActivityKeyAsRead(unreadActivityKeys[unreadActivityKeys.length - 1]);
649
-
650
- return [];
651
- }
652
-
653
- return unreadActivityKeys;
654
- }, [markActivityKeyAsRead, sticky, unreadActivityKeys]);
655
-
656
- const nextUnreadActivityKeysRef = useValueRef(nextUnreadActivityKeys);
657
-
658
- // If we are rendering anything that is unread, we should show the "New messages" button.
659
- // Not everything in the `unreadActivityKeys` are rendered, say, bot typing indicator.
660
- // We should not show the "New messages" button for bot typing indicator as it will confuse the user.
661
- const unread = useMemo(
662
- () => nextUnreadActivityKeys.some(key => renderingActivityKeys.includes(key)),
663
- [renderingActivityKeys, nextUnreadActivityKeys]
664
- );
665
-
666
- const handleScrollToEndButtonClick = useCallback(() => {
667
- scrollToEnd({ behavior: 'smooth' });
668
-
669
- const { current: renderingActivityKeys } = renderingActivityKeysRef;
670
-
671
- // After the "New message" button is clicked, focus on the first unread activity which will be rendered.
672
- const firstUnreadRenderingActivityKey = nextUnreadActivityKeysRef.current.find(key =>
673
- renderingActivityKeys.includes(key)
674
- );
675
-
676
- if (firstUnreadRenderingActivityKey) {
677
- focusByActivityKey(firstUnreadRenderingActivityKey);
678
- } else {
679
- // If no unread activity, send the focus to the terminator block.
680
- terminatorRef.current?.focus();
681
- }
682
- }, [focusByActivityKey, nextUnreadActivityKeysRef, renderingActivityKeysRef, scrollToEnd, terminatorRef]);
683
-
684
- const renderScrollToEndButton = useCreateScrollToEndButtonRenderer()({
685
- atEnd: animatingToEnd || atEnd || sticky,
686
- styleOptions,
687
- unread
688
- });
689
-
690
- const hasAnyChild = !!React.Children.count(children);
513
+ // We need to check if `children` is `false` or not.
514
+ // If `children` is `false`, React.Children.count(children) will still return 1 (truthy).
515
+ const hasAnyChild = !!children && !!React.Children.count(children);
691
516
 
692
517
  return (
693
518
  <React.Fragment>
694
- {renderScrollToEndButton && renderScrollToEndButton({ onClick: handleScrollToEndButtonClick })}
695
- {hasAnyChild && <FocusRedirector redirectRef={terminatorRef} />}
696
519
  <ReactScrollToBottomPanel className="webchat__basic-transcript__scrollable">
697
520
  <div aria-hidden={true} className="webchat__basic-transcript__filler" onFocus={onFocusFiller} />
698
521
  {hasAnyChild && (
@@ -710,12 +533,6 @@ const InternalTranscriptScrollable: FC<InternalTranscriptScrollableProps> = ({
710
533
  );
711
534
  };
712
535
 
713
- InternalTranscriptScrollable.propTypes = {
714
- children: PropTypes.any.isRequired,
715
- onFocusFiller: PropTypes.func.isRequired,
716
- terminatorRef: PropTypes.any.isRequired
717
- };
718
-
719
536
  type Scroller = ({ offsetHeight, scrollTop }: { offsetHeight: number; scrollTop: number }) => number;
720
537
 
721
538
  // "scroller" is the auto-scroll limiter, a.k.a. auto scroll snap.
@@ -834,32 +651,37 @@ const useScroller = (activityElementMapRef: MutableRefObject<ActivityElementMap>
834
651
  );
835
652
  };
836
653
 
837
- type BasicTranscriptProps = {
838
- className?: string;
839
- };
654
+ type BasicTranscriptProps = Readonly<{
655
+ className: string;
656
+ }>;
840
657
 
841
- const BasicTranscript: FC<BasicTranscriptProps> = ({ className }) => {
842
- const activityElementMapRef = useRef<ActivityElementMap>(new Map());
658
+ const BasicTranscript = ({ className = '' }: BasicTranscriptProps) => {
659
+ const [{ stylesRoot }] = useStyleOptions();
660
+ const [nonce] = useNonce();
661
+ const activityElementMapRef = useActivityElementMapRef();
843
662
  const containerRef = useRef<HTMLDivElement>();
663
+ const terminatorRef = useRef<HTMLDivElement>();
844
664
 
845
665
  const scroller = useScroller(activityElementMapRef);
666
+ const styleOptions = useMemo(() => ({ stylesRoot }), [stylesRoot]);
846
667
 
847
668
  return (
848
- <TranscriptFocusComposer containerRef={containerRef}>
849
- <ReactScrollToBottomComposer scroller={scroller}>
850
- <KeyboardHelp />
851
- <InternalTranscript activityElementMapRef={activityElementMapRef} className={className} ref={containerRef} />
852
- </ReactScrollToBottomComposer>
853
- </TranscriptFocusComposer>
669
+ <ChatHistoryBox className={className}>
670
+ <RenderingActivitiesComposer>
671
+ <TranscriptFocusComposer containerRef={containerRef}>
672
+ <ReactScrollToBottomComposer nonce={nonce} scroller={scroller} styleOptions={styleOptions}>
673
+ <ChatHistoryToolbar>
674
+ <ScrollToEndButton terminatorRef={terminatorRef} />
675
+ </ChatHistoryToolbar>
676
+ <GroupedRenderingActivitiesComposer>
677
+ <InternalTranscript ref={containerRef} terminatorRef={terminatorRef} />
678
+ </GroupedRenderingActivitiesComposer>
679
+ </ReactScrollToBottomComposer>
680
+ </TranscriptFocusComposer>
681
+ </RenderingActivitiesComposer>
682
+ </ChatHistoryBox>
854
683
  );
855
684
  };
856
685
 
857
- BasicTranscript.defaultProps = {
858
- className: ''
859
- };
860
-
861
- BasicTranscript.propTypes = {
862
- className: PropTypes.string
863
- };
864
-
865
- export default memo(BasicTranscript);
686
+ export default wrapWith(ChatHistoryDOMComposer)(memo(BasicTranscript));
687
+ export { type BasicTranscriptProps };
@@ -2,16 +2,17 @@
2
2
  /* eslint react/no-unsafe: off */
3
3
 
4
4
  import { SendBoxMiddlewareProxy, hooks } from 'botframework-webchat-api';
5
+ import { validateProps } from 'botframework-webchat-api/internal';
5
6
  import classNames from 'classnames';
6
- import PropTypes from 'prop-types';
7
- import React, { FC } from 'react';
7
+ import React, { memo } from 'react';
8
+ import { fallback, literal, object, optional, pipe, readonly, string, union, type InferInput } from 'valibot';
8
9
 
9
10
  import BasicConnectivityStatus from './BasicConnectivityStatus';
10
11
  import BasicToaster from './BasicToaster';
11
12
  import BasicTranscript from './BasicTranscript';
12
- import AccessKeySinkSurface from './Utils/AccessKeySink/Surface';
13
- import useStyleToEmotionObject from './hooks/internal/useStyleToEmotionObject';
13
+ import { useStyleToEmotionObject } from './hooks/internal/styleToEmotionObject';
14
14
  import useStyleSet from './hooks/useStyleSet';
15
+ import AccessKeySinkSurface from './Utils/AccessKeySink/Surface';
15
16
 
16
17
  const { useStyleOptions } = hooks;
17
18
 
@@ -33,18 +34,31 @@ const TOASTER_STYLE = {
33
34
  };
34
35
 
35
36
  const TRANSCRIPT_STYLE = {
36
- flex: 1
37
+ '.webchat__basic-transcript': {
38
+ flex: 1
39
+ }
37
40
  };
38
41
 
39
- // Subset of landmark roles: https://w3.org/TR/wai-aria/#landmark_roles
40
- const ARIA_LANDMARK_ROLES = ['complementary', 'contentinfo', 'form', 'main', 'region'];
42
+ const basicWebChatPropsSchema = pipe(
43
+ object({
44
+ className: optional(string()),
45
+ role: fallback(
46
+ optional(
47
+ // Subset of landmark roles: https://w3.org/TR/wai-aria/#landmark_roles
48
+ union([literal('complementary'), literal('contentinfo'), literal('form'), literal('main'), literal('region')])
49
+ ),
50
+ // Fallback to "complementary" if specified is not a valid landmark role.
51
+ 'complementary'
52
+ )
53
+ }),
54
+ readonly()
55
+ );
56
+
57
+ type BasicWebChatProps = InferInput<typeof basicWebChatPropsSchema>;
58
+
59
+ function BasicWebChat(props: BasicWebChatProps) {
60
+ const { className, role } = validateProps(basicWebChatPropsSchema, props, 'strict');
41
61
 
42
- type BasicWebChatProps = {
43
- className?: string;
44
- role?: 'complementary' | 'contentinfo' | 'form' | 'main' | 'region';
45
- };
46
-
47
- const BasicWebChat: FC<BasicWebChatProps> = ({ className, role }) => {
48
62
  const [{ root: rootStyleSet }] = useStyleSet();
49
63
  const [options] = useStyleOptions();
50
64
  const styleToEmotionObject = useStyleToEmotionObject();
@@ -55,33 +69,18 @@ const BasicWebChat: FC<BasicWebChatProps> = ({ className, role }) => {
55
69
  const toasterClassName = styleToEmotionObject(TOASTER_STYLE) + '';
56
70
  const transcriptClassName = styleToEmotionObject(TRANSCRIPT_STYLE) + '';
57
71
 
58
- // Fallback to "complementary" if specified is not a valid landmark role.
59
- if (!ARIA_LANDMARK_ROLES.includes(role)) {
60
- role = 'complementary';
61
- }
62
-
63
72
  return (
64
- <AccessKeySinkSurface className={classNames(rootClassName, rootStyleSet + '', (className || '') + '')} role={role}>
73
+ <AccessKeySinkSurface
74
+ className={classNames('webchat__surface', rootClassName, rootStyleSet + '', className)}
75
+ role={role}
76
+ >
65
77
  {!options.hideToaster && <BasicToaster className={toasterClassName} />}
66
78
  <BasicTranscript className={transcriptClassName} />
67
79
  <BasicConnectivityStatus className={connectivityStatusClassName} />
68
80
  <SendBoxMiddlewareProxy className={sendBoxClassName} request={undefined} />
69
81
  </AccessKeySinkSurface>
70
82
  );
71
- };
72
-
73
- BasicWebChat.defaultProps = {
74
- className: '',
75
- role: 'complementary'
76
- };
77
-
78
- BasicWebChat.propTypes = {
79
- className: PropTypes.string,
80
- // Ignoring deficiencies with TypeScript/PropTypes inference.
81
- // @ts-ignore
82
- role: PropTypes.oneOf(ARIA_LANDMARK_ROLES)
83
- };
84
-
85
- export default BasicWebChat;
83
+ }
86
84
 
87
- export type { BasicWebChatProps };
85
+ export default memo(BasicWebChat);
86
+ export { basicWebChatPropsSchema, type BasicWebChatProps };
@@ -0,0 +1,17 @@
1
+ import { LowPriorityDecoratorComposer } from 'botframework-webchat-api/internal';
2
+ import React, { memo, type ReactNode } from 'react';
3
+
4
+ import createDefaultActivityGroupingDecoratorMiddleware from './Middleware/ActivityGrouping/createDefaultActivityGroupingDecoratorMiddleware';
5
+
6
+ const middleware = Object.freeze([...createDefaultActivityGroupingDecoratorMiddleware()] as const);
7
+
8
+ type BuiltInDecoratorProps = Readonly<{
9
+ readonly children?: ReactNode | undefined;
10
+ }>;
11
+
12
+ function BuiltInDecorator({ children }: BuiltInDecoratorProps) {
13
+ return <LowPriorityDecoratorComposer middleware={middleware}>{children}</LowPriorityDecoratorComposer>;
14
+ }
15
+
16
+ export default memo(BuiltInDecorator);
17
+ export { type BuiltInDecoratorProps };
@@ -0,0 +1,28 @@
1
+ import { validateProps } from 'botframework-webchat-api/internal';
2
+ import classNames from 'classnames';
3
+ import React, { memo } from 'react';
4
+ import { object, optional, pipe, readonly, string, type InferInput } from 'valibot';
5
+
6
+ import { useStyleSet } from '../hooks';
7
+ import reactNode from '../types/internal/reactNode';
8
+
9
+ const chatHistoryBoxPropsSchema = pipe(
10
+ object({
11
+ children: optional(reactNode()),
12
+ className: optional(string())
13
+ }),
14
+ readonly()
15
+ );
16
+
17
+ type ChatHistoryBoxProps = InferInput<typeof chatHistoryBoxPropsSchema>;
18
+
19
+ function ChatHistoryBox(props: ChatHistoryBoxProps) {
20
+ const { children, className } = validateProps(chatHistoryBoxPropsSchema, props);
21
+
22
+ const [{ chatHistoryBox }] = useStyleSet();
23
+
24
+ return <div className={classNames('webchat__chat-history-box', className, chatHistoryBox)}>{children}</div>;
25
+ }
26
+
27
+ export default memo(ChatHistoryBox);
28
+ export { chatHistoryBoxPropsSchema, type ChatHistoryBoxProps };