botframework-webchat-api 4.18.2 → 4.19.1-main.20260526.b9ad8fa

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 (924) hide show
  1. package/LICENSE +21 -0
  2. package/boot/deprecated/decorator.js +7 -0
  3. package/boot/deprecated/decorator.mjs +5 -0
  4. package/boot/deprecated/graph.js +7 -0
  5. package/boot/deprecated/graph.mjs +5 -0
  6. package/boot/deprecated/hook.js +7 -0
  7. package/boot/deprecated/hook.mjs +5 -0
  8. package/boot/deprecated/internal.js +7 -0
  9. package/boot/deprecated/internal.mjs +5 -0
  10. package/boot/deprecated/middleware.js +7 -0
  11. package/boot/deprecated/middleware.mjs +5 -0
  12. package/decorator.js +1 -1
  13. package/dist/StyleOptions-4TkRjGbQ.d.mts +802 -0
  14. package/dist/StyleOptions-4TkRjGbQ.d.ts +802 -0
  15. package/dist/_dtsroll-chunks/B1b7R2eH-avatarMiddleware-CHa011_j.d.ts +109 -0
  16. package/dist/_dtsroll-chunks/CEcj2Npa-botframework-webchat-redux-store.d.ts +16 -0
  17. package/dist/_dtsroll-chunks/DnThgHcF-botframework-webchat-api-middleware.d.ts +231 -0
  18. package/dist/_dtsroll-chunks/Dtb0H_Ee-handler-chain.d.ts +4 -0
  19. package/dist/_dtsroll-chunks/N-ttGLxs-botframework-webchat-base.utils.d.ts +4 -0
  20. package/dist/_dtsroll-chunks/qKTV3q17-avatarMiddleware-CHa011_j.d.ts +93 -0
  21. package/dist/botframework-webchat-api.d.mts +173 -1250
  22. package/dist/botframework-webchat-api.d.ts +387 -0
  23. package/dist/botframework-webchat-api.decorator.d.mts +71 -26
  24. package/dist/botframework-webchat-api.decorator.d.ts +81 -0
  25. package/dist/botframework-webchat-api.decorator.js +2 -0
  26. package/dist/botframework-webchat-api.decorator.js.map +1 -0
  27. package/dist/botframework-webchat-api.decorator.mjs +1 -2
  28. package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
  29. package/dist/botframework-webchat-api.graph.d.mts +5 -0
  30. package/dist/botframework-webchat-api.graph.d.ts +2 -0
  31. package/dist/botframework-webchat-api.graph.js +2 -0
  32. package/dist/botframework-webchat-api.graph.js.map +1 -0
  33. package/dist/botframework-webchat-api.graph.mjs +2 -0
  34. package/dist/botframework-webchat-api.hook.d.mts +9 -0
  35. package/dist/botframework-webchat-api.hook.d.ts +9 -0
  36. package/dist/botframework-webchat-api.hook.js +2 -0
  37. package/dist/botframework-webchat-api.hook.js.map +1 -0
  38. package/dist/botframework-webchat-api.hook.mjs +2 -0
  39. package/dist/botframework-webchat-api.hook.mjs.map +1 -0
  40. package/dist/botframework-webchat-api.internal.d.mts +66 -1
  41. package/dist/botframework-webchat-api.internal.d.ts +68 -0
  42. package/dist/botframework-webchat-api.internal.js +2 -0
  43. package/dist/botframework-webchat-api.internal.js.map +1 -0
  44. package/dist/botframework-webchat-api.internal.mjs +1 -2
  45. package/dist/botframework-webchat-api.internal.mjs.map +1 -1
  46. package/dist/botframework-webchat-api.js +2 -0
  47. package/dist/botframework-webchat-api.js.map +1 -0
  48. package/dist/botframework-webchat-api.middleware.d.mts +45 -0
  49. package/dist/botframework-webchat-api.middleware.d.ts +45 -0
  50. package/dist/botframework-webchat-api.middleware.js +2 -0
  51. package/dist/botframework-webchat-api.middleware.js.map +1 -0
  52. package/dist/botframework-webchat-api.middleware.mjs +2 -0
  53. package/dist/botframework-webchat-api.middleware.mjs.map +1 -0
  54. package/dist/botframework-webchat-api.mjs +1 -139
  55. package/dist/botframework-webchat-api.mjs.LEGAL.txt +2 -27
  56. package/dist/botframework-webchat-api.mjs.map +1 -1
  57. package/dist/chunk-3YCFZWVR.js +2 -0
  58. package/dist/chunk-3YCFZWVR.js.map +1 -0
  59. package/dist/chunk-42OUJPJV.js +2 -0
  60. package/dist/chunk-42OUJPJV.js.map +1 -0
  61. package/dist/chunk-5HALOM2E.mjs +2 -0
  62. package/dist/chunk-5HALOM2E.mjs.map +1 -0
  63. package/dist/chunk-5JETBPYY.mjs +2 -0
  64. package/dist/chunk-5JETBPYY.mjs.map +1 -0
  65. package/dist/chunk-5X4VJZOM.js +2 -0
  66. package/dist/chunk-5X4VJZOM.js.map +1 -0
  67. package/dist/chunk-62M3VAKR.js +2 -0
  68. package/dist/chunk-62M3VAKR.js.map +1 -0
  69. package/dist/chunk-7GV72C4W.js +2 -0
  70. package/dist/chunk-7GV72C4W.js.map +1 -0
  71. package/dist/chunk-A6GQOZT3.js +2 -0
  72. package/dist/chunk-A6GQOZT3.js.map +1 -0
  73. package/dist/chunk-BWPBSJNH.js +2 -0
  74. package/dist/chunk-BWPBSJNH.js.map +1 -0
  75. package/dist/chunk-CIL5QUZ4.js +2 -0
  76. package/dist/chunk-CIL5QUZ4.js.map +1 -0
  77. package/dist/chunk-EVD4K5QH.mjs +2 -0
  78. package/dist/chunk-EVD4K5QH.mjs.map +1 -0
  79. package/dist/chunk-FA2GLWPN.mjs +2 -0
  80. package/dist/chunk-FA2GLWPN.mjs.map +1 -0
  81. package/dist/chunk-FD7QXXVX.js +2 -0
  82. package/dist/chunk-FD7QXXVX.js.map +1 -0
  83. package/dist/chunk-G5ZR6XJL.js +2 -0
  84. package/dist/chunk-G5ZR6XJL.js.map +1 -0
  85. package/dist/chunk-JKWDQH6P.mjs +2 -0
  86. package/dist/chunk-JKWDQH6P.mjs.map +1 -0
  87. package/dist/chunk-L5VFUNB4.js +2 -0
  88. package/dist/chunk-L5VFUNB4.js.map +1 -0
  89. package/dist/chunk-LIZ64UIL.mjs +2 -0
  90. package/dist/chunk-LIZ64UIL.mjs.map +1 -0
  91. package/dist/chunk-LW6LHF6Z.mjs +2 -0
  92. package/dist/chunk-LW6LHF6Z.mjs.map +1 -0
  93. package/dist/chunk-MMNBOGJJ.mjs +2 -0
  94. package/dist/chunk-MMNBOGJJ.mjs.map +1 -0
  95. package/dist/chunk-RLEJOP6E.mjs +2 -0
  96. package/dist/chunk-RLEJOP6E.mjs.map +1 -0
  97. package/dist/chunk-UK6V7R7K.js +2 -0
  98. package/dist/chunk-UK6V7R7K.js.map +1 -0
  99. package/dist/{chunk-J6D5YEY6.mjs → chunk-VAX7AB37.mjs} +1 -2
  100. package/dist/chunk-VAX7AB37.mjs.map +1 -0
  101. package/dist/chunk-VNGDFILB.mjs +2 -0
  102. package/dist/chunk-VNGDFILB.mjs.map +1 -0
  103. package/dist/chunk-XVCIEKX5.mjs +2 -0
  104. package/dist/chunk-XVCIEKX5.mjs.map +1 -0
  105. package/dist/hook-BXcgekzo.d.mts +536 -0
  106. package/dist/hook-C8NHjp6P.d.ts +536 -0
  107. package/dist/metafile-cjs.json +1 -0
  108. package/dist/metafile-esm.json +1 -1
  109. package/dist/templateMiddleware-BEttHPJk.d.mts +20 -0
  110. package/dist/templateMiddleware-BEttHPJk.d.ts +20 -0
  111. package/dist/types-BKuj7f2p.d.ts +228 -0
  112. package/dist/types-BZzd7aAk.d.mts +228 -0
  113. package/graph.js +3 -0
  114. package/hook.js +3 -0
  115. package/internal.js +1 -1
  116. package/middleware.js +3 -0
  117. package/package.json +158 -90
  118. package/src/StyleOptions.ts +400 -285
  119. package/src/__tests__/addMetaTag.spec.js +9 -0
  120. package/src/__tests__/addMetaTag.spec.mjs +9 -0
  121. package/src/boot/decorator.ts +21 -0
  122. package/src/boot/graph.ts +1 -0
  123. package/src/boot/hook.ts +82 -0
  124. package/src/boot/internal.ts +7 -0
  125. package/src/boot/middleware.ts +60 -0
  126. package/src/buildInfo.ts +9 -0
  127. package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +57 -0
  128. package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +34 -0
  129. package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorRequestContext.ts +48 -0
  130. package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +43 -0
  131. package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +40 -0
  132. package/src/decorator/DecoratorComposer.tsx +51 -0
  133. package/src/decorator/internal/InternalDecoratorComposer.tsx +33 -0
  134. package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +19 -0
  135. package/src/decorator/private/DecoratorComposerContext.ts +16 -0
  136. package/src/decorator/private/PassthroughFallback.tsx +12 -0
  137. package/src/decorator/private/templateDecorator.tsx +113 -0
  138. package/src/decorator/types.ts +4 -0
  139. package/src/decorator/useDecoratorRequest.ts +15 -0
  140. package/src/defaultStyleOptions.ts +40 -23
  141. package/src/env.d.ts +9 -0
  142. package/src/errorBox/errorBoxTelemetryPolymiddleware.ts +53 -0
  143. package/src/hooks/Composer.tsx +204 -142
  144. package/src/hooks/index.ts +19 -2
  145. package/src/hooks/internal/Tracker.ts +1 -1
  146. package/src/hooks/internal/WebChatAPIContext.ts +7 -12
  147. package/src/hooks/internal/WebChatReduxContext.js +3 -2
  148. package/src/hooks/internal/usePostVoiceActivity.ts +18 -0
  149. package/src/hooks/internal/useRegisterVoiceHandler.ts +23 -0
  150. package/src/hooks/internal/useShouldShowMicrophoneButton.ts +22 -0
  151. package/src/hooks/internal/useVoiceHandlers.ts +11 -0
  152. package/src/hooks/internal/useVoiceStateWritable.ts +18 -0
  153. package/src/hooks/middleware/UserlandBoundary.js +2 -2
  154. package/src/hooks/middleware/activityFallbackPolymiddleware.ts +23 -0
  155. package/src/hooks/middleware/applyMiddleware.js +5 -5
  156. package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
  157. package/src/hooks/middleware/concatMiddleware.ts +7 -6
  158. package/src/hooks/private/reduceIterable.spec.ts +0 -2
  159. package/src/hooks/useActiveTyping.ts +3 -2
  160. package/src/hooks/useActivities.ts +62 -3
  161. package/src/hooks/useCreateActivityRenderer.ts +27 -6
  162. package/src/hooks/useCreateActivityStatusRenderer.tsx +13 -33
  163. package/src/hooks/useCreateAvatarRenderer.ts +19 -33
  164. package/src/hooks/useDebouncedNotifications.spec.js +1 -0
  165. package/src/hooks/useDisabled.ts +8 -2
  166. package/src/hooks/useLocalizer.ts +3 -3
  167. package/src/hooks/useRenderAttachment.ts +2 -2
  168. package/src/hooks/useSendBoxAttachments.ts +2 -0
  169. package/src/hooks/useSendFiles.ts +1 -1
  170. package/src/hooks/useSendTimeoutForActivity.ts +2 -0
  171. package/src/hooks/useStartVoice.ts +9 -0
  172. package/src/hooks/useStopVoice.ts +9 -0
  173. package/src/hooks/useStyleOptions.ts +1 -6
  174. package/src/hooks/useSuggestedActions.ts +9 -23
  175. package/src/hooks/useTrackEvent.ts +3 -3
  176. package/src/hooks/useUIState.ts +18 -0
  177. package/src/hooks/useVoiceRecordingMuted.ts +24 -0
  178. package/src/hooks/useVoiceState.ts +15 -0
  179. package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
  180. package/src/hooks/validation/uiState.ts +10 -0
  181. package/src/index.ts +52 -94
  182. package/src/legacy/LegacyActivityBridge.tsx +77 -0
  183. package/src/legacy/LegacyActivityBridgeContext.ts +23 -0
  184. package/src/legacy/createActivityPolymiddlewareFromLegacy.tsx +123 -0
  185. package/src/legacy/createAvatarPolymiddlewareFromLegacy.tsx +102 -0
  186. package/src/localization/ar-SA.json +134 -111
  187. package/src/localization/bg-BG.json +134 -111
  188. package/src/localization/ca-ES.json +134 -111
  189. package/src/localization/cs-CZ.json +134 -111
  190. package/src/localization/da-DK.json +134 -111
  191. package/src/localization/de-DE.json +134 -111
  192. package/src/localization/el-GR.json +134 -111
  193. package/src/localization/en-US.json +45 -19
  194. package/src/localization/es-ES.json +134 -111
  195. package/src/localization/et-EE.json +134 -111
  196. package/src/localization/eu-ES.json +134 -111
  197. package/src/localization/fi-FI.json +134 -111
  198. package/src/localization/fr-FR.json +134 -111
  199. package/src/localization/gl-ES.json +134 -111
  200. package/src/localization/he-IL.json +134 -111
  201. package/src/localization/hi-IN.json +134 -111
  202. package/src/localization/hr-HR.json +134 -111
  203. package/src/localization/hu-HU.json +134 -111
  204. package/src/localization/id-ID.json +134 -111
  205. package/src/localization/it-IT.json +134 -111
  206. package/src/localization/ja-JP.json +134 -111
  207. package/src/localization/kk-KZ.json +134 -111
  208. package/src/localization/ko-KR.json +134 -111
  209. package/src/localization/lt-LT.json +134 -111
  210. package/src/localization/lv-LV.json +134 -111
  211. package/src/localization/ms-MY.json +134 -111
  212. package/src/localization/nb-NO.json +134 -111
  213. package/src/localization/nl-NL.json +134 -111
  214. package/src/localization/pl-PL.json +134 -111
  215. package/src/localization/pt-BR.json +134 -111
  216. package/src/localization/pt-PT.json +134 -111
  217. package/src/localization/ro-RO.json +134 -111
  218. package/src/localization/ru-RU.json +134 -111
  219. package/src/localization/sk-SK.json +134 -111
  220. package/src/localization/sl-SI.json +134 -111
  221. package/src/localization/sr-Cyrl-CS.json +134 -111
  222. package/src/localization/sr-Latn-CS.json +134 -111
  223. package/src/localization/sv-SE.json +134 -111
  224. package/src/localization/th-TH.json +134 -111
  225. package/src/localization/tr-TR.json +134 -111
  226. package/src/localization/uk-UA.json +134 -111
  227. package/src/localization/vi-VN.json +134 -111
  228. package/src/localization/yue.json +5 -16
  229. package/src/localization/zh-CN.json +134 -111
  230. package/src/localization/zh-HK.json +134 -111
  231. package/src/localization/zh-TW.json +134 -111
  232. package/src/middleware/AvatarPolymiddlewareProxy.tsx +46 -0
  233. package/src/middleware/SendBoxMiddleware.ts +28 -0
  234. package/src/middleware/SendBoxToolbarMiddleware.ts +28 -0
  235. package/src/middleware/private/templateMiddleware.check.test.tsx +47 -0
  236. package/src/{decorator → middleware}/private/templateMiddleware.test.tsx +19 -17
  237. package/src/middleware/private/templateMiddleware.tsx +106 -0
  238. package/src/middleware/useBuildRenderAvatarCallback.ts +37 -0
  239. package/src/normalizeStyleOptions.ts +51 -76
  240. package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +197 -40
  241. package/src/providers/ActivityKeyer/private/someIterable.spec.ts +0 -2
  242. package/src/providers/ActivityListener/ActivityListenerComposer.tsx +1 -1
  243. package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +6 -3
  244. package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +145 -59
  245. package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +236 -0
  246. package/src/providers/ActivityTyping/private/useReduceActivities.ts +49 -0
  247. package/src/providers/Capabilities/CapabilitiesComposer.tsx +53 -0
  248. package/src/providers/Capabilities/private/Context.ts +13 -0
  249. package/src/providers/Capabilities/private/capabilityRegistry.ts +45 -0
  250. package/src/providers/Capabilities/private/fetchCapabilitiesFromAdapter.ts +59 -0
  251. package/src/providers/Capabilities/private/shallowEqual.ts +18 -0
  252. package/src/providers/Capabilities/private/useContext.ts +12 -0
  253. package/src/providers/Capabilities/types/Capabilities.ts +16 -0
  254. package/src/providers/Capabilities/useCapabilities.ts +25 -0
  255. package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +116 -0
  256. package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
  257. package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +113 -0
  258. package/src/providers/GroupActivities/private/isGroupingValid.ts +41 -0
  259. package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +6 -0
  260. package/src/providers/GroupActivities/useGroupActivities.ts +20 -0
  261. package/src/providers/GroupActivities/useGroupActivitiesByName.ts +17 -0
  262. package/src/providers/SpeechToSpeech/SpeechToSpeechComposer.tsx +20 -0
  263. package/src/providers/SpeechToSpeech/private/VoiceHandlerBridge.tsx +23 -0
  264. package/src/providers/SpeechToSpeech/private/VoiceRecorderBridge.tsx +49 -0
  265. package/src/providers/SpeechToSpeech/private/useAudioPlayer.spec.tsx +355 -0
  266. package/src/providers/SpeechToSpeech/private/useAudioPlayer.ts +92 -0
  267. package/src/providers/SpeechToSpeech/private/useRecorder.spec.tsx +344 -0
  268. package/src/providers/SpeechToSpeech/private/useRecorder.ts +220 -0
  269. package/src/providers/StyleOptions/StyleOptionsComposer.tsx +46 -0
  270. package/src/providers/StyleOptions/private/StyleOptionsContext.ts +20 -0
  271. package/src/providers/StyleOptions/private/rectifyStyleOptions.ts +6 -0
  272. package/src/providers/StyleOptions/useStyleOptions.ts +6 -0
  273. package/src/tsconfig.json +5 -14
  274. package/src/types/ActivityStatusMiddleware.ts +1 -9
  275. package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
  276. package/src/types/AvatarMiddleware.ts +12 -1
  277. package/src/types/CardActionMiddleware.ts +2 -0
  278. package/src/types/ComponentMiddleware.ts +1 -1
  279. package/src/types/GroupActivitiesMiddleware.ts +7 -11
  280. package/dist/botframework-webchat-api.decorator.mjs.LEGAL.txt +0 -0
  281. package/dist/botframework-webchat-api.internal.mjs.LEGAL.txt +0 -0
  282. package/dist/chunk-2S76JUVM.mjs +0 -3
  283. package/dist/chunk-2S76JUVM.mjs.LEGAL.txt +0 -0
  284. package/dist/chunk-2S76JUVM.mjs.map +0 -1
  285. package/dist/chunk-J6D5YEY6.mjs.LEGAL.txt +0 -0
  286. package/dist/chunk-ZAMHKQQC.mjs +0 -3
  287. package/dist/chunk-ZAMHKQQC.mjs.LEGAL.txt +0 -0
  288. package/dist/chunk-ZAMHKQQC.mjs.map +0 -1
  289. package/lib/StyleOptions.d.ts +0 -697
  290. package/lib/StyleOptions.d.ts.map +0 -1
  291. package/lib/StyleOptions.js +0 -2
  292. package/lib/decorator/index.d.ts +0 -5
  293. package/lib/decorator/index.d.ts.map +0 -1
  294. package/lib/decorator/index.js +0 -28
  295. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +0 -27
  296. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +0 -1
  297. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +0 -19
  298. package/lib/decorator/private/ActivityDecorator.d.ts +0 -9
  299. package/lib/decorator/private/ActivityDecorator.d.ts.map +0 -1
  300. package/lib/decorator/private/ActivityDecorator.js +0 -36
  301. package/lib/decorator/private/DecoratorComposer.d.ts +0 -3
  302. package/lib/decorator/private/DecoratorComposer.d.ts.map +0 -1
  303. package/lib/decorator/private/DecoratorComposer.js +0 -13
  304. package/lib/decorator/private/activityDecoratorRequest.d.ts +0 -6
  305. package/lib/decorator/private/activityDecoratorRequest.d.ts.map +0 -1
  306. package/lib/decorator/private/activityDecoratorRequest.js +0 -2
  307. package/lib/decorator/private/createDecoratorComposer.d.ts +0 -11
  308. package/lib/decorator/private/createDecoratorComposer.d.ts.map +0 -1
  309. package/lib/decorator/private/createDecoratorComposer.js +0 -27
  310. package/lib/decorator/private/templateMiddleware.d.ts +0 -30
  311. package/lib/decorator/private/templateMiddleware.d.ts.map +0 -1
  312. package/lib/decorator/private/templateMiddleware.js +0 -53
  313. package/lib/decorator/private/templateMiddleware.test.d.ts +0 -3
  314. package/lib/decorator/private/templateMiddleware.test.d.ts.map +0 -1
  315. package/lib/defaultStyleOptions.d.ts +0 -4
  316. package/lib/defaultStyleOptions.d.ts.map +0 -1
  317. package/lib/defaultStyleOptions.js +0 -277
  318. package/lib/external/PrecompiledGlobalize.js +0 -6361
  319. package/lib/hooks/Composer.d.ts +0 -88
  320. package/lib/hooks/Composer.d.ts.map +0 -1
  321. package/lib/hooks/Composer.js +0 -605
  322. package/lib/hooks/index.d.ts +0 -73
  323. package/lib/hooks/index.d.ts.map +0 -1
  324. package/lib/hooks/index.js +0 -504
  325. package/lib/hooks/internal/ErrorBox.js +0 -47
  326. package/lib/hooks/internal/SendBoxMiddleware.d.ts +0 -37
  327. package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +0 -1
  328. package/lib/hooks/internal/SendBoxMiddleware.js +0 -17
  329. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +0 -37
  330. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +0 -1
  331. package/lib/hooks/internal/SendBoxToolbarMiddleware.js +0 -17
  332. package/lib/hooks/internal/Tracker.d.ts +0 -4
  333. package/lib/hooks/internal/Tracker.d.ts.map +0 -1
  334. package/lib/hooks/internal/Tracker.js +0 -15
  335. package/lib/hooks/internal/WebChatAPIContext.d.ts +0 -80
  336. package/lib/hooks/internal/WebChatAPIContext.d.ts.map +0 -1
  337. package/lib/hooks/internal/WebChatAPIContext.js +0 -12
  338. package/lib/hooks/internal/WebChatReduxContext.js +0 -17
  339. package/lib/hooks/internal/defaultSelectVoice.js +0 -28
  340. package/lib/hooks/internal/private/templateMiddleware.d.ts +0 -3
  341. package/lib/hooks/internal/private/templateMiddleware.d.ts.map +0 -1
  342. package/lib/hooks/internal/private/templateMiddleware.js +0 -12
  343. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +0 -4
  344. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +0 -1
  345. package/lib/hooks/internal/useCreateActivityRendererInternal.js +0 -37
  346. package/lib/hooks/internal/useDebugDeps.js +0 -39
  347. package/lib/hooks/internal/useDirFromProps.js +0 -12
  348. package/lib/hooks/internal/useErrorBoxClass.js +0 -14
  349. package/lib/hooks/internal/useForceRender.js +0 -24
  350. package/lib/hooks/internal/useLocalizedGlobalize.js +0 -12
  351. package/lib/hooks/internal/useLocalizedStrings.js +0 -14
  352. package/lib/hooks/internal/useMarkActivity.js +0 -12
  353. package/lib/hooks/internal/usePrevious.d.ts +0 -3
  354. package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
  355. package/lib/hooks/internal/usePrevious.js +0 -15
  356. package/lib/hooks/internal/useReadTelemetryDimensions.js +0 -20
  357. package/lib/hooks/internal/useSetDictateState.d.ts +0 -2
  358. package/lib/hooks/internal/useSetDictateState.d.ts.map +0 -1
  359. package/lib/hooks/internal/useSetDictateState.js +0 -12
  360. package/lib/hooks/internal/useTimer.d.ts +0 -5
  361. package/lib/hooks/internal/useTimer.d.ts.map +0 -1
  362. package/lib/hooks/internal/useTimer.js +0 -43
  363. package/lib/hooks/internal/useTracker.js +0 -42
  364. package/lib/hooks/internal/useValueRef.d.ts +0 -3
  365. package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
  366. package/lib/hooks/internal/useValueRef.js +0 -22
  367. package/lib/hooks/internal/useWebChatAPIContext.d.ts +0 -83
  368. package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +0 -1
  369. package/lib/hooks/internal/useWebChatAPIContext.js +0 -17
  370. package/lib/hooks/middleware/UserlandBoundary.js +0 -48
  371. package/lib/hooks/middleware/applyMiddleware.js +0 -122
  372. package/lib/hooks/middleware/concatMiddleware.d.ts +0 -6
  373. package/lib/hooks/middleware/concatMiddleware.d.ts.map +0 -1
  374. package/lib/hooks/middleware/concatMiddleware.js +0 -33
  375. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +0 -3
  376. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +0 -1
  377. package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +0 -43
  378. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +0 -7
  379. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +0 -1
  380. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +0 -68
  381. package/lib/hooks/private/numberWithInfinity.d.ts +0 -3
  382. package/lib/hooks/private/numberWithInfinity.d.ts.map +0 -1
  383. package/lib/hooks/private/numberWithInfinity.js +0 -17
  384. package/lib/hooks/private/numberWithInfinity.spec.d.ts +0 -2
  385. package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +0 -1
  386. package/lib/hooks/private/reduceIterable.d.ts +0 -2
  387. package/lib/hooks/private/reduceIterable.d.ts.map +0 -1
  388. package/lib/hooks/private/reduceIterable.js +0 -26
  389. package/lib/hooks/private/reduceIterable.spec.d.ts +0 -2
  390. package/lib/hooks/private/reduceIterable.spec.d.ts.map +0 -1
  391. package/lib/hooks/useActiveTyping.d.ts +0 -4
  392. package/lib/hooks/useActiveTyping.d.ts.map +0 -1
  393. package/lib/hooks/useActiveTyping.js +0 -81
  394. package/lib/hooks/useActivities.d.ts +0 -3
  395. package/lib/hooks/useActivities.d.ts.map +0 -1
  396. package/lib/hooks/useActivities.js +0 -14
  397. package/lib/hooks/useActivityKeys.d.ts +0 -3
  398. package/lib/hooks/useActivityKeys.d.ts.map +0 -1
  399. package/lib/hooks/useActivityKeys.js +0 -11
  400. package/lib/hooks/useActivityKeysByRead.d.ts +0 -3
  401. package/lib/hooks/useActivityKeysByRead.d.ts.map +0 -1
  402. package/lib/hooks/useActivityKeysByRead.js +0 -11
  403. package/lib/hooks/useAvatarForBot.d.ts +0 -5
  404. package/lib/hooks/useAvatarForBot.d.ts.map +0 -1
  405. package/lib/hooks/useAvatarForBot.js +0 -26
  406. package/lib/hooks/useAvatarForUser.d.ts +0 -5
  407. package/lib/hooks/useAvatarForUser.d.ts.map +0 -1
  408. package/lib/hooks/useAvatarForUser.js +0 -26
  409. package/lib/hooks/useByteFormatter.d.ts +0 -2
  410. package/lib/hooks/useByteFormatter.d.ts.map +0 -1
  411. package/lib/hooks/useByteFormatter.js +0 -43
  412. package/lib/hooks/useConnectivityStatus.d.ts +0 -2
  413. package/lib/hooks/useConnectivityStatus.d.ts.map +0 -1
  414. package/lib/hooks/useConnectivityStatus.js +0 -14
  415. package/lib/hooks/useCreateActivityRenderer.d.ts +0 -3
  416. package/lib/hooks/useCreateActivityRenderer.d.ts.map +0 -1
  417. package/lib/hooks/useCreateActivityRenderer.js +0 -14
  418. package/lib/hooks/useCreateActivityStatusRenderer.d.ts +0 -10
  419. package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +0 -1
  420. package/lib/hooks/useCreateActivityStatusRenderer.js +0 -72
  421. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +0 -3
  422. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +0 -1
  423. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +0 -12
  424. package/lib/hooks/useCreateAvatarRenderer.d.ts +0 -6
  425. package/lib/hooks/useCreateAvatarRenderer.d.ts.map +0 -1
  426. package/lib/hooks/useCreateAvatarRenderer.js +0 -44
  427. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +0 -3
  428. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +0 -1
  429. package/lib/hooks/useCreateScrollToEndButtonRenderer.js +0 -12
  430. package/lib/hooks/useDateFormatter.d.ts +0 -2
  431. package/lib/hooks/useDateFormatter.d.ts.map +0 -1
  432. package/lib/hooks/useDateFormatter.js +0 -35
  433. package/lib/hooks/useDebouncedNotifications.d.ts +0 -13
  434. package/lib/hooks/useDebouncedNotifications.d.ts.map +0 -1
  435. package/lib/hooks/useDebouncedNotifications.js +0 -118
  436. package/lib/hooks/useDictateInterims.d.ts +0 -2
  437. package/lib/hooks/useDictateInterims.d.ts.map +0 -1
  438. package/lib/hooks/useDictateInterims.js +0 -16
  439. package/lib/hooks/useDictateState.d.ts +0 -2
  440. package/lib/hooks/useDictateState.d.ts.map +0 -1
  441. package/lib/hooks/useDictateState.js +0 -15
  442. package/lib/hooks/useDirection.d.ts +0 -2
  443. package/lib/hooks/useDirection.d.ts.map +0 -1
  444. package/lib/hooks/useDirection.js +0 -38
  445. package/lib/hooks/useDisabled.d.ts +0 -2
  446. package/lib/hooks/useDisabled.d.ts.map +0 -1
  447. package/lib/hooks/useDisabled.js +0 -12
  448. package/lib/hooks/useDismissNotification.d.ts +0 -2
  449. package/lib/hooks/useDismissNotification.d.ts.map +0 -1
  450. package/lib/hooks/useDismissNotification.js +0 -12
  451. package/lib/hooks/useEmitTypingIndicator.d.ts +0 -2
  452. package/lib/hooks/useEmitTypingIndicator.d.ts.map +0 -1
  453. package/lib/hooks/useEmitTypingIndicator.js +0 -12
  454. package/lib/hooks/useGetActivitiesByKey.d.ts +0 -3
  455. package/lib/hooks/useGetActivitiesByKey.d.ts.map +0 -1
  456. package/lib/hooks/useGetActivitiesByKey.js +0 -11
  457. package/lib/hooks/useGetActivityByKey.d.ts +0 -3
  458. package/lib/hooks/useGetActivityByKey.d.ts.map +0 -1
  459. package/lib/hooks/useGetActivityByKey.js +0 -11
  460. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +0 -3
  461. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
  462. package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +0 -11
  463. package/lib/hooks/useGetKeyByActivity.d.ts +0 -3
  464. package/lib/hooks/useGetKeyByActivity.d.ts.map +0 -1
  465. package/lib/hooks/useGetKeyByActivity.js +0 -11
  466. package/lib/hooks/useGetKeyByActivityId.d.ts +0 -3
  467. package/lib/hooks/useGetKeyByActivityId.d.ts.map +0 -1
  468. package/lib/hooks/useGetKeyByActivityId.js +0 -11
  469. package/lib/hooks/useGetSendTimeoutForActivity.d.ts +0 -5
  470. package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +0 -1
  471. package/lib/hooks/useGetSendTimeoutForActivity.js +0 -33
  472. package/lib/hooks/useGrammars.d.ts +0 -2
  473. package/lib/hooks/useGrammars.d.ts.map +0 -1
  474. package/lib/hooks/useGrammars.js +0 -12
  475. package/lib/hooks/useGroupActivities.d.ts +0 -8
  476. package/lib/hooks/useGroupActivities.d.ts.map +0 -1
  477. package/lib/hooks/useGroupActivities.js +0 -12
  478. package/lib/hooks/useGroupTimestamp.d.ts +0 -2
  479. package/lib/hooks/useGroupTimestamp.d.ts.map +0 -1
  480. package/lib/hooks/useGroupTimestamp.js +0 -21
  481. package/lib/hooks/useLanguage.d.ts +0 -2
  482. package/lib/hooks/useLanguage.d.ts.map +0 -1
  483. package/lib/hooks/useLanguage.js +0 -19
  484. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +0 -3
  485. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +0 -1
  486. package/lib/hooks/useLastAcknowledgedActivityKey.js +0 -11
  487. package/lib/hooks/useLastReadActivityKey.d.ts +0 -3
  488. package/lib/hooks/useLastReadActivityKey.d.ts.map +0 -1
  489. package/lib/hooks/useLastReadActivityKey.js +0 -11
  490. package/lib/hooks/useLocalizer.d.ts +0 -13
  491. package/lib/hooks/useLocalizer.d.ts.map +0 -1
  492. package/lib/hooks/useLocalizer.js +0 -75
  493. package/lib/hooks/useMarkActivityAsSpoken.d.ts +0 -3
  494. package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +0 -1
  495. package/lib/hooks/useMarkActivityAsSpoken.js +0 -16
  496. package/lib/hooks/useMarkActivityKeyAsRead.d.ts +0 -3
  497. package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +0 -1
  498. package/lib/hooks/useMarkActivityKeyAsRead.js +0 -11
  499. package/lib/hooks/useMarkAllAsAcknowledged.d.ts +0 -3
  500. package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +0 -1
  501. package/lib/hooks/useMarkAllAsAcknowledged.js +0 -11
  502. package/lib/hooks/useNotifications.d.ts +0 -3
  503. package/lib/hooks/useNotifications.d.ts.map +0 -1
  504. package/lib/hooks/useNotifications.js +0 -14
  505. package/lib/hooks/usePerformCardAction.d.ts +0 -3
  506. package/lib/hooks/usePerformCardAction.d.ts.map +0 -1
  507. package/lib/hooks/usePerformCardAction.js +0 -12
  508. package/lib/hooks/usePonyfill.d.ts +0 -3
  509. package/lib/hooks/usePonyfill.d.ts.map +0 -1
  510. package/lib/hooks/usePonyfill.js +0 -11
  511. package/lib/hooks/usePostActivity.d.ts +0 -3
  512. package/lib/hooks/usePostActivity.d.ts.map +0 -1
  513. package/lib/hooks/usePostActivity.js +0 -12
  514. package/lib/hooks/useReferenceGrammarID.d.ts +0 -2
  515. package/lib/hooks/useReferenceGrammarID.d.ts.map +0 -1
  516. package/lib/hooks/useReferenceGrammarID.js +0 -14
  517. package/lib/hooks/useRelativeTimeFormatter.d.ts +0 -2
  518. package/lib/hooks/useRelativeTimeFormatter.d.ts.map +0 -1
  519. package/lib/hooks/useRelativeTimeFormatter.js +0 -61
  520. package/lib/hooks/useRenderAttachment.d.ts +0 -3
  521. package/lib/hooks/useRenderAttachment.d.ts.map +0 -1
  522. package/lib/hooks/useRenderAttachment.js +0 -14
  523. package/lib/hooks/useRenderToast.d.ts +0 -3
  524. package/lib/hooks/useRenderToast.d.ts.map +0 -1
  525. package/lib/hooks/useRenderToast.js +0 -12
  526. package/lib/hooks/useRenderTypingIndicator.d.ts +0 -3
  527. package/lib/hooks/useRenderTypingIndicator.d.ts.map +0 -1
  528. package/lib/hooks/useRenderTypingIndicator.js +0 -12
  529. package/lib/hooks/useSendBoxAttachments.d.ts +0 -6
  530. package/lib/hooks/useSendBoxAttachments.d.ts.map +0 -1
  531. package/lib/hooks/useSendBoxAttachments.js +0 -23
  532. package/lib/hooks/useSendBoxValue.d.ts +0 -2
  533. package/lib/hooks/useSendBoxValue.d.ts.map +0 -1
  534. package/lib/hooks/useSendBoxValue.js +0 -16
  535. package/lib/hooks/useSendEvent.d.ts +0 -2
  536. package/lib/hooks/useSendEvent.d.ts.map +0 -1
  537. package/lib/hooks/useSendEvent.js +0 -12
  538. package/lib/hooks/useSendFiles.d.ts +0 -10
  539. package/lib/hooks/useSendFiles.d.ts.map +0 -1
  540. package/lib/hooks/useSendFiles.js +0 -35
  541. package/lib/hooks/useSendMessage.d.ts +0 -6
  542. package/lib/hooks/useSendMessage.d.ts.map +0 -1
  543. package/lib/hooks/useSendMessage.js +0 -33
  544. package/lib/hooks/useSendMessageBack.d.ts +0 -2
  545. package/lib/hooks/useSendMessageBack.d.ts.map +0 -1
  546. package/lib/hooks/useSendMessageBack.js +0 -12
  547. package/lib/hooks/useSendPostBack.d.ts +0 -2
  548. package/lib/hooks/useSendPostBack.d.ts.map +0 -1
  549. package/lib/hooks/useSendPostBack.js +0 -12
  550. package/lib/hooks/useSendStatusByActivityKey.d.ts +0 -22
  551. package/lib/hooks/useSendStatusByActivityKey.d.ts.map +0 -1
  552. package/lib/hooks/useSendStatusByActivityKey.js +0 -31
  553. package/lib/hooks/useSendTimeoutForActivity.d.ts +0 -4
  554. package/lib/hooks/useSendTimeoutForActivity.d.ts.map +0 -1
  555. package/lib/hooks/useSendTimeoutForActivity.js +0 -22
  556. package/lib/hooks/useSendTypingIndicator.d.ts +0 -2
  557. package/lib/hooks/useSendTypingIndicator.d.ts.map +0 -1
  558. package/lib/hooks/useSendTypingIndicator.js +0 -14
  559. package/lib/hooks/useSetNotification.d.ts +0 -3
  560. package/lib/hooks/useSetNotification.d.ts.map +0 -1
  561. package/lib/hooks/useSetNotification.js +0 -12
  562. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +0 -2
  563. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +0 -1
  564. package/lib/hooks/useShouldSpeakIncomingActivity.js +0 -22
  565. package/lib/hooks/useStartDictate.d.ts +0 -2
  566. package/lib/hooks/useStartDictate.d.ts.map +0 -1
  567. package/lib/hooks/useStartDictate.js +0 -12
  568. package/lib/hooks/useStopDictate.d.ts +0 -2
  569. package/lib/hooks/useStopDictate.d.ts.map +0 -1
  570. package/lib/hooks/useStopDictate.js +0 -12
  571. package/lib/hooks/useStyleOptions.d.ts +0 -3
  572. package/lib/hooks/useStyleOptions.d.ts.map +0 -1
  573. package/lib/hooks/useStyleOptions.js +0 -12
  574. package/lib/hooks/useSubmitSendBox.d.ts +0 -4
  575. package/lib/hooks/useSubmitSendBox.d.ts.map +0 -1
  576. package/lib/hooks/useSubmitSendBox.js +0 -49
  577. package/lib/hooks/useSuggestedActions.d.ts +0 -3
  578. package/lib/hooks/useSuggestedActions.d.ts.map +0 -1
  579. package/lib/hooks/useSuggestedActions.js +0 -25
  580. package/lib/hooks/useTimeoutForSend.d.ts +0 -3
  581. package/lib/hooks/useTimeoutForSend.d.ts.map +0 -1
  582. package/lib/hooks/useTimeoutForSend.js +0 -21
  583. package/lib/hooks/useTrackDimension.d.ts +0 -2
  584. package/lib/hooks/useTrackDimension.d.ts.map +0 -1
  585. package/lib/hooks/useTrackDimension.js +0 -14
  586. package/lib/hooks/useTrackEvent.d.ts +0 -10
  587. package/lib/hooks/useTrackEvent.d.ts.map +0 -1
  588. package/lib/hooks/useTrackEvent.js +0 -51
  589. package/lib/hooks/useTrackException.d.ts +0 -2
  590. package/lib/hooks/useTrackException.d.ts.map +0 -1
  591. package/lib/hooks/useTrackException.js +0 -31
  592. package/lib/hooks/useTrackTiming.d.ts +0 -2
  593. package/lib/hooks/useTrackTiming.d.ts.map +0 -1
  594. package/lib/hooks/useTrackTiming.js +0 -93
  595. package/lib/hooks/useUserID.d.ts +0 -2
  596. package/lib/hooks/useUserID.d.ts.map +0 -1
  597. package/lib/hooks/useUserID.js +0 -12
  598. package/lib/hooks/useUsername.d.ts +0 -2
  599. package/lib/hooks/useUsername.d.ts.map +0 -1
  600. package/lib/hooks/useUsername.js +0 -12
  601. package/lib/hooks/useVoiceSelector.d.ts +0 -2
  602. package/lib/hooks/useVoiceSelector.d.ts.map +0 -1
  603. package/lib/hooks/useVoiceSelector.js +0 -16
  604. package/lib/hooks/utils/ErrorBoundary.js +0 -68
  605. package/lib/hooks/utils/observableToPromise.d.ts +0 -3
  606. package/lib/hooks/utils/observableToPromise.d.ts.map +0 -1
  607. package/lib/hooks/utils/observableToPromise.js +0 -28
  608. package/lib/index.d.ts +0 -37
  609. package/lib/index.d.ts.map +0 -1
  610. package/lib/index.js +0 -88
  611. package/lib/internal.d.ts +0 -3
  612. package/lib/internal.d.ts.map +0 -1
  613. package/lib/internal.js +0 -14
  614. package/lib/localization/Localize.d.ts +0 -4
  615. package/lib/localization/Localize.d.ts.map +0 -1
  616. package/lib/localization/Localize.js +0 -50
  617. package/lib/localization/ar-EG.json +0 -42
  618. package/lib/localization/ar-JO.json +0 -45
  619. package/lib/localization/ar-SA.json +0 -112
  620. package/lib/localization/bg-BG.json +0 -112
  621. package/lib/localization/ca-ES.json +0 -112
  622. package/lib/localization/cs-CZ.json +0 -112
  623. package/lib/localization/da-DK.json +0 -112
  624. package/lib/localization/de-DE.json +0 -112
  625. package/lib/localization/el-GR.json +0 -112
  626. package/lib/localization/en-US.json +0 -183
  627. package/lib/localization/es-ES.json +0 -112
  628. package/lib/localization/et-EE.json +0 -112
  629. package/lib/localization/eu-ES.json +0 -112
  630. package/lib/localization/fi-FI.json +0 -112
  631. package/lib/localization/fr-FR.json +0 -112
  632. package/lib/localization/getAllLocalizedStrings.d.ts +0 -6
  633. package/lib/localization/getAllLocalizedStrings.d.ts.map +0 -1
  634. package/lib/localization/getAllLocalizedStrings.js +0 -117
  635. package/lib/localization/getRTLList.d.ts +0 -2
  636. package/lib/localization/getRTLList.d.ts.map +0 -1
  637. package/lib/localization/getRTLList.js +0 -46
  638. package/lib/localization/gl-ES.json +0 -112
  639. package/lib/localization/he-IL.json +0 -112
  640. package/lib/localization/hi-IN.json +0 -112
  641. package/lib/localization/hr-HR.json +0 -112
  642. package/lib/localization/hu-HU.json +0 -112
  643. package/lib/localization/id-ID.json +0 -112
  644. package/lib/localization/it-IT.json +0 -112
  645. package/lib/localization/ja-JP.json +0 -112
  646. package/lib/localization/kk-KZ.json +0 -112
  647. package/lib/localization/ko-KR.json +0 -112
  648. package/lib/localization/lt-LT.json +0 -112
  649. package/lib/localization/lv-LV.json +0 -112
  650. package/lib/localization/mergeLocalizedStrings.d.ts +0 -7
  651. package/lib/localization/mergeLocalizedStrings.d.ts.map +0 -1
  652. package/lib/localization/mergeLocalizedStrings.js +0 -49
  653. package/lib/localization/ms-MY.json +0 -112
  654. package/lib/localization/nb-NO.json +0 -112
  655. package/lib/localization/nl-NL.json +0 -112
  656. package/lib/localization/overrides.json +0 -257
  657. package/lib/localization/pl-PL.json +0 -112
  658. package/lib/localization/pt-BR.json +0 -112
  659. package/lib/localization/pt-PT.json +0 -112
  660. package/lib/localization/ro-RO.json +0 -112
  661. package/lib/localization/ru-RU.json +0 -112
  662. package/lib/localization/sk-SK.json +0 -112
  663. package/lib/localization/sl-SI.json +0 -112
  664. package/lib/localization/sl-SL.json +0 -3
  665. package/lib/localization/sr-Cyrl-CS.json +0 -112
  666. package/lib/localization/sr-Cyrl.json +0 -3
  667. package/lib/localization/sr-Latn-CS.json +0 -112
  668. package/lib/localization/sr-Latn.json +0 -3
  669. package/lib/localization/sv-SE.json +0 -112
  670. package/lib/localization/th-TH.json +0 -112
  671. package/lib/localization/tr-TR.json +0 -112
  672. package/lib/localization/uk-UA.json +0 -112
  673. package/lib/localization/vi-VN.json +0 -112
  674. package/lib/localization/yue.json +0 -115
  675. package/lib/localization/zh-CN.json +0 -112
  676. package/lib/localization/zh-HK.json +0 -112
  677. package/lib/localization/zh-TW.json +0 -112
  678. package/lib/normalizeStyleOptions.d.ts +0 -3
  679. package/lib/normalizeStyleOptions.d.ts.map +0 -1
  680. package/lib/normalizeStyleOptions.js +0 -147
  681. package/lib/patchStyleOptionsFromDeprecatedProps.js +0 -21
  682. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +0 -6
  683. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +0 -1
  684. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +0 -153
  685. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +0 -13
  686. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +0 -1
  687. package/lib/providers/ActivityAcknowledgement/private/Context.js +0 -14
  688. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +0 -3
  689. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +0 -1
  690. package/lib/providers/ActivityAcknowledgement/private/useContext.js +0 -18
  691. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +0 -5
  692. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +0 -1
  693. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +0 -15
  694. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +0 -2
  695. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
  696. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +0 -12
  697. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +0 -2
  698. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +0 -1
  699. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +0 -12
  700. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +0 -2
  701. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +0 -1
  702. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +0 -12
  703. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +0 -2
  704. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +0 -1
  705. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +0 -12
  706. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +0 -2
  707. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +0 -1
  708. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +0 -12
  709. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +0 -20
  710. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +0 -1
  711. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +0 -149
  712. package/lib/providers/ActivityKeyer/private/Context.d.ts +0 -13
  713. package/lib/providers/ActivityKeyer/private/Context.d.ts.map +0 -1
  714. package/lib/providers/ActivityKeyer/private/Context.js +0 -10
  715. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +0 -3
  716. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +0 -1
  717. package/lib/providers/ActivityKeyer/private/getActivityId.js +0 -10
  718. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +0 -3
  719. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +0 -1
  720. package/lib/providers/ActivityKeyer/private/getClientActivityId.js +0 -11
  721. package/lib/providers/ActivityKeyer/private/lastOf.d.ts +0 -2
  722. package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +0 -1
  723. package/lib/providers/ActivityKeyer/private/lastOf.js +0 -10
  724. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +0 -2
  725. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +0 -1
  726. package/lib/providers/ActivityKeyer/private/someIterable.d.ts +0 -2
  727. package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +0 -1
  728. package/lib/providers/ActivityKeyer/private/someIterable.js +0 -27
  729. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +0 -2
  730. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +0 -1
  731. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +0 -2
  732. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +0 -1
  733. package/lib/providers/ActivityKeyer/private/uniqueId.js +0 -15
  734. package/lib/providers/ActivityKeyer/private/useContext.d.ts +0 -3
  735. package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +0 -1
  736. package/lib/providers/ActivityKeyer/private/useContext.js +0 -18
  737. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +0 -2
  738. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +0 -1
  739. package/lib/providers/ActivityKeyer/useActivityKeys.js +0 -12
  740. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +0 -3
  741. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +0 -1
  742. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +0 -12
  743. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +0 -3
  744. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +0 -1
  745. package/lib/providers/ActivityKeyer/useGetActivityByKey.js +0 -12
  746. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +0 -3
  747. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +0 -1
  748. package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +0 -12
  749. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +0 -2
  750. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +0 -1
  751. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +0 -12
  752. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +0 -7
  753. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +0 -1
  754. package/lib/providers/ActivityListener/ActivityListenerComposer.js +0 -55
  755. package/lib/providers/ActivityListener/private/Context.d.ts +0 -8
  756. package/lib/providers/ActivityListener/private/Context.d.ts.map +0 -1
  757. package/lib/providers/ActivityListener/private/Context.js +0 -15
  758. package/lib/providers/ActivityListener/private/useContext.d.ts +0 -2
  759. package/lib/providers/ActivityListener/private/useContext.d.ts.map +0 -1
  760. package/lib/providers/ActivityListener/private/useContext.js +0 -13
  761. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +0 -3
  762. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +0 -1
  763. package/lib/providers/ActivityListener/useUpsertedActivities.js +0 -12
  764. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +0 -4
  765. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +0 -1
  766. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +0 -149
  767. package/lib/providers/ActivitySendStatus/private/Context.d.ts +0 -9
  768. package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +0 -1
  769. package/lib/providers/ActivitySendStatus/private/Context.js +0 -13
  770. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +0 -7
  771. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +0 -1
  772. package/lib/providers/ActivitySendStatus/private/isMapEqual.js +0 -55
  773. package/lib/providers/ActivitySendStatus/private/useContext.d.ts +0 -3
  774. package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +0 -1
  775. package/lib/providers/ActivitySendStatus/private/useContext.js +0 -18
  776. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +0 -22
  777. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +0 -1
  778. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +0 -31
  779. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +0 -3
  780. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +0 -1
  781. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +0 -71
  782. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +0 -9
  783. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +0 -1
  784. package/lib/providers/ActivityTyping/ActivityTypingComposer.js +0 -98
  785. package/lib/providers/ActivityTyping/private/Context.d.ts +0 -8
  786. package/lib/providers/ActivityTyping/private/Context.d.ts.map +0 -1
  787. package/lib/providers/ActivityTyping/private/Context.js +0 -15
  788. package/lib/providers/ActivityTyping/private/useContext.d.ts +0 -3
  789. package/lib/providers/ActivityTyping/private/useContext.d.ts.map +0 -1
  790. package/lib/providers/ActivityTyping/private/useContext.js +0 -13
  791. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +0 -3
  792. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +0 -1
  793. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +0 -22
  794. package/lib/providers/ActivityTyping/types/AllTyping.d.ts +0 -9
  795. package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +0 -1
  796. package/lib/providers/ActivityTyping/types/AllTyping.js +0 -2
  797. package/lib/providers/ActivityTyping/useAllTyping.d.ts +0 -3
  798. package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +0 -1
  799. package/lib/providers/ActivityTyping/useAllTyping.js +0 -12
  800. package/lib/providers/Ponyfill/PonyfillComposer.d.ts +0 -17
  801. package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +0 -1
  802. package/lib/providers/Ponyfill/PonyfillComposer.js +0 -87
  803. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +0 -8
  804. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +0 -1
  805. package/lib/providers/Ponyfill/private/PonyfillContext.js +0 -10
  806. package/lib/providers/Ponyfill/private/useContext.d.ts +0 -6
  807. package/lib/providers/Ponyfill/private/useContext.d.ts.map +0 -1
  808. package/lib/providers/Ponyfill/private/useContext.js +0 -17
  809. package/lib/providers/Ponyfill/usePonyfill.d.ts +0 -3
  810. package/lib/providers/Ponyfill/usePonyfill.d.ts.map +0 -1
  811. package/lib/providers/Ponyfill/usePonyfill.js +0 -12
  812. package/lib/tsconfig.json +0 -18
  813. package/lib/types/ActivityMiddleware.d.ts +0 -24
  814. package/lib/types/ActivityMiddleware.d.ts.map +0 -1
  815. package/lib/types/ActivityMiddleware.js +0 -2
  816. package/lib/types/ActivityStatusMiddleware.d.ts +0 -17
  817. package/lib/types/ActivityStatusMiddleware.d.ts.map +0 -1
  818. package/lib/types/ActivityStatusMiddleware.js +0 -2
  819. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +0 -14
  820. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +0 -1
  821. package/lib/types/AttachmentForScreenReaderMiddleware.js +0 -2
  822. package/lib/types/AttachmentMiddleware.d.ts +0 -12
  823. package/lib/types/AttachmentMiddleware.d.ts.map +0 -1
  824. package/lib/types/AttachmentMiddleware.js +0 -2
  825. package/lib/types/AvatarMiddleware.d.ts +0 -15
  826. package/lib/types/AvatarMiddleware.d.ts.map +0 -1
  827. package/lib/types/AvatarMiddleware.js +0 -2
  828. package/lib/types/CardActionMiddleware.d.ts +0 -19
  829. package/lib/types/CardActionMiddleware.d.ts.map +0 -1
  830. package/lib/types/CardActionMiddleware.js +0 -2
  831. package/lib/types/ComponentMiddleware.d.ts +0 -31
  832. package/lib/types/ComponentMiddleware.d.ts.map +0 -1
  833. package/lib/types/ComponentMiddleware.js +0 -2
  834. package/lib/types/ContextOf.d.ts +0 -4
  835. package/lib/types/ContextOf.d.ts.map +0 -1
  836. package/lib/types/ContextOf.js +0 -2
  837. package/lib/types/FunctionMiddleware.d.ts +0 -6
  838. package/lib/types/FunctionMiddleware.d.ts.map +0 -1
  839. package/lib/types/FunctionMiddleware.js +0 -2
  840. package/lib/types/GroupActivitiesMiddleware.d.ts +0 -22
  841. package/lib/types/GroupActivitiesMiddleware.d.ts.map +0 -1
  842. package/lib/types/GroupActivitiesMiddleware.js +0 -2
  843. package/lib/types/LocalizedStrings.d.ts +0 -5
  844. package/lib/types/LocalizedStrings.d.ts.map +0 -1
  845. package/lib/types/LocalizedStrings.js +0 -2
  846. package/lib/types/Notification.d.ts +0 -10
  847. package/lib/types/Notification.d.ts.map +0 -1
  848. package/lib/types/Notification.js +0 -2
  849. package/lib/types/PrecompiledGlobalize.d.ts +0 -13
  850. package/lib/types/PrecompiledGlobalize.d.ts.map +0 -1
  851. package/lib/types/PrecompiledGlobalize.js +0 -2
  852. package/lib/types/ScrollToEndButtonMiddleware.d.ts +0 -30
  853. package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +0 -1
  854. package/lib/types/ScrollToEndButtonMiddleware.js +0 -2
  855. package/lib/types/SendStatus.d.ts +0 -3
  856. package/lib/types/SendStatus.d.ts.map +0 -1
  857. package/lib/types/SendStatus.js +0 -2
  858. package/lib/types/TelemetryMeasurementEvent.d.ts +0 -31
  859. package/lib/types/TelemetryMeasurementEvent.d.ts.map +0 -1
  860. package/lib/types/TelemetryMeasurementEvent.js +0 -2
  861. package/lib/types/ToastMiddleware.d.ts +0 -11
  862. package/lib/types/ToastMiddleware.d.ts.map +0 -1
  863. package/lib/types/ToastMiddleware.js +0 -2
  864. package/lib/types/Typing.d.ts +0 -8
  865. package/lib/types/Typing.d.ts.map +0 -1
  866. package/lib/types/Typing.js +0 -2
  867. package/lib/types/TypingIndicatorMiddleware.d.ts +0 -17
  868. package/lib/types/TypingIndicatorMiddleware.d.ts.map +0 -1
  869. package/lib/types/TypingIndicatorMiddleware.js +0 -2
  870. package/lib/types/WebSpeechPonyfill.d.ts +0 -19
  871. package/lib/types/WebSpeechPonyfill.d.ts.map +0 -1
  872. package/lib/types/WebSpeechPonyfill.js +0 -2
  873. package/lib/types/WebSpeechPonyfillFactory.d.ts +0 -6
  874. package/lib/types/WebSpeechPonyfillFactory.d.ts.map +0 -1
  875. package/lib/types/WebSpeechPonyfillFactory.js +0 -2
  876. package/lib/utils/createCustomEvent.d.ts +0 -4
  877. package/lib/utils/createCustomEvent.d.ts.map +0 -1
  878. package/lib/utils/createCustomEvent.js +0 -34
  879. package/lib/utils/findLastIndex.d.ts +0 -2
  880. package/lib/utils/findLastIndex.d.ts.map +0 -1
  881. package/lib/utils/findLastIndex.js +0 -22
  882. package/lib/utils/findMin.d.ts +0 -7
  883. package/lib/utils/findMin.d.ts.map +0 -1
  884. package/lib/utils/findMin.js +0 -46
  885. package/lib/utils/freezeArray.d.ts +0 -8
  886. package/lib/utils/freezeArray.d.ts.map +0 -1
  887. package/lib/utils/freezeArray.js +0 -19
  888. package/lib/utils/isObject.js +0 -12
  889. package/lib/utils/mapMap.d.ts +0 -6
  890. package/lib/utils/mapMap.d.ts.map +0 -1
  891. package/lib/utils/mapMap.js +0 -27
  892. package/lib/utils/normalizeLanguage.d.ts +0 -2
  893. package/lib/utils/normalizeLanguage.d.ts.map +0 -1
  894. package/lib/utils/normalizeLanguage.js +0 -115
  895. package/lib/utils/randomId.d.ts +0 -2
  896. package/lib/utils/randomId.d.ts.map +0 -1
  897. package/lib/utils/randomId.js +0 -15
  898. package/lib/utils/warnOnce.d.ts +0 -2
  899. package/lib/utils/warnOnce.d.ts.map +0 -1
  900. package/lib/utils/warnOnce.js +0 -16
  901. package/src/decorator/index.ts +0 -4
  902. package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +0 -31
  903. package/src/decorator/private/ActivityDecorator.tsx +0 -31
  904. package/src/decorator/private/DecoratorComposer.tsx +0 -6
  905. package/src/decorator/private/activityDecoratorRequest.ts +0 -6
  906. package/src/decorator/private/createDecoratorComposer.tsx +0 -36
  907. package/src/decorator/private/templateMiddleware.ts +0 -58
  908. package/src/hooks/internal/ErrorBox.js +0 -34
  909. package/src/hooks/internal/SendBoxMiddleware.ts +0 -21
  910. package/src/hooks/internal/SendBoxToolbarMiddleware.ts +0 -21
  911. package/src/hooks/internal/private/templateMiddleware.ts +0 -4
  912. package/src/hooks/internal/useCreateActivityRendererInternal.ts +0 -46
  913. package/src/hooks/internal/useDebugDeps.js +0 -30
  914. package/src/hooks/internal/useErrorBoxClass.js +0 -7
  915. package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
  916. package/src/hooks/useGroupActivities.ts +0 -10
  917. package/src/internal.ts +0 -3
  918. package/src/patchStyleOptionsFromDeprecatedProps.js +0 -14
  919. package/src/providers/ActivityTyping/private/useMemoWithPrevious.ts +0 -17
  920. package/src/types/ActivityMiddleware.ts +0 -36
  921. package/src/types/AttachmentMiddleware.ts +0 -16
  922. package/src/utils/isObject.js +0 -5
  923. package/src/utils/warnOnce.ts +0 -10
  924. /package/dist/{chunk-J6D5YEY6.mjs.map → botframework-webchat-api.graph.mjs.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{createContext as e,useContext as o}from"react";var t=e(Object.freeze({hideTimestamp:!1,showCallout:!1}));function y(){return o(t)}var{Provider:a}=t;export{y as a,a as b};
2
+ //# sourceMappingURL=chunk-RLEJOP6E.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/legacy/LegacyActivityBridgeContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\ntype LegacyActivityContextType = {\n readonly hideTimestamp: boolean;\n readonly showCallout: boolean;\n};\n\nconst LegacyActivityContext = createContext<LegacyActivityContextType>(\n Object.freeze({\n hideTimestamp: false,\n showCallout: false\n })\n);\n\nfunction useLegacyActivityContext(): LegacyActivityContextType {\n return useContext(LegacyActivityContext);\n}\n\n// Exporting <Provider> individually so we can let people write to the context but not reading from it.\nconst { Provider: LegacyActivityContextProvider } = LegacyActivityContext;\n\nexport default LegacyActivityContext;\nexport { LegacyActivityContextProvider, useLegacyActivityContext, type LegacyActivityContextType };\n"],"mappings":"AAAA,OAAS,iBAAAA,EAAe,cAAAC,MAAkB,QAO1C,IAAMC,EAAwBF,EAC5B,OAAO,OAAO,CACZ,cAAe,GACf,YAAa,EACf,CAAC,CACH,EAEA,SAASG,GAAsD,CAC7D,OAAOF,EAAWC,CAAqB,CACzC,CAGA,GAAM,CAAE,SAAUE,CAA8B,EAAIF","names":["createContext","useContext","LegacyActivityContext","useLegacyActivityContext","LegacyActivityContextProvider"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkBWPBSJNHjs = require('./chunk-BWPBSJNH.js');var _chunkFD7QXXVXjs = require('./chunk-FD7QXXVX.js');var _chunkG5ZR6XJLjs = require('./chunk-G5ZR6XJL.js');var _chunkL5VFUNB4js = require('./chunk-L5VFUNB4.js');function m(...e){return r=>e.reduceRight((o,i)=>i(o),r)}var _valibot = require('valibot');var _react = require('react'); var _react2 = _interopRequireDefault(_react);function N(e){let{activity:r,hideTimestamp:o,render:i,renderActivityStatus:n,renderAvatar:t,showCallout:a}=_chunkG5ZR6XJLjs.b.call(void 0, M,e),{hideTimestamp:c,showCallout:d}=_chunkFD7QXXVXjs.a.call(void 0, ),p=_chunkBWPBSJNHjs.B.call(void 0, ),h=_chunkBWPBSJNHjs.ga.call(void 0, ),u=_chunkBWPBSJNHjs.E.call(void 0, ),b=_react.useMemo.call(void 0, ()=>p(Object.freeze({activity:r})),[r,p]),w=_react.useMemo.call(void 0, ()=>!!u&&u(Object.freeze({activity:r})),[r,u]),D=_react.useMemo.call(void 0, ()=>i(h,Object.freeze({hideTimestamp:typeof o=="undefined"?c:o,renderActivityStatus:typeof n=="undefined"?b:n,renderAvatar:typeof t=="undefined"?w:t,showCallout:typeof a=="undefined"?d:a})),[c,o,i,b,n,h,w,t,d,a]);return _react2.default.createElement(_react.Fragment,null,D)}N.displayName="LegacyActivityBridge";var I=_react.memo.call(void 0, N);var K=Symbol("OriginalLegacyMiddleware"),k=_valibot.custom.call(void 0, e=>_valibot.is.call(void 0, _valibot.object.call(void 0, {}),e)),M=_valibot.pipe.call(void 0, _valibot.object.call(void 0, {activity:k,children:_valibot.optional.call(void 0, _valibot.never.call(void 0, )),render:_valibot.custom.call(void 0, e=>_valibot.is.call(void 0, _valibot.function_.call(void 0, ),e)),hideTimestamp:_valibot.optional.call(void 0, _valibot.boolean.call(void 0, )),renderActivityStatus:_valibot.optional.call(void 0, _valibot.custom.call(void 0, e=>_valibot.is.call(void 0, _valibot.function_.call(void 0, ),e))),renderAvatar:_valibot.optional.call(void 0, _valibot.union.call(void 0, [_valibot.literal.call(void 0, !1),_valibot.custom.call(void 0, e=>_valibot.is.call(void 0, _valibot.function_.call(void 0, ),e))])),showCallout:_valibot.optional.call(void 0, _valibot.boolean.call(void 0, ))}),_valibot.readonly.call(void 0, )),we=_valibot.pipe.call(void 0, _valibot.object.call(void 0, {activity:k,children:_valibot.optional.call(void 0, _valibot.never.call(void 0, ))}),_valibot.readonly.call(void 0, ));function q(...e){let r=m(...e.map(i=>i())),o=_chunkL5VFUNB4js.s.call(void 0, i=>{let n=r(t=>{let a=i(t);return!!a&&(()=>a.render({}))});return t=>{let a=n(t);return a?_chunkL5VFUNB4js.t.call(void 0, I,{activity:t.activity,render:a}):void 0}});return Object.defineProperty(o,K,{configurable:!1,value:Object.freeze([...e]),writable:!1}),o}var Le=q;var Fe=_valibot.pipe.call(void 0, _valibot.object.call(void 0, {children:_valibot.optional.call(void 0, _valibot.never.call(void 0, )),renderFn:_valibot.custom.call(void 0, e=>_valibot.is.call(void 0, _valibot.function_.call(void 0, ),e))}),_valibot.readonly.call(void 0, ));function ne(e){let{renderFn:r}=e;return _react2.default.createElement(_react.Fragment,null,r())}var ie=_react.memo.call(void 0, ne);function ce(...e){let r=m(...e.map(o=>o()));return _chunkL5VFUNB4js.x.call(void 0, o=>{let i=r(({[_chunkL5VFUNB4js.n]:n})=>{if(!n)throw new Error("botframework-webchat: `avatarMiddleware` must pass the whole request object to downstreamers");let t=o(n);return!!t&&(()=>t.render({}))});return n=>{var p;let{[_chunkL5VFUNB4js.w]:t,activity:a}=n,c=i(Object.freeze({activity:a,fromUser:((p=a.from)==null?void 0:p.role)==="user",styleOptions:t,[_chunkL5VFUNB4js.n]:n}));if(!c)return;let d;return typeof c!="function"?(console.warn("botframework-webchat: avatarMiddleware should return a function to render the avatar, or return false if avatar should be hidden. Please refer to HOOKS.md for details."),d=Object.freeze({renderFn:()=>c})):d=Object.freeze({renderFn:c}),_chunkL5VFUNB4js.y.call(void 0, ie,d)}})}var Oe=ce;exports.a = Le; exports.b = Oe;
2
+ //# sourceMappingURL=chunk-UK6V7R7K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/api/dist/chunk-UK6V7R7K.js","../../../node_modules/handler-chain/src/composeEnhancer.ts","../src/legacy/createActivityPolymiddlewareFromLegacy.tsx","../src/legacy/LegacyActivityBridge.tsx","../src/legacy/createAvatarPolymiddlewareFromLegacy.tsx"],"names":["composeEnhancer","enhancers","fallbackHandler","chain","enhancer","LegacyActivityBridge","props","activity","hideTimestampFromProps","render","renderActivityStatusFromProps","renderAvatarFromProps","showCalloutFromProps","o","legacyActivityBridgeComponentPropsSchema","hideTimestamp","showCallout","useLegacyActivityContext","createActivityStatusRenderer","useCreateActivityStatusRenderer","renderAttachment","useRenderAttachment","renderAvatarRaw","useCreateAvatarRenderer","renderActivityStatus","useMemo","renderAvatar","children","React","Fragment","LegacyActivityBridge_default","memo","DEBUG_ORIGINAL_LEGACY_MIDDLEWARE_SYMBOL","webChatActivitySchema","custom","value","is","object","pipe","optional","never","function_","boolean","union","literal","readonly","fallbackComponentPropsSchema","createActivityPolymiddlewareFromLegacy","middleware","legacyEnhancer","polymiddleware","Qt","next","legacyHandler","request","handler","legacyResult","eo","createActivityPolymiddlewareFromLegacy_default","legacyAvatarBridgeComponentPropsSchema","LegacyAvatarBridge","renderFn","MemoizedLegacyAvatarBridge","createAvatarPolymiddlewareFromLegacy","middlewares","ja","e","originalRequest","_a","fe","styleOptions","Sa","createAvatarPolymiddlewareFromLegacy_default"],"mappings":"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","file":"/__w/1/s/BotFramework-WebChat/packages/api/dist/chunk-UK6V7R7K.js","sourcesContent":[null,"import { type Enhancer, type Handler } from './types.ts';\n\nexport default function composeEnhancer<Result, Request>(\n ...enhancers: Enhancer<Result, Request>[]\n): Enhancer<Result, Request> {\n return (fallbackHandler: Handler<Result, Request>): Handler<Result, Request> =>\n enhancers.reduceRight((chain, enhancer) => enhancer(chain), fallbackHandler);\n}\n","import {\n activityComponent,\n createActivityPolymiddleware,\n type ActivityPolymiddleware\n} from '@msinternal/botframework-webchat-api-middleware';\nimport {\n type LegacyActivityMiddleware,\n type LegacyRenderAttachment\n} from '@msinternal/botframework-webchat-api-middleware/legacy';\nimport { type WebChatActivity } from 'botframework-webchat-core';\nimport { composeEnhancer } from 'handler-chain';\nimport { type ReactNode } from 'react';\nimport {\n boolean,\n custom,\n function_,\n is,\n literal,\n never,\n object,\n optional,\n pipe,\n readonly,\n union,\n type InferInput\n} from 'valibot';\n\nimport LegacyActivityBridge from './LegacyActivityBridge';\n\nconst DEBUG_ORIGINAL_LEGACY_MIDDLEWARE_SYMBOL = Symbol('OriginalLegacyMiddleware');\nconst webChatActivitySchema = custom<WebChatActivity>(value => is(object({}), value));\n\ntype LegacyRenderFunction = (\n renderAttachment: LegacyRenderAttachment,\n options: {\n readonly hideTimestamp: boolean;\n readonly renderActivityStatus: (options: { hideTimestamp: boolean }) => ReactNode;\n readonly renderAvatar: false | (() => Exclude<ReactNode, boolean | null | undefined>);\n readonly showCallout: boolean;\n }\n) => Exclude<ReactNode, boolean>;\n\nconst legacyActivityBridgeComponentPropsSchema = pipe(\n object({\n activity: webChatActivitySchema,\n children: optional(never()),\n render: custom<LegacyRenderFunction>(value => is(function_(), value)),\n\n // The following extraneous props should be removed once `useCreateActivityRenderer()` is removed.\n hideTimestamp: optional(boolean()),\n renderActivityStatus: optional(\n custom<(options: { hideTimestamp: boolean }) => ReactNode>(value => is(function_(), value))\n ),\n renderAvatar: optional(\n union([\n literal(false),\n custom<() => Exclude<ReactNode, boolean | null | undefined>>(value => is(function_(), value))\n ])\n ),\n showCallout: optional(boolean())\n }),\n readonly()\n);\n\ntype LegacyActivityBridgeComponentProps = Readonly<\n InferInput<typeof legacyActivityBridgeComponentPropsSchema> & { children?: never }\n>;\n\nconst fallbackComponentPropsSchema = pipe(\n object({\n activity: webChatActivitySchema,\n children: optional(never())\n }),\n readonly()\n);\n\ntype FallbackComponentProps = Readonly<InferInput<typeof fallbackComponentPropsSchema> & { children?: never }>;\n\n/**\n * Polyfill legacy activity middleware into a polymiddleware.\n *\n * @deprecated Legacy activity middleware is being deprecated and will be removed on or after 2027-08-16.\n * @param middleware An array of legacy activity middleware.\n * @returns A polymiddleware composed by legacy activity middleware.\n */\nfunction createActivityPolymiddlewareFromLegacy(\n ...middleware: readonly LegacyActivityMiddleware[]\n): ActivityPolymiddleware {\n const legacyEnhancer = composeEnhancer(...middleware.map(middleware => middleware()));\n\n const polymiddleware = createActivityPolymiddleware(next => {\n const legacyHandler = legacyEnhancer(request => {\n const handler = next(request);\n\n return !!handler && (() => handler.render({}));\n });\n\n return request => {\n const legacyResult = legacyHandler(request);\n\n return legacyResult\n ? activityComponent(LegacyActivityBridge, { activity: request.activity, render: legacyResult })\n : undefined;\n };\n });\n\n Object.defineProperty(polymiddleware, DEBUG_ORIGINAL_LEGACY_MIDDLEWARE_SYMBOL, {\n configurable: false,\n value: Object.freeze([...middleware]),\n writable: false\n });\n\n return polymiddleware;\n}\n\nexport default createActivityPolymiddlewareFromLegacy;\n\nexport {\n fallbackComponentPropsSchema,\n legacyActivityBridgeComponentPropsSchema,\n type FallbackComponentProps,\n type LegacyActivityBridgeComponentProps\n};\n","import { validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport React, { Fragment, memo, useMemo } from 'react';\n\nimport useCreateActivityStatusRenderer from '../hooks/useCreateActivityStatusRenderer';\nimport useCreateAvatarRenderer from '../hooks/useCreateAvatarRenderer';\nimport useRenderAttachment from '../hooks/useRenderAttachment';\nimport { useLegacyActivityContext } from './LegacyActivityBridgeContext';\nimport {\n legacyActivityBridgeComponentPropsSchema,\n type LegacyActivityBridgeComponentProps\n} from './createActivityPolymiddlewareFromLegacy';\n\n/**\n * This component is solely for `createActivityPolymiddlewareFromLegacy`.\n *\n * @param props Legacy activity middleware props, includes `hideTimestamp`, `renderActivityStatus`, `renderAvatar`, and `showCallout`.\n * @returns An activity node rendered using the `props.render()` of type `LegacyRenderFunction`.\n */\nfunction LegacyActivityBridge(props: LegacyActivityBridgeComponentProps) {\n const {\n activity,\n hideTimestamp: hideTimestampFromProps,\n render,\n renderActivityStatus: renderActivityStatusFromProps,\n renderAvatar: renderAvatarFromProps,\n showCallout: showCalloutFromProps\n } = validateProps(legacyActivityBridgeComponentPropsSchema, props);\n\n // These props are only available when the activity is being rendered through <BasicTranscript>.\n // Otherwise, they will be false/undefined.\n const { hideTimestamp, showCallout } = useLegacyActivityContext();\n\n const createActivityStatusRenderer = useCreateActivityStatusRenderer();\n const renderAttachment = useRenderAttachment();\n const renderAvatarRaw = useCreateAvatarRenderer();\n\n const renderActivityStatus = useMemo(\n () => createActivityStatusRenderer(Object.freeze({ activity })),\n [activity, createActivityStatusRenderer]\n );\n const renderAvatar = useMemo(\n () => !!renderAvatarRaw && renderAvatarRaw(Object.freeze({ activity })),\n [activity, renderAvatarRaw]\n );\n\n const children = useMemo(\n () =>\n render(\n renderAttachment,\n Object.freeze({\n hideTimestamp: typeof hideTimestampFromProps === 'undefined' ? hideTimestamp : hideTimestampFromProps,\n renderActivityStatus:\n typeof renderActivityStatusFromProps === 'undefined' ? renderActivityStatus : renderActivityStatusFromProps,\n renderAvatar: typeof renderAvatarFromProps === 'undefined' ? renderAvatar : renderAvatarFromProps,\n showCallout: typeof showCalloutFromProps === 'undefined' ? showCallout : showCalloutFromProps\n })\n ),\n [\n hideTimestamp,\n hideTimestampFromProps,\n render,\n renderActivityStatus,\n renderActivityStatusFromProps,\n renderAttachment,\n renderAvatar,\n renderAvatarFromProps,\n showCallout,\n showCalloutFromProps\n ]\n );\n\n return <Fragment>{children}</Fragment>;\n}\n\nLegacyActivityBridge.displayName = 'LegacyActivityBridge';\n\nexport default memo(LegacyActivityBridge);\n","import {\n __INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol,\n __INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol,\n avatarComponent,\n createAvatarPolymiddleware,\n type AvatarPolymiddleware\n} from '@msinternal/botframework-webchat-api-middleware';\nimport { type LegacyAvatarMiddleware } from '@msinternal/botframework-webchat-api-middleware/legacy';\nimport { composeEnhancer } from 'handler-chain';\nimport React, { Fragment, memo, type ReactNode } from 'react';\nimport { custom, function_, is, never, object, optional, pipe, readonly, type InferInput } from 'valibot';\n\ntype LegacyAvatarRenderFunction = () => Exclude<ReactNode, boolean | null | undefined>;\n\nconst legacyAvatarBridgeComponentPropsSchema = pipe(\n object({\n children: optional(never()),\n renderFn: custom<LegacyAvatarRenderFunction>(value => is(function_(), value))\n }),\n readonly()\n);\n\ntype LegacyAvatarBridgeComponentProps = Readonly<\n InferInput<typeof legacyAvatarBridgeComponentPropsSchema> & { children?: never }\n>;\n\n/**\n * Bridge component for the legacy avatar middleware.\n * Renders the result of the legacy render function.\n */\nfunction LegacyAvatarBridge(props: LegacyAvatarBridgeComponentProps) {\n const { renderFn } = props;\n\n return <Fragment>{renderFn()}</Fragment>;\n}\n\nconst MemoizedLegacyAvatarBridge = memo(LegacyAvatarBridge);\n\n/**\n * Polyfill legacy avatar middleware into a polymiddleware.\n *\n * @deprecated Use `polymiddleware` instead. Legacy avatar middleware is being deprecated and will be removed on or after 2028-03-16.\n * @param middleware An array of legacy avatar middleware.\n * @returns A polymiddleware composed by legacy avatar middleware.\n */\nfunction createAvatarPolymiddlewareFromLegacy(...middlewares: readonly LegacyAvatarMiddleware[]): AvatarPolymiddleware {\n const legacyEnhancer = composeEnhancer(...middlewares.map(middleware => middleware()));\n\n return createAvatarPolymiddleware(next => {\n const legacyHandler = legacyEnhancer(\n ({ [__INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol]: originalRequest }) => {\n if (!originalRequest) {\n // TODO: Add a test\n throw new Error(\n 'botframework-webchat: `avatarMiddleware` must pass the whole request object to downstreamers'\n );\n }\n\n // Pass styleOptions through the polymiddleware chain via the internal runtime extension\n // so downstream handlers (e.g. core middleware) can still read it.\n const handler = next(originalRequest);\n\n return !!handler && ((): Exclude<ReactNode, boolean | null | undefined> => handler.render({}));\n }\n );\n\n return request => {\n const { [__INTERNAL_DO_NOT_USE__avatarPolymiddlewareRequestStyleOptionsSymbol]: styleOptions, activity } =\n request;\n\n const legacyResult = legacyHandler(\n Object.freeze({\n activity,\n fromUser: activity.from?.role === 'user',\n styleOptions,\n [__INTERNAL_DO_NOT_USE__legacyAvatarMiddlewareOriginalRequestSymbol]: request\n })\n );\n\n if (!legacyResult) {\n return;\n }\n\n let props: LegacyAvatarBridgeComponentProps;\n\n if (typeof legacyResult !== 'function') {\n console.warn(\n 'botframework-webchat: avatarMiddleware should return a function to render the avatar, or return false if avatar should be hidden. Please refer to HOOKS.md for details.'\n );\n\n props = Object.freeze({ renderFn: () => legacyResult });\n } else {\n props = Object.freeze({ renderFn: legacyResult });\n }\n\n return avatarComponent(MemoizedLegacyAvatarBridge, props);\n };\n });\n}\n\nexport default createAvatarPolymiddlewareFromLegacy;\nexport { legacyAvatarBridgeComponentPropsSchema, type LegacyAvatarBridgeComponentProps };\n"]}
@@ -1,3 +1,2 @@
1
1
  var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),n=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},l=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
2
- /*! For license information please see chunk-J6D5YEY6.mjs.LEGAL.txt */
3
- //# sourceMappingURL=chunk-J6D5YEY6.mjs.map
2
+ //# sourceMappingURL=chunk-VAX7AB37.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ import{createContext as p}from"react";var m=p(Object.freeze({middleware:Object.freeze([])})),r=m;import l,{memo as i,useContext as s,useMemo as n}from"react";var C=Object.freeze([]);function x({children:d,middleware:e=C,priority:t}){let o=s(r),a=n(()=>Object.freeze(t==="low"?[...o.middleware,...e]:[...e,...o.middleware]),[o,e,t]),c=n(()=>({middleware:a}),[a]);return l.createElement(r.Provider,{value:c},d)}var u=i(x);export{r as a,u as b};
2
+ //# sourceMappingURL=chunk-VNGDFILB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/decorator/private/DecoratorComposerContext.ts","../src/decorator/internal/InternalDecoratorComposer.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nimport { type DecoratorMiddleware } from '../types';\n\ntype DecoratorComposerContextType = Readonly<{\n middleware: readonly DecoratorMiddleware[];\n}>;\n\nconst DecoratorComposerContext = createContext<DecoratorComposerContextType>(\n Object.freeze({\n middleware: Object.freeze([])\n })\n);\n\nexport default DecoratorComposerContext;\nexport { type DecoratorComposerContextType };\n","import React, { memo, useContext, useMemo, type ReactNode } from 'react';\nimport DecoratorComposerContext from '../private/DecoratorComposerContext';\nimport { type DecoratorMiddleware } from '../types';\n\ntype InternalDecoratorComposerProps = Readonly<{\n children?: ReactNode | undefined;\n middleware: readonly DecoratorMiddleware[];\n priority: 'low' | 'normal';\n}>;\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\nfunction InternalDecoratorComposer({\n children,\n middleware: middlewareFromProps = EMPTY_ARRAY,\n priority\n}: InternalDecoratorComposerProps) {\n const existingContext = useContext(DecoratorComposerContext);\n const middleware = useMemo(\n () =>\n priority === 'low'\n ? Object.freeze([...existingContext.middleware, ...middlewareFromProps])\n : Object.freeze([...middlewareFromProps, ...existingContext.middleware]),\n [existingContext, middlewareFromProps, priority]\n );\n\n const context = useMemo(() => ({ middleware }), [middleware]);\n\n return <DecoratorComposerContext.Provider value={context}>{children}</DecoratorComposerContext.Provider>;\n}\n\nexport default memo(InternalDecoratorComposer);\nexport { type InternalDecoratorComposerProps };\n"],"mappings":"AAAA,OAAS,iBAAAA,MAAqB,QAQ9B,IAAMC,EAA2BD,EAC/B,OAAO,OAAO,CACZ,WAAY,OAAO,OAAO,CAAC,CAAC,CAC9B,CAAC,CACH,EAEOE,EAAQD,ECdf,OAAOE,GAAS,QAAAC,EAAM,cAAAC,EAAY,WAAAC,MAA+B,QAUjE,IAAMC,EAAc,OAAO,OAAO,CAAC,CAAC,EAEpC,SAASC,EAA0B,CACjC,SAAAC,EACA,WAAYC,EAAsBH,EAClC,SAAAI,CACF,EAAmC,CACjC,IAAMC,EAAkBC,EAAWC,CAAwB,EACrDC,EAAaC,EACjB,IAEM,OAAO,OADXL,IAAa,MACK,CAAC,GAAGC,EAAgB,WAAY,GAAGF,CAAmB,EACtD,CAAC,GAAGA,EAAqB,GAAGE,EAAgB,UAAU,CADC,EAE3E,CAACA,EAAiBF,EAAqBC,CAAQ,CACjD,EAEMM,EAAUD,EAAQ,KAAO,CAAE,WAAAD,CAAW,GAAI,CAACA,CAAU,CAAC,EAE5D,OAAOG,EAAA,cAACJ,EAAyB,SAAzB,CAAkC,MAAOG,GAAUR,CAAS,CACtE,CAEA,IAAOU,EAAQC,EAAKZ,CAAyB","names":["createContext","DecoratorComposerContext","DecoratorComposerContext_default","React","memo","useContext","useMemo","EMPTY_ARRAY","InternalDecoratorComposer","children","middlewareFromProps","priority","existingContext","useContext","DecoratorComposerContext_default","middleware","useMemo","context","React","InternalDecoratorComposer_default","memo"]}
@@ -0,0 +1,2 @@
1
+ import{a as y,b as m}from"./chunk-JKWDQH6P.mjs";import{b as p,e as r,f as s,g as n,h as c,i as l}from"./chunk-LIZ64UIL.mjs";function S(){let[{showMicrophoneButton:t}]=c(),o=p(e=>e.voiceConfiguration);return t==="hide"?!1:!!o}import{postVoiceActivity as C}from"botframework-webchat-core";import{useCallback as d}from"react";function h(){let t=l();return d(o=>{t(C(o))},[t])}import v,{memo as b,useMemo as x}from"react";import{custom as P,is as A,object as a,optional as f,pipe as j,readonly as I}from"valibot";var z=j(a({children:f(y()),styleOptions:f(P(t=>A(a({}),t)))}),I());function u(t){let{children:o,styleOptions:e}=m(z,t),{styleOptionsState:[i]}=s(),O=x(()=>Object.freeze({styleOptionsState:Object.freeze([Object.freeze(r({...i,...e}))])}),[i,e]);return v.createElement(n.Provider,{value:O},o)}u.displayName="StyleOptionsComposer";var F=b(u);export{S as a,h as b,F as c};
2
+ //# sourceMappingURL=chunk-XVCIEKX5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/internal/useShouldShowMicrophoneButton.ts","../src/hooks/internal/usePostVoiceActivity.ts","../src/providers/StyleOptions/StyleOptionsComposer.tsx"],"sourcesContent":["import useStyleOptions from '../useStyleOptions';\nimport useCapabilities from '../../providers/Capabilities/useCapabilities';\n\n/**\n * Internal hook to determine if the microphone button should be shown based on:\n * - `showMicrophoneButton` style option ('auto' | 'hide')\n * - Adapter voice capability (voiceConfiguration)\n *\n * - 'auto': Show if adapter has voiceConfiguration capability, hide otherwise\n * - 'hide': Never show\n */\nexport default function useShouldShowMicrophoneButton(): boolean {\n const [{ showMicrophoneButton }] = useStyleOptions();\n // If adapter has voice capability, voiceConfiguration will be defined,\n const voiceConfiguration = useCapabilities(caps => caps.voiceConfiguration);\n\n if (showMicrophoneButton === 'hide') {\n return false;\n }\n\n return !!voiceConfiguration;\n}\n","import { postVoiceActivity, type WebChatActivity } from 'botframework-webchat-core';\nimport { useCallback } from 'react';\nimport { useDispatch } from './WebChatReduxContext';\n\n/**\n * Hook to post voice activities (fire-and-forget, no echo back).\n * Use this for DTMF and other voice-related event activities.\n */\nexport default function usePostVoiceActivity(): (activity: WebChatActivity) => void {\n const dispatch = useDispatch();\n\n return useCallback(\n (activity: WebChatActivity) => {\n dispatch(postVoiceActivity(activity));\n },\n [dispatch]\n );\n}\n","import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport React, { memo, useMemo } from 'react';\nimport { custom, is, object, optional, pipe, readonly, type InferInput } from 'valibot';\n\nimport { type StyleOptions } from '../../StyleOptions';\nimport StyleOptionsContext, { StyleOptionsContextType, useStyleOptionsContext } from './private/StyleOptionsContext';\nimport rectifyStyleOptions from './private/rectifyStyleOptions';\n\nconst styleOptionsComposerPropsSchema = pipe(\n object({\n children: optional(reactNode()),\n styleOptions: optional(custom<StyleOptions>(value => is(object({}), value)))\n }),\n readonly()\n);\n\ntype StyleOptionsComposerProps = InferInput<typeof styleOptionsComposerPropsSchema>;\n\nfunction StyleOptionsComposer(props: StyleOptionsComposerProps) {\n const { children, styleOptions } = validateProps(styleOptionsComposerPropsSchema, props);\n\n const {\n styleOptionsState: [currentStyleOptionsState]\n } = useStyleOptionsContext();\n\n const context = useMemo<Readonly<StyleOptionsContextType>>(\n () =>\n Object.freeze({\n styleOptionsState: Object.freeze([\n Object.freeze(\n rectifyStyleOptions({\n ...currentStyleOptionsState,\n ...styleOptions\n })\n )\n ] as const)\n }),\n [currentStyleOptionsState, styleOptions]\n );\n\n return <StyleOptionsContext.Provider value={context}>{children}</StyleOptionsContext.Provider>;\n}\n\nStyleOptionsComposer.displayName = 'StyleOptionsComposer';\n\nexport default memo(StyleOptionsComposer);\n"],"mappings":"4HAWe,SAARA,GAA0D,CAC/D,GAAM,CAAC,CAAE,qBAAAC,CAAqB,CAAC,EAAIC,EAAgB,EAE7CC,EAAqBC,EAAgBC,GAAQA,EAAK,kBAAkB,EAE1E,OAAIJ,IAAyB,OACpB,GAGF,CAAC,CAACE,CACX,CCrBA,OAAS,qBAAAG,MAA+C,4BACxD,OAAS,eAAAC,MAAmB,QAOb,SAARC,GAA6E,CAClF,IAAMC,EAAWC,EAAY,EAE7B,OAAOC,EACJC,GAA8B,CAC7BH,EAASI,EAAkBD,CAAQ,CAAC,CACtC,EACA,CAACH,CAAQ,CACX,CACF,CChBA,OAAOK,GAAS,QAAAC,EAAM,WAAAC,MAAe,QACrC,OAAS,UAAAC,EAAQ,MAAAC,EAAI,UAAAC,EAAQ,YAAAC,EAAU,QAAAC,EAAM,YAAAC,MAAiC,UAM9E,IAAMC,EAAkCC,EACtCC,EAAO,CACL,SAAUC,EAASC,EAAU,CAAC,EAC9B,aAAcD,EAASE,EAAqBC,GAASC,EAAGL,EAAO,CAAC,CAAC,EAAGI,CAAK,CAAC,CAAC,CAC7E,CAAC,EACDE,EAAS,CACX,EAIA,SAASC,EAAqBC,EAAkC,CAC9D,GAAM,CAAE,SAAAC,EAAU,aAAAC,CAAa,EAAIC,EAAcb,EAAiCU,CAAK,EAEjF,CACJ,kBAAmB,CAACI,CAAwB,CAC9C,EAAIC,EAAuB,EAErBC,EAAUC,EACd,IACE,OAAO,OAAO,CACZ,kBAAmB,OAAO,OAAO,CAC/B,OAAO,OACLC,EAAoB,CAClB,GAAGJ,EACH,GAAGF,CACL,CAAC,CACH,CACF,CAAU,CACZ,CAAC,EACH,CAACE,EAA0BF,CAAY,CACzC,EAEA,OAAOO,EAAA,cAACC,EAAoB,SAApB,CAA6B,MAAOJ,GAAUL,CAAS,CACjE,CAEAF,EAAqB,YAAc,uBAEnC,IAAOY,EAAQC,EAAKb,CAAoB","names":["useShouldShowMicrophoneButton","showMicrophoneButton","useStyleOptions","voiceConfiguration","useCapabilities","caps","postVoiceActivity","useCallback","usePostVoiceActivity","dispatch","useDispatch","useCallback","activity","postVoiceActivity","React","memo","useMemo","custom","is","object","optional","pipe","readonly","styleOptionsComposerPropsSchema","pipe","object","optional","c","custom","value","is","readonly","StyleOptionsComposer","props","children","styleOptions","o","currentStyleOptionsState","useStyleOptionsContext","context","useMemo","rectifyStyleOptions","React","StyleOptionsContext_default","StyleOptionsComposer_default","memo"]}
@@ -0,0 +1,536 @@
1
+ import * as botframework_webchat_core from 'botframework-webchat-core';
2
+ import { WebChatActivity, DirectLineAttachment, DirectLineCardAction, GlobalScopePonyfill, Observable, SendBoxAttachment, VoiceState } from 'botframework-webchat-core';
3
+ import { useBuildRenderActivityCallback } from './botframework-webchat-api.hook.mjs';
4
+ import { ActivityComponentFactory as LegacyActivityComponentFactory, RenderAttachment as LegacyRenderAttachment } from './botframework-webchat-api.mjs';
5
+ import * as react from 'react';
6
+ import { ReactNode } from 'react';
7
+ import { a as StrictStyleOptions } from './StyleOptions-4TkRjGbQ.mjs';
8
+ import { useSuggestedActionsHooks } from './botframework-webchat-api.hook.mjs';
9
+ import 'valibot';
10
+ import 'react-chain-of-responsibility/preview';
11
+ import './_dtsroll-chunks/B1b7R2eH-avatarMiddleware-CHa011_j.js';
12
+
13
+ /**
14
+ * All capabilities are optional as they depend on adapter/server support.
15
+ */
16
+ type Capabilities = Readonly<{
17
+ voiceConfiguration?: VoiceConfiguration | undefined;
18
+ }>;
19
+ /**
20
+ * Optional for adapter/server to provide these configs for speech-to-speech.
21
+ */
22
+ type VoiceConfiguration = Readonly<{
23
+ chunkIntervalMs: number;
24
+ sampleRate: number;
25
+ }>;
26
+
27
+ /**
28
+ * Hook to access adapter capabilities with a selector function.
29
+ * Only triggers re-render when the selected value changes (shallow comparison).
30
+ *
31
+ * @example
32
+ * // Get voice configuration only
33
+ * const voiceConfig = useCapabilities(caps => caps.voiceConfiguration);
34
+ */
35
+ declare function useCapabilities<T>(selector: (capabilities: Capabilities) => T): T;
36
+
37
+ type GroupedActivities = readonly (readonly WebChatActivity[])[];
38
+ /**
39
+ * This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` and will return all groupings.
40
+ *
41
+ * @deprecated This function is deprecated and will be removed on or after 2027-05-04. Developers should migrate to [`useGroupActivitiesByName`](#usegroupactivitiesbyname) for performance reason.
42
+ */
43
+ declare function useGroupActivities(): ({ activities }: Readonly<{
44
+ activities: readonly WebChatActivity[];
45
+ }>) => Readonly<{
46
+ [key: string]: GroupedActivities;
47
+ }>;
48
+
49
+ /**
50
+ * This hook will return a callback function. When called with `activities`, the callback function will run the `groupActivitiesMiddleware` for the specified grouping name.
51
+ *
52
+ * Unlike the [`useGroupActivities`](#usegroupactivities) hook which provide result for all groupings, this hook only provide result for the specified grouping name and the grouping name must be one of the name specified in `styleOptions.groupActivitiesBy`.
53
+ *
54
+ * @returns Result of `groupActivitiesMiddleware` for the specified grouping name
55
+ */
56
+ declare function useGroupActivitiesBy(): (activities: readonly WebChatActivity[], name: string) => readonly (readonly WebChatActivity[])[];
57
+
58
+ type Typing = {
59
+ at: number;
60
+ expireAt: number;
61
+ name: string;
62
+ role: 'bot' | 'user';
63
+ type: 'busy' | 'livestream';
64
+ };
65
+
66
+ declare function useActiveTyping(expireAfter?: number): readonly [Readonly<Record<string, Typing>>];
67
+
68
+ declare const useActivities: () => readonly [readonly WebChatActivity[]];
69
+
70
+ declare function useActivityKeys(): readonly [readonly string[]];
71
+
72
+ /**
73
+ * Returns an arrays of two list of activity keys: read and unread.
74
+ */
75
+ declare function useActivityKeysByRead(): readonly [readonly string[], readonly string[]];
76
+
77
+ declare function useAvatarForBot(): [{
78
+ image: string;
79
+ initials: string;
80
+ }];
81
+
82
+ declare function useAvatarForUser(): [{
83
+ image: string;
84
+ initials: string;
85
+ }];
86
+
87
+ declare function useByteFormatter(): (bytes: number) => string;
88
+
89
+ declare function useConnectivityStatus(): [string];
90
+
91
+ /**
92
+ * @deprecated Use useBuildRenderActivityCallback() instead, this hook will be removed on or after 2027-08-16.
93
+ */
94
+ declare function useCreateActivityRenderer(): LegacyActivityComponentFactory;
95
+
96
+ type ActivityStatusRenderer = (renderOptions: {
97
+ activity: WebChatActivity;
98
+ }) => (props?: {
99
+ hideTimestamp?: boolean;
100
+ }) => ReactNode;
101
+ declare function useCreateActivityStatusRenderer(): ActivityStatusRenderer;
102
+
103
+ type OnScreenReactNode = Exclude<ReactNode, boolean | null | undefined>;
104
+ /**
105
+ * Renders a UI component by returning a React component, or `false`, if nothing should be rendered.
106
+ *
107
+ * @returns {(React.FC|false)} Returns a React component to render, or `false`, if nothing should be rendered.
108
+ */
109
+ type ComponentFactory<TComponentFactoryArguments extends any[], TProps> = (...args: TComponentFactoryArguments) => ((props?: TProps) => OnScreenReactNode) | false;
110
+ /**
111
+ * Enhances a UI component through decoration, replacement, or removal.
112
+ */
113
+ type ComponentEnhancer<TComponentFactoryArguments extends any[], TProps> = (next: ComponentFactory<TComponentFactoryArguments, TProps>) => ComponentFactory<TComponentFactoryArguments, TProps>;
114
+ /**
115
+ * Middleware for rendering a UI component.
116
+ *
117
+ * The middleware is a series of enhancers that are chained through functional composition. Each enhancer can:
118
+ *
119
+ * - Decorate: call the next enhancer to get its React component, then decorate it through UI composition
120
+ * - Replace: return a React component without calling the next enhancer
121
+ * - Remove: return `false` without calling the next enhancer
122
+ *
123
+ * The signature of the middleware is:
124
+ *
125
+ * ```
126
+ * (...args: SetupArguments) => (next: Enhancer) => (...args: ComponentFactoryArguments) => false | React.ComponentType<Props>
127
+ * ```
128
+ */
129
+ type ComponentMiddleware<TSetupArguments extends any[], TComponentFactoryArguments extends any[], TProps> = (...args: TSetupArguments) => ComponentEnhancer<TComponentFactoryArguments, TProps>;
130
+
131
+ type AttachmentForScreenReaderComponentFactoryOptions = [
132
+ {
133
+ activity: WebChatActivity;
134
+ attachment: DirectLineAttachment;
135
+ }
136
+ ];
137
+ type AttachmentForScreenReaderComponentFactory = ComponentFactory<AttachmentForScreenReaderComponentFactoryOptions, {}>;
138
+ type AttachmentForScreenReaderMiddleware = ComponentMiddleware<[
139
+ ], AttachmentForScreenReaderComponentFactoryOptions, {}>;
140
+
141
+ declare function useCreateAttachmentForScreenReaderRenderer(): AttachmentForScreenReaderComponentFactory;
142
+
143
+ type CreateAvatarRendererCallback = (request: {
144
+ readonly activity: WebChatActivity;
145
+ }) => false | (() => Exclude<ReactNode, boolean | null | undefined>);
146
+ /**
147
+ * @deprecated Use `<AvatarPolymiddlewareProxy>` or `useBuildRenderAvatarCallback` instead. This hook will be removed on or after 2028-03-16.
148
+ */
149
+ declare function useCreateAvatarRenderer(): CreateAvatarRendererCallback;
150
+
151
+ /**
152
+ * @type {object}
153
+ * @property {boolean} atEnd - `true`, if the transcript scroll view is at the end, otherwise, `false`.
154
+ * @property {object} styleOptions - Normalized style options.
155
+ * @property {boolean} unread - `true`, if there are unread messages in the transcripts, otherwise, `false`.
156
+ */
157
+ type ScrollToEndButtonComponentArguments = [
158
+ {
159
+ atEnd: boolean;
160
+ styleOptions: StrictStyleOptions;
161
+ unread: boolean;
162
+ }
163
+ ];
164
+ /**
165
+ * @type {object}
166
+ * @property {function} onClick - The callback function to call when the user click on the button.
167
+ */
168
+ type ScrollToEndButtonProps = {
169
+ onClick: () => any;
170
+ };
171
+ /**
172
+ * The middleware for rendering scroll to end button.
173
+ */
174
+ type ScrollToEndButtonMiddleware = ComponentMiddleware<[], ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
175
+ type ScrollToEndButtonComponentFactory = ComponentFactory<ScrollToEndButtonComponentArguments, ScrollToEndButtonProps>;
176
+
177
+ declare function useCreateScrollToEndButtonRenderer(): ScrollToEndButtonComponentFactory;
178
+
179
+ declare function useDateFormatter(): (date: Date | number | string) => string;
180
+
181
+ type Notification = {
182
+ alt: string;
183
+ data?: any;
184
+ id: string;
185
+ level: string;
186
+ message?: string;
187
+ timestamp?: number;
188
+ };
189
+
190
+ type DebouncedNotification = Notification & {
191
+ outOfDate: boolean;
192
+ updateNotBefore: number;
193
+ };
194
+ type DebouncedNotifications = {
195
+ [id: string]: DebouncedNotification;
196
+ };
197
+ declare function useDebouncedNotifications(): [DebouncedNotifications];
198
+
199
+ declare function useDictateInterims(): [string[], (interims: string[]) => void];
200
+
201
+ declare function useDictateState(): [number];
202
+
203
+ declare function useDirection(): ['auto' | 'ltr' | 'rtl'];
204
+
205
+ /**
206
+ * @deprecated Please use `useUIState() === 'disabled'` instead. This hook will be removed on or after 2026-09-04.
207
+ */
208
+ declare function useDisabled(): readonly [boolean];
209
+
210
+ declare function useDismissNotification(): (id: string) => void;
211
+
212
+ declare function useEmitTypingIndicator(): () => void;
213
+
214
+ declare function useGetActivitiesByKey(): (key?: string) => readonly WebChatActivity[] | undefined;
215
+
216
+ declare function useGetActivityByKey(): (key?: string) => undefined | WebChatActivity;
217
+
218
+ declare function useGetHasAcknoweledgedByActivityKey(): (activityKey: string) => boolean | undefined;
219
+
220
+ declare function useGetKeyByActivity(): (activity?: WebChatActivity) => string | undefined;
221
+
222
+ declare function useGetKeyByActivityId(): (activityId?: string) => string | undefined;
223
+
224
+ declare function useGetSendTimeoutForActivity(): ({ activity }: {
225
+ activity: WebChatActivity;
226
+ }) => number;
227
+
228
+ declare function useGrammars(): [any];
229
+
230
+ declare function useGroupTimestamp(): [boolean | number];
231
+
232
+ declare function useLanguage(options?: 'speech'): [string];
233
+
234
+ declare function useLastAcknowledgedActivityKey(): readonly [string];
235
+
236
+ declare function useLastReadActivityKey(): readonly [string | undefined];
237
+
238
+ type Plural = {
239
+ zero?: string;
240
+ one?: string;
241
+ two?: string;
242
+ few?: string;
243
+ many?: string;
244
+ other: string;
245
+ };
246
+ declare function useLocalizer({ plural }?: {
247
+ plural?: boolean;
248
+ }): (id: string | Plural, args_0?: string | number, ...args: string[]) => any;
249
+
250
+ declare function useMarkActivityAsSpoken(): (activity: WebChatActivity) => void;
251
+
252
+ declare function useMarkActivityKeyAsRead(): (activityKey: string) => void;
253
+
254
+ declare function useMarkAllAsAcknowledged(): () => void;
255
+
256
+ declare function useNotifications(): [Notification[]];
257
+
258
+ type CallFunction<TArguments extends any[], TResult> = (...args: TArguments) => TResult;
259
+ type FunctionEnhancer<TCallArguments extends any[], TResult> = (next: CallFunction<TCallArguments, TResult>) => CallFunction<TCallArguments, TResult>;
260
+ type FunctionMiddleware<TSetupArguments extends any[], TCallArguments extends any[], TResult> = (...args: TSetupArguments) => FunctionEnhancer<TCallArguments, TResult>;
261
+
262
+ type PerformCardAction = (cardAction: DirectLineCardAction, event?: {
263
+ target: EventTarget;
264
+ }) => void;
265
+ type CardActionMiddleware = FunctionMiddleware<[
266
+ {
267
+ dispatch: (action: any) => void;
268
+ }
269
+ ], [
270
+ {
271
+ cardAction: DirectLineCardAction;
272
+ getSignInUrl?: () => string;
273
+ target: any;
274
+ }
275
+ ], {}>;
276
+
277
+ declare function usePerformCardAction(): PerformCardAction;
278
+
279
+ declare function usePonyfill(): readonly [GlobalScopePonyfill];
280
+
281
+ declare function usePostActivity(): (activity: WebChatActivity) => Observable<string>;
282
+
283
+ declare function useReferenceGrammarID(): [string];
284
+
285
+ declare function useRelativeTimeFormatter(): (dateOrString: Date | string) => string;
286
+
287
+ declare function useRenderAttachment(): LegacyRenderAttachment | undefined;
288
+
289
+ type ToastProps = {
290
+ notification: Notification;
291
+ };
292
+ type RenderToast = (props: ToastProps) => ReactNode;
293
+ type ToastEnhancer = (next: RenderToast) => RenderToast;
294
+ type ToastMiddleware = () => ToastEnhancer;
295
+
296
+ declare function useRenderToast(): RenderToast;
297
+
298
+ type TypingIndicatorProps = {
299
+ activeTyping: {
300
+ [id: string]: Typing;
301
+ };
302
+ typing: {
303
+ [id: string]: Typing;
304
+ };
305
+ visible: boolean;
306
+ };
307
+ type RenderTypingIndicator = (props: TypingIndicatorProps) => ReactNode;
308
+ type TypingIndicatorEnhancer = (next: RenderTypingIndicator) => RenderTypingIndicator;
309
+ type TypingIndicatorMiddleware = () => TypingIndicatorEnhancer;
310
+
311
+ declare function useRenderTypingIndicator(): RenderTypingIndicator;
312
+
313
+ declare function useSendBoxAttachments(): readonly [
314
+ readonly SendBoxAttachment[],
315
+ (attachments: readonly SendBoxAttachment[]) => void
316
+ ];
317
+
318
+ declare function useSendBoxValue(): [string, (value: string) => void];
319
+
320
+ declare function useSendEvent(): (name: string, value: any) => void;
321
+
322
+ type PostActivityFile = {
323
+ name: string;
324
+ size: number;
325
+ thumbnail?: string;
326
+ url: string;
327
+ };
328
+ declare function useSendFiles(): (files: PostActivityFile[]) => void;
329
+
330
+ declare function useSendMessage(): (text?: string, method?: string, init?: {
331
+ attachments?: readonly SendBoxAttachment[] | undefined;
332
+ channelData?: any;
333
+ }) => void;
334
+
335
+ declare function useSendMessageBack(): (value: any, text?: string, displayText?: string) => void;
336
+
337
+ declare function useSendPostBack(): (value?: any) => void;
338
+
339
+ type SendStatus = 'send failed' | 'sending' | 'sent';
340
+
341
+ /**
342
+ * Returns a key/value map which stores the outgoing activity send status by activity key:
343
+ *
344
+ * - `"sending"`, the activity is currently in transit;
345
+ * - `"sent"`, the activity is sent and acknowledged by the platform;
346
+ * - `"send failed"`, the activity failed to send.
347
+ *
348
+ * If the send status is `"send failed"`, it could be due to (non-exhaustive):
349
+ *
350
+ * - Immediate or almost immediate failures, such as network error;
351
+ * - It took longer than `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` to send.
352
+ *
353
+ * The send status of an activity could turn from `"send failed"` back to `"sending"` if (non-exhaustive):
354
+ *
355
+ * - The platform support resend and the activity is being resend;
356
+ * - The `styleOptions.sendTimeout` or `styleOptions.sendTimeoutForAttachments` has increased past the expiry, overthrown the previous decision for timeout.
357
+ *
358
+ * If the activity key does not exists in this map, the activity is not an outgoing activity.
359
+ */
360
+ declare function useSendStatus(): readonly [ReadonlyMap<string, SendStatus>];
361
+
362
+ /** @deprecated Please use "useGetSendTimeoutForActivity()" instead. */
363
+ declare function useSendTimeoutForActivity(activity: WebChatActivity): number;
364
+
365
+ declare function useSendTypingIndicator(): [boolean];
366
+
367
+ declare function useSetNotification(): (notification: Notification) => void;
368
+
369
+ declare function useShouldSpeakIncomingActivity(): [boolean, (value: boolean) => void];
370
+
371
+ declare function useStartDictate(): () => void;
372
+
373
+ /**
374
+ * Hook to start voice mode (turns on microphone and enables audio synthesis).
375
+ * This starts speech-to-speech interaction.
376
+ */
377
+ declare function useStartVoice(): () => void;
378
+
379
+ declare function useStopDictate(): () => void;
380
+
381
+ /**
382
+ * Hook to stop voice mode (turns off microphone and stops audio playback).
383
+ * This ends speech-to-speech interaction.
384
+ */
385
+ declare function useStopVoice(): () => void;
386
+
387
+ declare function useStyleOptions(): readonly [StrictStyleOptions];
388
+
389
+ declare function useSubmitSendBox(): (method?: string, { channelData }?: {
390
+ channelData: any;
391
+ }) => void;
392
+
393
+ /**
394
+ * @deprecated Use `useSuggestedActionsHooks().useSuggestedActions` instead. This hook will be removed on or after 2027-05-30.
395
+ */
396
+ declare function useSuggestedActions(): readonly [readonly botframework_webchat_core.DirectLineCardAction[], react.Dispatch<react.SetStateAction<readonly botframework_webchat_core.DirectLineCardAction[]>>, Readonly<{
397
+ activity: undefined | botframework_webchat_core.WebChatActivity;
398
+ }>];
399
+
400
+ declare function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)];
401
+
402
+ declare function useTrackDimension(): (name: string, data: any) => void;
403
+
404
+ type TrackEventFunction = {
405
+ (name: string, data: any): void;
406
+ debug: (name: string, data: any) => void;
407
+ error: (name: string, data: any) => void;
408
+ info: (name: string, data: any) => void;
409
+ warn: (name: string, data: any) => void;
410
+ };
411
+ declare function useTrackEvent(): TrackEventFunction;
412
+
413
+ declare function useTrackException(): (error: Error, fatal: boolean) => void;
414
+
415
+ declare function useTrackTiming<T>(): (name: string, functionOrPromise: (() => T) | Promise<T>) => Promise<T>;
416
+
417
+ /**
418
+ * Gets the state of the UI.
419
+ *
420
+ * - `undefined` will render normally
421
+ * - `"blueprint"` will render as few UI elements as possible and should be non-functional
422
+ * - Useful for loading scenarios
423
+ * - `"disabled"` will render most UI elements as non-functional
424
+ * - Scrolling may continue to trigger read acknowledgements
425
+ */
426
+ declare function useUIState(): readonly ['blueprint' | 'disabled' | undefined];
427
+
428
+ declare function useUserID(): [string];
429
+
430
+ declare function useUsername(): [string];
431
+
432
+ /**
433
+ * Hook to get and set voice recording mute state in speech-to-speech mode.
434
+ *
435
+ * Mute is independent of voice state - it can be toggled at any time.
436
+ * When muted, silent audio chunks are sent instead of real audio.
437
+ * Mute resets to false when recording stops.
438
+ */
439
+ declare function useVoiceRecordingMuted(): readonly [boolean, (muted: boolean) => void];
440
+
441
+ declare function useVoiceSelector(activity: any): (voices: (typeof window.SpeechSynthesisVoice)[]) => typeof window.SpeechSynthesisVoice;
442
+
443
+ /**
444
+ * Hook to get the voice state.
445
+ * The voice state represents the current state of the speech-to-speech interaction:
446
+ * - 'idle': No active speech session, microphone and audio playback are off
447
+ * - 'listening': Microphone is active
448
+ * - 'user_speaking': User is actively speaking
449
+ * - 'processing': User finished speaking, server is processing
450
+ * - 'bot_speaking': Bot is speaking (audio playback)
451
+ */
452
+ declare function useVoiceState(): readonly [VoiceState];
453
+
454
+ declare const hook_useActiveTyping: typeof useActiveTyping;
455
+ declare const hook_useActivities: typeof useActivities;
456
+ declare const hook_useActivityKeys: typeof useActivityKeys;
457
+ declare const hook_useActivityKeysByRead: typeof useActivityKeysByRead;
458
+ declare const hook_useAvatarForBot: typeof useAvatarForBot;
459
+ declare const hook_useAvatarForUser: typeof useAvatarForUser;
460
+ declare const hook_useBuildRenderActivityCallback: typeof useBuildRenderActivityCallback;
461
+ declare const hook_useByteFormatter: typeof useByteFormatter;
462
+ declare const hook_useCapabilities: typeof useCapabilities;
463
+ declare const hook_useConnectivityStatus: typeof useConnectivityStatus;
464
+ declare const hook_useCreateActivityRenderer: typeof useCreateActivityRenderer;
465
+ declare const hook_useCreateActivityStatusRenderer: typeof useCreateActivityStatusRenderer;
466
+ declare const hook_useCreateAttachmentForScreenReaderRenderer: typeof useCreateAttachmentForScreenReaderRenderer;
467
+ declare const hook_useCreateAvatarRenderer: typeof useCreateAvatarRenderer;
468
+ declare const hook_useCreateScrollToEndButtonRenderer: typeof useCreateScrollToEndButtonRenderer;
469
+ declare const hook_useDateFormatter: typeof useDateFormatter;
470
+ declare const hook_useDebouncedNotifications: typeof useDebouncedNotifications;
471
+ declare const hook_useDictateInterims: typeof useDictateInterims;
472
+ declare const hook_useDictateState: typeof useDictateState;
473
+ declare const hook_useDirection: typeof useDirection;
474
+ declare const hook_useDisabled: typeof useDisabled;
475
+ declare const hook_useDismissNotification: typeof useDismissNotification;
476
+ declare const hook_useEmitTypingIndicator: typeof useEmitTypingIndicator;
477
+ declare const hook_useGetActivitiesByKey: typeof useGetActivitiesByKey;
478
+ declare const hook_useGetActivityByKey: typeof useGetActivityByKey;
479
+ declare const hook_useGetKeyByActivity: typeof useGetKeyByActivity;
480
+ declare const hook_useGetKeyByActivityId: typeof useGetKeyByActivityId;
481
+ declare const hook_useGetSendTimeoutForActivity: typeof useGetSendTimeoutForActivity;
482
+ declare const hook_useGrammars: typeof useGrammars;
483
+ declare const hook_useGroupActivities: typeof useGroupActivities;
484
+ declare const hook_useGroupTimestamp: typeof useGroupTimestamp;
485
+ declare const hook_useLanguage: typeof useLanguage;
486
+ declare const hook_useLastAcknowledgedActivityKey: typeof useLastAcknowledgedActivityKey;
487
+ declare const hook_useLastReadActivityKey: typeof useLastReadActivityKey;
488
+ declare const hook_useLocalizer: typeof useLocalizer;
489
+ declare const hook_useMarkActivityAsSpoken: typeof useMarkActivityAsSpoken;
490
+ declare const hook_useMarkActivityKeyAsRead: typeof useMarkActivityKeyAsRead;
491
+ declare const hook_useMarkAllAsAcknowledged: typeof useMarkAllAsAcknowledged;
492
+ declare const hook_useNotifications: typeof useNotifications;
493
+ declare const hook_usePerformCardAction: typeof usePerformCardAction;
494
+ declare const hook_usePonyfill: typeof usePonyfill;
495
+ declare const hook_usePostActivity: typeof usePostActivity;
496
+ declare const hook_useReferenceGrammarID: typeof useReferenceGrammarID;
497
+ declare const hook_useRelativeTimeFormatter: typeof useRelativeTimeFormatter;
498
+ declare const hook_useRenderAttachment: typeof useRenderAttachment;
499
+ declare const hook_useRenderToast: typeof useRenderToast;
500
+ declare const hook_useRenderTypingIndicator: typeof useRenderTypingIndicator;
501
+ declare const hook_useSendBoxAttachments: typeof useSendBoxAttachments;
502
+ declare const hook_useSendBoxValue: typeof useSendBoxValue;
503
+ declare const hook_useSendEvent: typeof useSendEvent;
504
+ declare const hook_useSendFiles: typeof useSendFiles;
505
+ declare const hook_useSendMessage: typeof useSendMessage;
506
+ declare const hook_useSendMessageBack: typeof useSendMessageBack;
507
+ declare const hook_useSendPostBack: typeof useSendPostBack;
508
+ declare const hook_useSendTimeoutForActivity: typeof useSendTimeoutForActivity;
509
+ declare const hook_useSendTypingIndicator: typeof useSendTypingIndicator;
510
+ declare const hook_useSetNotification: typeof useSetNotification;
511
+ declare const hook_useShouldSpeakIncomingActivity: typeof useShouldSpeakIncomingActivity;
512
+ declare const hook_useStartDictate: typeof useStartDictate;
513
+ declare const hook_useStartVoice: typeof useStartVoice;
514
+ declare const hook_useStopDictate: typeof useStopDictate;
515
+ declare const hook_useStopVoice: typeof useStopVoice;
516
+ declare const hook_useStyleOptions: typeof useStyleOptions;
517
+ declare const hook_useSubmitSendBox: typeof useSubmitSendBox;
518
+ declare const hook_useSuggestedActions: typeof useSuggestedActions;
519
+ declare const hook_useSuggestedActionsHooks: typeof useSuggestedActionsHooks;
520
+ declare const hook_useTimeoutForSend: typeof useTimeoutForSend;
521
+ declare const hook_useTrackDimension: typeof useTrackDimension;
522
+ declare const hook_useTrackEvent: typeof useTrackEvent;
523
+ declare const hook_useTrackException: typeof useTrackException;
524
+ declare const hook_useTrackTiming: typeof useTrackTiming;
525
+ declare const hook_useUIState: typeof useUIState;
526
+ declare const hook_useUserID: typeof useUserID;
527
+ declare const hook_useUsername: typeof useUsername;
528
+ declare const hook_useVoiceRecordingMuted: typeof useVoiceRecordingMuted;
529
+ declare const hook_useVoiceSelector: typeof useVoiceSelector;
530
+ declare const hook_useVoiceState: typeof useVoiceState;
531
+ declare namespace hook {
532
+ export { hook_useActiveTyping as useActiveTyping, hook_useActivities as useActivities, hook_useActivityKeys as useActivityKeys, hook_useActivityKeysByRead as useActivityKeysByRead, hook_useAvatarForBot as useAvatarForBot, hook_useAvatarForUser as useAvatarForUser, hook_useBuildRenderActivityCallback as useBuildRenderActivityCallback, hook_useByteFormatter as useByteFormatter, hook_useCapabilities as useCapabilities, hook_useConnectivityStatus as useConnectivityStatus, hook_useCreateActivityRenderer as useCreateActivityRenderer, hook_useCreateActivityStatusRenderer as useCreateActivityStatusRenderer, hook_useCreateAttachmentForScreenReaderRenderer as useCreateAttachmentForScreenReaderRenderer, hook_useCreateAvatarRenderer as useCreateAvatarRenderer, hook_useCreateScrollToEndButtonRenderer as useCreateScrollToEndButtonRenderer, hook_useDateFormatter as useDateFormatter, hook_useDebouncedNotifications as useDebouncedNotifications, hook_useDictateInterims as useDictateInterims, hook_useDictateState as useDictateState, hook_useDirection as useDirection, hook_useDisabled as useDisabled, hook_useDismissNotification as useDismissNotification, hook_useEmitTypingIndicator as useEmitTypingIndicator, hook_useGetActivitiesByKey as useGetActivitiesByKey, hook_useGetActivityByKey as useGetActivityByKey, useGetHasAcknoweledgedByActivityKey as useGetHasAcknowledgedByActivityKey, hook_useGetKeyByActivity as useGetKeyByActivity, hook_useGetKeyByActivityId as useGetKeyByActivityId, hook_useGetSendTimeoutForActivity as useGetSendTimeoutForActivity, hook_useGrammars as useGrammars, hook_useGroupActivities as useGroupActivities, useGroupActivitiesBy as useGroupActivitiesByName, hook_useGroupTimestamp as useGroupTimestamp, hook_useLanguage as useLanguage, hook_useLastAcknowledgedActivityKey as useLastAcknowledgedActivityKey, hook_useLastReadActivityKey as useLastReadActivityKey, hook_useLocalizer as useLocalizer, hook_useMarkActivityAsSpoken as useMarkActivityAsSpoken, hook_useMarkActivityKeyAsRead as useMarkActivityKeyAsRead, hook_useMarkAllAsAcknowledged as useMarkAllAsAcknowledged, hook_useNotifications as useNotifications, hook_usePerformCardAction as usePerformCardAction, hook_usePonyfill as usePonyfill, hook_usePostActivity as usePostActivity, hook_useReferenceGrammarID as useReferenceGrammarID, hook_useRelativeTimeFormatter as useRelativeTimeFormatter, hook_useRenderAttachment as useRenderAttachment, hook_useRenderToast as useRenderToast, hook_useRenderTypingIndicator as useRenderTypingIndicator, hook_useSendBoxAttachments as useSendBoxAttachments, hook_useSendBoxValue as useSendBoxValue, hook_useSendEvent as useSendEvent, hook_useSendFiles as useSendFiles, hook_useSendMessage as useSendMessage, hook_useSendMessageBack as useSendMessageBack, hook_useSendPostBack as useSendPostBack, useSendStatus as useSendStatusByActivityKey, hook_useSendTimeoutForActivity as useSendTimeoutForActivity, hook_useSendTypingIndicator as useSendTypingIndicator, hook_useSetNotification as useSetNotification, hook_useShouldSpeakIncomingActivity as useShouldSpeakIncomingActivity, hook_useStartDictate as useStartDictate, hook_useStartVoice as useStartVoice, hook_useStopDictate as useStopDictate, hook_useStopVoice as useStopVoice, hook_useStyleOptions as useStyleOptions, hook_useSubmitSendBox as useSubmitSendBox, hook_useSuggestedActions as useSuggestedActions, hook_useSuggestedActionsHooks as useSuggestedActionsHooks, hook_useTimeoutForSend as useTimeoutForSend, hook_useTrackDimension as useTrackDimension, hook_useTrackEvent as useTrackEvent, hook_useTrackException as useTrackException, hook_useTrackTiming as useTrackTiming, hook_useUIState as useUIState, hook_useUserID as useUserID, hook_useUsername as useUsername, hook_useVoiceRecordingMuted as useVoiceRecordingMuted, hook_useVoiceSelector as useVoiceSelector, hook_useVoiceState as useVoiceState };
533
+ }
534
+
535
+ export { useGroupTimestamp as $, useCreateScrollToEndButtonRenderer as B, useDateFormatter as E, useDebouncedNotifications as G, useDictateInterims as H, useDictateState as I, useDirection as J, useDisabled as K, useDismissNotification as L, useEmitTypingIndicator as M, useGetActivitiesByKey as O, useGetActivityByKey as Q, useGetHasAcknoweledgedByActivityKey as U, useGetKeyByActivity as V, useGetKeyByActivityId as W, useGetSendTimeoutForActivity as X, useGrammars as Y, useGroupActivities as Z, useGroupActivitiesBy as _, useLanguage as a0, useLastAcknowledgedActivityKey as a1, useLastReadActivityKey as a2, useLocalizer as a3, useMarkActivityAsSpoken as a4, useMarkActivityKeyAsRead as a5, useMarkAllAsAcknowledged as a6, useNotifications as a7, usePerformCardAction as a8, usePonyfill as a9, useTrackDimension as aA, useTrackEvent as aB, useTrackException as aC, useTrackTiming as aD, useUIState as aE, useUserID as aF, useUsername as aG, useVoiceRecordingMuted as aH, useVoiceSelector as aI, useVoiceState as aJ, usePostActivity as aa, useReferenceGrammarID as ab, useRelativeTimeFormatter as ac, useRenderAttachment as ad, useRenderToast as ae, useRenderTypingIndicator as af, useSendBoxAttachments as ag, useSendBoxValue as ah, useSendEvent as ai, useSendFiles as aj, useSendMessage as ak, useSendMessageBack as al, useSendPostBack as am, useSendStatus as an, useSendTimeoutForActivity as ao, useSendTypingIndicator as ap, useSetNotification as aq, useShouldSpeakIncomingActivity as ar, useStartDictate as as, useStartVoice as at, useStopDictate as au, useStopVoice as av, useStyleOptions as aw, useSubmitSendBox as ax, useSuggestedActions as ay, useTimeoutForSend as az, hook as m, useActivities as n, useActivityKeys as o, useActivityKeysByRead as p, useAvatarForBot as q, useAvatarForUser as r, useByteFormatter as s, useCapabilities as t, useActiveTyping as u, useConnectivityStatus as v, useCreateActivityRenderer as w, useCreateActivityStatusRenderer as x, useCreateAttachmentForScreenReaderRenderer as y, useCreateAvatarRenderer as z };
536
+ export type { AttachmentForScreenReaderComponentFactory as A, ComponentFactory as C, DebouncedNotification as D, FunctionMiddleware as F, Notification as N, PerformCardAction as P, RenderToast as R, SendStatus as S, ToastMiddleware as T, ComponentMiddleware as a, CallFunction as b, ScrollToEndButtonComponentFactory as c, AttachmentForScreenReaderMiddleware as d, CardActionMiddleware as e, ScrollToEndButtonMiddleware as f, TypingIndicatorMiddleware as g, ActivityStatusRenderer as h, DebouncedNotifications as i, PostActivityFile as j, RenderTypingIndicator as k, Typing as l };