botframework-webchat-api 4.18.1-main.20260416.88357ae → 4.18.1

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 (910) hide show
  1. package/decorator.js +1 -1
  2. package/dist/botframework-webchat-api.d.mts +1246 -166
  3. package/dist/botframework-webchat-api.decorator.d.mts +26 -70
  4. package/dist/botframework-webchat-api.decorator.mjs +2 -1
  5. package/dist/botframework-webchat-api.decorator.mjs.LEGAL.txt +0 -0
  6. package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
  7. package/dist/botframework-webchat-api.internal.d.mts +1 -57
  8. package/dist/botframework-webchat-api.internal.mjs +2 -1
  9. package/dist/botframework-webchat-api.internal.mjs.LEGAL.txt +0 -0
  10. package/dist/botframework-webchat-api.internal.mjs.map +1 -1
  11. package/dist/botframework-webchat-api.mjs +139 -1
  12. package/dist/botframework-webchat-api.mjs.LEGAL.txt +27 -2
  13. package/dist/botframework-webchat-api.mjs.map +1 -1
  14. package/dist/chunk-2S76JUVM.mjs +3 -0
  15. package/dist/chunk-2S76JUVM.mjs.LEGAL.txt +0 -0
  16. package/dist/chunk-2S76JUVM.mjs.map +1 -0
  17. package/dist/{chunk-VAX7AB37.mjs → chunk-J6D5YEY6.mjs} +2 -1
  18. package/dist/chunk-J6D5YEY6.mjs.LEGAL.txt +0 -0
  19. package/dist/chunk-ZAMHKQQC.mjs +3 -0
  20. package/dist/chunk-ZAMHKQQC.mjs.LEGAL.txt +0 -0
  21. package/dist/chunk-ZAMHKQQC.mjs.map +1 -0
  22. package/dist/metafile-esm.json +1 -1
  23. package/internal.js +1 -1
  24. package/{dist/StyleOptions-Bee70Zop.d.mts → lib/StyleOptions.d.ts} +9 -161
  25. package/lib/StyleOptions.d.ts.map +1 -0
  26. package/lib/StyleOptions.js +2 -0
  27. package/lib/decorator/index.d.ts +5 -0
  28. package/lib/decorator/index.d.ts.map +1 -0
  29. package/lib/decorator/index.js +28 -0
  30. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +27 -0
  31. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +1 -0
  32. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +19 -0
  33. package/lib/decorator/private/ActivityDecorator.d.ts +9 -0
  34. package/lib/decorator/private/ActivityDecorator.d.ts.map +1 -0
  35. package/lib/decorator/private/ActivityDecorator.js +36 -0
  36. package/lib/decorator/private/DecoratorComposer.d.ts +3 -0
  37. package/lib/decorator/private/DecoratorComposer.d.ts.map +1 -0
  38. package/lib/decorator/private/DecoratorComposer.js +13 -0
  39. package/lib/decorator/private/activityDecoratorRequest.d.ts +6 -0
  40. package/lib/decorator/private/activityDecoratorRequest.d.ts.map +1 -0
  41. package/lib/decorator/private/activityDecoratorRequest.js +2 -0
  42. package/lib/decorator/private/createDecoratorComposer.d.ts +11 -0
  43. package/lib/decorator/private/createDecoratorComposer.d.ts.map +1 -0
  44. package/lib/decorator/private/createDecoratorComposer.js +27 -0
  45. package/lib/decorator/private/templateMiddleware.d.ts +30 -0
  46. package/lib/decorator/private/templateMiddleware.d.ts.map +1 -0
  47. package/lib/decorator/private/templateMiddleware.js +53 -0
  48. package/lib/decorator/private/templateMiddleware.test.d.ts +3 -0
  49. package/lib/decorator/private/templateMiddleware.test.d.ts.map +1 -0
  50. package/lib/defaultStyleOptions.d.ts +4 -0
  51. package/lib/defaultStyleOptions.d.ts.map +1 -0
  52. package/lib/defaultStyleOptions.js +277 -0
  53. package/lib/external/PrecompiledGlobalize.js +6361 -0
  54. package/lib/hooks/Composer.d.ts +88 -0
  55. package/lib/hooks/Composer.d.ts.map +1 -0
  56. package/lib/hooks/Composer.js +605 -0
  57. package/lib/hooks/index.d.ts +73 -0
  58. package/lib/hooks/index.d.ts.map +1 -0
  59. package/lib/hooks/index.js +504 -0
  60. package/lib/hooks/internal/ErrorBox.js +47 -0
  61. package/lib/hooks/internal/SendBoxMiddleware.d.ts +37 -0
  62. package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +1 -0
  63. package/lib/hooks/internal/SendBoxMiddleware.js +17 -0
  64. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +37 -0
  65. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +1 -0
  66. package/lib/hooks/internal/SendBoxToolbarMiddleware.js +17 -0
  67. package/lib/hooks/internal/Tracker.d.ts +4 -0
  68. package/lib/hooks/internal/Tracker.d.ts.map +1 -0
  69. package/lib/hooks/internal/Tracker.js +15 -0
  70. package/lib/hooks/internal/WebChatAPIContext.d.ts +80 -0
  71. package/lib/hooks/internal/WebChatAPIContext.d.ts.map +1 -0
  72. package/lib/hooks/internal/WebChatAPIContext.js +12 -0
  73. package/lib/hooks/internal/WebChatReduxContext.js +17 -0
  74. package/lib/hooks/internal/defaultSelectVoice.js +28 -0
  75. package/lib/hooks/internal/private/templateMiddleware.d.ts +3 -0
  76. package/lib/hooks/internal/private/templateMiddleware.d.ts.map +1 -0
  77. package/lib/hooks/internal/private/templateMiddleware.js +12 -0
  78. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +4 -0
  79. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +1 -0
  80. package/lib/hooks/internal/useCreateActivityRendererInternal.js +37 -0
  81. package/lib/hooks/internal/useDebugDeps.js +39 -0
  82. package/lib/hooks/internal/useDirFromProps.js +12 -0
  83. package/lib/hooks/internal/useErrorBoxClass.js +14 -0
  84. package/lib/hooks/internal/useForceRender.js +24 -0
  85. package/lib/hooks/internal/useLocalizedGlobalize.js +12 -0
  86. package/lib/hooks/internal/useLocalizedStrings.js +14 -0
  87. package/lib/hooks/internal/useMarkActivity.js +12 -0
  88. package/lib/hooks/internal/usePrevious.d.ts +3 -0
  89. package/lib/hooks/internal/usePrevious.d.ts.map +1 -0
  90. package/lib/hooks/internal/usePrevious.js +15 -0
  91. package/lib/hooks/internal/useReadTelemetryDimensions.js +20 -0
  92. package/lib/hooks/internal/useSetDictateState.d.ts +2 -0
  93. package/lib/hooks/internal/useSetDictateState.d.ts.map +1 -0
  94. package/lib/hooks/internal/useSetDictateState.js +12 -0
  95. package/lib/hooks/internal/useTimer.d.ts +5 -0
  96. package/lib/hooks/internal/useTimer.d.ts.map +1 -0
  97. package/lib/hooks/internal/useTimer.js +43 -0
  98. package/lib/hooks/internal/useTracker.js +42 -0
  99. package/lib/hooks/internal/useValueRef.d.ts +3 -0
  100. package/lib/hooks/internal/useValueRef.d.ts.map +1 -0
  101. package/lib/hooks/internal/useValueRef.js +22 -0
  102. package/lib/hooks/internal/useWebChatAPIContext.d.ts +83 -0
  103. package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +1 -0
  104. package/lib/hooks/internal/useWebChatAPIContext.js +17 -0
  105. package/lib/hooks/middleware/UserlandBoundary.js +48 -0
  106. package/lib/hooks/middleware/applyMiddleware.js +122 -0
  107. package/lib/hooks/middleware/concatMiddleware.d.ts +6 -0
  108. package/lib/hooks/middleware/concatMiddleware.d.ts.map +1 -0
  109. package/lib/hooks/middleware/concatMiddleware.js +33 -0
  110. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +3 -0
  111. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +1 -0
  112. package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +43 -0
  113. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +7 -0
  114. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +1 -0
  115. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +68 -0
  116. package/lib/hooks/private/numberWithInfinity.d.ts +3 -0
  117. package/lib/hooks/private/numberWithInfinity.d.ts.map +1 -0
  118. package/lib/hooks/private/numberWithInfinity.js +17 -0
  119. package/lib/hooks/private/numberWithInfinity.spec.d.ts +2 -0
  120. package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +1 -0
  121. package/lib/hooks/private/reduceIterable.d.ts +2 -0
  122. package/lib/hooks/private/reduceIterable.d.ts.map +1 -0
  123. package/lib/hooks/private/reduceIterable.js +26 -0
  124. package/lib/hooks/private/reduceIterable.spec.d.ts +2 -0
  125. package/lib/hooks/private/reduceIterable.spec.d.ts.map +1 -0
  126. package/lib/hooks/useActiveTyping.d.ts +4 -0
  127. package/lib/hooks/useActiveTyping.d.ts.map +1 -0
  128. package/lib/hooks/useActiveTyping.js +81 -0
  129. package/lib/hooks/useActivities.d.ts +3 -0
  130. package/lib/hooks/useActivities.d.ts.map +1 -0
  131. package/lib/hooks/useActivities.js +14 -0
  132. package/lib/hooks/useActivityKeys.d.ts +3 -0
  133. package/lib/hooks/useActivityKeys.d.ts.map +1 -0
  134. package/lib/hooks/useActivityKeys.js +11 -0
  135. package/lib/hooks/useActivityKeysByRead.d.ts +3 -0
  136. package/lib/hooks/useActivityKeysByRead.d.ts.map +1 -0
  137. package/lib/hooks/useActivityKeysByRead.js +11 -0
  138. package/lib/hooks/useAvatarForBot.d.ts +5 -0
  139. package/lib/hooks/useAvatarForBot.d.ts.map +1 -0
  140. package/lib/hooks/useAvatarForBot.js +26 -0
  141. package/lib/hooks/useAvatarForUser.d.ts +5 -0
  142. package/lib/hooks/useAvatarForUser.d.ts.map +1 -0
  143. package/lib/hooks/useAvatarForUser.js +26 -0
  144. package/lib/hooks/useByteFormatter.d.ts +2 -0
  145. package/lib/hooks/useByteFormatter.d.ts.map +1 -0
  146. package/lib/hooks/useByteFormatter.js +43 -0
  147. package/lib/hooks/useConnectivityStatus.d.ts +2 -0
  148. package/lib/hooks/useConnectivityStatus.d.ts.map +1 -0
  149. package/lib/hooks/useConnectivityStatus.js +14 -0
  150. package/lib/hooks/useCreateActivityRenderer.d.ts +3 -0
  151. package/lib/hooks/useCreateActivityRenderer.d.ts.map +1 -0
  152. package/lib/hooks/useCreateActivityRenderer.js +14 -0
  153. package/lib/hooks/useCreateActivityStatusRenderer.d.ts +10 -0
  154. package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +1 -0
  155. package/lib/hooks/useCreateActivityStatusRenderer.js +72 -0
  156. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +3 -0
  157. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +1 -0
  158. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +12 -0
  159. package/lib/hooks/useCreateAvatarRenderer.d.ts +6 -0
  160. package/lib/hooks/useCreateAvatarRenderer.d.ts.map +1 -0
  161. package/lib/hooks/useCreateAvatarRenderer.js +44 -0
  162. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +3 -0
  163. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +1 -0
  164. package/lib/hooks/useCreateScrollToEndButtonRenderer.js +12 -0
  165. package/lib/hooks/useDateFormatter.d.ts +2 -0
  166. package/lib/hooks/useDateFormatter.d.ts.map +1 -0
  167. package/lib/hooks/useDateFormatter.js +35 -0
  168. package/lib/hooks/useDebouncedNotifications.d.ts +13 -0
  169. package/lib/hooks/useDebouncedNotifications.d.ts.map +1 -0
  170. package/lib/hooks/useDebouncedNotifications.js +118 -0
  171. package/lib/hooks/useDictateInterims.d.ts +2 -0
  172. package/lib/hooks/useDictateInterims.d.ts.map +1 -0
  173. package/lib/hooks/useDictateInterims.js +16 -0
  174. package/lib/hooks/useDictateState.d.ts +2 -0
  175. package/lib/hooks/useDictateState.d.ts.map +1 -0
  176. package/lib/hooks/useDictateState.js +15 -0
  177. package/lib/hooks/useDirection.d.ts +2 -0
  178. package/lib/hooks/useDirection.d.ts.map +1 -0
  179. package/lib/hooks/useDirection.js +38 -0
  180. package/lib/hooks/useDisabled.d.ts +2 -0
  181. package/lib/hooks/useDisabled.d.ts.map +1 -0
  182. package/lib/hooks/useDisabled.js +12 -0
  183. package/lib/hooks/useDismissNotification.d.ts +2 -0
  184. package/lib/hooks/useDismissNotification.d.ts.map +1 -0
  185. package/lib/hooks/useDismissNotification.js +12 -0
  186. package/lib/hooks/useEmitTypingIndicator.d.ts +2 -0
  187. package/lib/hooks/useEmitTypingIndicator.d.ts.map +1 -0
  188. package/lib/hooks/useEmitTypingIndicator.js +12 -0
  189. package/lib/hooks/useGetActivitiesByKey.d.ts +3 -0
  190. package/lib/hooks/useGetActivitiesByKey.d.ts.map +1 -0
  191. package/lib/hooks/useGetActivitiesByKey.js +11 -0
  192. package/lib/hooks/useGetActivityByKey.d.ts +3 -0
  193. package/lib/hooks/useGetActivityByKey.d.ts.map +1 -0
  194. package/lib/hooks/useGetActivityByKey.js +11 -0
  195. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +3 -0
  196. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +1 -0
  197. package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +11 -0
  198. package/lib/hooks/useGetKeyByActivity.d.ts +3 -0
  199. package/lib/hooks/useGetKeyByActivity.d.ts.map +1 -0
  200. package/lib/hooks/useGetKeyByActivity.js +11 -0
  201. package/lib/hooks/useGetKeyByActivityId.d.ts +3 -0
  202. package/lib/hooks/useGetKeyByActivityId.d.ts.map +1 -0
  203. package/lib/hooks/useGetKeyByActivityId.js +11 -0
  204. package/lib/hooks/useGetSendTimeoutForActivity.d.ts +5 -0
  205. package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +1 -0
  206. package/lib/hooks/useGetSendTimeoutForActivity.js +33 -0
  207. package/lib/hooks/useGrammars.d.ts +2 -0
  208. package/lib/hooks/useGrammars.d.ts.map +1 -0
  209. package/lib/hooks/useGrammars.js +12 -0
  210. package/lib/hooks/useGroupActivities.d.ts +8 -0
  211. package/lib/hooks/useGroupActivities.d.ts.map +1 -0
  212. package/lib/hooks/useGroupActivities.js +12 -0
  213. package/lib/hooks/useGroupTimestamp.d.ts +2 -0
  214. package/lib/hooks/useGroupTimestamp.d.ts.map +1 -0
  215. package/lib/hooks/useGroupTimestamp.js +21 -0
  216. package/lib/hooks/useLanguage.d.ts +2 -0
  217. package/lib/hooks/useLanguage.d.ts.map +1 -0
  218. package/lib/hooks/useLanguage.js +19 -0
  219. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +3 -0
  220. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +1 -0
  221. package/lib/hooks/useLastAcknowledgedActivityKey.js +11 -0
  222. package/lib/hooks/useLastReadActivityKey.d.ts +3 -0
  223. package/lib/hooks/useLastReadActivityKey.d.ts.map +1 -0
  224. package/lib/hooks/useLastReadActivityKey.js +11 -0
  225. package/lib/hooks/useLocalizer.d.ts +13 -0
  226. package/lib/hooks/useLocalizer.d.ts.map +1 -0
  227. package/lib/hooks/useLocalizer.js +75 -0
  228. package/lib/hooks/useMarkActivityAsSpoken.d.ts +3 -0
  229. package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +1 -0
  230. package/lib/hooks/useMarkActivityAsSpoken.js +16 -0
  231. package/lib/hooks/useMarkActivityKeyAsRead.d.ts +3 -0
  232. package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +1 -0
  233. package/lib/hooks/useMarkActivityKeyAsRead.js +11 -0
  234. package/lib/hooks/useMarkAllAsAcknowledged.d.ts +3 -0
  235. package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +1 -0
  236. package/lib/hooks/useMarkAllAsAcknowledged.js +11 -0
  237. package/lib/hooks/useNotifications.d.ts +3 -0
  238. package/lib/hooks/useNotifications.d.ts.map +1 -0
  239. package/lib/hooks/useNotifications.js +14 -0
  240. package/lib/hooks/usePerformCardAction.d.ts +3 -0
  241. package/lib/hooks/usePerformCardAction.d.ts.map +1 -0
  242. package/lib/hooks/usePerformCardAction.js +12 -0
  243. package/lib/hooks/usePonyfill.d.ts +3 -0
  244. package/lib/hooks/usePonyfill.d.ts.map +1 -0
  245. package/lib/hooks/usePonyfill.js +11 -0
  246. package/lib/hooks/usePostActivity.d.ts +3 -0
  247. package/lib/hooks/usePostActivity.d.ts.map +1 -0
  248. package/lib/hooks/usePostActivity.js +12 -0
  249. package/lib/hooks/useReferenceGrammarID.d.ts +2 -0
  250. package/lib/hooks/useReferenceGrammarID.d.ts.map +1 -0
  251. package/lib/hooks/useReferenceGrammarID.js +14 -0
  252. package/lib/hooks/useRelativeTimeFormatter.d.ts +2 -0
  253. package/lib/hooks/useRelativeTimeFormatter.d.ts.map +1 -0
  254. package/lib/hooks/useRelativeTimeFormatter.js +61 -0
  255. package/lib/hooks/useRenderAttachment.d.ts +3 -0
  256. package/lib/hooks/useRenderAttachment.d.ts.map +1 -0
  257. package/lib/hooks/useRenderAttachment.js +14 -0
  258. package/lib/hooks/useRenderToast.d.ts +3 -0
  259. package/lib/hooks/useRenderToast.d.ts.map +1 -0
  260. package/lib/hooks/useRenderToast.js +12 -0
  261. package/lib/hooks/useRenderTypingIndicator.d.ts +3 -0
  262. package/lib/hooks/useRenderTypingIndicator.d.ts.map +1 -0
  263. package/lib/hooks/useRenderTypingIndicator.js +12 -0
  264. package/lib/hooks/useSendBoxAttachments.d.ts +6 -0
  265. package/lib/hooks/useSendBoxAttachments.d.ts.map +1 -0
  266. package/lib/hooks/useSendBoxAttachments.js +23 -0
  267. package/lib/hooks/useSendBoxValue.d.ts +2 -0
  268. package/lib/hooks/useSendBoxValue.d.ts.map +1 -0
  269. package/lib/hooks/useSendBoxValue.js +16 -0
  270. package/lib/hooks/useSendEvent.d.ts +2 -0
  271. package/lib/hooks/useSendEvent.d.ts.map +1 -0
  272. package/lib/hooks/useSendEvent.js +12 -0
  273. package/lib/hooks/useSendFiles.d.ts +10 -0
  274. package/lib/hooks/useSendFiles.d.ts.map +1 -0
  275. package/lib/hooks/useSendFiles.js +35 -0
  276. package/lib/hooks/useSendMessage.d.ts +6 -0
  277. package/lib/hooks/useSendMessage.d.ts.map +1 -0
  278. package/lib/hooks/useSendMessage.js +33 -0
  279. package/lib/hooks/useSendMessageBack.d.ts +2 -0
  280. package/lib/hooks/useSendMessageBack.d.ts.map +1 -0
  281. package/lib/hooks/useSendMessageBack.js +12 -0
  282. package/lib/hooks/useSendPostBack.d.ts +2 -0
  283. package/lib/hooks/useSendPostBack.d.ts.map +1 -0
  284. package/lib/hooks/useSendPostBack.js +12 -0
  285. package/lib/hooks/useSendStatusByActivityKey.d.ts +22 -0
  286. package/lib/hooks/useSendStatusByActivityKey.d.ts.map +1 -0
  287. package/lib/hooks/useSendStatusByActivityKey.js +31 -0
  288. package/lib/hooks/useSendTimeoutForActivity.d.ts +4 -0
  289. package/lib/hooks/useSendTimeoutForActivity.d.ts.map +1 -0
  290. package/lib/hooks/useSendTimeoutForActivity.js +22 -0
  291. package/lib/hooks/useSendTypingIndicator.d.ts +2 -0
  292. package/lib/hooks/useSendTypingIndicator.d.ts.map +1 -0
  293. package/lib/hooks/useSendTypingIndicator.js +14 -0
  294. package/lib/hooks/useSetNotification.d.ts +3 -0
  295. package/lib/hooks/useSetNotification.d.ts.map +1 -0
  296. package/lib/hooks/useSetNotification.js +12 -0
  297. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +2 -0
  298. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +1 -0
  299. package/lib/hooks/useShouldSpeakIncomingActivity.js +22 -0
  300. package/lib/hooks/useStartDictate.d.ts +2 -0
  301. package/lib/hooks/useStartDictate.d.ts.map +1 -0
  302. package/lib/hooks/useStartDictate.js +12 -0
  303. package/lib/hooks/useStopDictate.d.ts +2 -0
  304. package/lib/hooks/useStopDictate.d.ts.map +1 -0
  305. package/lib/hooks/useStopDictate.js +12 -0
  306. package/lib/hooks/useStyleOptions.d.ts +3 -0
  307. package/lib/hooks/useStyleOptions.d.ts.map +1 -0
  308. package/lib/hooks/useStyleOptions.js +12 -0
  309. package/lib/hooks/useSubmitSendBox.d.ts +4 -0
  310. package/lib/hooks/useSubmitSendBox.d.ts.map +1 -0
  311. package/lib/hooks/useSubmitSendBox.js +49 -0
  312. package/lib/hooks/useSuggestedActions.d.ts +3 -0
  313. package/lib/hooks/useSuggestedActions.d.ts.map +1 -0
  314. package/lib/hooks/useSuggestedActions.js +25 -0
  315. package/lib/hooks/useTimeoutForSend.d.ts +3 -0
  316. package/lib/hooks/useTimeoutForSend.d.ts.map +1 -0
  317. package/lib/hooks/useTimeoutForSend.js +21 -0
  318. package/lib/hooks/useTrackDimension.d.ts +2 -0
  319. package/lib/hooks/useTrackDimension.d.ts.map +1 -0
  320. package/lib/hooks/useTrackDimension.js +14 -0
  321. package/lib/hooks/useTrackEvent.d.ts +10 -0
  322. package/lib/hooks/useTrackEvent.d.ts.map +1 -0
  323. package/lib/hooks/useTrackEvent.js +51 -0
  324. package/lib/hooks/useTrackException.d.ts +2 -0
  325. package/lib/hooks/useTrackException.d.ts.map +1 -0
  326. package/lib/hooks/useTrackException.js +31 -0
  327. package/lib/hooks/useTrackTiming.d.ts +2 -0
  328. package/lib/hooks/useTrackTiming.d.ts.map +1 -0
  329. package/lib/hooks/useTrackTiming.js +93 -0
  330. package/lib/hooks/useUserID.d.ts +2 -0
  331. package/lib/hooks/useUserID.d.ts.map +1 -0
  332. package/lib/hooks/useUserID.js +12 -0
  333. package/lib/hooks/useUsername.d.ts +2 -0
  334. package/lib/hooks/useUsername.d.ts.map +1 -0
  335. package/lib/hooks/useUsername.js +12 -0
  336. package/lib/hooks/useVoiceSelector.d.ts +2 -0
  337. package/lib/hooks/useVoiceSelector.d.ts.map +1 -0
  338. package/lib/hooks/useVoiceSelector.js +16 -0
  339. package/lib/hooks/utils/ErrorBoundary.js +68 -0
  340. package/lib/hooks/utils/observableToPromise.d.ts +3 -0
  341. package/lib/hooks/utils/observableToPromise.d.ts.map +1 -0
  342. package/lib/hooks/utils/observableToPromise.js +28 -0
  343. package/lib/index.d.ts +37 -0
  344. package/lib/index.d.ts.map +1 -0
  345. package/lib/index.js +88 -0
  346. package/lib/internal.d.ts +3 -0
  347. package/lib/internal.d.ts.map +1 -0
  348. package/lib/internal.js +14 -0
  349. package/lib/localization/Localize.d.ts +4 -0
  350. package/lib/localization/Localize.d.ts.map +1 -0
  351. package/lib/localization/Localize.js +50 -0
  352. package/lib/localization/ar-EG.json +42 -0
  353. package/lib/localization/ar-JO.json +45 -0
  354. package/lib/localization/ar-SA.json +112 -0
  355. package/lib/localization/bg-BG.json +112 -0
  356. package/lib/localization/ca-ES.json +112 -0
  357. package/lib/localization/cs-CZ.json +112 -0
  358. package/lib/localization/da-DK.json +112 -0
  359. package/lib/localization/de-DE.json +112 -0
  360. package/lib/localization/el-GR.json +112 -0
  361. package/lib/localization/en-US.json +183 -0
  362. package/lib/localization/es-ES.json +112 -0
  363. package/lib/localization/et-EE.json +112 -0
  364. package/lib/localization/eu-ES.json +112 -0
  365. package/lib/localization/fi-FI.json +112 -0
  366. package/lib/localization/fr-FR.json +112 -0
  367. package/lib/localization/getAllLocalizedStrings.d.ts +6 -0
  368. package/lib/localization/getAllLocalizedStrings.d.ts.map +1 -0
  369. package/lib/localization/getAllLocalizedStrings.js +117 -0
  370. package/lib/localization/getRTLList.d.ts +2 -0
  371. package/lib/localization/getRTLList.d.ts.map +1 -0
  372. package/lib/localization/getRTLList.js +46 -0
  373. package/lib/localization/gl-ES.json +112 -0
  374. package/lib/localization/he-IL.json +112 -0
  375. package/lib/localization/hi-IN.json +112 -0
  376. package/lib/localization/hr-HR.json +112 -0
  377. package/lib/localization/hu-HU.json +112 -0
  378. package/lib/localization/id-ID.json +112 -0
  379. package/lib/localization/it-IT.json +112 -0
  380. package/lib/localization/ja-JP.json +112 -0
  381. package/lib/localization/kk-KZ.json +112 -0
  382. package/lib/localization/ko-KR.json +112 -0
  383. package/lib/localization/lt-LT.json +112 -0
  384. package/lib/localization/lv-LV.json +112 -0
  385. package/lib/localization/mergeLocalizedStrings.d.ts +7 -0
  386. package/lib/localization/mergeLocalizedStrings.d.ts.map +1 -0
  387. package/lib/localization/mergeLocalizedStrings.js +49 -0
  388. package/lib/localization/ms-MY.json +112 -0
  389. package/lib/localization/nb-NO.json +112 -0
  390. package/lib/localization/nl-NL.json +112 -0
  391. package/lib/localization/overrides.json +257 -0
  392. package/lib/localization/pl-PL.json +112 -0
  393. package/lib/localization/pt-BR.json +112 -0
  394. package/lib/localization/pt-PT.json +112 -0
  395. package/lib/localization/ro-RO.json +112 -0
  396. package/lib/localization/ru-RU.json +112 -0
  397. package/lib/localization/sk-SK.json +112 -0
  398. package/lib/localization/sl-SI.json +112 -0
  399. package/lib/localization/sl-SL.json +3 -0
  400. package/lib/localization/sr-Cyrl-CS.json +112 -0
  401. package/lib/localization/sr-Cyrl.json +3 -0
  402. package/lib/localization/sr-Latn-CS.json +112 -0
  403. package/lib/localization/sr-Latn.json +3 -0
  404. package/lib/localization/sv-SE.json +112 -0
  405. package/lib/localization/th-TH.json +112 -0
  406. package/lib/localization/tr-TR.json +112 -0
  407. package/lib/localization/uk-UA.json +112 -0
  408. package/lib/localization/vi-VN.json +112 -0
  409. package/lib/localization/yue.json +115 -0
  410. package/lib/localization/zh-CN.json +112 -0
  411. package/lib/localization/zh-HK.json +112 -0
  412. package/lib/localization/zh-TW.json +112 -0
  413. package/lib/normalizeStyleOptions.d.ts +3 -0
  414. package/lib/normalizeStyleOptions.d.ts.map +1 -0
  415. package/lib/normalizeStyleOptions.js +147 -0
  416. package/lib/patchStyleOptionsFromDeprecatedProps.js +21 -0
  417. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +6 -0
  418. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +1 -0
  419. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +153 -0
  420. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +13 -0
  421. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +1 -0
  422. package/lib/providers/ActivityAcknowledgement/private/Context.js +14 -0
  423. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +3 -0
  424. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +1 -0
  425. package/lib/providers/ActivityAcknowledgement/private/useContext.js +18 -0
  426. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +5 -0
  427. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +1 -0
  428. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +15 -0
  429. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +2 -0
  430. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +1 -0
  431. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +12 -0
  432. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +2 -0
  433. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +1 -0
  434. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +12 -0
  435. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +2 -0
  436. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +1 -0
  437. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +12 -0
  438. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +2 -0
  439. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +1 -0
  440. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +12 -0
  441. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +2 -0
  442. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +1 -0
  443. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +12 -0
  444. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +20 -0
  445. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +1 -0
  446. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +149 -0
  447. package/lib/providers/ActivityKeyer/private/Context.d.ts +13 -0
  448. package/lib/providers/ActivityKeyer/private/Context.d.ts.map +1 -0
  449. package/lib/providers/ActivityKeyer/private/Context.js +10 -0
  450. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +3 -0
  451. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +1 -0
  452. package/lib/providers/ActivityKeyer/private/getActivityId.js +10 -0
  453. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +3 -0
  454. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +1 -0
  455. package/lib/providers/ActivityKeyer/private/getClientActivityId.js +11 -0
  456. package/lib/providers/ActivityKeyer/private/lastOf.d.ts +2 -0
  457. package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +1 -0
  458. package/lib/providers/ActivityKeyer/private/lastOf.js +10 -0
  459. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +2 -0
  460. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +1 -0
  461. package/lib/providers/ActivityKeyer/private/someIterable.d.ts +2 -0
  462. package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +1 -0
  463. package/lib/providers/ActivityKeyer/private/someIterable.js +27 -0
  464. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +2 -0
  465. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +1 -0
  466. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +2 -0
  467. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +1 -0
  468. package/lib/providers/ActivityKeyer/private/uniqueId.js +15 -0
  469. package/lib/providers/ActivityKeyer/private/useContext.d.ts +3 -0
  470. package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +1 -0
  471. package/lib/providers/ActivityKeyer/private/useContext.js +18 -0
  472. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +2 -0
  473. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +1 -0
  474. package/lib/providers/ActivityKeyer/useActivityKeys.js +12 -0
  475. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +3 -0
  476. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +1 -0
  477. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +12 -0
  478. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +3 -0
  479. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +1 -0
  480. package/lib/providers/ActivityKeyer/useGetActivityByKey.js +12 -0
  481. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +3 -0
  482. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +1 -0
  483. package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +12 -0
  484. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +2 -0
  485. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +1 -0
  486. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +12 -0
  487. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +7 -0
  488. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +1 -0
  489. package/lib/providers/ActivityListener/ActivityListenerComposer.js +55 -0
  490. package/lib/providers/ActivityListener/private/Context.d.ts +8 -0
  491. package/lib/providers/ActivityListener/private/Context.d.ts.map +1 -0
  492. package/lib/providers/ActivityListener/private/Context.js +15 -0
  493. package/lib/providers/ActivityListener/private/useContext.d.ts +2 -0
  494. package/lib/providers/ActivityListener/private/useContext.d.ts.map +1 -0
  495. package/lib/providers/ActivityListener/private/useContext.js +13 -0
  496. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +3 -0
  497. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +1 -0
  498. package/lib/providers/ActivityListener/useUpsertedActivities.js +12 -0
  499. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +4 -0
  500. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +1 -0
  501. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +149 -0
  502. package/lib/providers/ActivitySendStatus/private/Context.d.ts +9 -0
  503. package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +1 -0
  504. package/lib/providers/ActivitySendStatus/private/Context.js +13 -0
  505. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +7 -0
  506. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +1 -0
  507. package/lib/providers/ActivitySendStatus/private/isMapEqual.js +55 -0
  508. package/lib/providers/ActivitySendStatus/private/useContext.d.ts +3 -0
  509. package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +1 -0
  510. package/lib/providers/ActivitySendStatus/private/useContext.js +18 -0
  511. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +22 -0
  512. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +1 -0
  513. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +31 -0
  514. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +3 -0
  515. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +1 -0
  516. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +71 -0
  517. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +9 -0
  518. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +1 -0
  519. package/lib/providers/ActivityTyping/ActivityTypingComposer.js +98 -0
  520. package/lib/providers/ActivityTyping/private/Context.d.ts +8 -0
  521. package/lib/providers/ActivityTyping/private/Context.d.ts.map +1 -0
  522. package/lib/providers/ActivityTyping/private/Context.js +15 -0
  523. package/lib/providers/ActivityTyping/private/useContext.d.ts +3 -0
  524. package/lib/providers/ActivityTyping/private/useContext.d.ts.map +1 -0
  525. package/lib/providers/ActivityTyping/private/useContext.js +13 -0
  526. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +3 -0
  527. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +1 -0
  528. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +22 -0
  529. package/lib/providers/ActivityTyping/types/AllTyping.d.ts +9 -0
  530. package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +1 -0
  531. package/lib/providers/ActivityTyping/types/AllTyping.js +2 -0
  532. package/lib/providers/ActivityTyping/useAllTyping.d.ts +3 -0
  533. package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +1 -0
  534. package/lib/providers/ActivityTyping/useAllTyping.js +12 -0
  535. package/lib/providers/Ponyfill/PonyfillComposer.d.ts +17 -0
  536. package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +1 -0
  537. package/lib/providers/Ponyfill/PonyfillComposer.js +87 -0
  538. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +8 -0
  539. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +1 -0
  540. package/lib/providers/Ponyfill/private/PonyfillContext.js +10 -0
  541. package/lib/providers/Ponyfill/private/useContext.d.ts +6 -0
  542. package/lib/providers/Ponyfill/private/useContext.d.ts.map +1 -0
  543. package/lib/providers/Ponyfill/private/useContext.js +17 -0
  544. package/lib/providers/Ponyfill/usePonyfill.d.ts +3 -0
  545. package/lib/providers/Ponyfill/usePonyfill.d.ts.map +1 -0
  546. package/lib/providers/Ponyfill/usePonyfill.js +12 -0
  547. package/lib/tsconfig.json +18 -0
  548. package/lib/types/ActivityMiddleware.d.ts +24 -0
  549. package/lib/types/ActivityMiddleware.d.ts.map +1 -0
  550. package/lib/types/ActivityMiddleware.js +2 -0
  551. package/lib/types/ActivityStatusMiddleware.d.ts +17 -0
  552. package/lib/types/ActivityStatusMiddleware.d.ts.map +1 -0
  553. package/lib/types/ActivityStatusMiddleware.js +2 -0
  554. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +14 -0
  555. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +1 -0
  556. package/lib/types/AttachmentForScreenReaderMiddleware.js +2 -0
  557. package/lib/types/AttachmentMiddleware.d.ts +12 -0
  558. package/lib/types/AttachmentMiddleware.d.ts.map +1 -0
  559. package/lib/types/AttachmentMiddleware.js +2 -0
  560. package/lib/types/AvatarMiddleware.d.ts +15 -0
  561. package/lib/types/AvatarMiddleware.d.ts.map +1 -0
  562. package/lib/types/AvatarMiddleware.js +2 -0
  563. package/lib/types/CardActionMiddleware.d.ts +19 -0
  564. package/lib/types/CardActionMiddleware.d.ts.map +1 -0
  565. package/lib/types/CardActionMiddleware.js +2 -0
  566. package/lib/types/ComponentMiddleware.d.ts +31 -0
  567. package/lib/types/ComponentMiddleware.d.ts.map +1 -0
  568. package/lib/types/ComponentMiddleware.js +2 -0
  569. package/lib/types/ContextOf.d.ts +4 -0
  570. package/lib/types/ContextOf.d.ts.map +1 -0
  571. package/lib/types/ContextOf.js +2 -0
  572. package/lib/types/FunctionMiddleware.d.ts +6 -0
  573. package/lib/types/FunctionMiddleware.d.ts.map +1 -0
  574. package/lib/types/FunctionMiddleware.js +2 -0
  575. package/lib/types/GroupActivitiesMiddleware.d.ts +22 -0
  576. package/lib/types/GroupActivitiesMiddleware.d.ts.map +1 -0
  577. package/lib/types/GroupActivitiesMiddleware.js +2 -0
  578. package/lib/types/LocalizedStrings.d.ts +5 -0
  579. package/lib/types/LocalizedStrings.d.ts.map +1 -0
  580. package/lib/types/LocalizedStrings.js +2 -0
  581. package/lib/types/Notification.d.ts +10 -0
  582. package/lib/types/Notification.d.ts.map +1 -0
  583. package/lib/types/Notification.js +2 -0
  584. package/lib/types/PrecompiledGlobalize.d.ts +13 -0
  585. package/lib/types/PrecompiledGlobalize.d.ts.map +1 -0
  586. package/lib/types/PrecompiledGlobalize.js +2 -0
  587. package/lib/types/ScrollToEndButtonMiddleware.d.ts +30 -0
  588. package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +1 -0
  589. package/lib/types/ScrollToEndButtonMiddleware.js +2 -0
  590. package/lib/types/SendStatus.d.ts +3 -0
  591. package/lib/types/SendStatus.d.ts.map +1 -0
  592. package/lib/types/SendStatus.js +2 -0
  593. package/lib/types/TelemetryMeasurementEvent.d.ts +31 -0
  594. package/lib/types/TelemetryMeasurementEvent.d.ts.map +1 -0
  595. package/lib/types/TelemetryMeasurementEvent.js +2 -0
  596. package/lib/types/ToastMiddleware.d.ts +11 -0
  597. package/lib/types/ToastMiddleware.d.ts.map +1 -0
  598. package/lib/types/ToastMiddleware.js +2 -0
  599. package/lib/types/Typing.d.ts +8 -0
  600. package/lib/types/Typing.d.ts.map +1 -0
  601. package/lib/types/Typing.js +2 -0
  602. package/lib/types/TypingIndicatorMiddleware.d.ts +17 -0
  603. package/lib/types/TypingIndicatorMiddleware.d.ts.map +1 -0
  604. package/lib/types/TypingIndicatorMiddleware.js +2 -0
  605. package/lib/types/WebSpeechPonyfill.d.ts +19 -0
  606. package/lib/types/WebSpeechPonyfill.d.ts.map +1 -0
  607. package/lib/types/WebSpeechPonyfill.js +2 -0
  608. package/lib/types/WebSpeechPonyfillFactory.d.ts +6 -0
  609. package/lib/types/WebSpeechPonyfillFactory.d.ts.map +1 -0
  610. package/lib/types/WebSpeechPonyfillFactory.js +2 -0
  611. package/lib/utils/createCustomEvent.d.ts +4 -0
  612. package/lib/utils/createCustomEvent.d.ts.map +1 -0
  613. package/lib/utils/createCustomEvent.js +34 -0
  614. package/lib/utils/findLastIndex.d.ts +2 -0
  615. package/lib/utils/findLastIndex.d.ts.map +1 -0
  616. package/lib/utils/findLastIndex.js +22 -0
  617. package/lib/utils/findMin.d.ts +7 -0
  618. package/lib/utils/findMin.d.ts.map +1 -0
  619. package/lib/utils/findMin.js +46 -0
  620. package/lib/utils/freezeArray.d.ts +8 -0
  621. package/lib/utils/freezeArray.d.ts.map +1 -0
  622. package/lib/utils/freezeArray.js +19 -0
  623. package/lib/utils/isObject.js +12 -0
  624. package/lib/utils/mapMap.d.ts +6 -0
  625. package/lib/utils/mapMap.d.ts.map +1 -0
  626. package/lib/utils/mapMap.js +27 -0
  627. package/lib/utils/normalizeLanguage.d.ts +2 -0
  628. package/lib/utils/normalizeLanguage.d.ts.map +1 -0
  629. package/lib/utils/normalizeLanguage.js +115 -0
  630. package/lib/utils/randomId.d.ts +2 -0
  631. package/lib/utils/randomId.d.ts.map +1 -0
  632. package/lib/utils/randomId.js +15 -0
  633. package/lib/utils/warnOnce.d.ts +2 -0
  634. package/lib/utils/warnOnce.d.ts.map +1 -0
  635. package/lib/utils/warnOnce.js +16 -0
  636. package/package.json +90 -99
  637. package/src/StyleOptions.ts +5 -189
  638. package/src/decorator/index.ts +4 -0
  639. package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +31 -0
  640. package/src/decorator/private/ActivityDecorator.tsx +31 -0
  641. package/src/decorator/private/DecoratorComposer.tsx +6 -0
  642. package/src/decorator/private/activityDecoratorRequest.ts +6 -0
  643. package/src/decorator/private/createDecoratorComposer.tsx +36 -0
  644. package/src/{middleware → decorator}/private/templateMiddleware.test.tsx +17 -19
  645. package/src/decorator/private/templateMiddleware.ts +58 -0
  646. package/src/defaultStyleOptions.ts +7 -40
  647. package/src/hooks/Composer.tsx +137 -198
  648. package/src/hooks/index.ts +2 -19
  649. package/src/hooks/internal/ErrorBox.js +34 -0
  650. package/src/hooks/internal/SendBoxMiddleware.ts +21 -0
  651. package/src/hooks/internal/SendBoxToolbarMiddleware.ts +21 -0
  652. package/src/hooks/internal/Tracker.ts +1 -1
  653. package/src/hooks/internal/WebChatAPIContext.ts +12 -7
  654. package/src/hooks/internal/WebChatReduxContext.js +2 -3
  655. package/src/hooks/internal/private/templateMiddleware.ts +4 -0
  656. package/src/hooks/internal/useCreateActivityRendererInternal.ts +46 -0
  657. package/src/hooks/internal/useDebugDeps.js +30 -0
  658. package/src/hooks/internal/useErrorBoxClass.js +7 -0
  659. package/src/hooks/middleware/UserlandBoundary.js +2 -2
  660. package/src/hooks/middleware/applyMiddleware.js +5 -5
  661. package/src/hooks/middleware/concatMiddleware.spec.js +0 -20
  662. package/src/hooks/middleware/concatMiddleware.ts +6 -7
  663. package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +75 -0
  664. package/src/hooks/private/reduceIterable.spec.ts +2 -0
  665. package/src/hooks/useActiveTyping.ts +2 -3
  666. package/src/hooks/useActivities.ts +3 -62
  667. package/src/hooks/useCreateActivityRenderer.ts +6 -27
  668. package/src/hooks/useCreateActivityStatusRenderer.tsx +33 -13
  669. package/src/hooks/useCreateAvatarRenderer.ts +33 -19
  670. package/src/hooks/useDebouncedNotifications.spec.js +0 -1
  671. package/src/hooks/useDisabled.ts +2 -8
  672. package/src/hooks/useGroupActivities.ts +10 -0
  673. package/src/hooks/useRenderAttachment.ts +2 -2
  674. package/src/hooks/useSendBoxAttachments.ts +0 -2
  675. package/src/hooks/useSendFiles.ts +1 -1
  676. package/src/hooks/useSendTimeoutForActivity.ts +0 -2
  677. package/src/hooks/useStyleOptions.ts +6 -1
  678. package/src/hooks/useSuggestedActions.ts +23 -9
  679. package/src/index.ts +94 -52
  680. package/src/internal.ts +3 -0
  681. package/src/localization/ar-SA.json +111 -134
  682. package/src/localization/bg-BG.json +111 -134
  683. package/src/localization/ca-ES.json +111 -134
  684. package/src/localization/cs-CZ.json +111 -134
  685. package/src/localization/da-DK.json +111 -134
  686. package/src/localization/de-DE.json +111 -134
  687. package/src/localization/el-GR.json +111 -134
  688. package/src/localization/en-US.json +19 -45
  689. package/src/localization/es-ES.json +111 -134
  690. package/src/localization/et-EE.json +111 -134
  691. package/src/localization/eu-ES.json +111 -134
  692. package/src/localization/fi-FI.json +111 -134
  693. package/src/localization/fr-FR.json +111 -134
  694. package/src/localization/gl-ES.json +111 -134
  695. package/src/localization/he-IL.json +111 -134
  696. package/src/localization/hi-IN.json +111 -134
  697. package/src/localization/hr-HR.json +111 -134
  698. package/src/localization/hu-HU.json +111 -134
  699. package/src/localization/id-ID.json +111 -134
  700. package/src/localization/it-IT.json +111 -134
  701. package/src/localization/ja-JP.json +111 -134
  702. package/src/localization/kk-KZ.json +111 -134
  703. package/src/localization/ko-KR.json +111 -134
  704. package/src/localization/lt-LT.json +111 -134
  705. package/src/localization/lv-LV.json +111 -134
  706. package/src/localization/ms-MY.json +111 -134
  707. package/src/localization/nb-NO.json +111 -134
  708. package/src/localization/nl-NL.json +111 -134
  709. package/src/localization/pl-PL.json +111 -134
  710. package/src/localization/pt-BR.json +111 -134
  711. package/src/localization/pt-PT.json +111 -134
  712. package/src/localization/ro-RO.json +111 -134
  713. package/src/localization/ru-RU.json +111 -134
  714. package/src/localization/sk-SK.json +111 -134
  715. package/src/localization/sl-SI.json +111 -134
  716. package/src/localization/sr-Cyrl-CS.json +111 -134
  717. package/src/localization/sr-Latn-CS.json +111 -134
  718. package/src/localization/sv-SE.json +111 -134
  719. package/src/localization/th-TH.json +111 -134
  720. package/src/localization/tr-TR.json +111 -134
  721. package/src/localization/uk-UA.json +111 -134
  722. package/src/localization/vi-VN.json +111 -134
  723. package/src/localization/yue.json +16 -5
  724. package/src/localization/zh-CN.json +111 -134
  725. package/src/localization/zh-HK.json +111 -134
  726. package/src/localization/zh-TW.json +111 -134
  727. package/src/normalizeStyleOptions.ts +21 -70
  728. package/src/patchStyleOptionsFromDeprecatedProps.js +0 -9
  729. package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +40 -197
  730. package/src/providers/ActivityKeyer/private/someIterable.spec.ts +2 -0
  731. package/src/providers/ActivityListener/ActivityListenerComposer.tsx +1 -1
  732. package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +3 -6
  733. package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +59 -145
  734. package/src/providers/ActivityTyping/private/useMemoWithPrevious.ts +17 -0
  735. package/src/tsconfig.json +13 -3
  736. package/src/types/ActivityMiddleware.ts +36 -0
  737. package/src/types/ActivityStatusMiddleware.ts +9 -1
  738. package/src/types/AttachmentForScreenReaderMiddleware.ts +2 -9
  739. package/src/types/AttachmentMiddleware.ts +16 -0
  740. package/src/types/AvatarMiddleware.ts +1 -12
  741. package/src/types/CardActionMiddleware.ts +0 -2
  742. package/src/types/ComponentMiddleware.ts +1 -1
  743. package/src/types/GroupActivitiesMiddleware.ts +11 -7
  744. package/src/utils/warnOnce.ts +10 -0
  745. package/LICENSE +0 -21
  746. package/dist/StyleOptions-Bee70Zop.d.ts +0 -849
  747. package/dist/_dtsroll-chunks/BSWz9ZFy-avatarMiddleware-B0l6i8QF.d.ts +0 -83
  748. package/dist/_dtsroll-chunks/CDCBhxik-avatarMiddleware-B0l6i8QF.d.ts +0 -98
  749. package/dist/_dtsroll-chunks/CEcj2Npa-botframework-webchat-redux-store.d.ts +0 -16
  750. package/dist/_dtsroll-chunks/Dtb0H_Ee-handler-chain.d.ts +0 -4
  751. package/dist/_dtsroll-chunks/N-ttGLxs-botframework-webchat-base.utils.d.ts +0 -4
  752. package/dist/_dtsroll-chunks/q-lT10Y_-botframework-webchat-api-middleware.d.ts +0 -215
  753. package/dist/botframework-webchat-api.d.ts +0 -384
  754. package/dist/botframework-webchat-api.decorator.d.ts +0 -80
  755. package/dist/botframework-webchat-api.decorator.js +0 -2
  756. package/dist/botframework-webchat-api.decorator.js.map +0 -1
  757. package/dist/botframework-webchat-api.graph.d.mts +0 -5
  758. package/dist/botframework-webchat-api.graph.d.ts +0 -2
  759. package/dist/botframework-webchat-api.graph.js +0 -2
  760. package/dist/botframework-webchat-api.graph.js.map +0 -1
  761. package/dist/botframework-webchat-api.graph.mjs +0 -2
  762. package/dist/botframework-webchat-api.hook.d.mts +0 -9
  763. package/dist/botframework-webchat-api.hook.d.ts +0 -9
  764. package/dist/botframework-webchat-api.hook.js +0 -2
  765. package/dist/botframework-webchat-api.hook.js.map +0 -1
  766. package/dist/botframework-webchat-api.hook.mjs +0 -2
  767. package/dist/botframework-webchat-api.hook.mjs.map +0 -1
  768. package/dist/botframework-webchat-api.internal.d.ts +0 -59
  769. package/dist/botframework-webchat-api.internal.js +0 -2
  770. package/dist/botframework-webchat-api.internal.js.map +0 -1
  771. package/dist/botframework-webchat-api.js +0 -2
  772. package/dist/botframework-webchat-api.js.map +0 -1
  773. package/dist/botframework-webchat-api.middleware.d.mts +0 -44
  774. package/dist/botframework-webchat-api.middleware.d.ts +0 -44
  775. package/dist/botframework-webchat-api.middleware.js +0 -2
  776. package/dist/botframework-webchat-api.middleware.js.map +0 -1
  777. package/dist/botframework-webchat-api.middleware.mjs +0 -2
  778. package/dist/botframework-webchat-api.middleware.mjs.map +0 -1
  779. package/dist/chunk-2IRRBWXD.js +0 -2
  780. package/dist/chunk-2IRRBWXD.js.map +0 -1
  781. package/dist/chunk-4CC4CF3L.mjs +0 -2
  782. package/dist/chunk-4CC4CF3L.mjs.map +0 -1
  783. package/dist/chunk-5ETCWTZU.mjs +0 -2
  784. package/dist/chunk-5ETCWTZU.mjs.map +0 -1
  785. package/dist/chunk-5X4VJZOM.js +0 -2
  786. package/dist/chunk-5X4VJZOM.js.map +0 -1
  787. package/dist/chunk-6UG4W3AA.js +0 -2
  788. package/dist/chunk-6UG4W3AA.js.map +0 -1
  789. package/dist/chunk-7GV72C4W.js +0 -2
  790. package/dist/chunk-7GV72C4W.js.map +0 -1
  791. package/dist/chunk-7MMWRS2R.js +0 -2
  792. package/dist/chunk-7MMWRS2R.js.map +0 -1
  793. package/dist/chunk-A4U2D2CE.js +0 -2
  794. package/dist/chunk-A4U2D2CE.js.map +0 -1
  795. package/dist/chunk-CXPZ35K7.mjs +0 -2
  796. package/dist/chunk-CXPZ35K7.mjs.map +0 -1
  797. package/dist/chunk-FD7QXXVX.js +0 -2
  798. package/dist/chunk-FD7QXXVX.js.map +0 -1
  799. package/dist/chunk-M6YLCIBQ.mjs +0 -2
  800. package/dist/chunk-M6YLCIBQ.mjs.map +0 -1
  801. package/dist/chunk-MXSKDQ7V.js +0 -2
  802. package/dist/chunk-MXSKDQ7V.js.map +0 -1
  803. package/dist/chunk-NTAQPS75.mjs +0 -2
  804. package/dist/chunk-NTAQPS75.mjs.map +0 -1
  805. package/dist/chunk-NW6DC3HN.js +0 -2
  806. package/dist/chunk-NW6DC3HN.js.map +0 -1
  807. package/dist/chunk-OT2H52K5.js +0 -2
  808. package/dist/chunk-OT2H52K5.js.map +0 -1
  809. package/dist/chunk-P74ZJTC3.mjs +0 -2
  810. package/dist/chunk-P74ZJTC3.mjs.map +0 -1
  811. package/dist/chunk-RLEJOP6E.mjs +0 -2
  812. package/dist/chunk-RLEJOP6E.mjs.map +0 -1
  813. package/dist/chunk-SHCJFXJD.js +0 -2
  814. package/dist/chunk-SHCJFXJD.js.map +0 -1
  815. package/dist/chunk-T4YVMFKP.js +0 -2
  816. package/dist/chunk-T4YVMFKP.js.map +0 -1
  817. package/dist/chunk-U4BPKCQU.mjs +0 -2
  818. package/dist/chunk-U4BPKCQU.mjs.map +0 -1
  819. package/dist/chunk-VAX7AB37.mjs.map +0 -1
  820. package/dist/chunk-VNGDFILB.mjs +0 -2
  821. package/dist/chunk-VNGDFILB.mjs.map +0 -1
  822. package/dist/chunk-VOKEMAOZ.mjs +0 -2
  823. package/dist/chunk-VOKEMAOZ.mjs.map +0 -1
  824. package/dist/chunk-ZFVI4FOP.mjs +0 -2
  825. package/dist/chunk-ZFVI4FOP.mjs.map +0 -1
  826. package/dist/hook-C8DMnLlW.d.ts +0 -534
  827. package/dist/hook-C_R_DybN.d.mts +0 -534
  828. package/dist/metafile-cjs.json +0 -1
  829. package/dist/templateMiddleware-BEttHPJk.d.mts +0 -20
  830. package/dist/templateMiddleware-BEttHPJk.d.ts +0 -20
  831. package/dist/types-BI1IxyHE.d.mts +0 -227
  832. package/dist/types-nONiO2zU.d.ts +0 -227
  833. package/graph.js +0 -3
  834. package/hook.js +0 -3
  835. package/middleware.js +0 -3
  836. package/src/__tests__/addMetaTag.spec.js +0 -9
  837. package/src/__tests__/addMetaTag.spec.mjs +0 -9
  838. package/src/boot/decorator.ts +0 -21
  839. package/src/boot/graph.ts +0 -1
  840. package/src/boot/hook.ts +0 -82
  841. package/src/boot/internal.ts +0 -7
  842. package/src/boot/middleware.ts +0 -60
  843. package/src/buildInfo.ts +0 -9
  844. package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +0 -57
  845. package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +0 -34
  846. package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorRequestContext.ts +0 -48
  847. package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +0 -43
  848. package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +0 -40
  849. package/src/decorator/DecoratorComposer.tsx +0 -51
  850. package/src/decorator/internal/InternalDecoratorComposer.tsx +0 -33
  851. package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +0 -19
  852. package/src/decorator/private/DecoratorComposerContext.ts +0 -16
  853. package/src/decorator/private/PassthroughFallback.tsx +0 -12
  854. package/src/decorator/private/templateDecorator.tsx +0 -115
  855. package/src/decorator/types.ts +0 -4
  856. package/src/decorator/useDecoratorRequest.ts +0 -15
  857. package/src/env.d.ts +0 -9
  858. package/src/errorBox/errorBoxTelemetryPolymiddleware.ts +0 -53
  859. package/src/hooks/internal/usePostVoiceActivity.ts +0 -18
  860. package/src/hooks/internal/useRegisterVoiceHandler.ts +0 -23
  861. package/src/hooks/internal/useShouldShowMicrophoneButton.ts +0 -22
  862. package/src/hooks/internal/useVoiceHandlers.ts +0 -11
  863. package/src/hooks/internal/useVoiceStateWritable.ts +0 -18
  864. package/src/hooks/middleware/activityFallbackPolymiddleware.ts +0 -23
  865. package/src/hooks/useStartVoice.ts +0 -9
  866. package/src/hooks/useStopVoice.ts +0 -9
  867. package/src/hooks/useUIState.ts +0 -18
  868. package/src/hooks/useVoiceRecordingMuted.ts +0 -24
  869. package/src/hooks/useVoiceState.ts +0 -15
  870. package/src/hooks/validation/uiState.parseUIState.spec.ts +0 -21
  871. package/src/hooks/validation/uiState.ts +0 -10
  872. package/src/legacy/LegacyActivityBridge.tsx +0 -77
  873. package/src/legacy/LegacyActivityBridgeContext.ts +0 -23
  874. package/src/legacy/createActivityPolymiddlewareFromLegacy.tsx +0 -123
  875. package/src/legacy/createAvatarPolymiddlewareFromLegacy.tsx +0 -102
  876. package/src/middleware/AvatarPolymiddlewareProxy.tsx +0 -46
  877. package/src/middleware/SendBoxMiddleware.ts +0 -28
  878. package/src/middleware/SendBoxToolbarMiddleware.ts +0 -28
  879. package/src/middleware/private/templateMiddleware.check.test.tsx +0 -47
  880. package/src/middleware/private/templateMiddleware.tsx +0 -106
  881. package/src/middleware/useBuildRenderAvatarCallback.ts +0 -37
  882. package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +0 -236
  883. package/src/providers/ActivityTyping/private/useReduceActivities.ts +0 -49
  884. package/src/providers/Capabilities/CapabilitiesComposer.tsx +0 -53
  885. package/src/providers/Capabilities/private/Context.ts +0 -13
  886. package/src/providers/Capabilities/private/capabilityRegistry.ts +0 -45
  887. package/src/providers/Capabilities/private/fetchCapabilitiesFromAdapter.ts +0 -59
  888. package/src/providers/Capabilities/private/shallowEqual.ts +0 -18
  889. package/src/providers/Capabilities/private/useContext.ts +0 -12
  890. package/src/providers/Capabilities/types/Capabilities.ts +0 -16
  891. package/src/providers/Capabilities/useCapabilities.ts +0 -25
  892. package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +0 -116
  893. package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +0 -23
  894. package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +0 -113
  895. package/src/providers/GroupActivities/private/isGroupingValid.ts +0 -41
  896. package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +0 -6
  897. package/src/providers/GroupActivities/useGroupActivities.ts +0 -20
  898. package/src/providers/GroupActivities/useGroupActivitiesByName.ts +0 -17
  899. package/src/providers/SpeechToSpeech/SpeechToSpeechComposer.tsx +0 -20
  900. package/src/providers/SpeechToSpeech/private/VoiceHandlerBridge.tsx +0 -23
  901. package/src/providers/SpeechToSpeech/private/VoiceRecorderBridge.tsx +0 -49
  902. package/src/providers/SpeechToSpeech/private/useAudioPlayer.spec.tsx +0 -355
  903. package/src/providers/SpeechToSpeech/private/useAudioPlayer.ts +0 -92
  904. package/src/providers/SpeechToSpeech/private/useRecorder.spec.tsx +0 -344
  905. package/src/providers/SpeechToSpeech/private/useRecorder.ts +0 -220
  906. package/src/providers/StyleOptions/StyleOptionsComposer.tsx +0 -46
  907. package/src/providers/StyleOptions/private/StyleOptionsContext.ts +0 -20
  908. package/src/providers/StyleOptions/private/rectifyStyleOptions.ts +0 -7
  909. package/src/providers/StyleOptions/useStyleOptions.ts +0 -6
  910. /package/dist/{botframework-webchat-api.graph.mjs.map → chunk-J6D5YEY6.mjs.map} +0 -0
@@ -1,849 +0,0 @@
1
- import { WebChatActivity } from 'botframework-webchat-core';
2
-
3
- type StyleOptions = {
4
- /**
5
- * Basic styling
6
- */
7
- /** Web Chat component accent color */
8
- accent?: string;
9
- /**
10
- * Transcript background color
11
- */
12
- backgroundColor?: string;
13
- /**
14
- * Secondary component color
15
- */
16
- subtle?: string;
17
- /**
18
- * Default padding used in most visual components
19
- */
20
- paddingRegular?: number;
21
- /**
22
- * Padding used for suggestedAction buttons
23
- */
24
- paddingWide?: number;
25
- /**
26
- * The duration to be used for transitions
27
- */
28
- transitionDuration?: string;
29
- /**
30
- * The easing function to be used for transitions
31
- */
32
- transitionEasing?: string;
33
- /**
34
- * Fonts
35
- * Default font size will be inherited from the host app
36
- */
37
- /**
38
- * Font size used for secondary components such as sendStatus
39
- */
40
- fontSizeSmall?: number | string;
41
- /**
42
- * Font used for ErrorBox
43
- * comma-space separated string
44
- */
45
- monospaceFont?: string;
46
- /**
47
- * Font used in most visual components
48
- * comma-space separated string
49
- */
50
- primaryFont?: string;
51
- rootHeight?: number | string;
52
- rootWidth?: number | string;
53
- /**
54
- * "z-index" for the root container of Web Chat. This will form a new stacking context so "z-index" used in children won't pollute.
55
- */
56
- rootZIndex?: number;
57
- /**
58
- * Avatar styling
59
- */
60
- /**
61
- * Border radius used for both bot and user avatar
62
- */
63
- avatarBorderRadius?: number | string;
64
- /**
65
- * Height and width of avatar
66
- */
67
- avatarSize?: number;
68
- /**
69
- * Background color defaults to accent
70
- */
71
- botAvatarBackgroundColor?: string;
72
- /**
73
- * URL string. Can be data URI or blob
74
- * botAvatarInitials must be set to empty string
75
- */
76
- botAvatarImage?: string;
77
- /**
78
- * Typically rendered as two letters, e.g. 'WC'
79
- * Empty string is required when setting botAvatarImage
80
- */
81
- botAvatarInitials?: string;
82
- /**
83
- * Background color defaults to accent
84
- */
85
- userAvatarBackgroundColor?: string;
86
- /**
87
- * URL string. Can be data URI or blob
88
- * userAvatarInitials must be set to empty string
89
- */
90
- userAvatarImage?: string;
91
- /**
92
- * Typically rendered as two letters, i.e. 'WC'
93
- * Empty string is required when setting userAvatarImage
94
- */
95
- userAvatarInitials?: string;
96
- /**
97
- * Avatar grouping can be set at 3 different levels:
98
- * Show avatar on activities sharing the same sender ('sender')
99
- * Show avatar on activities sharing the same status ('status'; default)
100
- * Show avatar on every activity (true)
101
- */
102
- showAvatarInGroup?: true | 'sender' | 'status';
103
- /**
104
- * Bubble styling
105
- * 'Bubble' refers to the container of the activit(ies) from the bot and user. Below, non-'fromUser' props refer to styling for the bot activities.
106
- */
107
- bubbleBackground?: string;
108
- bubbleBorderColor?: string;
109
- bubbleBorderRadius?: number;
110
- bubbleBorderStyle?: string;
111
- bubbleBorderWidth?: number;
112
- bubbleFromUserBackground?: string;
113
- bubbleFromUserBorderColor?: string;
114
- bubbleFromUserBorderRadius?: number;
115
- bubbleFromUserBorderStyle?: string;
116
- bubbleFromUserBorderWidth?: number;
117
- /**
118
- * Nub offset 'bottom' will render nub at the bottom
119
- * A positive or negative number will shift nub offset up/down
120
- * "top" is equivalent to positive zero.
121
- * "bottom" is equivalent to negative zero.
122
- */
123
- bubbleFromUserNubOffset?: number | 'bottom' | 'top';
124
- /**
125
- * Nub size 0 will render a sharp corner
126
- */
127
- bubbleFromUserNubSize?: number;
128
- bubbleFromUserTextColor?: string;
129
- /**
130
- * Specifies the fixed height of the bubble for image, default to unset.
131
- *
132
- * @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
133
- */
134
- bubbleImageHeight?: number | undefined;
135
- /**
136
- * Specifies the maximum height of the bubble for image, default to 240px.
137
- *
138
- * CSS variable: `--webchat__max-height--image-bubble`.
139
- *
140
- * New in 4.18.0.
141
- */
142
- bubbleImageMaxHeight?: number | undefined;
143
- /**
144
- * Specifies the minimum height of the bubble for image, default to 240px.
145
- *
146
- * CSS variable: `--webchat__min-height--image-bubble`.
147
- *
148
- * New in 4.18.0.
149
- */
150
- bubbleImageMinHeight?: number | undefined;
151
- bubbleMaxWidth?: number | undefined;
152
- bubbleMinWidth?: number | undefined;
153
- bubbleAttachmentMaxWidth?: number | undefined;
154
- bubbleAttachmentMinWidth?: number | undefined;
155
- bubbleMessageMaxWidth?: number | undefined;
156
- bubbleMessageMinWidth?: number | undefined;
157
- bubbleMinHeight?: number;
158
- /**
159
- * Nub offset ''bottom' will render nub at the bottom
160
- * A positive or negative number will shift nub offset up/down
161
- * "top" is equivalent to positive zero.
162
- * "bottom" is equivalent to negative zero.
163
- */
164
- bubbleNubOffset?: number | 'bottom' | 'top';
165
- /**
166
- * Nub size 0 will render a sharp corner
167
- */
168
- bubbleNubSize?: number;
169
- bubbleTextColor?: string;
170
- messageActivityWordBreak?: 'normal' | 'break-all' | 'break-word' | 'keep-all';
171
- /**
172
- * Connectivity UI styling
173
- */
174
- connectivityIconPadding?: number;
175
- connectivityMarginLeftRight?: number;
176
- connectivityMarginTopBottom?: number;
177
- connectivityTextSize?: number | string;
178
- failedConnectivity?: number | string;
179
- slowConnectivity?: string;
180
- notificationText?: string;
181
- /**
182
- * Slow connection status will render after x amount of time with no service response
183
- */
184
- slowConnectionAfter?: number;
185
- /**
186
- * Emoji styling
187
- * If true, Web Chat's default set of emoji will be enabled. See patchStyleOptions.js for default list.
188
- * A custom object will enable unicode emoji specified by the developer.
189
- * key: emoticon
190
- * value: unicode emoji
191
- */
192
- emojiSet?: boolean | Record<string, string>;
193
- /**
194
- * Live region - Accessibility
195
- * New activities will be rendered in the non-visual live region and removed after a certain amount of time. Modify this property to change fade time.
196
- */
197
- internalLiveRegionFadeAfter?: number;
198
- /**
199
- * Markdown styling
200
- * Parse markdown to ensure carriage return is respected
201
- */
202
- markdownRespectCRLF?: boolean;
203
- /**
204
- * Render HTML inside Markdown.
205
- *
206
- * `true` to render HTML inside Markdown, otherwise, `false`. Defaults to `true`.
207
- *
208
- * New in 4.17: This option is enabled by default.
209
- */
210
- markdownRenderHTML?: boolean;
211
- /**
212
- * Assign new image for anchor links to indicate external
213
- */
214
- markdownExternalLinkIconImage?: string;
215
- /**
216
- * Scroll behavior styling
217
- */
218
- /**
219
- * Prevent scroll to end button from rendering
220
- *
221
- * @deprecated Since 4.14.0: To hide the scroll to end button, please set `scrollToEndButtonBehavior` to `false`.
222
- */
223
- hideScrollToEndButton?: boolean;
224
- /**
225
- * Snap to activity to 'snap-point'
226
- * If true, scrolling will pause after 1 activity is received.
227
- * Specifying a number will pause after X number of activities
228
- */
229
- autoScrollSnapOnActivity?: boolean | number;
230
- /**
231
- * Specify number of pixels to overscroll or underscroll after pause
232
- */
233
- autoScrollSnapOnActivityOffset?: number;
234
- /**
235
- * If true, scrolling will pause after activities have filled the page.
236
- * Specifying a number (0 to 1) will pause after % of page is filled
237
- */
238
- autoScrollSnapOnPage?: boolean | number;
239
- /**
240
- * Specify number of pixels to overscroll or underscroll after pause
241
- */
242
- autoScrollSnapOnPageOffset?: number;
243
- /**
244
- * Send box styling
245
- */
246
- hideSendBox?: boolean;
247
- /**
248
- * Indicates if the upload file button should be hidden.
249
- *
250
- * @default false
251
- *
252
- * @deprecated deprecated since 4.18.0: obsolated by {@linkcode disableFileUpload}. This option will be removed on or after 2027-07-14.
253
- */
254
- hideUploadButton?: boolean;
255
- /**
256
- * (EXPERIMENTAL) `true`, if the telephone keypad button should be shown, otherwise, `false`. Defaults to `true`.
257
- *
258
- * @deprecated This is an experimental style options and should not be used without understanding its risk.
259
- */
260
- hideTelephoneKeypadButton?: boolean | undefined;
261
- microphoneButtonColorOnDictate?: string;
262
- sendBoxBackground?: string;
263
- /**
264
- * The comma-delimited file types that the upload button should accept.
265
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
266
- * @example 'image/*,.pdf'
267
- */
268
- uploadAccept?: string;
269
- /**
270
- * If true, the upload button will accept multiple files.
271
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple
272
- */
273
- uploadMultiple?: boolean;
274
- /**
275
- * If set to `send` (default), attachment will be sent when the send button is clicked, or when the message is being sent.
276
- *
277
- * Otherwise, if set to `attach`, attachment will be sent immediately after file is selected.
278
- */
279
- sendAttachmentOn?: 'attach' | 'send';
280
- /** Send box button: Icon color, defaults to subtle */
281
- sendBoxButtonColor?: string;
282
- /**
283
- * Send box button: Shade border radius
284
- *
285
- * @default 2
286
- */
287
- sendBoxButtonShadeBorderRadius?: number;
288
- /** Send box button: Shade color */
289
- sendBoxButtonShadeColor?: string;
290
- /**
291
- * Send box button: Shade inset
292
- *
293
- * @default 2
294
- */
295
- sendBoxButtonShadeInset?: number;
296
- /** Send box button (while `:active`): Icon color */
297
- sendBoxButtonColorOnActive?: string;
298
- /**
299
- * Send box button (while `:active`): Shade color
300
- *
301
- * @default '#EDEBE9'
302
- */
303
- sendBoxButtonShadeColorOnActive?: string;
304
- /**
305
- * Send box button (while `:disabled`): Icon color
306
- *
307
- * @default '#A19F9D'
308
- */
309
- sendBoxButtonColorOnDisabled?: string;
310
- /**
311
- * Send box button (while `:disabled`): Shade color
312
- *
313
- * @default '#F3F2F1'
314
- */
315
- sendBoxButtonShadeColorOnDisabled?: string;
316
- /** Send box button (while `:focus`): Icon color */
317
- sendBoxButtonColorOnFocus?: string;
318
- /** Send box button (while `:focus`): Shade color */
319
- sendBoxButtonShadeColorOnFocus?: string;
320
- /** Send box button (while `:hover`): Icon color */
321
- sendBoxButtonColorOnHover?: string;
322
- /**
323
- * Send box button (while `:hover`): Shade color
324
- *
325
- * @default '#F3F2F1'
326
- */
327
- sendBoxButtonShadeColorOnHover?: string;
328
- /**
329
- * Send box button (while `:focus-visible`): Keyboard focus indicator border color
330
- *
331
- * @default '#605E5C'
332
- */
333
- sendBoxButtonKeyboardFocusIndicatorBorderColor?: string;
334
- /**
335
- * Send box button (while `:focus-visible`): Keyboard focus indicator border radius
336
- *
337
- * @default 0
338
- */
339
- sendBoxButtonKeyboardFocusIndicatorBorderRadius?: number | string;
340
- /**
341
- * Send box button (while `:focus-visible`): Keyboard focus indicator border style
342
- *
343
- * @default 'solid'
344
- */
345
- sendBoxButtonKeyboardFocusIndicatorBorderStyle?: string;
346
- /**
347
- * Send box button (while` :focus-visible`): Keyboard focus indicator border width
348
- *
349
- * @default 4
350
- */
351
- sendBoxButtonKeyboardFocusIndicatorBorderWidth?: number;
352
- /**
353
- * Send box button (while `:focus-visible`): Keyboard focus indicator inset
354
- *
355
- * @default 4
356
- */
357
- sendBoxButtonKeyboardFocusIndicatorInset?: number;
358
- /**
359
- * Disabled text color defaults to subtle
360
- */
361
- sendBoxDisabledTextColor?: string;
362
- sendBoxHeight?: number | string;
363
- sendBoxMaxHeight?: number | string;
364
- sendBoxTextColor?: string;
365
- sendBoxBorderBottom?: number | string;
366
- sendBoxBorderLeft?: number | string;
367
- sendBoxBorderRight?: number | string;
368
- sendBoxBorderTop?: number | string;
369
- sendBoxPlaceholderColor?: string;
370
- sendBoxTextWrap?: boolean;
371
- sendBoxButtonAlignment?: 'bottom' | 'stretch' | 'top';
372
- /**
373
- * Show spoken text
374
- */
375
- showSpokenText?: boolean;
376
- /**
377
- * Spinner animation styling
378
- */
379
- spinnerAnimationBackgroundImage?: string;
380
- spinnerAnimationHeight?: number | string;
381
- spinnerAnimationWidth?: number | string;
382
- spinnerAnimationPadding?: number | string;
383
- /**
384
- * Suggested Actions
385
- */
386
- /**
387
- * Suggested action: border radius
388
- *
389
- * @default 0
390
- */
391
- suggestedActionBorderRadius?: number | string;
392
- /**
393
- * Suggested action: Background
394
- *
395
- * @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColor` instead. This option will be removed on or after 2023-09-16.
396
- */
397
- suggestedActionBackground?: string;
398
- /**
399
- * Suggested action: Background color
400
- *
401
- * @default 'White'
402
- */
403
- suggestedActionBackgroundColor?: string;
404
- /** Suggested action: Border color, defaults to accent color */
405
- suggestedActionBorderColor?: string;
406
- /**
407
- * Suggested action: Border style
408
- *
409
- * @default 'solid'
410
- */
411
- suggestedActionBorderStyle?: string;
412
- /**
413
- * Suggested action: Border width
414
- *
415
- * @default 2
416
- */
417
- suggestedActionBorderWidth?: number;
418
- /** Suggested action: Text color, defaults to accent color */
419
- suggestedActionTextColor?: string;
420
- /** Suggested action (while `:disabled`): Background color, defaults to suggestedActionBackground */
421
- suggestedActionBackgroundColorOnDisabled?: string;
422
- /**
423
- * Suggested action (while `:disabled`): Border color
424
- *
425
- * @default '#E6E6E6'
426
- */
427
- suggestedActionBorderColorOnDisabled?: string;
428
- /** Suggested action (while `:disabled`): Border style */
429
- suggestedActionBorderStyleOnDisabled?: string;
430
- /** Suggested action (while `:disabled`): Border width */
431
- suggestedActionBorderWidthOnDisabled?: number;
432
- /** Suggested action (while `:disabled`): Foreground color, defaults to subtle color */
433
- suggestedActionTextColorOnDisabled?: string;
434
- /**
435
- * Suggested action (while `:active`): Background color
436
- *
437
- * @default '#EDEBE9'
438
- */
439
- suggestedActionBackgroundColorOnActive?: string;
440
- /** Suggested action (while `:active`): Border color */
441
- suggestedActionBorderColorOnActive?: string;
442
- /** Suggested action (while `:active`): Border style */
443
- suggestedActionBorderStyleOnActive?: string;
444
- /** Suggested action (while `:active`): Border width */
445
- suggestedActionBorderWidthOnActive?: number;
446
- /** Suggested action (while `:active`): Text color */
447
- suggestedActionTextColorOnActive?: string;
448
- /** Suggested action (while `:focus`): Background color */
449
- suggestedActionBackgroundColorOnFocus?: string;
450
- /** Suggested action (while `:focus`): Border color */
451
- suggestedActionBorderColorOnFocus?: string;
452
- /** Suggested action (while `:focus`): Border style */
453
- suggestedActionBorderStyleOnFocus?: string;
454
- /** Suggested action (while `:focus`): Border width */
455
- suggestedActionBorderWidthOnFocus?: number;
456
- /** Suggested action (while `:focus`): Text color */
457
- suggestedActionTextColorOnFocus?: string;
458
- /**
459
- * Suggested action (while `:hover`): Background color
460
- *
461
- * @default '#F3F2F1'
462
- */
463
- suggestedActionBackgroundColorOnHover?: string;
464
- /** Suggested action (while `:hover`): Border color */
465
- suggestedActionBorderColorOnHover?: string;
466
- /** Suggested action (while `:hover`): Border style */
467
- suggestedActionBorderStyleOnHover?: string;
468
- /** Suggested action (while `:hover`): Border width */
469
- suggestedActionBorderWidthOnHover?: number;
470
- /** Suggested action (while `:hover`): Text color */
471
- suggestedActionTextColorOnHover?: string;
472
- /**
473
- * Suggested action (while `:disabled`): Background, defaults to suggestedActionBackground.
474
- *
475
- * @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
476
- */
477
- suggestedActionDisabledBackground?: string;
478
- /**
479
- * Suggested action (while `:disabled`): Border color
480
- *
481
- * @deprecated Since 4.15.0: Please use `suggestedActionBorderColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
482
- */
483
- suggestedActionDisabledBorderColor?: string;
484
- /**
485
- * Suggested action (while `:disabled`): Border style
486
- *
487
- * @deprecated Since 4.15.0: Please use `suggestedActionBorderStyleOnDisabled` instead. This option will be removed on or after 2023-09-16.
488
- */
489
- suggestedActionDisabledBorderStyle?: string;
490
- /**
491
- * Suggested action (while `:disabled`): Border width
492
- *
493
- * @deprecated Since 4.15.0: Please use `suggestedActionBorderWidthOnDisabled` instead. This option will be removed on or after 2023-09-16.
494
- */
495
- suggestedActionDisabledBorderWidth?: number;
496
- /**
497
- * Suggested action (while `:disabled`): Foreground color, defaults to subtle color
498
- *
499
- * @deprecated Since 4.15.0: Please use `suggestedActionTextColorOnDisabled` instead. This option will be removed on or after 2023-09-16.
500
- */
501
- suggestedActionDisabledTextColor?: string;
502
- /**
503
- * Suggested action: Height
504
- *
505
- * @default 40
506
- */
507
- suggestedActionHeight?: number | string;
508
- /**
509
- * Suggested action: Image height
510
- *
511
- * @default 20
512
- */
513
- suggestedActionImageHeight?: number | string;
514
- /**
515
- * Suggested action: Layout type
516
- *
517
- * @default 'carousel'
518
- */
519
- suggestedActionLayout?: 'carousel' | 'flow' | 'stacked';
520
- /**
521
- * Suggested action (while `:focus-visible`): Keyboard focus indicator border color
522
- *
523
- * @default '#605E5C'
524
- */
525
- suggestedActionKeyboardFocusIndicatorBorderColor?: string;
526
- /**
527
- * Suggested action (while `:focus-visible`): Keyboard focus indicator border radius
528
- *
529
- * @default 0
530
- */
531
- suggestedActionKeyboardFocusIndicatorBorderRadius?: number | string;
532
- /**
533
- * Suggested action (while `:focus-visible`): Keyboard focus indicator border style
534
- *
535
- * @default 'solid'
536
- */
537
- suggestedActionKeyboardFocusIndicatorBorderStyle?: string;
538
- /**
539
- * Suggested action (while `:focus-visible`): Keyboard focus indicator border width
540
- *
541
- * @default 1
542
- */
543
- suggestedActionKeyboardFocusIndicatorBorderWidth?: number;
544
- /**
545
- * Suggested action (while `:focus-visible`): Keyboard focus indicator inset
546
- *
547
- * @default 2
548
- */
549
- suggestedActionKeyboardFocusIndicatorInset?: number;
550
- /**
551
- * Suggested action (while `:active`): background
552
- *
553
- * @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnActive` instead. This option will be removed on or after 2023-09-16.
554
- */
555
- suggestedActionActiveBackground?: string;
556
- /**
557
- * Suggested action (while `:focus`): background
558
- *
559
- * @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnFocus` instead. This option will be removed on or after 2023-09-16.
560
- */
561
- suggestedActionFocusBackground?: string;
562
- /**
563
- * Suggested action (while `:hover`): background
564
- *
565
- * @deprecated Since 4.15.0: Please use `suggestedActionBackgroundColorOnHover` instead. This option will be removed on or after 2023-09-16.
566
- */
567
- suggestedActionHoverBackground?: string;
568
- /**
569
- * Suggested actions carousel layout
570
- */
571
- /**
572
- * Cursor when mouseover on flipper
573
- */
574
- suggestedActionsCarouselFlipperCursor?: string;
575
- /**
576
- * Flipper bounding box size
577
- */
578
- suggestedActionsCarouselFlipperBoxWidth?: number;
579
- /**
580
- * Flipper button's visible size
581
- */
582
- suggestedActionsCarouselFlipperSize?: number;
583
- /**
584
- * Suggested actions flow layout
585
- * Default value is 'auto',
586
- */
587
- suggestedActionsFlowMaxHeight?: undefined;
588
- /**
589
- * Suggested actions stacked layout
590
- */
591
- /**
592
- * Stacked height container's max height. Default value is 'auto'
593
- */
594
- suggestedActionsStackedHeight?: number | 'auto';
595
- /**
596
- * Stacked overflow default value is 'auto'
597
- */
598
- suggestedActionsStackedOverflow?: 'auto' | 'hidden' | 'scroll' | 'visible';
599
- /**
600
- * Button max height default value is 100% if suggestedActionsStackedLayoutButtonTextWrap is true
601
- */
602
- suggestedActionsStackedLayoutButtonMaxHeight?: number | string;
603
- /**
604
- * Button Text Wrap, if set to true, will wrap long text in buttons in STACKED mode ONLY
605
- */
606
- suggestedActionsStackedLayoutButtonTextWrap?: boolean;
607
- /** Suggested actions: Visual keyboard indicator color for the container. */
608
- suggestedActionsVisualKeyboardIndicatorColor?: string;
609
- /** Suggested actions: Visual keyboard indicator style for the container. */
610
- suggestedActionsVisualKeyboardIndicatorStyle?: string;
611
- /** Suggested actions: Visual keyboard indicator width for the container. */
612
- suggestedActionsVisualKeyboardIndicatorWidth?: number;
613
- /**
614
- * Timestamp
615
- */
616
- /**
617
- * Specifies the time window for grouping related timestamps.
618
- *
619
- * `number` - time window for grouping related timestamps (in milliseconds)
620
- * `false` - never group timestamps
621
- * `true` - group all timestamps
622
- */
623
- groupTimestamp?: boolean | number;
624
- sendTimeout?: number | ((activity: WebChatActivity) => number);
625
- sendTimeoutForAttachments?: number;
626
- /**
627
- * Timestamp color default value is subtle
628
- */
629
- timestampColor?: string;
630
- timestampFormat?: 'absolute' | 'relative';
631
- /**
632
- * Transcript styling
633
- */
634
- transcriptTerminatorBackgroundColor?: string;
635
- transcriptTerminatorBorderRadius?: number | string;
636
- transcriptTerminatorColor?: string;
637
- transcriptTerminatorFontSize?: number | string;
638
- transcriptActivityVisualKeyboardIndicatorColor?: string;
639
- transcriptActivityVisualKeyboardIndicatorStyle?: string;
640
- transcriptActivityVisualKeyboardIndicatorWidth?: number | string;
641
- transcriptVisualKeyboardIndicatorColor?: string;
642
- transcriptVisualKeyboardIndicatorStyle?: string;
643
- transcriptVisualKeyboardIndicatorWidth?: number | string;
644
- /**
645
- * Transcript overlay button
646
- * e.g. carousel and suggested action flippers, scroll to bottom, etc.
647
- */
648
- /**
649
- * Controls when the new messages button should show.
650
- *
651
- * - `"unread"` will show when there are any unread and offscreen messages (default)
652
- * - `"any"` will show when there are any offscreen messages
653
- * - `false` will always hide the button
654
- */
655
- scrollToEndButtonBehavior?: false | 'any' | 'unread';
656
- /** Font size of the new message button. */
657
- scrollToEndButtonFontSize?: number | string;
658
- /**
659
- * Font size of the new message button.
660
- *
661
- * @deprecated Since 4.14.0: Renamed to {@linkcode scrollToEndButtonFontSize}.
662
- */
663
- newMessagesButtonFontSize?: number | string;
664
- transcriptOverlayButtonBackground?: string;
665
- transcriptOverlayButtonBackgroundOnDisabled?: string;
666
- transcriptOverlayButtonBackgroundOnFocus?: string;
667
- transcriptOverlayButtonBackgroundOnHover?: string;
668
- transcriptOverlayButtonColor?: string;
669
- transcriptOverlayButtonColorOnDisabled?: string;
670
- /**
671
- * Default value is transcriptOverlayButtonColor
672
- */
673
- transcriptOverlayButtonColorOnFocus?: string;
674
- /**
675
- * Default value is transcriptOverlayButtonColor
676
- */
677
- transcriptOverlayButtonColorOnHover?: string;
678
- /**
679
- * Toast UI
680
- */
681
- /**
682
- * New debounce timeout value only affects new notifications.
683
- */
684
- notificationDebounceTimeout?: number;
685
- hideToaster?: boolean;
686
- toasterHeight?: number | string;
687
- toasterMaxHeight?: number | string;
688
- toasterSingularMaxHeight?: number | string;
689
- toastFontSize?: number | string;
690
- toastIconWidth?: number | string;
691
- toastSeparatorColor?: string;
692
- toastTextPadding?: number | string;
693
- toastErrorBackgroundColor?: string;
694
- toastErrorColor?: string;
695
- toastInfoBackgroundColor?: string;
696
- toastInfoColor?: string;
697
- toastSuccessBackgroundColor?: string;
698
- toastSuccessColor?: string;
699
- toastWarnBackgroundColor?: string;
700
- toastWarnColor?: string;
701
- /**
702
- * Typing animation
703
- */
704
- typingAnimationBackgroundImage?: string;
705
- typingAnimationDuration?: number;
706
- typingAnimationHeight?: number | string;
707
- typingAnimationWidth?: number | string;
708
- /**
709
- * Upload thumbnail
710
- */
711
- enableUploadThumbnail?: boolean;
712
- uploadThumbnailContentType?: string;
713
- uploadThumbnailHeight?: number;
714
- uploadThumbnailQuality?: number;
715
- uploadThumbnailWidth?: number;
716
- /**
717
- * Video
718
- */
719
- videoHeight?: number | string;
720
- /**
721
- * Maximum message length in characters
722
- *
723
- * @default 2000
724
- */
725
- maxMessageLength?: number;
726
- /**
727
- * The node to place Web Chat styles into. Needed when using as a Web Component.
728
- *
729
- * @default document.head
730
- */
731
- stylesRoot?: Node;
732
- /**
733
- * Border animation
734
- */
735
- /**
736
- * Border animation 1st color
737
- *
738
- * CSS variable: `--webchat__animation--border-color-1` CSS variable to adjust the color
739
- *
740
- * New in 4.19.0.
741
- */
742
- borderAnimationColor1?: string;
743
- /**
744
- * Border animation 2nd color
745
- *
746
- * CSS variable: `--webchat__animation--border-color-2` CSS variable to adjust the color
747
- *
748
- * New in 4.19.0.
749
- */
750
- borderAnimationColor2?: string;
751
- /**
752
- * Border animation 3rd color
753
- *
754
- * CSS variable: `--webchat__animation--border-color-3` CSS variable to adjust the color
755
- *
756
- * New in 4.19.0.
757
- */
758
- borderAnimationColor3?: string;
759
- /**
760
- * Code block theme
761
- *
762
- * - `'github-light-default'` - use light theme for code blocks
763
- * - `'github-dark-default'` - use dark theme for code blocks
764
- *
765
- * @default 'github-light-default'
766
- *
767
- * New in 4.19.0.
768
- */
769
- codeBlockTheme?: 'github-light-default' | 'github-dark-default';
770
- /**
771
- * (EXPERIMENTAL) Feedback buttons placement
772
- *
773
- * - `'activity-actions'` - place feedback buttons inside activity actions - will show feedback form
774
- * - `'activity-status'` - place feedback buttons inside activity status
775
- *
776
- * @default 'activity-status'
777
- *
778
- * @deprecated This is an experimental style options and should not be used without understanding its risk.
779
- *
780
- * New in 4.19.0.
781
- */
782
- feedbackActionsPlacement?: 'activity-actions' | 'activity-status';
783
- /**
784
- * Use continuous mode for speech recognition. Default to `false`.
785
- *
786
- * - `true` to use continuous mode which focuses on a hands-off experience, keeping speech recognition active for extended periods, supporting barge-in, non-speech interactions will not stop speech recognition
787
- * - `false` to use interactive mode which focuses on privacy, keeping speech recognition active only for the minimal time required, no barge-in, non-speech interactions will stop speech recognition
788
- *
789
- * @see https://github.com/microsoft/BotFramework-WebChat/pull/5426
790
- */
791
- speechRecognitionContinuous?: boolean | undefined;
792
- /**
793
- * Whether part groups are open by default.
794
- *
795
- * @default true
796
- */
797
- partGroupDefaultOpen?: boolean | undefined;
798
- /**
799
- * Whether references (citation link definitions) are open by default.
800
- *
801
- * @default true
802
- */
803
- referenceListDefaultOpen?: boolean | undefined;
804
- /**
805
- * Defines how activities are being grouped by (in the order of appearance in the array). Default to `['sender', 'status', 'part']` or `sender,status` in CSS.
806
- *
807
- * Values are key of result of `groupActivitiesMiddleware`. The default implementation of `groupActivitiesMiddleware` has `sender`, `status`, and `part`.
808
- *
809
- * To add new groupings, configure `groupActivitiesMiddleware` to output extra groups. Then, add the group names to `styleOptions.groupActivitiesBy`.
810
- */
811
- groupActivitiesBy?: readonly string[] | undefined;
812
- /**
813
- * Send box: maximum number of attachment item to preview as thumbnail before showing as text-only.
814
- * Send box: maximum height of the attachment bar.
815
- *
816
- * @default 114
817
- */
818
- sendBoxAttachmentBarMaxHeight?: number;
819
- /**
820
- * Send box: maximum number of attachment item to preview as thumbnail before showing as list item.
821
- *
822
- * @default 3
823
- */
824
- sendBoxAttachmentBarMaxThumbnail?: number;
825
- /**
826
- * Indicates if file upload should be disabled.
827
- *
828
- * @default false
829
- *
830
- * New in 4.19.0.
831
- */
832
- disableFileUpload?: boolean;
833
- /**
834
- * Controls microphone button visibility in Fluent theme send box.
835
- *
836
- * - `'auto'` - Show microphone button if the chat adapter supports voice (has voiceConfiguration capability)
837
- * - `'hide'` - Do not show microphone button regardless of adapter capabilities
838
- *
839
- * @default 'auto'
840
- */
841
- showMicrophoneButton?: 'auto' | 'hide';
842
- };
843
- type StrictStyleOptions = Required<Omit<StyleOptions, 'bubbleImageHeight' | 'bubbleMaxWidth' | 'bubbleMinWidth' | 'hideScrollToEndButton' | 'hideUploadButton' | 'newMessagesButtonFontSize'>> & {
844
- bubbleFromUserNubOffset: number;
845
- bubbleNubOffset: number;
846
- emojiSet: false | Record<string, string>;
847
- };
848
-
849
- export type { StyleOptions as S, StrictStyleOptions as a };