stream-chat-react 11.0.0 → 11.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.full-bundle.js +1106 -1937
  3. package/dist/browser.full-bundle.js.map +1 -1
  4. package/dist/browser.full-bundle.min.js +4 -4
  5. package/dist/browser.full-bundle.min.js.map +1 -1
  6. package/dist/components/Attachment/Attachment.d.ts +1 -1
  7. package/dist/components/Attachment/Attachment.d.ts.map +1 -1
  8. package/dist/components/Attachment/AttachmentActions.d.ts +1 -1
  9. package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
  10. package/dist/components/Attachment/Audio.d.ts +3 -3
  11. package/dist/components/Attachment/Audio.d.ts.map +1 -1
  12. package/dist/components/Attachment/Audio.js +1 -1
  13. package/dist/components/Attachment/Card.d.ts +1 -1
  14. package/dist/components/Attachment/Card.d.ts.map +1 -1
  15. package/dist/components/Attachment/DownloadButton.d.ts +1 -1
  16. package/dist/components/Attachment/DownloadButton.d.ts.map +1 -1
  17. package/dist/components/Attachment/FileAttachment.d.ts +1 -1
  18. package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
  19. package/dist/components/Attachment/FileSizeIndicator.d.ts +1 -1
  20. package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -1
  21. package/dist/components/Attachment/UnsupportedAttachment.d.ts +1 -1
  22. package/dist/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  23. package/dist/components/Attachment/utils.d.ts +6 -6
  24. package/dist/components/Attachment/utils.d.ts.map +1 -1
  25. package/dist/components/AutoCompleteTextarea/Header.d.ts +2 -2
  26. package/dist/components/AutoCompleteTextarea/Header.d.ts.map +1 -1
  27. package/dist/components/Avatar/Avatar.d.ts +1 -1
  28. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  29. package/dist/components/Channel/Channel.d.ts +5 -3
  30. package/dist/components/Channel/Channel.d.ts.map +1 -1
  31. package/dist/components/Channel/Channel.js +1 -0
  32. package/dist/components/Channel/channelState.d.ts +2 -2
  33. package/dist/components/Channel/channelState.d.ts.map +1 -1
  34. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts +1 -1
  35. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts.map +1 -1
  36. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts +1 -1
  37. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
  38. package/dist/components/ChannelHeader/ChannelHeader.d.ts +1 -1
  39. package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  40. package/dist/components/ChannelList/ChannelList.d.ts +1 -1
  41. package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
  42. package/dist/components/ChannelList/ChannelList.js +2 -1
  43. package/dist/components/ChannelList/ChannelListMessenger.d.ts +1 -1
  44. package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
  45. package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  46. package/dist/components/ChannelList/hooks/usePaginatedChannels.js +2 -2
  47. package/dist/components/ChannelList/utils.d.ts +1 -1
  48. package/dist/components/ChannelList/utils.d.ts.map +1 -1
  49. package/dist/components/ChannelPreview/ChannelPreview.d.ts +2 -2
  50. package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  51. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +1 -1
  52. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts.map +1 -1
  53. package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts +1 -1
  54. package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts.map +1 -1
  55. package/dist/components/ChannelSearch/ChannelSearch.d.ts +2 -2
  56. package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
  57. package/dist/components/ChannelSearch/SearchBar.d.ts +4 -4
  58. package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
  59. package/dist/components/ChannelSearch/SearchInput.d.ts +3 -3
  60. package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
  61. package/dist/components/ChannelSearch/SearchResults.d.ts +6 -6
  62. package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
  63. package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts +5 -5
  64. package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts.map +1 -1
  65. package/dist/components/ChannelSearch/utils.d.ts +1 -1
  66. package/dist/components/ChannelSearch/utils.d.ts.map +1 -1
  67. package/dist/components/Chat/Chat.d.ts +2 -2
  68. package/dist/components/Chat/Chat.d.ts.map +1 -1
  69. package/dist/components/Chat/Chat.js +1 -3
  70. package/dist/components/Chat/hooks/useChannelsQueryState.d.ts +1 -1
  71. package/dist/components/Chat/hooks/useChannelsQueryState.d.ts.map +1 -1
  72. package/dist/components/Chat/hooks/useChat.d.ts +1 -3
  73. package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
  74. package/dist/components/Chat/hooks/useChat.js +4 -7
  75. package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  76. package/dist/components/Chat/hooks/useCreateChatContext.js +1 -5
  77. package/dist/components/Chat/hooks/useCustomStyles.d.ts +2 -2
  78. package/dist/components/Chat/hooks/useCustomStyles.d.ts.map +1 -1
  79. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +6 -6
  80. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
  81. package/dist/components/ChatDown/ChatDown.d.ts +1 -1
  82. package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
  83. package/dist/components/CommandItem/CommandItem.d.ts +1 -1
  84. package/dist/components/CommandItem/CommandItem.d.ts.map +1 -1
  85. package/dist/components/DateSeparator/DateSeparator.d.ts +1 -1
  86. package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
  87. package/dist/components/Emojis/EmojiPicker.d.ts +1 -1
  88. package/dist/components/Emojis/EmojiPicker.d.ts.map +1 -1
  89. package/dist/components/Emojis/index.cjs.js +1 -1
  90. package/dist/components/EmoticonItem/EmoticonItem.d.ts +1 -1
  91. package/dist/components/EmoticonItem/EmoticonItem.d.ts.map +1 -1
  92. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +1 -1
  93. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts.map +1 -1
  94. package/dist/components/EventComponent/EventComponent.d.ts +1 -1
  95. package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
  96. package/dist/components/Gallery/BaseImage.d.ts +6 -0
  97. package/dist/components/Gallery/BaseImage.d.ts.map +1 -0
  98. package/dist/components/Gallery/BaseImage.js +20 -0
  99. package/dist/components/Gallery/Gallery.d.ts +1 -1
  100. package/dist/components/Gallery/Gallery.d.ts.map +1 -1
  101. package/dist/components/Gallery/Gallery.js +4 -2
  102. package/dist/components/Gallery/Image.d.ts +1 -1
  103. package/dist/components/Gallery/Image.d.ts.map +1 -1
  104. package/dist/components/Gallery/Image.js +3 -2
  105. package/dist/components/Gallery/ModalGallery.d.ts +1 -1
  106. package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
  107. package/dist/components/Gallery/ModalGallery.js +3 -1
  108. package/dist/components/Gallery/index.d.ts +1 -0
  109. package/dist/components/Gallery/index.d.ts.map +1 -1
  110. package/dist/components/Gallery/index.js +1 -0
  111. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +1 -1
  112. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
  113. package/dist/components/LoadMore/LoadMoreButton.d.ts +1 -1
  114. package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
  115. package/dist/components/LoadMore/LoadMorePaginator.d.ts +1 -1
  116. package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
  117. package/dist/components/Loading/LoadingErrorIndicator.d.ts +1 -1
  118. package/dist/components/Loading/LoadingErrorIndicator.d.ts.map +1 -1
  119. package/dist/components/Loading/LoadingIndicator.d.ts +1 -1
  120. package/dist/components/Loading/LoadingIndicator.d.ts.map +1 -1
  121. package/dist/components/MML/MML.d.ts +1 -1
  122. package/dist/components/MML/MML.d.ts.map +1 -1
  123. package/dist/components/Message/FixedHeightMessage.d.ts +1 -1
  124. package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
  125. package/dist/components/Message/MessageDeleted.d.ts +1 -1
  126. package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
  127. package/dist/components/Message/MessageOptions.d.ts +1 -1
  128. package/dist/components/Message/MessageOptions.d.ts.map +1 -1
  129. package/dist/components/Message/MessageRepliesCountButton.d.ts +1 -1
  130. package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
  131. package/dist/components/Message/MessageStatus.d.ts +1 -1
  132. package/dist/components/Message/MessageStatus.d.ts.map +1 -1
  133. package/dist/components/Message/MessageText.d.ts +1 -1
  134. package/dist/components/Message/MessageText.d.ts.map +1 -1
  135. package/dist/components/Message/MessageTimestamp.d.ts +1 -1
  136. package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
  137. package/dist/components/Message/hooks/useActionHandler.d.ts +2 -2
  138. package/dist/components/Message/hooks/useActionHandler.d.ts.map +1 -1
  139. package/dist/components/Message/hooks/useDeleteHandler.d.ts +1 -1
  140. package/dist/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  141. package/dist/components/Message/hooks/useEditHandler.d.ts +1 -1
  142. package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
  143. package/dist/components/Message/hooks/useFlagHandler.d.ts +1 -1
  144. package/dist/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
  145. package/dist/components/Message/hooks/useMentionsHandler.d.ts +2 -2
  146. package/dist/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
  147. package/dist/components/Message/hooks/useMuteHandler.d.ts +1 -1
  148. package/dist/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
  149. package/dist/components/Message/hooks/usePinHandler.d.ts +3 -3
  150. package/dist/components/Message/hooks/usePinHandler.d.ts.map +1 -1
  151. package/dist/components/Message/hooks/useUserHandler.d.ts +1 -1
  152. package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
  153. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts +1 -1
  154. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
  155. package/dist/components/Message/renderText/regex.d.ts +1 -1
  156. package/dist/components/Message/renderText/regex.d.ts.map +1 -1
  157. package/dist/components/Message/renderText/renderText.d.ts +2 -2
  158. package/dist/components/Message/renderText/renderText.d.ts.map +1 -1
  159. package/dist/components/Message/renderText/types.d.ts +1 -1
  160. package/dist/components/Message/renderText/types.d.ts.map +1 -1
  161. package/dist/components/Message/types.d.ts +4 -4
  162. package/dist/components/Message/types.d.ts.map +1 -1
  163. package/dist/components/Message/utils.d.ts +2 -2
  164. package/dist/components/Message/utils.d.ts.map +1 -1
  165. package/dist/components/MessageActions/MessageActions.d.ts +3 -3
  166. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  167. package/dist/components/MessageActions/MessageActionsBox.d.ts +3 -3
  168. package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
  169. package/dist/components/MessageInput/AttachmentPreviewList.d.ts +5 -0
  170. package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
  171. package/dist/components/MessageInput/AttachmentPreviewList.js +16 -10
  172. package/dist/components/MessageInput/CooldownTimer.d.ts +1 -1
  173. package/dist/components/MessageInput/CooldownTimer.d.ts.map +1 -1
  174. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +6 -6
  175. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
  176. package/dist/components/MessageInput/LinkPreviewList.d.ts +1 -1
  177. package/dist/components/MessageInput/LinkPreviewList.d.ts.map +1 -1
  178. package/dist/components/MessageInput/MessageInput.d.ts +2 -2
  179. package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
  180. package/dist/components/MessageInput/QuotedMessagePreview.d.ts +1 -1
  181. package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
  182. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +1 -1
  183. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
  184. package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts +3 -3
  185. package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts.map +1 -1
  186. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +13 -13
  187. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
  188. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -1
  189. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
  190. package/dist/components/MessageInput/hooks/utils.d.ts +2 -2
  191. package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
  192. package/dist/components/MessageInput/icons.d.ts +1 -1
  193. package/dist/components/MessageInput/icons.d.ts.map +1 -1
  194. package/dist/components/MessageInput/index.d.ts +1 -1
  195. package/dist/components/MessageInput/index.d.ts.map +1 -1
  196. package/dist/components/MessageInput/index.js +1 -1
  197. package/dist/components/MessageInput/types.d.ts +6 -6
  198. package/dist/components/MessageInput/types.d.ts.map +1 -1
  199. package/dist/components/MessageList/CustomNotification.d.ts +1 -1
  200. package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
  201. package/dist/components/MessageList/GiphyPreviewMessage.d.ts +1 -1
  202. package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
  203. package/dist/components/MessageList/MessageList.d.ts +2 -2
  204. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  205. package/dist/components/MessageList/MessageListNotifications.d.ts +1 -1
  206. package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
  207. package/dist/components/MessageList/MessageNotification.d.ts +1 -1
  208. package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
  209. package/dist/components/MessageList/VirtualizedMessageList.d.ts +4 -4
  210. package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  211. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +1 -1
  212. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
  213. package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts +2 -2
  214. package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts.map +1 -1
  215. package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts +2 -2
  216. package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts.map +1 -1
  217. package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +1 -1
  218. package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  219. package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts +1 -1
  220. package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts.map +1 -1
  221. package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.d.ts.map +1 -1
  222. package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js +31 -32
  223. package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts +1 -1
  224. package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts.map +1 -1
  225. package/dist/components/MessageList/hooks/useLastReadData.d.ts +1 -1
  226. package/dist/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
  227. package/dist/components/MessageList/utils.d.ts +2 -2
  228. package/dist/components/MessageList/utils.d.ts.map +1 -1
  229. package/dist/components/Modal/Modal.d.ts +1 -1
  230. package/dist/components/Modal/Modal.d.ts.map +1 -1
  231. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts +1 -1
  232. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts.map +1 -1
  233. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts +1 -1
  234. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts.map +1 -1
  235. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts +2 -2
  236. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts.map +1 -1
  237. package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts +4 -4
  238. package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts.map +1 -1
  239. package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts +2 -2
  240. package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts.map +1 -1
  241. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts +1 -1
  242. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts.map +1 -1
  243. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts +1 -1
  244. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts.map +1 -1
  245. package/dist/components/ReactFileUtilities/IconButton.d.ts +1 -1
  246. package/dist/components/ReactFileUtilities/IconButton.d.ts.map +1 -1
  247. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts +1 -1
  248. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts.map +1 -1
  249. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts +2 -2
  250. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts.map +1 -1
  251. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts +1 -1
  252. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts.map +1 -1
  253. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts +1 -1
  254. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts.map +1 -1
  255. package/dist/components/ReactFileUtilities/Thumbnail.d.ts +1 -1
  256. package/dist/components/ReactFileUtilities/Thumbnail.d.ts.map +1 -1
  257. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts +1 -1
  258. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts.map +1 -1
  259. package/dist/components/ReactFileUtilities/UploadButton.d.ts +1 -1
  260. package/dist/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
  261. package/dist/components/ReactFileUtilities/types.d.ts +5 -5
  262. package/dist/components/ReactFileUtilities/types.d.ts.map +1 -1
  263. package/dist/components/Reactions/ReactionSelector.d.ts +1 -1
  264. package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
  265. package/dist/components/Reactions/ReactionsList.d.ts +1 -1
  266. package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
  267. package/dist/components/Reactions/SimpleReactionsList.d.ts +1 -1
  268. package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
  269. package/dist/components/Reactions/SpriteImage.d.ts +1 -1
  270. package/dist/components/Reactions/SpriteImage.d.ts.map +1 -1
  271. package/dist/components/Reactions/StreamEmoji.d.ts +1 -1
  272. package/dist/components/Reactions/StreamEmoji.d.ts.map +1 -1
  273. package/dist/components/Reactions/hooks/useProcessReactions.d.ts +2 -2
  274. package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
  275. package/dist/components/Reactions/reactionOptions.d.ts +1 -1
  276. package/dist/components/Reactions/reactionOptions.d.ts.map +1 -1
  277. package/dist/components/SafeAnchor/SafeAnchor.d.ts +1 -1
  278. package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
  279. package/dist/components/Thread/Thread.d.ts +1 -1
  280. package/dist/components/Thread/Thread.d.ts.map +1 -1
  281. package/dist/components/Thread/ThreadHeader.d.ts +1 -1
  282. package/dist/components/Thread/ThreadHeader.d.ts.map +1 -1
  283. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  284. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  285. package/dist/components/TypingIndicator/TypingIndicator.d.ts +1 -1
  286. package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
  287. package/dist/components/UserItem/UserItem.d.ts +1 -1
  288. package/dist/components/UserItem/UserItem.d.ts.map +1 -1
  289. package/dist/components/Window/Window.d.ts +1 -1
  290. package/dist/components/Window/Window.d.ts.map +1 -1
  291. package/dist/context/ChannelActionContext.d.ts +4 -4
  292. package/dist/context/ChannelActionContext.d.ts.map +1 -1
  293. package/dist/context/ChannelListContext.d.ts +23 -0
  294. package/dist/context/ChannelListContext.d.ts.map +1 -0
  295. package/dist/context/ChannelListContext.js +17 -0
  296. package/dist/context/ChannelStateContext.d.ts +5 -5
  297. package/dist/context/ChannelStateContext.d.ts.map +1 -1
  298. package/dist/context/ChatContext.d.ts +7 -16
  299. package/dist/context/ChatContext.d.ts.map +1 -1
  300. package/dist/context/ComponentContext.d.ts +3 -2
  301. package/dist/context/ComponentContext.d.ts.map +1 -1
  302. package/dist/context/MessageContext.d.ts +2 -2
  303. package/dist/context/MessageContext.d.ts.map +1 -1
  304. package/dist/context/MessageInputContext.d.ts +1 -1
  305. package/dist/context/MessageInputContext.d.ts.map +1 -1
  306. package/dist/context/MessageListContext.d.ts +1 -1
  307. package/dist/context/MessageListContext.d.ts.map +1 -1
  308. package/dist/context/TranslationContext.d.ts +5 -5
  309. package/dist/context/TranslationContext.d.ts.map +1 -1
  310. package/dist/context/TypingContext.d.ts +1 -1
  311. package/dist/context/TypingContext.d.ts.map +1 -1
  312. package/dist/context/index.d.ts +1 -0
  313. package/dist/context/index.d.ts.map +1 -1
  314. package/dist/context/index.js +1 -0
  315. package/dist/css/v2/index.css +1 -1
  316. package/dist/css/v2/index.layout.css +1 -1
  317. package/dist/i18n/Streami18n.d.ts +4 -3
  318. package/dist/i18n/Streami18n.d.ts.map +1 -1
  319. package/dist/i18n/de.json +1 -0
  320. package/dist/i18n/en.json +1 -0
  321. package/dist/i18n/es.json +1 -0
  322. package/dist/i18n/fr.json +1 -0
  323. package/dist/i18n/hi.json +1 -0
  324. package/dist/i18n/it.json +1 -0
  325. package/dist/i18n/ja.json +1 -0
  326. package/dist/i18n/ko.json +1 -0
  327. package/dist/i18n/nl.json +1 -0
  328. package/dist/i18n/pt.json +1 -0
  329. package/dist/i18n/ru.json +1 -0
  330. package/dist/i18n/tr.json +1 -0
  331. package/dist/{icons-427fd8d5.js → icons-a35a8ee7.js} +32 -12
  332. package/dist/index.cjs.js +602 -617
  333. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +3 -3
  334. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -0
  335. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +21 -0
  336. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +35 -0
  337. package/dist/scss/v2/BaseImage/index.scss +2 -0
  338. package/dist/scss/v2/_icons.scss +3 -0
  339. package/dist/scss/v2/_utils.scss +12 -0
  340. package/dist/scss/v2/index.layout.scss +2 -0
  341. package/dist/scss/v2/index.scss +1 -0
  342. package/dist/types/types.d.ts +20 -20
  343. package/dist/types/types.d.ts.map +1 -1
  344. package/dist/utils/getChannel.d.ts +1 -1
  345. package/dist/utils/getChannel.d.ts.map +1 -1
  346. package/dist/version.d.ts +1 -1
  347. package/dist/version.js +1 -1
  348. package/package.json +7 -13
@@ -34,7 +34,7 @@
34
34
  --str-chat__image-attachment-color: var(--str-chat__text-color);
35
35
 
36
36
  /* The background color of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */
37
- --str-chat__image-attachment-background-color: var(--str-chat__text-low-emphasis-color);
37
+ --str-chat__image-attachment-background-color: var(--str-chat__secondary-surface-color);
38
38
 
39
39
  /* Top border of image/video attachments (images/videos uploaded from files, scraped media, GIFs) */
40
40
  --str-chat__image-attachment-border-block-start: none;
@@ -266,7 +266,7 @@
266
266
  @include utils.component-layer-overrides('image-gallery-attachment');
267
267
 
268
268
  .str-chat__gallery-image {
269
- background-color: transparent;
269
+ background-color: var(--str-chat__image-attachment-background-color);
270
270
  border: 0;
271
271
  }
272
272
 
@@ -397,4 +397,4 @@
397
397
  border-end-start-radius: 0;
398
398
  border-end-end-radius: 0;
399
399
  }
400
- }
400
+ }
@@ -26,9 +26,11 @@
26
26
  }
27
27
 
28
28
  .str-chat__attachment-preview-image {
29
+ @include utils.flex-row-center;
29
30
  position: relative;
30
31
  height: $preview-height;
31
32
  width: $preview-height;
33
+ overflow: hidden;
32
34
 
33
35
  .str-chat__attachment-preview-image-loading {
34
36
  @include overlay;
@@ -108,7 +110,9 @@
108
110
  .str-chat__attachment-preview-error {
109
111
  @include overlay;
110
112
  @include utils.unset-button(unset);
113
+ inset-inline-start: 0;
111
114
  cursor: pointer;
115
+ z-index: 1;
112
116
  }
113
117
  }
114
118
 
@@ -0,0 +1,21 @@
1
+ .str-chat__base-image {
2
+ .str-chat__message-attachment-file--item-download {
3
+ display: block;
4
+ }
5
+ }
6
+
7
+ .str-chat__message-attachment-card--header,
8
+ .str-chat__gallery-image,
9
+ .str-chat__message-attachment--image {
10
+ .str-chat__message-attachment-file--item-download {
11
+ position: absolute;
12
+ top: 0.5rem;
13
+ right: 1rem;
14
+ }
15
+ }
16
+
17
+ .str-chat__attachment-preview-image {
18
+ .str-chat__message-attachment-file--item-download {
19
+ display: none;
20
+ }
21
+ }
@@ -0,0 +1,35 @@
1
+ @use '../utils';
2
+
3
+ .str-chat__base-image {
4
+ color: transparent; // prevents the img alt text from being seen through the mask
5
+ }
6
+
7
+ .str-chat__base-image--load-failed {
8
+ @include utils.apply-mask-image(
9
+ var(--str-chat__image-fallback-icon),
10
+ var(--str-chat__disabled-color),
11
+ 5rem 5rem
12
+ );
13
+
14
+ ~ .str-chat__message-attachment-file--item-download {
15
+ .str-chat__message-attachment-download-icon path {
16
+ fill: var(--str-chat__text-color);
17
+ }
18
+ }
19
+ }
20
+
21
+ .str-chat__attachment-preview-image {
22
+ .str-chat__base-image--load-failed {
23
+ $fallbackSize: 1.5rem 1.5rem;
24
+ mask-size: $fallbackSize;
25
+ -webkit-mask-size: $fallbackSize;
26
+ }
27
+ }
28
+
29
+ .str-chat__attachment-preview-list .str-chat__attachment-preview-image--error {
30
+ background-color: var(--str-chat__secondary-surface-color);
31
+
32
+ .str-chat__attachment-preview-thumbnail.str-chat__base-image--load-failed {
33
+ background-color: var(--str-chat__disabled-color);
34
+ }
35
+ }
@@ -0,0 +1,2 @@
1
+ @import "BaseImage-layout";
2
+ @import "BaseImage-theme";
@@ -0,0 +1,3 @@
1
+ .str-chat {
2
+ --str-chat__image-fallback-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9InN0ci1jaGF0X19pbWFnZS1mYWxsYmFja19faWNvbiIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTYgMnYxNEgyVjJoMTRabTAtMkgyQy45IDAgMCAuOSAwIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlYyYzAtMS4xLS45LTItMi0yWm0tNC44NiA4Ljg2LTMgMy44N0w2IDEwLjE0IDMgMTRoMTJsLTMuODYtNS4xNFoiLz48L3N2Zz4=");
3
+ }
@@ -199,3 +199,15 @@
199
199
  var(--original-height, 1000000)
200
200
  );
201
201
  }
202
+
203
+ @mixin apply-mask-image($imageDataUrl, $fill, $size) {
204
+ mask-image: $imageDataUrl;
205
+ -webkit-mask-image: $imageDataUrl;
206
+ mask-repeat: no-repeat;
207
+ -webkit-mask-repeat: no-repeat;
208
+ mask-position: center;
209
+ -webkit-mask-position: center;
210
+ mask-size: $size;
211
+ -webkit-mask-size: $size;
212
+ background-color: $fill;
213
+ }
@@ -1,10 +1,12 @@
1
1
  @use 'base';
2
2
  @use 'global-layout-variables';
3
+ @use 'icons';
3
4
 
4
5
  @use 'Avatar/Avatar-layout';
5
6
  @use 'AttachmentList/AttachmentList-layout';
6
7
  @use 'AttachmentPreviewList/AttachmentPreviewList-layout';
7
8
  @use 'Autocomplete/Autocomplete-layout';
9
+ @use 'BaseImage/BaseImage-layout';
8
10
  @use 'Channel/Channel-layout';
9
11
  @use 'ChannelHeader/ChannelHeader-layout';
10
12
  @use 'ChannelList/ChannelList-layout';
@@ -10,6 +10,7 @@
10
10
  @use 'AttachmentList/AttachmentList-theme';
11
11
  @use 'AttachmentPreviewList/AttachmentPreviewList-theme';
12
12
  @use 'Autocomplete/Autocomplete-theme';
13
+ @use 'BaseImage/BaseImage-theme';
13
14
  @use 'Channel/Channel-theme.scss';
14
15
  @use 'ChannelHeader/ChannelHeader-theme';
15
16
  @use 'ChannelList/ChannelList-theme';
@@ -1,16 +1,16 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import type { LoadingIndicatorProps } from '../components/Loading/LoadingIndicator';
3
3
  import type { APIErrorResponse, Attachment, ErrorFromResponse, Event, ExtendableGenerics, LiteralStringForUnion, Mute } from 'stream-chat';
4
- export declare type UnknownType = Record<string, unknown>;
5
- export declare type PropsWithChildrenOnly = PropsWithChildren<Record<never, never>>;
6
- export declare type CustomTrigger = {
4
+ export type UnknownType = Record<string, unknown>;
5
+ export type PropsWithChildrenOnly = PropsWithChildren<Record<never, never>>;
6
+ export type CustomTrigger = {
7
7
  [key: string]: {
8
8
  componentProps: UnknownType;
9
9
  data: UnknownType;
10
10
  };
11
11
  };
12
- export declare type CustomMessageType = 'channel.intro' | 'message.date';
13
- export declare type DefaultAttachmentType = UnknownType & {
12
+ export type CustomMessageType = 'channel.intro' | 'message.date';
13
+ export type DefaultAttachmentType = UnknownType & {
14
14
  asset_url?: string;
15
15
  file_size?: number;
16
16
  id?: string;
@@ -19,13 +19,13 @@ export declare type DefaultAttachmentType = UnknownType & {
19
19
  thumb_url?: string;
20
20
  }>;
21
21
  };
22
- export declare type DefaultChannelType = UnknownType & {
22
+ export type DefaultChannelType = UnknownType & {
23
23
  frozen?: boolean;
24
24
  image?: string;
25
25
  member_count?: number;
26
26
  subtitle?: string;
27
27
  };
28
- export declare type DefaultStreamChatGenerics = ExtendableGenerics & {
28
+ export type DefaultStreamChatGenerics = ExtendableGenerics & {
29
29
  attachmentType: DefaultAttachmentType;
30
30
  channelType: DefaultChannelType;
31
31
  commandType: LiteralStringForUnion;
@@ -34,7 +34,7 @@ export declare type DefaultStreamChatGenerics = ExtendableGenerics & {
34
34
  reactionType: UnknownType;
35
35
  userType: DefaultUserType;
36
36
  };
37
- export declare type DefaultMessageType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = UnknownType & {
37
+ export type DefaultMessageType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = UnknownType & {
38
38
  customType?: CustomMessageType;
39
39
  date?: string | Date;
40
40
  error?: ErrorFromResponse<APIErrorResponse>;
@@ -42,15 +42,15 @@ export declare type DefaultMessageType<StreamChatGenerics extends DefaultStreamC
42
42
  event?: Event<StreamChatGenerics>;
43
43
  unread?: boolean;
44
44
  };
45
- export declare type DefaultUserTypeInternal = {
45
+ export type DefaultUserTypeInternal = {
46
46
  image?: string;
47
47
  status?: string;
48
48
  };
49
- export declare type DefaultUserType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = UnknownType & DefaultUserTypeInternal & {
49
+ export type DefaultUserType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = UnknownType & DefaultUserTypeInternal & {
50
50
  mutes?: Array<Mute<StreamChatGenerics>>;
51
51
  };
52
- export declare type GiphyVersions = 'original' | 'fixed_height' | 'fixed_height_still' | 'fixed_height_downsampled' | 'fixed_width' | 'fixed_width_still' | 'fixed_width_downsampled';
53
- export declare type PaginatorProps = {
52
+ export type GiphyVersions = 'original' | 'fixed_height' | 'fixed_height_still' | 'fixed_height_downsampled' | 'fixed_width' | 'fixed_width_still' | 'fixed_width_downsampled';
53
+ export type PaginatorProps = {
54
54
  /** callback to load the next page */
55
55
  loadNextPage: () => void;
56
56
  /** indicates if there is a next page to load */
@@ -76,19 +76,19 @@ export declare type PaginatorProps = {
76
76
  export interface IconProps {
77
77
  className?: string;
78
78
  }
79
- export declare type Dimensions = {
79
+ export type Dimensions = {
80
80
  height?: string;
81
81
  width?: string;
82
82
  };
83
- export declare type ImageAttachmentConfiguration = {
83
+ export type ImageAttachmentConfiguration = {
84
84
  url: string;
85
85
  };
86
- export declare type VideoAttachmentConfiguration = ImageAttachmentConfiguration & {
86
+ export type VideoAttachmentConfiguration = ImageAttachmentConfiguration & {
87
87
  thumbUrl?: string;
88
88
  };
89
- export declare type ImageAttachmentSizeHandler = (attachment: Attachment, element: HTMLElement) => ImageAttachmentConfiguration;
90
- export declare type VideoAttachmentSizeHandler = (attachment: Attachment, element: HTMLElement, shouldGenerateVideoThumbnail: boolean) => VideoAttachmentConfiguration;
91
- export declare type SendMessageOptions = {
89
+ export type ImageAttachmentSizeHandler = (attachment: Attachment, element: HTMLElement) => ImageAttachmentConfiguration;
90
+ export type VideoAttachmentSizeHandler = (attachment: Attachment, element: HTMLElement, shouldGenerateVideoThumbnail: boolean) => VideoAttachmentConfiguration;
91
+ export type SendMessageOptions = {
92
92
  force_moderation?: boolean;
93
93
  is_pending_message?: boolean;
94
94
  keep_channel_hidden?: boolean;
@@ -97,10 +97,10 @@ export declare type SendMessageOptions = {
97
97
  skip_enrich_url?: boolean;
98
98
  skip_push?: boolean;
99
99
  };
100
- export declare type UpdateMessageOptions = {
100
+ export type UpdateMessageOptions = {
101
101
  skip_enrich_url?: boolean;
102
102
  };
103
- export declare type Readable<T> = {
103
+ export type Readable<T> = {
104
104
  [key in keyof T]: T[key];
105
105
  } & {};
106
106
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,kBAAkB,EAClB,qBAAqB,EACrB,IAAI,EACL,MAAM,aAAa,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AQ,CAAC,CAAC,IAAI;KACvB,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;CAEzB,GAAG,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Channel, ChannelQueryOptions, StreamChat } from 'stream-chat';
2
2
  import type { DefaultStreamChatGenerics } from '../types/types';
3
- declare type GetChannelParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
3
+ type GetChannelParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
4
  client: StreamChat<StreamChatGenerics>;
5
5
  channel?: Channel<StreamChatGenerics>;
6
6
  id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getChannel.d.ts","sourceRoot":"","sources":["../../src/utils/getChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EAEnB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAWhE,aAAK,gBAAgB,CACnB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,oNAwCtB,CAAC"}
1
+ {"version":3,"file":"getChannel.d.ts","sourceRoot":"","sources":["../../src/utils/getChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EAEnB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAWhE,KAAK,gBAAgB,CACnB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,oNAwCtB,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "11.0.0";
1
+ export declare const version = "11.1.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '11.0.0';
1
+ export var version = '11.1.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "11.0.0",
3
+ "version": "11.1.1",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -60,7 +60,6 @@
60
60
  "dependencies": {
61
61
  "@braintree/sanitize-url": "^6.0.4",
62
62
  "@popperjs/core": "^2.11.5",
63
- "@stream-io/stream-chat-css": "^4.0.0",
64
63
  "clsx": "^2.0.0",
65
64
  "dayjs": "^1.10.4",
66
65
  "emoji-regex": "^9.2.0",
@@ -127,8 +126,8 @@
127
126
  "@babel/preset-env": "^7.12.7",
128
127
  "@babel/preset-react": "^7.23.3",
129
128
  "@babel/preset-typescript": "^7.12.7",
130
- "@commitlint/cli": "^16.2.3",
131
- "@commitlint/config-conventional": "^16.2.1",
129
+ "@commitlint/cli": "^18.4.3",
130
+ "@commitlint/config-conventional": "^18.4.3",
132
131
  "@emoji-mart/data": "^1.1.2",
133
132
  "@emoji-mart/react": "^1.1.1",
134
133
  "@ladle/react": "^0.16.0",
@@ -143,6 +142,7 @@
143
142
  "@semantic-release/changelog": "^6.0.2",
144
143
  "@semantic-release/git": "^10.0.1",
145
144
  "@stream-io/rollup-plugin-node-builtins": "^2.1.5",
145
+ "@stream-io/stream-chat-css": "^4.1.0",
146
146
  "@testing-library/jest-dom": "^6.1.4",
147
147
  "@testing-library/react": "^13.1.1",
148
148
  "@testing-library/react-hooks": "^8.0.0",
@@ -196,7 +196,7 @@
196
196
  "eslint-plugin-sort-keys-fix": "^1.1.2",
197
197
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
198
198
  "file-loader": "^6.2.0",
199
- "husky": "^4.3.0",
199
+ "husky": "^8.0.3",
200
200
  "i18next-parser": "^6.0.0",
201
201
  "jest": "^28.1.3",
202
202
  "jest-axe": "^8.0.0",
@@ -226,14 +226,8 @@
226
226
  "webpack-cli": "^3.3.12",
227
227
  "webpack-dev-server": "~3.11.0"
228
228
  },
229
- "husky": {
230
- "hooks": {
231
- "pre-commit": "dotgit/hooks/pre-commit-format.sh && dotgit/hooks/pre-commit-reject-binaries.py",
232
- "commit-msg": "npx commitlint --edit $1"
233
- }
234
- },
235
229
  "scripts": {
236
- "analyze": "yarn build -- --stats && webpack-bundle-analyzer build/bundle-stats.json",
230
+ "analyze": "yarn build --stats && webpack-bundle-analyzer build/bundle-stats.json",
237
231
  "build": "rm -rf dist && mkdir -p dist/assets && yarn --silent copy-version && yarn build-translations && yarn types && yarn bundle",
238
232
  "bundle": "rollup -c",
239
233
  "bundle-size": "BUNDLE_SIZE=true yarn bundle",
@@ -246,7 +240,7 @@
246
240
  "prettier": "prettier --list-different '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js",
247
241
  "prettier-fix": "prettier --write '**/*.{js,ts,tsx,md,json}' .eslintrc.json .prettierrc babel.config.js",
248
242
  "start": "tsc --watch",
249
- "prepare": "yarn run build",
243
+ "prepare": "husky install && yarn run build",
250
244
  "preversion": "yarn install",
251
245
  "test": "jest",
252
246
  "types": "tsc --strict",