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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/decorator.js +1 -1
  2. package/dist/botframework-webchat-api.d.mts +196 -48
  3. package/dist/botframework-webchat-api.d.ts +1612 -0
  4. package/dist/botframework-webchat-api.decorator.d.mts +24 -30
  5. package/dist/botframework-webchat-api.decorator.d.ts +30 -0
  6. package/dist/botframework-webchat-api.decorator.js +3 -0
  7. package/dist/botframework-webchat-api.decorator.js.map +1 -0
  8. package/dist/botframework-webchat-api.decorator.mjs +1 -1
  9. package/dist/botframework-webchat-api.decorator.mjs.map +1 -1
  10. package/dist/botframework-webchat-api.internal.d.mts +18 -1
  11. package/dist/botframework-webchat-api.internal.d.ts +20 -0
  12. package/dist/botframework-webchat-api.internal.js +3 -0
  13. package/dist/botframework-webchat-api.internal.js.map +1 -0
  14. package/dist/botframework-webchat-api.internal.mjs +1 -1
  15. package/dist/botframework-webchat-api.internal.mjs.map +1 -1
  16. package/dist/botframework-webchat-api.js +3 -0
  17. package/dist/botframework-webchat-api.js.map +1 -0
  18. package/dist/botframework-webchat-api.mjs +1 -139
  19. package/dist/botframework-webchat-api.mjs.map +1 -1
  20. package/dist/chunk-2HABAU7C.mjs +3 -0
  21. package/dist/chunk-2HABAU7C.mjs.LEGAL.txt +0 -0
  22. package/dist/chunk-2HABAU7C.mjs.map +1 -0
  23. package/dist/chunk-45Z2ZE4M.js +3 -0
  24. package/dist/chunk-45Z2ZE4M.js.LEGAL.txt +0 -0
  25. package/dist/chunk-45Z2ZE4M.js.map +1 -0
  26. package/dist/chunk-7K3OK5TS.mjs +3 -0
  27. package/dist/chunk-7K3OK5TS.mjs.LEGAL.txt +0 -0
  28. package/dist/chunk-7K3OK5TS.mjs.map +1 -0
  29. package/dist/chunk-LXPINC7N.js +3 -0
  30. package/dist/chunk-LXPINC7N.js.LEGAL.txt +0 -0
  31. package/dist/chunk-LXPINC7N.js.map +1 -0
  32. package/dist/chunk-PRWGXTDA.mjs +3 -0
  33. package/dist/chunk-PRWGXTDA.mjs.LEGAL.txt +0 -0
  34. package/dist/chunk-PRWGXTDA.mjs.map +1 -0
  35. package/dist/chunk-WH7VSYKK.js +3 -0
  36. package/dist/chunk-WH7VSYKK.js.LEGAL.txt +0 -0
  37. package/dist/chunk-WH7VSYKK.js.map +1 -0
  38. package/dist/metafile-cjs.json +1 -0
  39. package/dist/metafile-esm.json +1 -1
  40. package/dist/types-BXPldIKA.d.mts +86 -0
  41. package/dist/types-BXPldIKA.d.ts +86 -0
  42. package/internal.js +1 -1
  43. package/package.json +59 -71
  44. package/src/StyleOptions.ts +123 -4
  45. package/src/decorator/ActivityBorder/ActivityBorderDecorator.tsx +48 -0
  46. package/src/decorator/ActivityBorder/private/ActivityBorderDecoratorMiddleware.ts +51 -0
  47. package/src/decorator/ActivityBorder/types.ts +1 -0
  48. package/src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx +31 -0
  49. package/src/decorator/ActivityGrouping/private/ActivityGroupingDecoratorMiddleware.ts +38 -0
  50. package/src/decorator/ActivityGrouping/types.ts +1 -0
  51. package/src/decorator/DecoratorComposer.tsx +22 -0
  52. package/src/decorator/internal/InternalDecoratorComposer.tsx +61 -0
  53. package/src/decorator/internal/LowPriorityDecoratorComposer.tsx +19 -0
  54. package/src/decorator/private/DecoratorComposerContext.ts +16 -0
  55. package/src/decorator/private/PassthroughFallback.tsx +12 -0
  56. package/src/decorator/private/templateMiddleware.test.tsx +5 -1
  57. package/src/decorator/private/templateMiddleware.ts +11 -9
  58. package/src/decorator/types.ts +15 -0
  59. package/src/decorator.ts +16 -0
  60. package/src/defaultStyleOptions.ts +26 -5
  61. package/src/hooks/Composer.tsx +59 -45
  62. package/src/hooks/index.ts +5 -1
  63. package/src/hooks/internal/SendBoxMiddleware.ts +3 -1
  64. package/src/hooks/internal/SendBoxToolbarMiddleware.ts +3 -1
  65. package/src/hooks/internal/Tracker.ts +1 -1
  66. package/src/hooks/internal/WebChatAPIContext.ts +12 -5
  67. package/src/hooks/middleware/concatMiddleware.spec.js +20 -0
  68. package/src/hooks/middleware/concatMiddleware.ts +6 -5
  69. package/src/hooks/private/reduceIterable.spec.ts +0 -2
  70. package/src/hooks/useActiveTyping.ts +3 -2
  71. package/src/hooks/useDisabled.ts +8 -2
  72. package/src/hooks/useSuggestedActions.ts +17 -4
  73. package/src/hooks/useUIState.ts +18 -0
  74. package/src/hooks/validation/uiState.parseUIState.spec.ts +21 -0
  75. package/src/hooks/validation/uiState.ts +10 -0
  76. package/src/internal.ts +3 -1
  77. package/src/localization/ar-SA.json +20 -16
  78. package/src/localization/bg-BG.json +20 -16
  79. package/src/localization/ca-ES.json +20 -16
  80. package/src/localization/cs-CZ.json +20 -16
  81. package/src/localization/da-DK.json +20 -16
  82. package/src/localization/de-DE.json +20 -16
  83. package/src/localization/el-GR.json +20 -16
  84. package/src/localization/en-US.json +21 -19
  85. package/src/localization/es-ES.json +20 -16
  86. package/src/localization/et-EE.json +20 -16
  87. package/src/localization/eu-ES.json +20 -16
  88. package/src/localization/fi-FI.json +20 -16
  89. package/src/localization/fr-FR.json +20 -16
  90. package/src/localization/gl-ES.json +20 -16
  91. package/src/localization/he-IL.json +20 -16
  92. package/src/localization/hi-IN.json +20 -16
  93. package/src/localization/hr-HR.json +20 -16
  94. package/src/localization/hu-HU.json +20 -16
  95. package/src/localization/id-ID.json +20 -16
  96. package/src/localization/it-IT.json +20 -16
  97. package/src/localization/ja-JP.json +20 -16
  98. package/src/localization/kk-KZ.json +20 -16
  99. package/src/localization/ko-KR.json +20 -16
  100. package/src/localization/lt-LT.json +20 -16
  101. package/src/localization/lv-LV.json +20 -16
  102. package/src/localization/ms-MY.json +20 -16
  103. package/src/localization/nb-NO.json +20 -16
  104. package/src/localization/nl-NL.json +20 -16
  105. package/src/localization/pl-PL.json +20 -16
  106. package/src/localization/pt-BR.json +20 -16
  107. package/src/localization/pt-PT.json +20 -16
  108. package/src/localization/ro-RO.json +20 -16
  109. package/src/localization/ru-RU.json +20 -16
  110. package/src/localization/sk-SK.json +20 -16
  111. package/src/localization/sl-SI.json +20 -16
  112. package/src/localization/sr-Cyrl-CS.json +20 -16
  113. package/src/localization/sr-Latn-CS.json +20 -16
  114. package/src/localization/sv-SE.json +20 -16
  115. package/src/localization/th-TH.json +20 -16
  116. package/src/localization/tr-TR.json +20 -16
  117. package/src/localization/uk-UA.json +20 -16
  118. package/src/localization/vi-VN.json +20 -16
  119. package/src/localization/yue.json +1 -16
  120. package/src/localization/zh-CN.json +22 -18
  121. package/src/localization/zh-HK.json +20 -16
  122. package/src/localization/zh-TW.json +20 -16
  123. package/src/normalizeStyleOptions.ts +45 -0
  124. package/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx +9 -26
  125. package/src/providers/ActivityKeyer/private/someIterable.spec.ts +0 -2
  126. package/src/providers/ActivitySendStatus/ActivitySendStatusComposer.tsx +2 -2
  127. package/src/providers/ActivityTyping/ActivityTypingComposer.tsx +144 -59
  128. package/src/providers/ActivityTyping/private/useReduceActivities.spec.tsx +231 -0
  129. package/src/providers/ActivityTyping/private/useReduceActivities.ts +48 -0
  130. package/src/providers/GroupActivities/GroupActivitiesComposer.tsx +115 -0
  131. package/src/providers/GroupActivities/private/GroupActivitiesContext.ts +23 -0
  132. package/src/providers/GroupActivities/private/createDefaultGroupActivitiesMiddleware.ts +93 -0
  133. package/src/providers/GroupActivities/private/isGroupingValid.ts +41 -0
  134. package/src/providers/GroupActivities/private/useGroupActivitiesContext.ts +6 -0
  135. package/src/providers/GroupActivities/useGroupActivities.ts +20 -0
  136. package/src/providers/GroupActivities/useGroupActivitiesByName.ts +17 -0
  137. package/src/tsconfig.json +1 -5
  138. package/src/types/AttachmentForScreenReaderMiddleware.ts +9 -2
  139. package/src/types/AvatarMiddleware.ts +5 -1
  140. package/src/types/CardActionMiddleware.ts +2 -0
  141. package/src/types/ComponentMiddleware.ts +1 -1
  142. package/src/types/GroupActivitiesMiddleware.ts +7 -11
  143. package/src/utils/validateProps.spec.ts +74 -0
  144. package/src/utils/validateProps.ts +56 -0
  145. package/dist/chunk-2S76JUVM.mjs +0 -3
  146. package/dist/chunk-2S76JUVM.mjs.map +0 -1
  147. package/dist/chunk-J6D5YEY6.mjs +0 -3
  148. package/dist/chunk-J6D5YEY6.mjs.map +0 -1
  149. package/dist/chunk-ZAMHKQQC.mjs +0 -3
  150. package/dist/chunk-ZAMHKQQC.mjs.map +0 -1
  151. package/lib/StyleOptions.d.ts +0 -697
  152. package/lib/StyleOptions.d.ts.map +0 -1
  153. package/lib/StyleOptions.js +0 -2
  154. package/lib/decorator/index.d.ts +0 -5
  155. package/lib/decorator/index.d.ts.map +0 -1
  156. package/lib/decorator/index.js +0 -28
  157. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts +0 -27
  158. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.d.ts.map +0 -1
  159. package/lib/decorator/private/ActivityBorderDecoratorMiddleware.js +0 -19
  160. package/lib/decorator/private/ActivityDecorator.d.ts +0 -9
  161. package/lib/decorator/private/ActivityDecorator.d.ts.map +0 -1
  162. package/lib/decorator/private/ActivityDecorator.js +0 -36
  163. package/lib/decorator/private/DecoratorComposer.d.ts +0 -3
  164. package/lib/decorator/private/DecoratorComposer.d.ts.map +0 -1
  165. package/lib/decorator/private/DecoratorComposer.js +0 -13
  166. package/lib/decorator/private/activityDecoratorRequest.d.ts +0 -6
  167. package/lib/decorator/private/activityDecoratorRequest.d.ts.map +0 -1
  168. package/lib/decorator/private/activityDecoratorRequest.js +0 -2
  169. package/lib/decorator/private/createDecoratorComposer.d.ts +0 -11
  170. package/lib/decorator/private/createDecoratorComposer.d.ts.map +0 -1
  171. package/lib/decorator/private/createDecoratorComposer.js +0 -27
  172. package/lib/decorator/private/templateMiddleware.d.ts +0 -30
  173. package/lib/decorator/private/templateMiddleware.d.ts.map +0 -1
  174. package/lib/decorator/private/templateMiddleware.js +0 -53
  175. package/lib/decorator/private/templateMiddleware.test.d.ts +0 -3
  176. package/lib/decorator/private/templateMiddleware.test.d.ts.map +0 -1
  177. package/lib/defaultStyleOptions.d.ts +0 -4
  178. package/lib/defaultStyleOptions.d.ts.map +0 -1
  179. package/lib/defaultStyleOptions.js +0 -277
  180. package/lib/external/PrecompiledGlobalize.js +0 -6361
  181. package/lib/hooks/Composer.d.ts +0 -88
  182. package/lib/hooks/Composer.d.ts.map +0 -1
  183. package/lib/hooks/Composer.js +0 -605
  184. package/lib/hooks/index.d.ts +0 -73
  185. package/lib/hooks/index.d.ts.map +0 -1
  186. package/lib/hooks/index.js +0 -504
  187. package/lib/hooks/internal/ErrorBox.js +0 -47
  188. package/lib/hooks/internal/SendBoxMiddleware.d.ts +0 -37
  189. package/lib/hooks/internal/SendBoxMiddleware.d.ts.map +0 -1
  190. package/lib/hooks/internal/SendBoxMiddleware.js +0 -17
  191. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts +0 -37
  192. package/lib/hooks/internal/SendBoxToolbarMiddleware.d.ts.map +0 -1
  193. package/lib/hooks/internal/SendBoxToolbarMiddleware.js +0 -17
  194. package/lib/hooks/internal/Tracker.d.ts +0 -4
  195. package/lib/hooks/internal/Tracker.d.ts.map +0 -1
  196. package/lib/hooks/internal/Tracker.js +0 -15
  197. package/lib/hooks/internal/WebChatAPIContext.d.ts +0 -80
  198. package/lib/hooks/internal/WebChatAPIContext.d.ts.map +0 -1
  199. package/lib/hooks/internal/WebChatAPIContext.js +0 -12
  200. package/lib/hooks/internal/WebChatReduxContext.js +0 -17
  201. package/lib/hooks/internal/defaultSelectVoice.js +0 -28
  202. package/lib/hooks/internal/private/templateMiddleware.d.ts +0 -3
  203. package/lib/hooks/internal/private/templateMiddleware.d.ts.map +0 -1
  204. package/lib/hooks/internal/private/templateMiddleware.js +0 -12
  205. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts +0 -4
  206. package/lib/hooks/internal/useCreateActivityRendererInternal.d.ts.map +0 -1
  207. package/lib/hooks/internal/useCreateActivityRendererInternal.js +0 -37
  208. package/lib/hooks/internal/useDebugDeps.js +0 -39
  209. package/lib/hooks/internal/useDirFromProps.js +0 -12
  210. package/lib/hooks/internal/useErrorBoxClass.js +0 -14
  211. package/lib/hooks/internal/useForceRender.js +0 -24
  212. package/lib/hooks/internal/useLocalizedGlobalize.js +0 -12
  213. package/lib/hooks/internal/useLocalizedStrings.js +0 -14
  214. package/lib/hooks/internal/useMarkActivity.js +0 -12
  215. package/lib/hooks/internal/usePrevious.d.ts +0 -3
  216. package/lib/hooks/internal/usePrevious.d.ts.map +0 -1
  217. package/lib/hooks/internal/usePrevious.js +0 -15
  218. package/lib/hooks/internal/useReadTelemetryDimensions.js +0 -20
  219. package/lib/hooks/internal/useSetDictateState.d.ts +0 -2
  220. package/lib/hooks/internal/useSetDictateState.d.ts.map +0 -1
  221. package/lib/hooks/internal/useSetDictateState.js +0 -12
  222. package/lib/hooks/internal/useTimer.d.ts +0 -5
  223. package/lib/hooks/internal/useTimer.d.ts.map +0 -1
  224. package/lib/hooks/internal/useTimer.js +0 -43
  225. package/lib/hooks/internal/useTracker.js +0 -42
  226. package/lib/hooks/internal/useValueRef.d.ts +0 -3
  227. package/lib/hooks/internal/useValueRef.d.ts.map +0 -1
  228. package/lib/hooks/internal/useValueRef.js +0 -22
  229. package/lib/hooks/internal/useWebChatAPIContext.d.ts +0 -83
  230. package/lib/hooks/internal/useWebChatAPIContext.d.ts.map +0 -1
  231. package/lib/hooks/internal/useWebChatAPIContext.js +0 -17
  232. package/lib/hooks/middleware/UserlandBoundary.js +0 -48
  233. package/lib/hooks/middleware/applyMiddleware.js +0 -122
  234. package/lib/hooks/middleware/concatMiddleware.d.ts +0 -6
  235. package/lib/hooks/middleware/concatMiddleware.d.ts.map +0 -1
  236. package/lib/hooks/middleware/concatMiddleware.js +0 -33
  237. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts +0 -3
  238. package/lib/hooks/middleware/createDefaultCardActionMiddleware.d.ts.map +0 -1
  239. package/lib/hooks/middleware/createDefaultCardActionMiddleware.js +0 -43
  240. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts +0 -7
  241. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.d.ts.map +0 -1
  242. package/lib/hooks/middleware/createDefaultGroupActivitiesMiddleware.js +0 -68
  243. package/lib/hooks/private/numberWithInfinity.d.ts +0 -3
  244. package/lib/hooks/private/numberWithInfinity.d.ts.map +0 -1
  245. package/lib/hooks/private/numberWithInfinity.js +0 -17
  246. package/lib/hooks/private/numberWithInfinity.spec.d.ts +0 -2
  247. package/lib/hooks/private/numberWithInfinity.spec.d.ts.map +0 -1
  248. package/lib/hooks/private/reduceIterable.d.ts +0 -2
  249. package/lib/hooks/private/reduceIterable.d.ts.map +0 -1
  250. package/lib/hooks/private/reduceIterable.js +0 -26
  251. package/lib/hooks/private/reduceIterable.spec.d.ts +0 -2
  252. package/lib/hooks/private/reduceIterable.spec.d.ts.map +0 -1
  253. package/lib/hooks/useActiveTyping.d.ts +0 -4
  254. package/lib/hooks/useActiveTyping.d.ts.map +0 -1
  255. package/lib/hooks/useActiveTyping.js +0 -81
  256. package/lib/hooks/useActivities.d.ts +0 -3
  257. package/lib/hooks/useActivities.d.ts.map +0 -1
  258. package/lib/hooks/useActivities.js +0 -14
  259. package/lib/hooks/useActivityKeys.d.ts +0 -3
  260. package/lib/hooks/useActivityKeys.d.ts.map +0 -1
  261. package/lib/hooks/useActivityKeys.js +0 -11
  262. package/lib/hooks/useActivityKeysByRead.d.ts +0 -3
  263. package/lib/hooks/useActivityKeysByRead.d.ts.map +0 -1
  264. package/lib/hooks/useActivityKeysByRead.js +0 -11
  265. package/lib/hooks/useAvatarForBot.d.ts +0 -5
  266. package/lib/hooks/useAvatarForBot.d.ts.map +0 -1
  267. package/lib/hooks/useAvatarForBot.js +0 -26
  268. package/lib/hooks/useAvatarForUser.d.ts +0 -5
  269. package/lib/hooks/useAvatarForUser.d.ts.map +0 -1
  270. package/lib/hooks/useAvatarForUser.js +0 -26
  271. package/lib/hooks/useByteFormatter.d.ts +0 -2
  272. package/lib/hooks/useByteFormatter.d.ts.map +0 -1
  273. package/lib/hooks/useByteFormatter.js +0 -43
  274. package/lib/hooks/useConnectivityStatus.d.ts +0 -2
  275. package/lib/hooks/useConnectivityStatus.d.ts.map +0 -1
  276. package/lib/hooks/useConnectivityStatus.js +0 -14
  277. package/lib/hooks/useCreateActivityRenderer.d.ts +0 -3
  278. package/lib/hooks/useCreateActivityRenderer.d.ts.map +0 -1
  279. package/lib/hooks/useCreateActivityRenderer.js +0 -14
  280. package/lib/hooks/useCreateActivityStatusRenderer.d.ts +0 -10
  281. package/lib/hooks/useCreateActivityStatusRenderer.d.ts.map +0 -1
  282. package/lib/hooks/useCreateActivityStatusRenderer.js +0 -72
  283. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts +0 -3
  284. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.d.ts.map +0 -1
  285. package/lib/hooks/useCreateAttachmentForScreenReaderRenderer.js +0 -12
  286. package/lib/hooks/useCreateAvatarRenderer.d.ts +0 -6
  287. package/lib/hooks/useCreateAvatarRenderer.d.ts.map +0 -1
  288. package/lib/hooks/useCreateAvatarRenderer.js +0 -44
  289. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts +0 -3
  290. package/lib/hooks/useCreateScrollToEndButtonRenderer.d.ts.map +0 -1
  291. package/lib/hooks/useCreateScrollToEndButtonRenderer.js +0 -12
  292. package/lib/hooks/useDateFormatter.d.ts +0 -2
  293. package/lib/hooks/useDateFormatter.d.ts.map +0 -1
  294. package/lib/hooks/useDateFormatter.js +0 -35
  295. package/lib/hooks/useDebouncedNotifications.d.ts +0 -13
  296. package/lib/hooks/useDebouncedNotifications.d.ts.map +0 -1
  297. package/lib/hooks/useDebouncedNotifications.js +0 -118
  298. package/lib/hooks/useDictateInterims.d.ts +0 -2
  299. package/lib/hooks/useDictateInterims.d.ts.map +0 -1
  300. package/lib/hooks/useDictateInterims.js +0 -16
  301. package/lib/hooks/useDictateState.d.ts +0 -2
  302. package/lib/hooks/useDictateState.d.ts.map +0 -1
  303. package/lib/hooks/useDictateState.js +0 -15
  304. package/lib/hooks/useDirection.d.ts +0 -2
  305. package/lib/hooks/useDirection.d.ts.map +0 -1
  306. package/lib/hooks/useDirection.js +0 -38
  307. package/lib/hooks/useDisabled.d.ts +0 -2
  308. package/lib/hooks/useDisabled.d.ts.map +0 -1
  309. package/lib/hooks/useDisabled.js +0 -12
  310. package/lib/hooks/useDismissNotification.d.ts +0 -2
  311. package/lib/hooks/useDismissNotification.d.ts.map +0 -1
  312. package/lib/hooks/useDismissNotification.js +0 -12
  313. package/lib/hooks/useEmitTypingIndicator.d.ts +0 -2
  314. package/lib/hooks/useEmitTypingIndicator.d.ts.map +0 -1
  315. package/lib/hooks/useEmitTypingIndicator.js +0 -12
  316. package/lib/hooks/useGetActivitiesByKey.d.ts +0 -3
  317. package/lib/hooks/useGetActivitiesByKey.d.ts.map +0 -1
  318. package/lib/hooks/useGetActivitiesByKey.js +0 -11
  319. package/lib/hooks/useGetActivityByKey.d.ts +0 -3
  320. package/lib/hooks/useGetActivityByKey.d.ts.map +0 -1
  321. package/lib/hooks/useGetActivityByKey.js +0 -11
  322. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts +0 -3
  323. package/lib/hooks/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
  324. package/lib/hooks/useGetHasAcknowledgedByActivityKey.js +0 -11
  325. package/lib/hooks/useGetKeyByActivity.d.ts +0 -3
  326. package/lib/hooks/useGetKeyByActivity.d.ts.map +0 -1
  327. package/lib/hooks/useGetKeyByActivity.js +0 -11
  328. package/lib/hooks/useGetKeyByActivityId.d.ts +0 -3
  329. package/lib/hooks/useGetKeyByActivityId.d.ts.map +0 -1
  330. package/lib/hooks/useGetKeyByActivityId.js +0 -11
  331. package/lib/hooks/useGetSendTimeoutForActivity.d.ts +0 -5
  332. package/lib/hooks/useGetSendTimeoutForActivity.d.ts.map +0 -1
  333. package/lib/hooks/useGetSendTimeoutForActivity.js +0 -33
  334. package/lib/hooks/useGrammars.d.ts +0 -2
  335. package/lib/hooks/useGrammars.d.ts.map +0 -1
  336. package/lib/hooks/useGrammars.js +0 -12
  337. package/lib/hooks/useGroupActivities.d.ts +0 -8
  338. package/lib/hooks/useGroupActivities.d.ts.map +0 -1
  339. package/lib/hooks/useGroupActivities.js +0 -12
  340. package/lib/hooks/useGroupTimestamp.d.ts +0 -2
  341. package/lib/hooks/useGroupTimestamp.d.ts.map +0 -1
  342. package/lib/hooks/useGroupTimestamp.js +0 -21
  343. package/lib/hooks/useLanguage.d.ts +0 -2
  344. package/lib/hooks/useLanguage.d.ts.map +0 -1
  345. package/lib/hooks/useLanguage.js +0 -19
  346. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts +0 -3
  347. package/lib/hooks/useLastAcknowledgedActivityKey.d.ts.map +0 -1
  348. package/lib/hooks/useLastAcknowledgedActivityKey.js +0 -11
  349. package/lib/hooks/useLastReadActivityKey.d.ts +0 -3
  350. package/lib/hooks/useLastReadActivityKey.d.ts.map +0 -1
  351. package/lib/hooks/useLastReadActivityKey.js +0 -11
  352. package/lib/hooks/useLocalizer.d.ts +0 -13
  353. package/lib/hooks/useLocalizer.d.ts.map +0 -1
  354. package/lib/hooks/useLocalizer.js +0 -75
  355. package/lib/hooks/useMarkActivityAsSpoken.d.ts +0 -3
  356. package/lib/hooks/useMarkActivityAsSpoken.d.ts.map +0 -1
  357. package/lib/hooks/useMarkActivityAsSpoken.js +0 -16
  358. package/lib/hooks/useMarkActivityKeyAsRead.d.ts +0 -3
  359. package/lib/hooks/useMarkActivityKeyAsRead.d.ts.map +0 -1
  360. package/lib/hooks/useMarkActivityKeyAsRead.js +0 -11
  361. package/lib/hooks/useMarkAllAsAcknowledged.d.ts +0 -3
  362. package/lib/hooks/useMarkAllAsAcknowledged.d.ts.map +0 -1
  363. package/lib/hooks/useMarkAllAsAcknowledged.js +0 -11
  364. package/lib/hooks/useNotifications.d.ts +0 -3
  365. package/lib/hooks/useNotifications.d.ts.map +0 -1
  366. package/lib/hooks/useNotifications.js +0 -14
  367. package/lib/hooks/usePerformCardAction.d.ts +0 -3
  368. package/lib/hooks/usePerformCardAction.d.ts.map +0 -1
  369. package/lib/hooks/usePerformCardAction.js +0 -12
  370. package/lib/hooks/usePonyfill.d.ts +0 -3
  371. package/lib/hooks/usePonyfill.d.ts.map +0 -1
  372. package/lib/hooks/usePonyfill.js +0 -11
  373. package/lib/hooks/usePostActivity.d.ts +0 -3
  374. package/lib/hooks/usePostActivity.d.ts.map +0 -1
  375. package/lib/hooks/usePostActivity.js +0 -12
  376. package/lib/hooks/useReferenceGrammarID.d.ts +0 -2
  377. package/lib/hooks/useReferenceGrammarID.d.ts.map +0 -1
  378. package/lib/hooks/useReferenceGrammarID.js +0 -14
  379. package/lib/hooks/useRelativeTimeFormatter.d.ts +0 -2
  380. package/lib/hooks/useRelativeTimeFormatter.d.ts.map +0 -1
  381. package/lib/hooks/useRelativeTimeFormatter.js +0 -61
  382. package/lib/hooks/useRenderAttachment.d.ts +0 -3
  383. package/lib/hooks/useRenderAttachment.d.ts.map +0 -1
  384. package/lib/hooks/useRenderAttachment.js +0 -14
  385. package/lib/hooks/useRenderToast.d.ts +0 -3
  386. package/lib/hooks/useRenderToast.d.ts.map +0 -1
  387. package/lib/hooks/useRenderToast.js +0 -12
  388. package/lib/hooks/useRenderTypingIndicator.d.ts +0 -3
  389. package/lib/hooks/useRenderTypingIndicator.d.ts.map +0 -1
  390. package/lib/hooks/useRenderTypingIndicator.js +0 -12
  391. package/lib/hooks/useSendBoxAttachments.d.ts +0 -6
  392. package/lib/hooks/useSendBoxAttachments.d.ts.map +0 -1
  393. package/lib/hooks/useSendBoxAttachments.js +0 -23
  394. package/lib/hooks/useSendBoxValue.d.ts +0 -2
  395. package/lib/hooks/useSendBoxValue.d.ts.map +0 -1
  396. package/lib/hooks/useSendBoxValue.js +0 -16
  397. package/lib/hooks/useSendEvent.d.ts +0 -2
  398. package/lib/hooks/useSendEvent.d.ts.map +0 -1
  399. package/lib/hooks/useSendEvent.js +0 -12
  400. package/lib/hooks/useSendFiles.d.ts +0 -10
  401. package/lib/hooks/useSendFiles.d.ts.map +0 -1
  402. package/lib/hooks/useSendFiles.js +0 -35
  403. package/lib/hooks/useSendMessage.d.ts +0 -6
  404. package/lib/hooks/useSendMessage.d.ts.map +0 -1
  405. package/lib/hooks/useSendMessage.js +0 -33
  406. package/lib/hooks/useSendMessageBack.d.ts +0 -2
  407. package/lib/hooks/useSendMessageBack.d.ts.map +0 -1
  408. package/lib/hooks/useSendMessageBack.js +0 -12
  409. package/lib/hooks/useSendPostBack.d.ts +0 -2
  410. package/lib/hooks/useSendPostBack.d.ts.map +0 -1
  411. package/lib/hooks/useSendPostBack.js +0 -12
  412. package/lib/hooks/useSendStatusByActivityKey.d.ts +0 -22
  413. package/lib/hooks/useSendStatusByActivityKey.d.ts.map +0 -1
  414. package/lib/hooks/useSendStatusByActivityKey.js +0 -31
  415. package/lib/hooks/useSendTimeoutForActivity.d.ts +0 -4
  416. package/lib/hooks/useSendTimeoutForActivity.d.ts.map +0 -1
  417. package/lib/hooks/useSendTimeoutForActivity.js +0 -22
  418. package/lib/hooks/useSendTypingIndicator.d.ts +0 -2
  419. package/lib/hooks/useSendTypingIndicator.d.ts.map +0 -1
  420. package/lib/hooks/useSendTypingIndicator.js +0 -14
  421. package/lib/hooks/useSetNotification.d.ts +0 -3
  422. package/lib/hooks/useSetNotification.d.ts.map +0 -1
  423. package/lib/hooks/useSetNotification.js +0 -12
  424. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts +0 -2
  425. package/lib/hooks/useShouldSpeakIncomingActivity.d.ts.map +0 -1
  426. package/lib/hooks/useShouldSpeakIncomingActivity.js +0 -22
  427. package/lib/hooks/useStartDictate.d.ts +0 -2
  428. package/lib/hooks/useStartDictate.d.ts.map +0 -1
  429. package/lib/hooks/useStartDictate.js +0 -12
  430. package/lib/hooks/useStopDictate.d.ts +0 -2
  431. package/lib/hooks/useStopDictate.d.ts.map +0 -1
  432. package/lib/hooks/useStopDictate.js +0 -12
  433. package/lib/hooks/useStyleOptions.d.ts +0 -3
  434. package/lib/hooks/useStyleOptions.d.ts.map +0 -1
  435. package/lib/hooks/useStyleOptions.js +0 -12
  436. package/lib/hooks/useSubmitSendBox.d.ts +0 -4
  437. package/lib/hooks/useSubmitSendBox.d.ts.map +0 -1
  438. package/lib/hooks/useSubmitSendBox.js +0 -49
  439. package/lib/hooks/useSuggestedActions.d.ts +0 -3
  440. package/lib/hooks/useSuggestedActions.d.ts.map +0 -1
  441. package/lib/hooks/useSuggestedActions.js +0 -25
  442. package/lib/hooks/useTimeoutForSend.d.ts +0 -3
  443. package/lib/hooks/useTimeoutForSend.d.ts.map +0 -1
  444. package/lib/hooks/useTimeoutForSend.js +0 -21
  445. package/lib/hooks/useTrackDimension.d.ts +0 -2
  446. package/lib/hooks/useTrackDimension.d.ts.map +0 -1
  447. package/lib/hooks/useTrackDimension.js +0 -14
  448. package/lib/hooks/useTrackEvent.d.ts +0 -10
  449. package/lib/hooks/useTrackEvent.d.ts.map +0 -1
  450. package/lib/hooks/useTrackEvent.js +0 -51
  451. package/lib/hooks/useTrackException.d.ts +0 -2
  452. package/lib/hooks/useTrackException.d.ts.map +0 -1
  453. package/lib/hooks/useTrackException.js +0 -31
  454. package/lib/hooks/useTrackTiming.d.ts +0 -2
  455. package/lib/hooks/useTrackTiming.d.ts.map +0 -1
  456. package/lib/hooks/useTrackTiming.js +0 -93
  457. package/lib/hooks/useUserID.d.ts +0 -2
  458. package/lib/hooks/useUserID.d.ts.map +0 -1
  459. package/lib/hooks/useUserID.js +0 -12
  460. package/lib/hooks/useUsername.d.ts +0 -2
  461. package/lib/hooks/useUsername.d.ts.map +0 -1
  462. package/lib/hooks/useUsername.js +0 -12
  463. package/lib/hooks/useVoiceSelector.d.ts +0 -2
  464. package/lib/hooks/useVoiceSelector.d.ts.map +0 -1
  465. package/lib/hooks/useVoiceSelector.js +0 -16
  466. package/lib/hooks/utils/ErrorBoundary.js +0 -68
  467. package/lib/hooks/utils/observableToPromise.d.ts +0 -3
  468. package/lib/hooks/utils/observableToPromise.d.ts.map +0 -1
  469. package/lib/hooks/utils/observableToPromise.js +0 -28
  470. package/lib/index.d.ts +0 -37
  471. package/lib/index.d.ts.map +0 -1
  472. package/lib/index.js +0 -88
  473. package/lib/internal.d.ts +0 -3
  474. package/lib/internal.d.ts.map +0 -1
  475. package/lib/internal.js +0 -14
  476. package/lib/localization/Localize.d.ts +0 -4
  477. package/lib/localization/Localize.d.ts.map +0 -1
  478. package/lib/localization/Localize.js +0 -50
  479. package/lib/localization/ar-EG.json +0 -42
  480. package/lib/localization/ar-JO.json +0 -45
  481. package/lib/localization/ar-SA.json +0 -112
  482. package/lib/localization/bg-BG.json +0 -112
  483. package/lib/localization/ca-ES.json +0 -112
  484. package/lib/localization/cs-CZ.json +0 -112
  485. package/lib/localization/da-DK.json +0 -112
  486. package/lib/localization/de-DE.json +0 -112
  487. package/lib/localization/el-GR.json +0 -112
  488. package/lib/localization/en-US.json +0 -183
  489. package/lib/localization/es-ES.json +0 -112
  490. package/lib/localization/et-EE.json +0 -112
  491. package/lib/localization/eu-ES.json +0 -112
  492. package/lib/localization/fi-FI.json +0 -112
  493. package/lib/localization/fr-FR.json +0 -112
  494. package/lib/localization/getAllLocalizedStrings.d.ts +0 -6
  495. package/lib/localization/getAllLocalizedStrings.d.ts.map +0 -1
  496. package/lib/localization/getAllLocalizedStrings.js +0 -117
  497. package/lib/localization/getRTLList.d.ts +0 -2
  498. package/lib/localization/getRTLList.d.ts.map +0 -1
  499. package/lib/localization/getRTLList.js +0 -46
  500. package/lib/localization/gl-ES.json +0 -112
  501. package/lib/localization/he-IL.json +0 -112
  502. package/lib/localization/hi-IN.json +0 -112
  503. package/lib/localization/hr-HR.json +0 -112
  504. package/lib/localization/hu-HU.json +0 -112
  505. package/lib/localization/id-ID.json +0 -112
  506. package/lib/localization/it-IT.json +0 -112
  507. package/lib/localization/ja-JP.json +0 -112
  508. package/lib/localization/kk-KZ.json +0 -112
  509. package/lib/localization/ko-KR.json +0 -112
  510. package/lib/localization/lt-LT.json +0 -112
  511. package/lib/localization/lv-LV.json +0 -112
  512. package/lib/localization/mergeLocalizedStrings.d.ts +0 -7
  513. package/lib/localization/mergeLocalizedStrings.d.ts.map +0 -1
  514. package/lib/localization/mergeLocalizedStrings.js +0 -49
  515. package/lib/localization/ms-MY.json +0 -112
  516. package/lib/localization/nb-NO.json +0 -112
  517. package/lib/localization/nl-NL.json +0 -112
  518. package/lib/localization/overrides.json +0 -257
  519. package/lib/localization/pl-PL.json +0 -112
  520. package/lib/localization/pt-BR.json +0 -112
  521. package/lib/localization/pt-PT.json +0 -112
  522. package/lib/localization/ro-RO.json +0 -112
  523. package/lib/localization/ru-RU.json +0 -112
  524. package/lib/localization/sk-SK.json +0 -112
  525. package/lib/localization/sl-SI.json +0 -112
  526. package/lib/localization/sl-SL.json +0 -3
  527. package/lib/localization/sr-Cyrl-CS.json +0 -112
  528. package/lib/localization/sr-Cyrl.json +0 -3
  529. package/lib/localization/sr-Latn-CS.json +0 -112
  530. package/lib/localization/sr-Latn.json +0 -3
  531. package/lib/localization/sv-SE.json +0 -112
  532. package/lib/localization/th-TH.json +0 -112
  533. package/lib/localization/tr-TR.json +0 -112
  534. package/lib/localization/uk-UA.json +0 -112
  535. package/lib/localization/vi-VN.json +0 -112
  536. package/lib/localization/yue.json +0 -115
  537. package/lib/localization/zh-CN.json +0 -112
  538. package/lib/localization/zh-HK.json +0 -112
  539. package/lib/localization/zh-TW.json +0 -112
  540. package/lib/normalizeStyleOptions.d.ts +0 -3
  541. package/lib/normalizeStyleOptions.d.ts.map +0 -1
  542. package/lib/normalizeStyleOptions.js +0 -147
  543. package/lib/patchStyleOptionsFromDeprecatedProps.js +0 -21
  544. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts +0 -6
  545. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.d.ts.map +0 -1
  546. package/lib/providers/ActivityAcknowledgement/ActivityAcknowledgementComposer.js +0 -153
  547. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts +0 -13
  548. package/lib/providers/ActivityAcknowledgement/private/Context.d.ts.map +0 -1
  549. package/lib/providers/ActivityAcknowledgement/private/Context.js +0 -14
  550. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts +0 -3
  551. package/lib/providers/ActivityAcknowledgement/private/useContext.d.ts.map +0 -1
  552. package/lib/providers/ActivityAcknowledgement/private/useContext.js +0 -18
  553. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts +0 -5
  554. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.d.ts.map +0 -1
  555. package/lib/providers/ActivityAcknowledgement/useActivityKeysByRead.js +0 -15
  556. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts +0 -2
  557. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.d.ts.map +0 -1
  558. package/lib/providers/ActivityAcknowledgement/useGetHasAcknowledgedByActivityKey.js +0 -12
  559. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts +0 -2
  560. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.d.ts.map +0 -1
  561. package/lib/providers/ActivityAcknowledgement/useLastAcknowledgedActivityKey.js +0 -12
  562. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts +0 -2
  563. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.d.ts.map +0 -1
  564. package/lib/providers/ActivityAcknowledgement/useLastReadActivityKey.js +0 -12
  565. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts +0 -2
  566. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.d.ts.map +0 -1
  567. package/lib/providers/ActivityAcknowledgement/useMarkActivityKeyAsRead.js +0 -12
  568. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts +0 -2
  569. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.d.ts.map +0 -1
  570. package/lib/providers/ActivityAcknowledgement/useMarkAllAsAcknowledged.js +0 -12
  571. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts +0 -20
  572. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.d.ts.map +0 -1
  573. package/lib/providers/ActivityKeyer/ActivityKeyerComposer.js +0 -149
  574. package/lib/providers/ActivityKeyer/private/Context.d.ts +0 -13
  575. package/lib/providers/ActivityKeyer/private/Context.d.ts.map +0 -1
  576. package/lib/providers/ActivityKeyer/private/Context.js +0 -10
  577. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts +0 -3
  578. package/lib/providers/ActivityKeyer/private/getActivityId.d.ts.map +0 -1
  579. package/lib/providers/ActivityKeyer/private/getActivityId.js +0 -10
  580. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts +0 -3
  581. package/lib/providers/ActivityKeyer/private/getClientActivityId.d.ts.map +0 -1
  582. package/lib/providers/ActivityKeyer/private/getClientActivityId.js +0 -11
  583. package/lib/providers/ActivityKeyer/private/lastOf.d.ts +0 -2
  584. package/lib/providers/ActivityKeyer/private/lastOf.d.ts.map +0 -1
  585. package/lib/providers/ActivityKeyer/private/lastOf.js +0 -10
  586. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts +0 -2
  587. package/lib/providers/ActivityKeyer/private/lastOf.spec.d.ts.map +0 -1
  588. package/lib/providers/ActivityKeyer/private/someIterable.d.ts +0 -2
  589. package/lib/providers/ActivityKeyer/private/someIterable.d.ts.map +0 -1
  590. package/lib/providers/ActivityKeyer/private/someIterable.js +0 -27
  591. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts +0 -2
  592. package/lib/providers/ActivityKeyer/private/someIterable.spec.d.ts.map +0 -1
  593. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts +0 -2
  594. package/lib/providers/ActivityKeyer/private/uniqueId.d.ts.map +0 -1
  595. package/lib/providers/ActivityKeyer/private/uniqueId.js +0 -15
  596. package/lib/providers/ActivityKeyer/private/useContext.d.ts +0 -3
  597. package/lib/providers/ActivityKeyer/private/useContext.d.ts.map +0 -1
  598. package/lib/providers/ActivityKeyer/private/useContext.js +0 -18
  599. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts +0 -2
  600. package/lib/providers/ActivityKeyer/useActivityKeys.d.ts.map +0 -1
  601. package/lib/providers/ActivityKeyer/useActivityKeys.js +0 -12
  602. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts +0 -3
  603. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.d.ts.map +0 -1
  604. package/lib/providers/ActivityKeyer/useGetActivitiesByKey.js +0 -12
  605. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts +0 -3
  606. package/lib/providers/ActivityKeyer/useGetActivityByKey.d.ts.map +0 -1
  607. package/lib/providers/ActivityKeyer/useGetActivityByKey.js +0 -12
  608. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts +0 -3
  609. package/lib/providers/ActivityKeyer/useGetKeyByActivity.d.ts.map +0 -1
  610. package/lib/providers/ActivityKeyer/useGetKeyByActivity.js +0 -12
  611. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts +0 -2
  612. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.d.ts.map +0 -1
  613. package/lib/providers/ActivityKeyer/useGetKeyByActivityId.js +0 -12
  614. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts +0 -7
  615. package/lib/providers/ActivityListener/ActivityListenerComposer.d.ts.map +0 -1
  616. package/lib/providers/ActivityListener/ActivityListenerComposer.js +0 -55
  617. package/lib/providers/ActivityListener/private/Context.d.ts +0 -8
  618. package/lib/providers/ActivityListener/private/Context.d.ts.map +0 -1
  619. package/lib/providers/ActivityListener/private/Context.js +0 -15
  620. package/lib/providers/ActivityListener/private/useContext.d.ts +0 -2
  621. package/lib/providers/ActivityListener/private/useContext.d.ts.map +0 -1
  622. package/lib/providers/ActivityListener/private/useContext.js +0 -13
  623. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts +0 -3
  624. package/lib/providers/ActivityListener/useUpsertedActivities.d.ts.map +0 -1
  625. package/lib/providers/ActivityListener/useUpsertedActivities.js +0 -12
  626. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts +0 -4
  627. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.d.ts.map +0 -1
  628. package/lib/providers/ActivitySendStatus/ActivitySendStatusComposer.js +0 -149
  629. package/lib/providers/ActivitySendStatus/private/Context.d.ts +0 -9
  630. package/lib/providers/ActivitySendStatus/private/Context.d.ts.map +0 -1
  631. package/lib/providers/ActivitySendStatus/private/Context.js +0 -13
  632. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts +0 -7
  633. package/lib/providers/ActivitySendStatus/private/isMapEqual.d.ts.map +0 -1
  634. package/lib/providers/ActivitySendStatus/private/isMapEqual.js +0 -55
  635. package/lib/providers/ActivitySendStatus/private/useContext.d.ts +0 -3
  636. package/lib/providers/ActivitySendStatus/private/useContext.d.ts.map +0 -1
  637. package/lib/providers/ActivitySendStatus/private/useContext.js +0 -18
  638. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts +0 -22
  639. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.d.ts.map +0 -1
  640. package/lib/providers/ActivitySendStatus/useSendStatusByActivityKey.js +0 -31
  641. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts +0 -3
  642. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.d.ts.map +0 -1
  643. package/lib/providers/ActivitySendStatusTelemetry/ActivitySendStatusTelemetryComposer.js +0 -71
  644. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts +0 -9
  645. package/lib/providers/ActivityTyping/ActivityTypingComposer.d.ts.map +0 -1
  646. package/lib/providers/ActivityTyping/ActivityTypingComposer.js +0 -98
  647. package/lib/providers/ActivityTyping/private/Context.d.ts +0 -8
  648. package/lib/providers/ActivityTyping/private/Context.d.ts.map +0 -1
  649. package/lib/providers/ActivityTyping/private/Context.js +0 -15
  650. package/lib/providers/ActivityTyping/private/useContext.d.ts +0 -3
  651. package/lib/providers/ActivityTyping/private/useContext.d.ts.map +0 -1
  652. package/lib/providers/ActivityTyping/private/useContext.js +0 -13
  653. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts +0 -3
  654. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.d.ts.map +0 -1
  655. package/lib/providers/ActivityTyping/private/useMemoWithPrevious.js +0 -22
  656. package/lib/providers/ActivityTyping/types/AllTyping.d.ts +0 -9
  657. package/lib/providers/ActivityTyping/types/AllTyping.d.ts.map +0 -1
  658. package/lib/providers/ActivityTyping/types/AllTyping.js +0 -2
  659. package/lib/providers/ActivityTyping/useAllTyping.d.ts +0 -3
  660. package/lib/providers/ActivityTyping/useAllTyping.d.ts.map +0 -1
  661. package/lib/providers/ActivityTyping/useAllTyping.js +0 -12
  662. package/lib/providers/Ponyfill/PonyfillComposer.d.ts +0 -17
  663. package/lib/providers/Ponyfill/PonyfillComposer.d.ts.map +0 -1
  664. package/lib/providers/Ponyfill/PonyfillComposer.js +0 -87
  665. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts +0 -8
  666. package/lib/providers/Ponyfill/private/PonyfillContext.d.ts.map +0 -1
  667. package/lib/providers/Ponyfill/private/PonyfillContext.js +0 -10
  668. package/lib/providers/Ponyfill/private/useContext.d.ts +0 -6
  669. package/lib/providers/Ponyfill/private/useContext.d.ts.map +0 -1
  670. package/lib/providers/Ponyfill/private/useContext.js +0 -17
  671. package/lib/providers/Ponyfill/usePonyfill.d.ts +0 -3
  672. package/lib/providers/Ponyfill/usePonyfill.d.ts.map +0 -1
  673. package/lib/providers/Ponyfill/usePonyfill.js +0 -12
  674. package/lib/tsconfig.json +0 -18
  675. package/lib/types/ActivityMiddleware.d.ts +0 -24
  676. package/lib/types/ActivityMiddleware.d.ts.map +0 -1
  677. package/lib/types/ActivityMiddleware.js +0 -2
  678. package/lib/types/ActivityStatusMiddleware.d.ts +0 -17
  679. package/lib/types/ActivityStatusMiddleware.d.ts.map +0 -1
  680. package/lib/types/ActivityStatusMiddleware.js +0 -2
  681. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts +0 -14
  682. package/lib/types/AttachmentForScreenReaderMiddleware.d.ts.map +0 -1
  683. package/lib/types/AttachmentForScreenReaderMiddleware.js +0 -2
  684. package/lib/types/AttachmentMiddleware.d.ts +0 -12
  685. package/lib/types/AttachmentMiddleware.d.ts.map +0 -1
  686. package/lib/types/AttachmentMiddleware.js +0 -2
  687. package/lib/types/AvatarMiddleware.d.ts +0 -15
  688. package/lib/types/AvatarMiddleware.d.ts.map +0 -1
  689. package/lib/types/AvatarMiddleware.js +0 -2
  690. package/lib/types/CardActionMiddleware.d.ts +0 -19
  691. package/lib/types/CardActionMiddleware.d.ts.map +0 -1
  692. package/lib/types/CardActionMiddleware.js +0 -2
  693. package/lib/types/ComponentMiddleware.d.ts +0 -31
  694. package/lib/types/ComponentMiddleware.d.ts.map +0 -1
  695. package/lib/types/ComponentMiddleware.js +0 -2
  696. package/lib/types/ContextOf.d.ts +0 -4
  697. package/lib/types/ContextOf.d.ts.map +0 -1
  698. package/lib/types/ContextOf.js +0 -2
  699. package/lib/types/FunctionMiddleware.d.ts +0 -6
  700. package/lib/types/FunctionMiddleware.d.ts.map +0 -1
  701. package/lib/types/FunctionMiddleware.js +0 -2
  702. package/lib/types/GroupActivitiesMiddleware.d.ts +0 -22
  703. package/lib/types/GroupActivitiesMiddleware.d.ts.map +0 -1
  704. package/lib/types/GroupActivitiesMiddleware.js +0 -2
  705. package/lib/types/LocalizedStrings.d.ts +0 -5
  706. package/lib/types/LocalizedStrings.d.ts.map +0 -1
  707. package/lib/types/LocalizedStrings.js +0 -2
  708. package/lib/types/Notification.d.ts +0 -10
  709. package/lib/types/Notification.d.ts.map +0 -1
  710. package/lib/types/Notification.js +0 -2
  711. package/lib/types/PrecompiledGlobalize.d.ts +0 -13
  712. package/lib/types/PrecompiledGlobalize.d.ts.map +0 -1
  713. package/lib/types/PrecompiledGlobalize.js +0 -2
  714. package/lib/types/ScrollToEndButtonMiddleware.d.ts +0 -30
  715. package/lib/types/ScrollToEndButtonMiddleware.d.ts.map +0 -1
  716. package/lib/types/ScrollToEndButtonMiddleware.js +0 -2
  717. package/lib/types/SendStatus.d.ts +0 -3
  718. package/lib/types/SendStatus.d.ts.map +0 -1
  719. package/lib/types/SendStatus.js +0 -2
  720. package/lib/types/TelemetryMeasurementEvent.d.ts +0 -31
  721. package/lib/types/TelemetryMeasurementEvent.d.ts.map +0 -1
  722. package/lib/types/TelemetryMeasurementEvent.js +0 -2
  723. package/lib/types/ToastMiddleware.d.ts +0 -11
  724. package/lib/types/ToastMiddleware.d.ts.map +0 -1
  725. package/lib/types/ToastMiddleware.js +0 -2
  726. package/lib/types/Typing.d.ts +0 -8
  727. package/lib/types/Typing.d.ts.map +0 -1
  728. package/lib/types/Typing.js +0 -2
  729. package/lib/types/TypingIndicatorMiddleware.d.ts +0 -17
  730. package/lib/types/TypingIndicatorMiddleware.d.ts.map +0 -1
  731. package/lib/types/TypingIndicatorMiddleware.js +0 -2
  732. package/lib/types/WebSpeechPonyfill.d.ts +0 -19
  733. package/lib/types/WebSpeechPonyfill.d.ts.map +0 -1
  734. package/lib/types/WebSpeechPonyfill.js +0 -2
  735. package/lib/types/WebSpeechPonyfillFactory.d.ts +0 -6
  736. package/lib/types/WebSpeechPonyfillFactory.d.ts.map +0 -1
  737. package/lib/types/WebSpeechPonyfillFactory.js +0 -2
  738. package/lib/utils/createCustomEvent.d.ts +0 -4
  739. package/lib/utils/createCustomEvent.d.ts.map +0 -1
  740. package/lib/utils/createCustomEvent.js +0 -34
  741. package/lib/utils/findLastIndex.d.ts +0 -2
  742. package/lib/utils/findLastIndex.d.ts.map +0 -1
  743. package/lib/utils/findLastIndex.js +0 -22
  744. package/lib/utils/findMin.d.ts +0 -7
  745. package/lib/utils/findMin.d.ts.map +0 -1
  746. package/lib/utils/findMin.js +0 -46
  747. package/lib/utils/freezeArray.d.ts +0 -8
  748. package/lib/utils/freezeArray.d.ts.map +0 -1
  749. package/lib/utils/freezeArray.js +0 -19
  750. package/lib/utils/isObject.js +0 -12
  751. package/lib/utils/mapMap.d.ts +0 -6
  752. package/lib/utils/mapMap.d.ts.map +0 -1
  753. package/lib/utils/mapMap.js +0 -27
  754. package/lib/utils/normalizeLanguage.d.ts +0 -2
  755. package/lib/utils/normalizeLanguage.d.ts.map +0 -1
  756. package/lib/utils/normalizeLanguage.js +0 -115
  757. package/lib/utils/randomId.d.ts +0 -2
  758. package/lib/utils/randomId.d.ts.map +0 -1
  759. package/lib/utils/randomId.js +0 -15
  760. package/lib/utils/warnOnce.d.ts +0 -2
  761. package/lib/utils/warnOnce.d.ts.map +0 -1
  762. package/lib/utils/warnOnce.js +0 -16
  763. package/src/decorator/index.ts +0 -4
  764. package/src/decorator/private/ActivityBorderDecoratorMiddleware.ts +0 -31
  765. package/src/decorator/private/ActivityDecorator.tsx +0 -31
  766. package/src/decorator/private/DecoratorComposer.tsx +0 -6
  767. package/src/decorator/private/activityDecoratorRequest.ts +0 -6
  768. package/src/decorator/private/createDecoratorComposer.tsx +0 -36
  769. package/src/hooks/middleware/createDefaultGroupActivitiesMiddleware.ts +0 -75
  770. package/src/hooks/useGroupActivities.ts +0 -10
  771. /package/dist/{chunk-2S76JUVM.mjs.LEGAL.txt → botframework-webchat-api.decorator.js.LEGAL.txt} +0 -0
  772. /package/dist/{chunk-J6D5YEY6.mjs.LEGAL.txt → botframework-webchat-api.internal.js.LEGAL.txt} +0 -0
  773. /package/dist/{chunk-ZAMHKQQC.mjs.LEGAL.txt → botframework-webchat-api.js.LEGAL.txt} +0 -0
@@ -1,36 +1,30 @@
1
- import * as react from 'react';
2
1
  import react__default, { ReactNode } from 'react';
3
- import * as react_chain_of_responsibility from 'react-chain-of-responsibility';
4
- import { EmptyObject } from 'type-fest';
2
+ import { D as DecoratorMiddleware } from './types-BXPldIKA.mjs';
3
+ export { a as DecoratorMiddlewareInit, b as DecoratorMiddlewareTypes } from './types-BXPldIKA.mjs';
5
4
  import { WebChatActivity } from 'botframework-webchat-core';
5
+ import 'react-chain-of-responsibility';
6
+ import 'type-fest';
6
7
 
7
- type ActivityDecoratorRequestType = {
8
- from: 'bot' | 'channel' | `user` | undefined;
9
- state: 'completion' | 'informative' | undefined;
10
- };
8
+ type DecoratorComposerProps = Readonly<{
9
+ children?: ReactNode | undefined;
10
+ middleware?: readonly DecoratorMiddleware[] | undefined;
11
+ }>;
12
+ declare function DecoratorComposer({ children, middleware }: DecoratorComposerProps): react__default.JSX.Element;
13
+ declare const _default$2: react__default.MemoExoticComponent<typeof DecoratorComposer>;
11
14
 
12
- declare const types: {
13
- init: "activity border";
14
- middleware: react_chain_of_responsibility.ComponentMiddleware<ActivityDecoratorRequestType, EmptyObject>;
15
- props: EmptyObject;
16
- request: ActivityDecoratorRequestType;
17
- };
18
- type ActivityBorderDecoratorMiddleware = typeof types.middleware;
19
- declare const activityBorderDecoratorTypeName: "activity border";
15
+ type ActivityBorderDecoratorProps = Readonly<{
16
+ activity?: WebChatActivity | undefined;
17
+ children?: ReactNode | undefined;
18
+ }>;
19
+ declare function ActivityBorderDecorator({ activity, children }: ActivityBorderDecoratorProps): react__default.JSX.Element;
20
+ declare const _default$1: react__default.MemoExoticComponent<typeof ActivityBorderDecorator>;
20
21
 
21
- type DecoratorMiddlewareInit = typeof activityBorderDecoratorTypeName;
22
- type DecoratorComposerComponent = (props: Readonly<{
23
- children?: ReactNode;
24
- middleware?: DecoratorMiddleware[];
25
- }>) => react__default.JSX.Element;
26
- type DecoratorMiddleware = (init: DecoratorMiddlewareInit) => ReturnType<ActivityBorderDecoratorMiddleware> | false;
22
+ type ActivityGroupingDecoratorProps = Readonly<{
23
+ activities: readonly WebChatActivity[];
24
+ children?: ReactNode | undefined;
25
+ groupingName: string;
26
+ }>;
27
+ declare function ActivityGroupingDecorator({ activities, children, groupingName }: ActivityGroupingDecoratorProps): react__default.JSX.Element;
28
+ declare const _default: react__default.MemoExoticComponent<typeof ActivityGroupingDecorator>;
27
29
 
28
- declare const DecoratorComposer: react.MemoExoticComponent<DecoratorComposerComponent>;
29
-
30
- declare function ActivityDecorator({ children, activity }: Readonly<{
31
- activity?: WebChatActivity;
32
- children?: ReactNode;
33
- }>): react__default.JSX.Element;
34
- declare const _default: react__default.MemoExoticComponent<typeof ActivityDecorator>;
35
-
36
- export { _default as ActivityDecorator, type ActivityDecoratorRequestType as ActivityDecoratorRequest, DecoratorComposer, type DecoratorMiddleware };
30
+ export { _default$1 as ActivityBorderDecorator, _default as ActivityGroupingDecorator, _default$2 as DecoratorComposer, DecoratorMiddleware };
@@ -0,0 +1,30 @@
1
+ import react__default, { ReactNode } from 'react';
2
+ import { D as DecoratorMiddleware } from './types-BXPldIKA.js';
3
+ export { a as DecoratorMiddlewareInit, b as DecoratorMiddlewareTypes } from './types-BXPldIKA.js';
4
+ import { WebChatActivity } from 'botframework-webchat-core';
5
+ import 'react-chain-of-responsibility';
6
+ import 'type-fest';
7
+
8
+ type DecoratorComposerProps = Readonly<{
9
+ children?: ReactNode | undefined;
10
+ middleware?: readonly DecoratorMiddleware[] | undefined;
11
+ }>;
12
+ declare function DecoratorComposer({ children, middleware }: DecoratorComposerProps): react__default.JSX.Element;
13
+ declare const _default$2: react__default.MemoExoticComponent<typeof DecoratorComposer>;
14
+
15
+ type ActivityBorderDecoratorProps = Readonly<{
16
+ activity?: WebChatActivity | undefined;
17
+ children?: ReactNode | undefined;
18
+ }>;
19
+ declare function ActivityBorderDecorator({ activity, children }: ActivityBorderDecoratorProps): react__default.JSX.Element;
20
+ declare const _default$1: react__default.MemoExoticComponent<typeof ActivityBorderDecorator>;
21
+
22
+ type ActivityGroupingDecoratorProps = Readonly<{
23
+ activities: readonly WebChatActivity[];
24
+ children?: ReactNode | undefined;
25
+ groupingName: string;
26
+ }>;
27
+ declare function ActivityGroupingDecorator({ activities, children, groupingName }: ActivityGroupingDecoratorProps): react__default.JSX.Element;
28
+ declare const _default: react__default.MemoExoticComponent<typeof ActivityGroupingDecorator>;
29
+
30
+ export { _default$1 as ActivityBorderDecorator, _default as ActivityGroupingDecorator, _default$2 as DecoratorComposer, DecoratorMiddleware };
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk45Z2ZE4Mjs = require('./chunk-45Z2ZE4M.js');require('./chunk-LXPINC7N.js');var _react = require('react'); var _react2 = _interopRequireDefault(_react);function u({children:e,middleware:r}){return r?_react2.default.createElement(_chunk45Z2ZE4Mjs.c,{middleware:r,priority:"normal"},e):_react2.default.createElement(_react.Fragment,null,e)}var y=_react.memo.call(void 0, u);var _botframeworkwebchatcore = require('botframework-webchat-core');function A({children:e}){return _react2.default.createElement(_react.Fragment,null,e)}var i=_react.memo.call(void 0, A);var R=["bot","channel","user",void 0];function x({activity:e,children:r}){let t=_react.useMemo.call(void 0, ()=>{var a,d;let{type:o}=_botframeworkwebchatcore.getActivityLivestreamingMetadata.call(void 0, e)||{};return{livestreamingState:o==="final activity"?"completing":o==="informative message"?"preparing":o==="interim activity"?"ongoing":void 0,from:R.includes((a=e==null?void 0:e.from)==null?void 0:a.role)?(d=e==null?void 0:e.from)==null?void 0:d.role:void 0}},[e]);return _react2.default.createElement(_chunk45Z2ZE4Mjs.a,{fallbackComponent:i,request:t},r)}var w=_react.memo.call(void 0, x);function F({activities:e,children:r,groupingName:t}){let o=_react.useMemo.call(void 0, ()=>({groupingName:t}),[t]);return _react2.default.createElement(_chunk45Z2ZE4Mjs.b,{activities:e,fallbackComponent:i,request:o},r)}var q=_react.memo.call(void 0, F);exports.ActivityBorderDecorator = w; exports.ActivityGroupingDecorator = q; exports.DecoratorComposer = y;
2
+ /*! For license information please see botframework-webchat-api.decorator.js.LEGAL.txt */
3
+ //# sourceMappingURL=botframework-webchat-api.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/api/dist/botframework-webchat-api.decorator.js","../src/decorator/DecoratorComposer.tsx","../src/decorator/ActivityBorder/ActivityBorderDecorator.tsx","../src/decorator/private/PassthroughFallback.tsx","../src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx"],"names":["DecoratorComposer","children","middleware","React","InternalDecoratorComposer_default","Fragment","DecoratorComposer_default","memo","PassthroughFallback","PassthroughFallback_default","supportedActivityRoles","ActivityBorderDecorator","activity","request","useMemo","_a","_b","type","getActivityLivestreamingMetadata","ActivityBorderDecoratorMiddlewareProxy","ActivityBorderDecorator_default","ActivityGroupingDecorator","activities","groupingName","ActivityGroupingDecoratorMiddlewareProxy","ActivityGroupingDecorator_default"],"mappings":"AAAA,+NAAgD,+BAA4B,4ECAtB,SAS7CA,CAAAA,CAAkB,CAAE,QAAA,CAAAC,CAAAA,CAAU,UAAA,CAAAC,CAAW,CAAA,CAA2B,CAC3E,OAAOA,CAAAA,CACLC,eAAAA,CAAA,aAAA,CAACC,kBAAAA,CAAA,CAA0B,UAAA,CAAYF,CAAAA,CAAY,QAAA,CAAS,QAAA,CAAA,CACzDD,CACH,CAAA,CAGAE,eAAAA,CAAA,aAAA,CAACE,eAAAA,CAAA,IAAA,CAAUJ,CAAS,CAExB,CAEA,IAAOK,CAAAA,CAAQC,yBAAAA,CAAsB,CAAA,CCpBrC,oEAAuE,SCM9DC,CAAAA,CAAoB,CAAE,QAAA,CAAAP,CAAS,CAAA,CAA6B,CACnE,OAAOE,eAAAA,CAAA,aAAA,CAACE,eAAAA,CAAA,IAAA,CAAUJ,CAAS,CAC7B,CAEA,IAAOQ,CAAAA,CAAQF,yBAAAA,CAAwB,CAAA,CDFvC,IAAMG,CAAAA,CAA6E,CACjF,KAAA,CACA,SAAA,CACA,MAAA,CACA,KAAA,CACF,CAAA,CAOA,SAASC,CAAAA,CAAwB,CAAE,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAX,CAAS,CAAA,CAAiC,CACrF,IAAMY,CAAAA,CAAUC,4BAAAA,CAAkD,CAAA,EAAM,CArB1E,IAAAC,CAAAA,CAAAC,CAAAA,CAsBI,GAAM,CAAE,IAAA,CAAAC,CAAK,CAAA,CAAIC,uEAAAA,CAAyC,CAAA,EAAK,CAAC,CAAA,CAEhE,MAAO,CACL,kBAAA,CACED,CAAAA,GAAS,gBAAA,CACL,YAAA,CACAA,CAAAA,GAAS,qBAAA,CACP,WAAA,CACAA,CAAAA,GAAS,kBAAA,CACP,SAAA,CAEE,KAAA,CAAA,CAEZ,IAAA,CAAMP,CAAAA,CAAuB,QAAA,CAAA,CAASK,CAAAA,CAAAH,CAAAA,EAAA,IAAA,CAAA,KAAA,CAAA,CAAAA,CAAAA,CAAU,IAAA,CAAA,EAAV,IAAA,CAAA,KAAA,CAAA,CAAAG,CAAAA,CAAgB,IAAI,CAAA,CAAA,CAAIC,CAAAA,CAAAJ,CAAAA,EAAA,IAAA,CAAA,KAAA,CAAA,CAAAA,CAAAA,CAAU,IAAA,CAAA,EAAV,IAAA,CAAA,KAAA,CAAA,CAAAI,CAAAA,CAAgB,IAAA,CAAO,KAAA,CACvF,CACF,CAAA,CAAG,CAACJ,CAAQ,CAAC,CAAA,CAEb,OACET,eAAAA,CAAA,aAAA,CAACgB,kBAAAA,CAAA,CAAuC,iBAAA,CAAmBV,CAAAA,CAAqB,OAAA,CAASI,CAAAA,CAAAA,CACtFZ,CACH,CAEJ,CAEA,IAAOmB,CAAAA,CAAQb,yBAAAA,CAA4B,CAAA,CE7C3C,SAcSc,CAAAA,CAA0B,CAAE,UAAA,CAAAC,CAAAA,CAAY,QAAA,CAAArB,CAAAA,CAAU,YAAA,CAAAsB,CAAa,CAAA,CAAmC,CACzG,IAAMV,CAAAA,CAAUC,4BAAAA,CAAoD,CAAA,EAAA,CAAO,CAAE,YAAA,CAAAS,CAAa,CAAA,CAAA,CAAI,CAACA,CAAY,CAAC,CAAA,CAE5G,OACEpB,eAAAA,CAAA,aAAA,CAACqB,kBAAAA,CAAA,CACC,UAAA,CAAYF,CAAAA,CACZ,iBAAA,CAAmBb,CAAAA,CACnB,OAAA,CAASI,CAAAA,CAAAA,CAERZ,CACH,CAEJ,CAEA,IAAOwB,CAAAA,CAAQlB,yBAAAA,CAA8B,CAAA,CAAA,0GAAA;AJ5B7C","file":"/__w/1/s/BotFramework-WebChat/packages/api/dist/botframework-webchat-api.decorator.js","sourcesContent":[null,"import React, { Fragment, memo, type ReactNode } from 'react';\nimport InternalDecoratorComposer from './internal/InternalDecoratorComposer';\nimport { type DecoratorMiddleware } from './types';\n\ntype DecoratorComposerProps = Readonly<{\n children?: ReactNode | undefined;\n middleware?: readonly DecoratorMiddleware[] | undefined;\n}>;\n\nfunction DecoratorComposer({ children, middleware }: DecoratorComposerProps) {\n return middleware ? (\n <InternalDecoratorComposer middleware={middleware} priority=\"normal\">\n {children}\n </InternalDecoratorComposer>\n ) : (\n // We can't return `children` unless we are not using memo().\n <Fragment>{children}</Fragment>\n );\n}\n\nexport default memo(DecoratorComposer);\nexport { type DecoratorComposerProps };\n","import { getActivityLivestreamingMetadata, type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo, useMemo, type ReactNode } from 'react';\nimport PassthroughFallback from '../private/PassthroughFallback';\nimport {\n ActivityBorderDecoratorMiddlewareProxy,\n type ActivityBorderDecoratorMiddlewareRequest\n} from './private/ActivityBorderDecoratorMiddleware';\n\nconst supportedActivityRoles: ActivityBorderDecoratorMiddlewareRequest['from'][] = [\n 'bot',\n 'channel',\n 'user',\n undefined\n];\n\ntype ActivityBorderDecoratorProps = Readonly<{\n activity?: WebChatActivity | undefined;\n children?: ReactNode | undefined;\n}>;\n\nfunction ActivityBorderDecorator({ activity, children }: ActivityBorderDecoratorProps) {\n const request = useMemo<ActivityBorderDecoratorMiddlewareRequest>(() => {\n const { type } = getActivityLivestreamingMetadata(activity) || {};\n\n return {\n livestreamingState:\n type === 'final activity'\n ? 'completing'\n : type === 'informative message'\n ? 'preparing'\n : type === 'interim activity'\n ? 'ongoing'\n : type === 'contentless'\n ? undefined // No bubble is shown for \"contentless\" livestream, should not decorate.\n : undefined,\n from: supportedActivityRoles.includes(activity?.from?.role) ? activity?.from?.role : undefined\n };\n }, [activity]);\n\n return (\n <ActivityBorderDecoratorMiddlewareProxy fallbackComponent={PassthroughFallback} request={request}>\n {children}\n </ActivityBorderDecoratorMiddlewareProxy>\n );\n}\n\nexport default memo(ActivityBorderDecorator);\nexport { type ActivityBorderDecoratorProps };\n","import React, { Fragment, memo, type ReactNode } from 'react';\n\ntype PassthroughFallbackProps = Readonly<{\n children?: ReactNode | undefined;\n}>;\n\nfunction PassthroughFallback({ children }: PassthroughFallbackProps) {\n return <Fragment>{children}</Fragment>;\n}\n\nexport default memo(PassthroughFallback);\nexport { type PassthroughFallbackProps };\n","import { type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo, useMemo, type ReactNode } from 'react';\n\nimport PassthroughFallback from '../private/PassthroughFallback';\nimport {\n ActivityGroupingDecoratorMiddlewareProxy,\n type ActivityGroupingDecoratorMiddlewareRequest\n} from './private/ActivityGroupingDecoratorMiddleware';\n\ntype ActivityGroupingDecoratorProps = Readonly<{\n activities: readonly WebChatActivity[];\n children?: ReactNode | undefined;\n groupingName: string;\n}>;\n\nfunction ActivityGroupingDecorator({ activities, children, groupingName }: ActivityGroupingDecoratorProps) {\n const request = useMemo<ActivityGroupingDecoratorMiddlewareRequest>(() => ({ groupingName }), [groupingName]);\n\n return (\n <ActivityGroupingDecoratorMiddlewareProxy\n activities={activities}\n fallbackComponent={PassthroughFallback}\n request={request}\n >\n {children}\n </ActivityGroupingDecoratorMiddlewareProxy>\n );\n}\n\nexport default memo(ActivityGroupingDecorator);\nexport { type ActivityGroupingDecoratorProps };\n"]}
@@ -1,3 +1,3 @@
1
- import{a as o}from"./chunk-2S76JUVM.mjs";import"./chunk-J6D5YEY6.mjs";import{memo as f}from"react";import n,{useMemo as D}from"react";var{initMiddleware:i,Provider:a,Proxy:d,types:q}=o("ActivityBorderDecoratorMiddleware"),c="activity border";var v=[],p=()=>({children:r,middleware:e=v})=>{let t=D(()=>i(e,c),[e]);return n.createElement(a,{middleware:t},r)};var y=f(p());y.displayName="DecoratorComposer";import m,{Fragment as A,memo as l,useMemo as u}from"react";var s=l(({children:r})=>m.createElement(A,null,r));s.displayName="ActivityDecoratorFallback";var M=["bot","channel","user",void 0],w=["informative","completion",void 0];function B({children:r,activity:e}){let t=u(()=>({from:M.includes(e?.from?.role)?e?.from?.role:void 0,state:w.includes(e?.channelData?.streamType)?e?.channelData?.streamType:void 0}),[e]);return m.createElement(d,{fallbackComponent:s,request:t},r)}var R=l(B);export{R as ActivityDecorator,y as DecoratorComposer};
1
+ import{a,b as c,c as d}from"./chunk-PRWGXTDA.mjs";import"./chunk-2HABAU7C.mjs";import n,{Fragment as p,memo as m}from"react";function s({children:e,middleware:r}){return r?n.createElement(d,{middleware:r,priority:"normal"},e):n.createElement(p,null,e)}var l=m(s);import{getActivityLivestreamingMetadata as v}from"botframework-webchat-core";import g,{memo as A,useMemo as P}from"react";import y,{Fragment as u,memo as f}from"react";function D({children:e}){return y.createElement(u,null,e)}var i=f(D);var h=["bot","channel","user",void 0];function M({activity:e,children:r}){let t=P(()=>{let{type:o}=v(e)||{};return{livestreamingState:o==="final activity"?"completing":o==="informative message"?"preparing":o==="interim activity"?"ongoing":void 0,from:h.includes(e?.from?.role)?e?.from?.role:void 0}},[e]);return g.createElement(a,{fallbackComponent:i,request:t},r)}var R=A(M);import x,{memo as w,useMemo as b}from"react";function C({activities:e,children:r,groupingName:t}){let o=b(()=>({groupingName:t}),[t]);return x.createElement(c,{activities:e,fallbackComponent:i,request:o},r)}var B=w(C);export{R as ActivityBorderDecorator,B as ActivityGroupingDecorator,l as DecoratorComposer};
2
2
  /*! For license information please see botframework-webchat-api.decorator.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-api.decorator.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/decorator/private/DecoratorComposer.tsx","../src/decorator/private/createDecoratorComposer.tsx","../src/decorator/private/ActivityBorderDecoratorMiddleware.ts","../src/decorator/private/ActivityDecorator.tsx"],"sourcesContent":["import { memo } from 'react';\nimport createDecoratorComposer from './createDecoratorComposer';\n\nexport const DecoratorComposer = memo(createDecoratorComposer());\n\nDecoratorComposer.displayName = 'DecoratorComposer';\n","import React, { useMemo, type ReactNode } from 'react';\nimport {\n ActivityBorderDecoratorMiddlewareProvider,\n activityBorderDecoratorTypeName,\n initActivityBorderDecoratorMiddleware,\n type ActivityBorderDecoratorMiddleware\n} from './ActivityBorderDecoratorMiddleware';\n\ntype DecoratorMiddlewareInit = typeof activityBorderDecoratorTypeName;\n\nexport type DecoratorComposerComponent = (\n props: Readonly<{\n children?: ReactNode;\n middleware?: DecoratorMiddleware[];\n }>\n) => React.JSX.Element;\n\nexport type DecoratorMiddleware = (\n init: DecoratorMiddlewareInit\n) => ReturnType<ActivityBorderDecoratorMiddleware> | false;\n\nconst EMPTY_ARRAY = [];\n\nexport default (): DecoratorComposerComponent =>\n ({ children, middleware = EMPTY_ARRAY }) => {\n const borderMiddlewares = useMemo(\n () => initActivityBorderDecoratorMiddleware(middleware, activityBorderDecoratorTypeName),\n [middleware]\n );\n\n return (\n <ActivityBorderDecoratorMiddlewareProvider middleware={borderMiddlewares}>\n {children}\n </ActivityBorderDecoratorMiddlewareProvider>\n );\n };\n","import { type EmptyObject } from 'type-fest';\n\nimport ActivityDecoratorRequest from './activityDecoratorRequest';\nimport templateMiddleware from './templateMiddleware';\n\nconst {\n initMiddleware: initActivityBorderDecoratorMiddleware,\n Provider: ActivityBorderDecoratorMiddlewareProvider,\n Proxy: ActivityBorderDecoratorMiddlewareProxy,\n types\n} = templateMiddleware<typeof activityBorderDecoratorTypeName, ActivityDecoratorRequest, EmptyObject>(\n 'ActivityBorderDecoratorMiddleware'\n);\n\ntype ActivityBorderDecoratorMiddleware = typeof types.middleware;\ntype ActivityBorderDecoratorMiddlewareInit = typeof types.init;\ntype ActivityBorderDecoratorMiddlewareProps = typeof types.props;\ntype ActivityBorderDecoratorMiddlewareRequest = typeof types.request;\n\nconst activityBorderDecoratorTypeName = 'activity border' as const;\n\nexport {\n ActivityBorderDecoratorMiddlewareProvider,\n ActivityBorderDecoratorMiddlewareProxy,\n activityBorderDecoratorTypeName,\n initActivityBorderDecoratorMiddleware,\n type ActivityBorderDecoratorMiddleware,\n type ActivityBorderDecoratorMiddlewareInit,\n type ActivityBorderDecoratorMiddlewareProps,\n type ActivityBorderDecoratorMiddlewareRequest\n};\n","import { WebChatActivity } from 'botframework-webchat-core';\nimport React, { Fragment, memo, useMemo, type ReactNode } from 'react';\nimport { ActivityDecoratorRequest } from '..';\nimport { ActivityBorderDecoratorMiddlewareProxy } from './ActivityBorderDecoratorMiddleware';\n\nconst ActivityDecoratorFallback = memo(({ children }) => <Fragment>{children}</Fragment>);\n\nActivityDecoratorFallback.displayName = 'ActivityDecoratorFallback';\n\nconst supportedActivityRoles: ActivityDecoratorRequest['from'][] = ['bot', 'channel', 'user', undefined];\nconst supportedActivityStates: ActivityDecoratorRequest['state'][] = ['informative', 'completion', undefined];\n\nfunction ActivityDecorator({ children, activity }: Readonly<{ activity?: WebChatActivity; children?: ReactNode }>) {\n const request = useMemo<ActivityDecoratorRequest>(\n () => ({\n from: supportedActivityRoles.includes(activity?.from?.role) ? activity?.from?.role : undefined,\n state: supportedActivityStates.includes(activity?.channelData?.streamType)\n ? activity?.channelData?.streamType\n : undefined\n }),\n [activity]\n );\n\n return (\n <ActivityBorderDecoratorMiddlewareProxy fallbackComponent={ActivityDecoratorFallback} request={request}>\n {children}\n </ActivityBorderDecoratorMiddlewareProxy>\n );\n}\n\nexport default memo(ActivityDecorator);\n"],"mappings":"sEAAA,OAAS,QAAAA,MAAY,QCArB,OAAOC,GAAS,WAAAC,MAA+B,QCK/C,GAAM,CACJ,eAAgBC,EAChB,SAAUC,EACV,MAAOC,EACP,MAAAC,CACF,EAAIC,EACF,mCACF,EAOMC,EAAkC,kBDExC,IAAMC,EAAc,CAAC,EAEdC,EAAQ,IACb,CAAC,CAAE,SAAAC,EAAU,WAAAC,EAAaH,CAAY,IAAM,CAC1C,IAAMI,EAAoBC,EACxB,IAAMC,EAAsCH,EAAYI,CAA+B,EACvF,CAACJ,CAAU,CACb,EAEA,OACEK,EAAA,cAACC,EAAA,CAA0C,WAAYL,GACpDF,CACH,CAEJ,EDhCK,IAAMQ,EAAoBC,EAAKC,EAAwB,CAAC,EAE/DF,EAAkB,YAAc,oBGJhC,OAAOG,GAAS,YAAAC,EAAU,QAAAC,EAAM,WAAAC,MAA+B,QAI/D,IAAMC,EAA4BC,EAAK,CAAC,CAAE,SAAAC,CAAS,IAAMC,EAAA,cAACC,EAAA,KAAUF,CAAS,CAAW,EAExFF,EAA0B,YAAc,4BAExC,IAAMK,EAA6D,CAAC,MAAO,UAAW,OAAQ,MAAS,EACjGC,EAA+D,CAAC,cAAe,aAAc,MAAS,EAE5G,SAASC,EAAkB,CAAE,SAAAL,EAAU,SAAAM,CAAS,EAAmE,CACjH,IAAMC,EAAUC,EACd,KAAO,CACL,KAAML,EAAuB,SAASG,GAAU,MAAM,IAAI,EAAIA,GAAU,MAAM,KAAO,OACrF,MAAOF,EAAwB,SAASE,GAAU,aAAa,UAAU,EACrEA,GAAU,aAAa,WACvB,MACN,GACA,CAACA,CAAQ,CACX,EAEA,OACEL,EAAA,cAACQ,EAAA,CAAuC,kBAAmBX,EAA2B,QAASS,GAC5FP,CACH,CAEJ,CAEA,IAAOU,EAAQX,EAAKM,CAAiB","names":["memo","React","useMemo","initActivityBorderDecoratorMiddleware","ActivityBorderDecoratorMiddlewareProvider","ActivityBorderDecoratorMiddlewareProxy","types","templateMiddleware","activityBorderDecoratorTypeName","EMPTY_ARRAY","createDecoratorComposer_default","children","middleware","borderMiddlewares","useMemo","initActivityBorderDecoratorMiddleware","activityBorderDecoratorTypeName","React","ActivityBorderDecoratorMiddlewareProvider","DecoratorComposer","memo","createDecoratorComposer_default","React","Fragment","memo","useMemo","ActivityDecoratorFallback","memo","children","React","Fragment","supportedActivityRoles","supportedActivityStates","ActivityDecorator","activity","request","useMemo","ActivityBorderDecoratorMiddlewareProxy","ActivityDecorator_default"]}
1
+ {"version":3,"sources":["../src/decorator/DecoratorComposer.tsx","../src/decorator/ActivityBorder/ActivityBorderDecorator.tsx","../src/decorator/private/PassthroughFallback.tsx","../src/decorator/ActivityGrouping/ActivityGroupingDecorator.tsx"],"sourcesContent":["import React, { Fragment, memo, type ReactNode } from 'react';\nimport InternalDecoratorComposer from './internal/InternalDecoratorComposer';\nimport { type DecoratorMiddleware } from './types';\n\ntype DecoratorComposerProps = Readonly<{\n children?: ReactNode | undefined;\n middleware?: readonly DecoratorMiddleware[] | undefined;\n}>;\n\nfunction DecoratorComposer({ children, middleware }: DecoratorComposerProps) {\n return middleware ? (\n <InternalDecoratorComposer middleware={middleware} priority=\"normal\">\n {children}\n </InternalDecoratorComposer>\n ) : (\n // We can't return `children` unless we are not using memo().\n <Fragment>{children}</Fragment>\n );\n}\n\nexport default memo(DecoratorComposer);\nexport { type DecoratorComposerProps };\n","import { getActivityLivestreamingMetadata, type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo, useMemo, type ReactNode } from 'react';\nimport PassthroughFallback from '../private/PassthroughFallback';\nimport {\n ActivityBorderDecoratorMiddlewareProxy,\n type ActivityBorderDecoratorMiddlewareRequest\n} from './private/ActivityBorderDecoratorMiddleware';\n\nconst supportedActivityRoles: ActivityBorderDecoratorMiddlewareRequest['from'][] = [\n 'bot',\n 'channel',\n 'user',\n undefined\n];\n\ntype ActivityBorderDecoratorProps = Readonly<{\n activity?: WebChatActivity | undefined;\n children?: ReactNode | undefined;\n}>;\n\nfunction ActivityBorderDecorator({ activity, children }: ActivityBorderDecoratorProps) {\n const request = useMemo<ActivityBorderDecoratorMiddlewareRequest>(() => {\n const { type } = getActivityLivestreamingMetadata(activity) || {};\n\n return {\n livestreamingState:\n type === 'final activity'\n ? 'completing'\n : type === 'informative message'\n ? 'preparing'\n : type === 'interim activity'\n ? 'ongoing'\n : type === 'contentless'\n ? undefined // No bubble is shown for \"contentless\" livestream, should not decorate.\n : undefined,\n from: supportedActivityRoles.includes(activity?.from?.role) ? activity?.from?.role : undefined\n };\n }, [activity]);\n\n return (\n <ActivityBorderDecoratorMiddlewareProxy fallbackComponent={PassthroughFallback} request={request}>\n {children}\n </ActivityBorderDecoratorMiddlewareProxy>\n );\n}\n\nexport default memo(ActivityBorderDecorator);\nexport { type ActivityBorderDecoratorProps };\n","import React, { Fragment, memo, type ReactNode } from 'react';\n\ntype PassthroughFallbackProps = Readonly<{\n children?: ReactNode | undefined;\n}>;\n\nfunction PassthroughFallback({ children }: PassthroughFallbackProps) {\n return <Fragment>{children}</Fragment>;\n}\n\nexport default memo(PassthroughFallback);\nexport { type PassthroughFallbackProps };\n","import { type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo, useMemo, type ReactNode } from 'react';\n\nimport PassthroughFallback from '../private/PassthroughFallback';\nimport {\n ActivityGroupingDecoratorMiddlewareProxy,\n type ActivityGroupingDecoratorMiddlewareRequest\n} from './private/ActivityGroupingDecoratorMiddleware';\n\ntype ActivityGroupingDecoratorProps = Readonly<{\n activities: readonly WebChatActivity[];\n children?: ReactNode | undefined;\n groupingName: string;\n}>;\n\nfunction ActivityGroupingDecorator({ activities, children, groupingName }: ActivityGroupingDecoratorProps) {\n const request = useMemo<ActivityGroupingDecoratorMiddlewareRequest>(() => ({ groupingName }), [groupingName]);\n\n return (\n <ActivityGroupingDecoratorMiddlewareProxy\n activities={activities}\n fallbackComponent={PassthroughFallback}\n request={request}\n >\n {children}\n </ActivityGroupingDecoratorMiddlewareProxy>\n );\n}\n\nexport default memo(ActivityGroupingDecorator);\nexport { type ActivityGroupingDecoratorProps };\n"],"mappings":"+EAAA,OAAOA,GAAS,YAAAC,EAAU,QAAAC,MAA4B,QAStD,SAASC,EAAkB,CAAE,SAAAC,EAAU,WAAAC,CAAW,EAA2B,CAC3E,OAAOA,EACLC,EAAA,cAACC,EAAA,CAA0B,WAAYF,EAAY,SAAS,UACzDD,CACH,EAGAE,EAAA,cAACE,EAAA,KAAUJ,CAAS,CAExB,CAEA,IAAOK,EAAQC,EAAKP,CAAiB,ECpBrC,OAAS,oCAAAQ,MAA8D,4BACvE,OAAOC,GAAS,QAAAC,EAAM,WAAAC,MAA+B,QCDrD,OAAOC,GAAS,YAAAC,EAAU,QAAAC,MAA4B,QAMtD,SAASC,EAAoB,CAAE,SAAAC,CAAS,EAA6B,CACnE,OAAOJ,EAAA,cAACC,EAAA,KAAUG,CAAS,CAC7B,CAEA,IAAOC,EAAQH,EAAKC,CAAmB,EDFvC,IAAMG,EAA6E,CACjF,MACA,UACA,OACA,MACF,EAOA,SAASC,EAAwB,CAAE,SAAAC,EAAU,SAAAC,CAAS,EAAiC,CACrF,IAAMC,EAAUC,EAAkD,IAAM,CACtE,GAAM,CAAE,KAAAC,CAAK,EAAIC,EAAiCL,CAAQ,GAAK,CAAC,EAEhE,MAAO,CACL,mBACEI,IAAS,iBACL,aACAA,IAAS,sBACP,YACAA,IAAS,mBACP,UAEE,OAEZ,KAAMN,EAAuB,SAASE,GAAU,MAAM,IAAI,EAAIA,GAAU,MAAM,KAAO,MACvF,CACF,EAAG,CAACA,CAAQ,CAAC,EAEb,OACEM,EAAA,cAACC,EAAA,CAAuC,kBAAmBC,EAAqB,QAASN,GACtFD,CACH,CAEJ,CAEA,IAAOQ,EAAQC,EAAKX,CAAuB,EE7C3C,OAAOY,GAAS,QAAAC,EAAM,WAAAC,MAA+B,QAcrD,SAASC,EAA0B,CAAE,WAAAC,EAAY,SAAAC,EAAU,aAAAC,CAAa,EAAmC,CACzG,IAAMC,EAAUC,EAAoD,KAAO,CAAE,aAAAF,CAAa,GAAI,CAACA,CAAY,CAAC,EAE5G,OACEG,EAAA,cAACC,EAAA,CACC,WAAYN,EACZ,kBAAmBO,EACnB,QAASJ,GAERF,CACH,CAEJ,CAEA,IAAOO,EAAQC,EAAKV,CAAyB","names":["React","Fragment","memo","DecoratorComposer","children","middleware","React","InternalDecoratorComposer_default","Fragment","DecoratorComposer_default","memo","getActivityLivestreamingMetadata","React","memo","useMemo","React","Fragment","memo","PassthroughFallback","children","PassthroughFallback_default","supportedActivityRoles","ActivityBorderDecorator","activity","children","request","useMemo","type","getActivityLivestreamingMetadata","React","ActivityBorderDecoratorMiddlewareProxy","PassthroughFallback_default","ActivityBorderDecorator_default","memo","React","memo","useMemo","ActivityGroupingDecorator","activities","children","groupingName","request","useMemo","React","ActivityGroupingDecoratorMiddlewareProxy","PassthroughFallback_default","ActivityGroupingDecorator_default","memo"]}
@@ -1,3 +1,20 @@
1
+ import react__default, { ReactNode } from 'react';
2
+ import { D as DecoratorMiddleware } from './types-BXPldIKA.mjs';
3
+ import { BaseSchema, BaseIssue, InferInput, InferOutput } from 'valibot';
4
+ import 'react-chain-of-responsibility';
5
+ import 'type-fest';
6
+ import 'botframework-webchat-core';
7
+
8
+ type LowPriorityDecoratorComposerProps = Readonly<{
9
+ children?: ReactNode | undefined;
10
+ middleware: readonly DecoratorMiddleware[];
11
+ }>;
12
+ declare function LowPriorityDecoratorDecomposer({ children, middleware }: LowPriorityDecoratorComposerProps): react__default.JSX.Element;
13
+ declare const _default: react__default.MemoExoticComponent<typeof LowPriorityDecoratorDecomposer>;
14
+
1
15
  declare function useSetDictateState(): (dictateState: number) => void;
2
16
 
3
- export { useSetDictateState };
17
+ declare function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(propsSchema: TSchema, props: unknown, isolationMode?: 'no isolation' | undefined): InferInput<TSchema>;
18
+ declare function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(propsSchema: TSchema, props: unknown, isolationMode?: 'strict'): InferOutput<TSchema>;
19
+
20
+ export { _default as LowPriorityDecoratorComposer, useSetDictateState, validateProps };
@@ -0,0 +1,20 @@
1
+ import react__default, { ReactNode } from 'react';
2
+ import { D as DecoratorMiddleware } from './types-BXPldIKA.js';
3
+ import { BaseSchema, BaseIssue, InferInput, InferOutput } from 'valibot';
4
+ import 'react-chain-of-responsibility';
5
+ import 'type-fest';
6
+ import 'botframework-webchat-core';
7
+
8
+ type LowPriorityDecoratorComposerProps = Readonly<{
9
+ children?: ReactNode | undefined;
10
+ middleware: readonly DecoratorMiddleware[];
11
+ }>;
12
+ declare function LowPriorityDecoratorDecomposer({ children, middleware }: LowPriorityDecoratorComposerProps): react__default.JSX.Element;
13
+ declare const _default: react__default.MemoExoticComponent<typeof LowPriorityDecoratorDecomposer>;
14
+
15
+ declare function useSetDictateState(): (dictateState: number) => void;
16
+
17
+ declare function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(propsSchema: TSchema, props: unknown, isolationMode?: 'no isolation' | undefined): InferInput<TSchema>;
18
+ declare function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(propsSchema: TSchema, props: unknown, isolationMode?: 'strict'): InferOutput<TSchema>;
19
+
20
+ export { _default as LowPriorityDecoratorComposer, useSetDictateState, validateProps };
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkWH7VSYKKjs = require('./chunk-WH7VSYKK.js');var _chunk45Z2ZE4Mjs = require('./chunk-45Z2ZE4M.js');require('./chunk-LXPINC7N.js');var _react = require('react'); var _react2 = _interopRequireDefault(_react);function u({children:o,middleware:e}){return _react2.default.createElement(_chunk45Z2ZE4Mjs.c,{middleware:e,priority:"low"},o)}var m=_react.memo.call(void 0, u);function a(){return _chunkWH7VSYKKjs.b.call(void 0, ).setDictateState}var _valibot = require('valibot');function s(o,e,i){return e;try{return _valibot.parse.call(void 0, o,e)}catch(t){throw console.error("botframework-webchat: Validation error while parsing props.",t.issues),t}}exports.LowPriorityDecoratorComposer = m; exports.useSetDictateState = a; exports.validateProps = s;
2
+ /*! For license information please see botframework-webchat-api.internal.js.LEGAL.txt */
3
+ //# sourceMappingURL=botframework-webchat-api.internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/api/dist/botframework-webchat-api.internal.js","../src/decorator/internal/LowPriorityDecoratorComposer.tsx","../src/hooks/internal/useSetDictateState.ts","../src/utils/validateProps.ts"],"names":["LowPriorityDecoratorDecomposer","children","middleware","React","InternalDecoratorComposer_default","LowPriorityDecoratorComposer_default","memo","useSetDictateState","useWebChatAPIContext","validateProps","propsSchema","props","isolationMode","parse","error"],"mappings":"AAAA,+NAAuC,sDAAwC,+BAA4B,4ECA/D,SASnCA,CAAAA,CAA+B,CAAE,QAAA,CAAAC,CAAAA,CAAU,UAAA,CAAAC,CAAW,CAAA,CAAsC,CACnG,OACEC,eAAAA,CAAA,aAAA,CAACC,kBAAAA,CAAA,CAA0B,UAAA,CAAYF,CAAAA,CAAY,QAAA,CAAS,KAAA,CAAA,CACzDD,CACH,CAEJ,CAEA,IAAOI,CAAAA,CAAQC,yBAAAA,CAAmC,CAAA,CCfnC,SAARC,CAAAA,CAAAA,CAAsE,CAC3E,OAAOC,gCAAAA,CAAqB,CAAE,eAChC,CCJA,kCAAqG,SAiC9FC,CAAAA,CACLC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CAC4C,CAE1C,OAAOD,CAAAA,CAST,GAAI,CACF,OAAOE,4BAAAA,CAAMH,CAAaC,CAAK,CACjC,CAAA,KAAA,CAASG,CAAAA,CAAO,CACd,MAAA,OAAA,CAAQ,KAAA,CAAM,6DAAA,CAA+DA,CAAAA,CAAM,MAAM,CAAA,CAEnFA,CACR,CACF,CAAA,oGAAA;AHtDA","file":"/__w/1/s/BotFramework-WebChat/packages/api/dist/botframework-webchat-api.internal.js","sourcesContent":[null,"import React, { memo, type ReactNode } from 'react';\nimport { type DecoratorMiddleware } from '../types';\nimport InternalDecoratorComposer from './InternalDecoratorComposer';\n\ntype LowPriorityDecoratorComposerProps = Readonly<{\n children?: ReactNode | undefined;\n middleware: readonly DecoratorMiddleware[];\n}>;\n\nfunction LowPriorityDecoratorDecomposer({ children, middleware }: LowPriorityDecoratorComposerProps) {\n return (\n <InternalDecoratorComposer middleware={middleware} priority=\"low\">\n {children}\n </InternalDecoratorComposer>\n );\n}\n\nexport default memo(LowPriorityDecoratorDecomposer);\nexport { type LowPriorityDecoratorComposerProps };\n","import useWebChatAPIContext from './useWebChatAPIContext';\n\nexport default function useSetDictateState(): (dictateState: number) => void {\n return useWebChatAPIContext().setDictateState;\n}\n","import { parse, safeParse, type BaseIssue, type BaseSchema, type InferInput, type InferOutput } from 'valibot';\n\n/**\n * Specifies the props isolation mode.\n *\n * - `\"no isolation\"` will return the props as-is without cloning or modifications\n * - `\"strict\"` will isolate the props using `valibot.parse()`\n * - Depends on schema design, it could clone object instances, remove extraneous properties from objects, or fill in optional fields\n */\ntype IsolationMode = 'no isolation' | 'strict';\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'no isolation' | undefined\n): InferInput<TSchema>;\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'strict'\n): InferOutput<TSchema>;\n\n/**\n * Validates props against the specified valibot schema when running under development mode.\n *\n * This function will not perform any validations when running under production mode.\n *\n * @param propsSchema validation schema\n * @param props props to validate\n * @param mode specifies the isolation mode, default to `\"no isolation\"`\n * @returns\n */\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: InferInput<TSchema>,\n isolationMode?: IsolationMode | undefined\n): InferInput<TSchema> | InferOutput<TSchema> {\n if (process.env.NODE_ENV === 'production') {\n return props as unknown as InferInput<TSchema>;\n }\n\n if (isolationMode !== 'strict' && safeParse(propsSchema, props).success) {\n return props as unknown as InferInput<TSchema>;\n }\n\n // Code path hit here when under strict isolation, or no isolation and failed earlier.\n\n try {\n return parse(propsSchema, props);\n } catch (error) {\n console.error('botframework-webchat: Validation error while parsing props.', error.issues);\n\n throw error;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
- import{b as t}from"./chunk-ZAMHKQQC.mjs";import"./chunk-J6D5YEY6.mjs";function e(){return t().setDictateState}export{e as useSetDictateState};
1
+ import{b as r}from"./chunk-7K3OK5TS.mjs";import{c as n}from"./chunk-PRWGXTDA.mjs";import"./chunk-2HABAU7C.mjs";import c,{memo as p}from"react";function u({children:o,middleware:e}){return c.createElement(n,{middleware:e,priority:"low"},o)}var m=p(u);function a(){return r().setDictateState}import{parse as d,safeParse as f}from"valibot";function s(o,e,i){return e;try{return d(o,e)}catch(t){throw console.error("botframework-webchat: Validation error while parsing props.",t.issues),t}}export{m as LowPriorityDecoratorComposer,a as useSetDictateState,s as validateProps};
2
2
  /*! For license information please see botframework-webchat-api.internal.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-api.internal.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/internal/useSetDictateState.ts"],"sourcesContent":["import useWebChatAPIContext from './useWebChatAPIContext';\n\nexport default function useSetDictateState(): (dictateState: number) => void {\n return useWebChatAPIContext().setDictateState;\n}\n"],"mappings":"sEAEe,SAARA,GAAsE,CAC3E,OAAOC,EAAqB,EAAE,eAChC","names":["useSetDictateState","useWebChatAPIContext"]}
1
+ {"version":3,"sources":["../src/decorator/internal/LowPriorityDecoratorComposer.tsx","../src/hooks/internal/useSetDictateState.ts","../src/utils/validateProps.ts"],"sourcesContent":["import React, { memo, type ReactNode } from 'react';\nimport { type DecoratorMiddleware } from '../types';\nimport InternalDecoratorComposer from './InternalDecoratorComposer';\n\ntype LowPriorityDecoratorComposerProps = Readonly<{\n children?: ReactNode | undefined;\n middleware: readonly DecoratorMiddleware[];\n}>;\n\nfunction LowPriorityDecoratorDecomposer({ children, middleware }: LowPriorityDecoratorComposerProps) {\n return (\n <InternalDecoratorComposer middleware={middleware} priority=\"low\">\n {children}\n </InternalDecoratorComposer>\n );\n}\n\nexport default memo(LowPriorityDecoratorDecomposer);\nexport { type LowPriorityDecoratorComposerProps };\n","import useWebChatAPIContext from './useWebChatAPIContext';\n\nexport default function useSetDictateState(): (dictateState: number) => void {\n return useWebChatAPIContext().setDictateState;\n}\n","import { parse, safeParse, type BaseIssue, type BaseSchema, type InferInput, type InferOutput } from 'valibot';\n\n/**\n * Specifies the props isolation mode.\n *\n * - `\"no isolation\"` will return the props as-is without cloning or modifications\n * - `\"strict\"` will isolate the props using `valibot.parse()`\n * - Depends on schema design, it could clone object instances, remove extraneous properties from objects, or fill in optional fields\n */\ntype IsolationMode = 'no isolation' | 'strict';\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'no isolation' | undefined\n): InferInput<TSchema>;\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'strict'\n): InferOutput<TSchema>;\n\n/**\n * Validates props against the specified valibot schema when running under development mode.\n *\n * This function will not perform any validations when running under production mode.\n *\n * @param propsSchema validation schema\n * @param props props to validate\n * @param mode specifies the isolation mode, default to `\"no isolation\"`\n * @returns\n */\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: InferInput<TSchema>,\n isolationMode?: IsolationMode | undefined\n): InferInput<TSchema> | InferOutput<TSchema> {\n if (process.env.NODE_ENV === 'production') {\n return props as unknown as InferInput<TSchema>;\n }\n\n if (isolationMode !== 'strict' && safeParse(propsSchema, props).success) {\n return props as unknown as InferInput<TSchema>;\n }\n\n // Code path hit here when under strict isolation, or no isolation and failed earlier.\n\n try {\n return parse(propsSchema, props);\n } catch (error) {\n console.error('botframework-webchat: Validation error while parsing props.', error.issues);\n\n throw error;\n }\n}\n"],"mappings":"+GAAA,OAAOA,GAAS,QAAAC,MAA4B,QAS5C,SAASC,EAA+B,CAAE,SAAAC,EAAU,WAAAC,CAAW,EAAsC,CACnG,OACEC,EAAA,cAACC,EAAA,CAA0B,WAAYF,EAAY,SAAS,OACzDD,CACH,CAEJ,CAEA,IAAOI,EAAQC,EAAKN,CAA8B,ECfnC,SAARO,GAAsE,CAC3E,OAAOC,EAAqB,EAAE,eAChC,CCJA,OAAS,SAAAC,EAAO,aAAAC,MAAqF,UAiCtF,SAARC,EACLC,EACAC,EACAC,EAC4C,CAE1C,OAAOD,EAST,GAAI,CACF,OAAOJ,EAAMG,EAAaC,CAAK,CACjC,OAASE,EAAO,CACd,cAAQ,MAAM,8DAA+DA,EAAM,MAAM,EAEnFA,CACR,CACF","names":["React","memo","LowPriorityDecoratorDecomposer","children","middleware","React","InternalDecoratorComposer_default","LowPriorityDecoratorComposer_default","memo","useSetDictateState","useWebChatAPIContext","parse","safeParse","validateProps","propsSchema","props","isolationMode","error"]}