@messenger-box/platform-browser 10.0.3-alpha.17 → 10.0.3-alpha.171

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 (561) hide show
  1. package/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
  2. package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
  3. package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
  4. package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
  5. package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
  6. package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
  7. package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
  8. package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
  9. package/lib/components/InboxMessage/Messages/index.js +42 -81
  10. package/lib/components/InboxMessage/Messages/index.js.map +1 -1
  11. package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
  12. package/lib/components/InboxMessage/MessagesList/index.js +53 -74
  13. package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
  14. package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
  15. package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
  16. package/lib/components/InboxMessage/Popover/index.js +8 -35
  17. package/lib/components/InboxMessage/Popover/index.js.map +1 -1
  18. package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
  19. package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
  20. package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
  21. package/lib/components/InboxMessage/index.d.ts.map +1 -1
  22. package/lib/components/InboxMessage/index.js +38 -70
  23. package/lib/components/InboxMessage/index.js.map +1 -1
  24. package/lib/components/channel_view/DirectChannelView.js.map +1 -1
  25. package/lib/components/channel_view/PublicChannelView.js.map +1 -1
  26. package/lib/components/dashboard/menu_header.d.ts.map +1 -1
  27. package/lib/components/dashboard/menu_header.js +38 -24
  28. package/lib/components/dashboard/menu_header.js.map +1 -1
  29. package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
  30. package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
  31. package/lib/components/dashboard/modals/direct_modal.js +59 -39
  32. package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
  33. package/lib/components/dashboard/modals.d.ts +18 -6
  34. package/lib/components/dashboard/modals.d.ts.map +1 -1
  35. package/lib/components/dashboard/modals.js +60 -101
  36. package/lib/components/dashboard/modals.js.map +1 -1
  37. package/lib/components/messenger/avatar/index.d.ts.map +1 -1
  38. package/lib/components/messenger/index.d.ts.map +1 -1
  39. package/lib/components/messenger/index.js +45 -82
  40. package/lib/components/messenger/index.js.map +1 -1
  41. package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
  42. package/lib/components/messenger/messagesList/index.js +174 -454
  43. package/lib/components/messenger/messagesList/index.js.map +1 -1
  44. package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
  45. package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
  46. package/lib/components/messenger/more_action/index.d.ts.map +1 -1
  47. package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
  48. package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
  49. package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
  50. package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
  51. package/lib/components/messenger/types/message.d.ts +11 -11
  52. package/lib/components/messenger/types/message.d.ts.map +1 -1
  53. package/lib/components/post/channel_intro_message/channel_intro_message.d.ts.map +1 -1
  54. package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts.map +1 -1
  55. package/lib/components/post/channel_view/channel_view.d.ts.map +1 -1
  56. package/lib/components/post/create_post/create_post.d.ts +10 -1
  57. package/lib/components/post/create_post/create_post.d.ts.map +1 -1
  58. package/lib/components/post/failed_post_options/failed_post_options.d.ts.map +1 -1
  59. package/lib/components/post/index.d.ts +5 -3
  60. package/lib/components/post/index.d.ts.map +1 -1
  61. package/lib/components/post/index.js +63 -97
  62. package/lib/components/post/index.js.map +1 -1
  63. package/lib/components/post/markdown/markdown.d.ts.map +1 -1
  64. package/lib/components/post/post/post.d.ts.map +1 -1
  65. package/lib/components/post/post_body/post_body.d.ts.map +1 -1
  66. package/lib/components/post/post_body_additional_content/post_body_additional_content.d.ts.map +1 -1
  67. package/lib/components/post/post_header/post_header.d.ts.map +1 -1
  68. package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
  69. package/lib/components/post/post_info/post_info.d.ts.map +1 -1
  70. package/lib/components/post/post_list/post_list.d.ts.map +1 -1
  71. package/lib/components/post/post_list_row/post_list_row.d.ts.map +1 -1
  72. package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts.map +1 -1
  73. package/lib/components/post/post_markdown/post_markdown.d.ts.map +1 -1
  74. package/lib/components/post/post_message_view/post_message_view.d.ts.map +1 -1
  75. package/lib/components/post/post_pre_header/post_pre_header.d.ts.map +1 -1
  76. package/lib/components/post/post_profile_picture/post_profile_picture.d.ts.map +1 -1
  77. package/lib/components/post/profile_picture/profile_picture.d.ts.map +1 -1
  78. package/lib/components/post/show_more/show_more.d.ts.map +1 -1
  79. package/lib/components/post/suggestion/suggestion_box.d.ts.map +1 -1
  80. package/lib/components/post/textbox/textbox.d.ts.map +1 -1
  81. package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts.map +1 -1
  82. package/lib/components/post/tutorial/menu_tutorial_tip.d.ts.map +1 -1
  83. package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts.map +1 -1
  84. package/lib/components/post_view/post_attachment_container/post_attachment_container.d.ts.map +1 -1
  85. package/lib/components/status_icon.d.ts.map +1 -1
  86. package/lib/compute.js.map +1 -1
  87. package/lib/containers/Dashboard.d.ts.map +1 -1
  88. package/lib/containers/Dashboard.js +110 -124
  89. package/lib/containers/Dashboard.js.map +1 -1
  90. package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
  91. package/lib/containers/DashboardWithLoader.js +14 -5
  92. package/lib/containers/DashboardWithLoader.js.map +1 -1
  93. package/lib/containers/Inbox.js.map +1 -1
  94. package/lib/containers/Messenger.js.map +1 -1
  95. package/lib/module.js.map +1 -1
  96. package/lib/utils/index.d.ts.map +1 -1
  97. package/lib/utils/index.js.map +1 -1
  98. package/lib/widgets/simple_tooltip/simple_tooltip.d.ts.map +1 -1
  99. package/package.json +5 -5
  100. package/CHANGELOG.md +0 -135
  101. package/jest.config.js +0 -24
  102. package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
  103. package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
  104. package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
  105. package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
  106. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
  107. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
  108. package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
  109. package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
  110. package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
  111. package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
  112. package/lib/components/InboxMessage/Messages/styles.js +0 -85
  113. package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
  114. package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
  115. package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
  116. package/lib/components/InboxMessage/Popover/style.js +0 -27
  117. package/lib/components/InboxMessage/Popover/style.js.map +0 -1
  118. package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
  119. package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
  120. package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
  121. package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
  122. package/lib/components/InboxMessage/style.js +0 -189
  123. package/lib/components/InboxMessage/style.js.map +0 -1
  124. package/lib/components/messenger/avatar/style.d.ts +0 -2
  125. package/lib/components/messenger/avatar/style.d.ts.map +0 -1
  126. package/lib/components/messenger/messagesList/style.js +0 -446
  127. package/lib/components/messenger/messagesList/style.js.map +0 -1
  128. package/lib/components/messenger/more_action/index.js +0 -48
  129. package/lib/components/messenger/more_action/index.js.map +0 -1
  130. package/lib/components/messenger/more_action/style.d.ts +0 -2
  131. package/lib/components/messenger/more_action/style.d.ts.map +0 -1
  132. package/lib/components/messenger/more_action/style.js +0 -45
  133. package/lib/components/messenger/more_action/style.js.map +0 -1
  134. package/lib/components/post/style.js +0 -20101
  135. package/lib/components/post/style.js.map +0 -1
  136. package/lib/style.js +0 -400
  137. package/lib/style.js.map +0 -1
  138. package/rollup.config.mjs +0 -35
  139. package/src/cdm-locales/en/translations.json +0 -95
  140. package/src/cdm-locales/es/translations.json +0 -95
  141. package/src/components/InboxMessage/InboxDetails/index.tsx +0 -25
  142. package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
  143. package/src/components/InboxMessage/InboxSidebar/index.tsx +0 -89
  144. package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
  145. package/src/components/InboxMessage/Messages/index.tsx +0 -161
  146. package/src/components/InboxMessage/Messages/styles.ts +0 -85
  147. package/src/components/InboxMessage/MessagesList/index.tsx +0 -93
  148. package/src/components/InboxMessage/Popover/index.tsx +0 -60
  149. package/src/components/InboxMessage/Popover/style.ts +0 -27
  150. package/src/components/InboxMessage/UserModalContent/index.tsx +0 -63
  151. package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
  152. package/src/components/InboxMessage/index.tsx +0 -289
  153. package/src/components/InboxMessage/mock.ts +0 -53
  154. package/src/components/InboxMessage/style.ts +0 -189
  155. package/src/components/NavBar.tsx +0 -10
  156. package/src/components/channel_view/DirectChannelView.tsx +0 -25
  157. package/src/components/channel_view/PublicChannelView.tsx +0 -25
  158. package/src/components/dashboard/menu_header.tsx +0 -62
  159. package/src/components/dashboard/modals/direct_modal.tsx +0 -54
  160. package/src/components/dashboard/modals.tsx +0 -121
  161. package/src/components/messenger/avatar/index.tsx +0 -39
  162. package/src/components/messenger/avatar/style.ts +0 -86
  163. package/src/components/messenger/index.tsx +0 -382
  164. package/src/components/messenger/messagesList/index.tsx +0 -764
  165. package/src/components/messenger/messagesList/messageBox.tsx +0 -66
  166. package/src/components/messenger/messagesList/style.ts +0 -448
  167. package/src/components/messenger/mock.ts +0 -77
  168. package/src/components/messenger/more_action/index.tsx +0 -79
  169. package/src/components/messenger/more_action/style.ts +0 -45
  170. package/src/components/messenger/postMessage/postMessage.tsx +0 -28
  171. package/src/components/messenger/postMessage/style.ts +0 -24
  172. package/src/components/messenger/sidebarThreadList/index.tsx +0 -201
  173. package/src/components/messenger/style.ts +0 -40
  174. package/src/components/messenger/threadSidebar/index.tsx +0 -129
  175. package/src/components/messenger/threadSidebar/style.ts +0 -65
  176. package/src/components/messenger/types/message.ts +0 -16
  177. package/src/components/messenger/utils/utils.ts +0 -5
  178. package/src/components/overlay_trigger.tsx +0 -59
  179. package/src/components/post/channel_intro_message/add_members_button.tsx +0 -152
  180. package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -53
  181. package/src/components/post/channel_intro_message/index.ts +0 -1
  182. package/src/components/post/channel_layout/center_channel/center_channel.test.tsx +0 -50
  183. package/src/components/post/channel_layout/center_channel/center_channel.tsx +0 -125
  184. package/src/components/post/channel_layout/center_channel/index.ts +0 -69
  185. package/src/components/post/channel_layout/channel_controller.test.tsx +0 -76
  186. package/src/components/post/channel_layout/channel_controller.tsx +0 -85
  187. package/src/components/post/channel_layout/channel_identifier_router/actions.test.ts +0 -243
  188. package/src/components/post/channel_layout/channel_identifier_router/actions.ts +0 -353
  189. package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.test.tsx +0 -101
  190. package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.tsx +0 -6
  191. package/src/components/post/channel_layout/channel_identifier_router/index.ts +0 -1
  192. package/src/components/post/channel_view/channel_view.test.tsx +0 -68
  193. package/src/components/post/channel_view/channel_view.tsx +0 -92
  194. package/src/components/post/channel_view/index.ts +0 -1
  195. package/src/components/post/create_post/create_post.test.jsx +0 -1335
  196. package/src/components/post/create_post/create_post.tsx +0 -225
  197. package/src/components/post/create_post/index.ts +0 -1
  198. package/src/components/post/failed_post_options/failed_post_options.tsx +0 -32
  199. package/src/components/post/failed_post_options/index.ts +0 -4
  200. package/src/components/post/index.tsx +0 -131
  201. package/src/components/post/markdown/index.ts +0 -1
  202. package/src/components/post/markdown/markdown.test.tsx +0 -62
  203. package/src/components/post/markdown/markdown.tsx +0 -38
  204. package/src/components/post/post/defaultpost.ts +0 -25
  205. package/src/components/post/post/post.tsx +0 -270
  206. package/src/components/post/post/style.ts +0 -0
  207. package/src/components/post/post_aria_label_div.tsx +0 -43
  208. package/src/components/post/post_body/post_body.tsx +0 -80
  209. package/src/components/post/post_body_additional_content/post_body_additional_content.tsx +0 -6
  210. package/src/components/post/post_context.tsx +0 -10
  211. package/src/components/post/post_header/index.ts +0 -38
  212. package/src/components/post/post_header/post_header.scss +0 -53
  213. package/src/components/post/post_header/post_header.tsx +0 -98
  214. package/src/components/post/post_header/post_header_custom_status.tsx +0 -49
  215. package/src/components/post/post_header/style.ts +0 -54
  216. package/src/components/post/post_info/post_info.tsx +0 -195
  217. package/src/components/post/post_list/index.tsx +0 -10
  218. package/src/components/post/post_list/post_list.tsx +0 -27
  219. package/src/components/post/post_list_row/index.ts +0 -42
  220. package/src/components/post/post_list_row/post_list_row.test.tsx +0 -176
  221. package/src/components/post/post_list_row/post_list_row.tsx +0 -130
  222. package/src/components/post/post_list_virtualized/latest_post_reader.tsx +0 -9
  223. package/src/components/post/post_list_virtualized/post_list_virtualized.tsx +0 -269
  224. package/src/components/post/post_markdown/index.test.js +0 -119
  225. package/src/components/post/post_markdown/index.ts +0 -1
  226. package/src/components/post/post_markdown/post_markdown.test.tsx +0 -178
  227. package/src/components/post/post_markdown/post_markdown.tsx +0 -58
  228. package/src/components/post/post_markdown/system_message_helpers.tsx +0 -420
  229. package/src/components/post/post_message_view/index.ts +0 -4
  230. package/src/components/post/post_message_view/post_message_view.test.tsx +0 -89
  231. package/src/components/post/post_message_view/post_message_view.tsx +0 -71
  232. package/src/components/post/post_pre_header/post_pre_header.tsx +0 -141
  233. package/src/components/post/post_profile_picture/post_profile_picture.tsx +0 -95
  234. package/src/components/post/post_view.tsx +0 -10
  235. package/src/components/post/profile_picture/profile_picture.tsx +0 -21
  236. package/src/components/post/show_more/index.ts +0 -1
  237. package/src/components/post/show_more/show_more.test.tsx +0 -102
  238. package/src/components/post/show_more/show_more.tsx +0 -97
  239. package/src/components/post/style.ts +0 -20101
  240. package/src/components/post/suggestion/suggestion_box.tsx +0 -5
  241. package/src/components/post/textbox/index.ts +0 -1
  242. package/src/components/post/textbox/textbox.tsx +0 -80
  243. package/src/components/post/textbox/textbox_links/index.ts +0 -24
  244. package/src/components/post/textbox/textbox_links/textbox_links.tsx +0 -143
  245. package/src/components/post/threading/channel_threads/thread_footer/index.ts +0 -4
  246. package/src/components/post/threading/channel_threads/thread_footer/thread_footer.scss +0 -72
  247. package/src/components/post/threading/channel_threads/thread_footer/thread_footer.tsx +0 -206
  248. package/src/components/post/threading/common/button/__snapshots__/button.test.tsx.snap +0 -68
  249. package/src/components/post/threading/common/button/button.scss +0 -148
  250. package/src/components/post/threading/common/button/button.test.tsx +0 -75
  251. package/src/components/post/threading/common/button/button.tsx +0 -51
  252. package/src/components/post/threading/common/button/index.ts +0 -4
  253. package/src/components/post/threading/common/follow_button/__snapshots__/follow_button.test.tsx.snap +0 -50
  254. package/src/components/post/threading/common/follow_button/follow_button.test.tsx +0 -56
  255. package/src/components/post/threading/common/follow_button/follow_button.tsx +0 -39
  256. package/src/components/post/threading/common/follow_button/index.ts +0 -4
  257. package/src/components/post/timestamp/__snapshots__/semantic_time.test.tsx.snap +0 -13
  258. package/src/components/post/timestamp/__snapshots__/timestamp.test.tsx.snap +0 -13
  259. package/src/components/post/timestamp/index.ts +0 -50
  260. package/src/components/post/timestamp/relative_ranges.tsx +0 -58
  261. package/src/components/post/timestamp/semantic_time.test.tsx +0 -47
  262. package/src/components/post/timestamp/semantic_time.tsx +0 -28
  263. package/src/components/post/timestamp/timestamp.stories.tsx +0 -190
  264. package/src/components/post/timestamp/timestamp.test.tsx +0 -309
  265. package/src/components/post/timestamp/timestamp.tsx +0 -441
  266. package/src/components/post/tutorial/menu_tutorial_tip.tsx +0 -63
  267. package/src/components/post/tutorial/tutorial_tip/index.ts +0 -0
  268. package/src/components/post/tutorial/tutorial_tip/tutorial_tip.test.tsx +0 -111
  269. package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +0 -224
  270. package/src/components/post/user_profile/index.tsx +0 -6
  271. package/src/components/post/user_profile/user_profile.tsx +0 -114
  272. package/src/components/post_view/__snapshots__/post_view.test.js.snap +0 -25
  273. package/src/components/post_view/channel_intro_message/add_members_button.scss +0 -72
  274. package/src/components/post_view/channel_intro_message/add_members_button.tsx +0 -152
  275. package/src/components/post_view/channel_intro_message/channel_intro_message.tsx +0 -549
  276. package/src/components/post_view/channel_intro_message/index.ts +0 -67
  277. package/src/components/post_view/combined_system_message/__snapshots__/combined_system_message.test.tsx.snap +0 -238
  278. package/src/components/post_view/combined_system_message/__snapshots__/last_users.test.tsx.snap +0 -74
  279. package/src/components/post_view/combined_system_message/combined_system_message.test.tsx +0 -167
  280. package/src/components/post_view/combined_system_message/combined_system_message.tsx +0 -380
  281. package/src/components/post_view/combined_system_message/index.ts +0 -46
  282. package/src/components/post_view/combined_system_message/last_users.test.tsx +0 -56
  283. package/src/components/post_view/combined_system_message/last_users.tsx +0 -135
  284. package/src/components/post_view/combined_user_activity_post/index.ts +0 -28
  285. package/src/components/post_view/comment_icon/index.ts +0 -31
  286. package/src/components/post_view/commented_on/__snapshots__/commented_on.test.tsx.snap +0 -276
  287. package/src/components/post_view/commented_on/commented_on.test.tsx +0 -184
  288. package/src/components/post_view/commented_on/commented_on.tsx +0 -92
  289. package/src/components/post_view/commented_on/index.ts +0 -37
  290. package/src/components/post_view/commented_on_files_message/__snapshots__/commented_on_files_message.test.jsx.snap +0 -24
  291. package/src/components/post_view/commented_on_files_message/commented_on_files_message.jsx +0 -47
  292. package/src/components/post_view/commented_on_files_message/commented_on_files_message.test.jsx +0 -53
  293. package/src/components/post_view/commented_on_files_message/index.js +0 -25
  294. package/src/components/post_view/date_separator/__snapshots__/date_separator.test.tsx.snap +0 -35
  295. package/src/components/post_view/date_separator/date_separator.test.tsx +0 -26
  296. package/src/components/post_view/date_separator/date_separator.tsx +0 -40
  297. package/src/components/post_view/date_separator/index.ts +0 -4
  298. package/src/components/post_view/embedded_bindings/button_binding/__snapshots__/button_binding.test.tsx.snap +0 -23
  299. package/src/components/post_view/embedded_bindings/button_binding/button_binding.test.tsx +0 -124
  300. package/src/components/post_view/embedded_bindings/button_binding/button_binding.tsx +0 -141
  301. package/src/components/post_view/embedded_bindings/button_binding/index.ts +0 -34
  302. package/src/components/post_view/embedded_bindings/embedded_binding/__snapshots__/embedded_binding.test.tsx.snap +0 -249
  303. package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.test.tsx +0 -76
  304. package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.tsx +0 -205
  305. package/src/components/post_view/embedded_bindings/embedded_binding/index.ts +0 -17
  306. package/src/components/post_view/embedded_bindings/embedded_bindings.tsx +0 -59
  307. package/src/components/post_view/embedded_bindings/select_binding/index.ts +0 -33
  308. package/src/components/post_view/embedded_bindings/select_binding/select_binding.test.tsx +0 -170
  309. package/src/components/post_view/embedded_bindings/select_binding/select_binding.tsx +0 -188
  310. package/src/components/post_view/failed_post_options/__snapshots__/failed_post_options.test.tsx.snap +0 -29
  311. package/src/components/post_view/failed_post_options/failed_post_options.test.tsx +0 -59
  312. package/src/components/post_view/failed_post_options/failed_post_options.tsx +0 -67
  313. package/src/components/post_view/failed_post_options/index.ts +0 -23
  314. package/src/components/post_view/floating_timestamp/__snapshots__/floating_timestamp.test.tsx.snap +0 -41
  315. package/src/components/post_view/floating_timestamp/floating_timestamp.test.tsx +0 -23
  316. package/src/components/post_view/floating_timestamp/floating_timestamp.tsx +0 -52
  317. package/src/components/post_view/floating_timestamp/index.ts +0 -35
  318. package/src/components/post_view/index.js +0 -61
  319. package/src/components/post_view/index.test.js +0 -37
  320. package/src/components/post_view/message_attachments/action_button/__snapshots__/action_button.test.tsx.snap +0 -26
  321. package/src/components/post_view/message_attachments/action_button/action_button.test.tsx +0 -113
  322. package/src/components/post_view/message_attachments/action_button/action_button.tsx +0 -80
  323. package/src/components/post_view/message_attachments/action_button/index.ts +0 -17
  324. package/src/components/post_view/message_attachments/action_menu/action_menu.test.tsx +0 -61
  325. package/src/components/post_view/message_attachments/action_menu/action_menu.tsx +0 -156
  326. package/src/components/post_view/message_attachments/action_menu/index.ts +0 -41
  327. package/src/components/post_view/message_attachments/message_attachment/__snapshots__/message_attachment.test.tsx.snap +0 -726
  328. package/src/components/post_view/message_attachments/message_attachment/index.ts +0 -32
  329. package/src/components/post_view/message_attachments/message_attachment/message_attachment.test.tsx +0 -234
  330. package/src/components/post_view/message_attachments/message_attachment/message_attachment.tsx +0 -544
  331. package/src/components/post_view/message_attachments/message_attachment_list.tsx +0 -64
  332. package/src/components/post_view/new_message_separator/__snapshots__/new_message_separator.test.tsx.snap +0 -16
  333. package/src/components/post_view/new_message_separator/new_message_separator.test.tsx +0 -16
  334. package/src/components/post_view/new_message_separator/new_message_separator.tsx +0 -31
  335. package/src/components/post_view/post/__snapshots__/post.test.js.snap +0 -337
  336. package/src/components/post_view/post/index.test.js +0 -61
  337. package/src/components/post_view/post/index.ts +0 -96
  338. package/src/components/post_view/post/post.jsx +0 -446
  339. package/src/components/post_view/post/post.test.js +0 -222
  340. package/src/components/post_view/post_add_channel_member/__snapshots__/post_add_channel_member.test.tsx.snap +0 -226
  341. package/src/components/post_view/post_add_channel_member/index.ts +0 -47
  342. package/src/components/post_view/post_add_channel_member/post_add_channel_member.test.tsx +0 -140
  343. package/src/components/post_view/post_add_channel_member/post_add_channel_member.tsx +0 -231
  344. package/src/components/post_view/post_aria_label_div.test.jsx +0 -106
  345. package/src/components/post_view/post_aria_label_div.tsx +0 -48
  346. package/src/components/post_view/post_attachment_container/__snapshots__/post_attachment_container.test.tsx.snap +0 -25
  347. package/src/components/post_view/post_attachment_container/post_attachment_container.test.tsx +0 -21
  348. package/src/components/post_view/post_attachment_container/post_attachment_container.tsx +0 -40
  349. package/src/components/post_view/post_attachment_opengraph/get_nearest_point.test.ts +0 -55
  350. package/src/components/post_view/post_attachment_opengraph/get_nearest_point.ts +0 -31
  351. package/src/components/post_view/post_attachment_opengraph/index.ts +0 -48
  352. package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.test.tsx +0 -264
  353. package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.tsx +0 -262
  354. package/src/components/post_view/post_body/index.js +0 -36
  355. package/src/components/post_view/post_body/post_body.jsx +0 -235
  356. package/src/components/post_view/post_body_additional_content/__snapshots__/post_body_additional_content.test.tsx.snap +0 -295
  357. package/src/components/post_view/post_body_additional_content/index.ts +0 -36
  358. package/src/components/post_view/post_body_additional_content/post_body_additional_content.test.tsx +0 -425
  359. package/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx +0 -194
  360. package/src/components/post_view/post_context.js +0 -14
  361. package/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.js.snap +0 -81
  362. package/src/components/post_view/post_flag_icon/index.js +0 -20
  363. package/src/components/post_view/post_flag_icon/post_flag_icon.js +0 -125
  364. package/src/components/post_view/post_flag_icon/post_flag_icon.test.js +0 -39
  365. package/src/components/post_view/post_header/__snapshots__/post_header.test.tsx.snap +0 -196
  366. package/src/components/post_view/post_header/index.ts +0 -38
  367. package/src/components/post_view/post_header/post_header.scss +0 -53
  368. package/src/components/post_view/post_header/post_header.test.tsx +0 -68
  369. package/src/components/post_view/post_header/post_header.tsx +0 -202
  370. package/src/components/post_view/post_header/post_header_custom_status.tsx +0 -73
  371. package/src/components/post_view/post_image/index.js +0 -6
  372. package/src/components/post_view/post_image/post_image.jsx +0 -69
  373. package/src/components/post_view/post_info/__snapshots__/post_info.test.tsx.snap +0 -322
  374. package/src/components/post_view/post_info/index.ts +0 -66
  375. package/src/components/post_view/post_info/post_info.test.tsx +0 -170
  376. package/src/components/post_view/post_info/post_info.tsx +0 -403
  377. package/src/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap +0 -71
  378. package/src/components/post_view/post_list/index.js +0 -105
  379. package/src/components/post_view/post_list/post_list.jsx +0 -324
  380. package/src/components/post_view/post_list/post_list.test.jsx +0 -274
  381. package/src/components/post_view/post_list_row/__snapshots__/post_list_row.test.tsx.snap +0 -108
  382. package/src/components/post_view/post_list_row/index.ts +0 -42
  383. package/src/components/post_view/post_list_row/post_list_row.test.tsx +0 -176
  384. package/src/components/post_view/post_list_row/post_list_row.tsx +0 -165
  385. package/src/components/post_view/post_list_virtualized/latest_post_reader.test.jsx +0 -80
  386. package/src/components/post_view/post_list_virtualized/latest_post_reader.tsx +0 -46
  387. package/src/components/post_view/post_list_virtualized/post_list_virtualized.jsx +0 -626
  388. package/src/components/post_view/post_list_virtualized/post_list_virtualized.test.jsx +0 -623
  389. package/src/components/post_view/post_message_preview/__snapshots__/post_message_preview.test.tsx.snap +0 -88
  390. package/src/components/post_view/post_message_preview/index.ts +0 -35
  391. package/src/components/post_view/post_message_preview/post_message_preview.test.tsx +0 -50
  392. package/src/components/post_view/post_message_preview/post_message_preview.tsx +0 -92
  393. package/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap +0 -242
  394. package/src/components/post_view/post_message_view/index.ts +0 -27
  395. package/src/components/post_view/post_message_view/post_message_view.test.tsx +0 -89
  396. package/src/components/post_view/post_message_view/post_message_view.tsx +0 -192
  397. package/src/components/post_view/post_pre_header/__snapshots__/post_pre_header.test.tsx.snap +0 -209
  398. package/src/components/post_view/post_pre_header/index.js +0 -18
  399. package/src/components/post_view/post_pre_header/post_pre_header.test.tsx +0 -188
  400. package/src/components/post_view/post_pre_header/post_pre_header.tsx +0 -148
  401. package/src/components/post_view/post_reaction/__snapshots__/post_reaction.test.tsx.snap +0 -63
  402. package/src/components/post_view/post_reaction/index.ts +0 -21
  403. package/src/components/post_view/post_reaction/post_reaction.test.tsx +0 -39
  404. package/src/components/post_view/post_reaction/post_reaction.tsx +0 -124
  405. package/src/components/post_view/post_time/index.ts +0 -18
  406. package/src/components/post_view/post_time/post_time.tsx +0 -113
  407. package/src/components/post_view/post_view.jsx +0 -83
  408. package/src/components/post_view/post_view.test.js +0 -53
  409. package/src/components/post_view/reaction/__snapshots__/reaction.test.jsx.snap +0 -339
  410. package/src/components/post_view/reaction/index.ts +0 -120
  411. package/src/components/post_view/reaction/reaction.scss +0 -157
  412. package/src/components/post_view/reaction/reaction.test.jsx +0 -80
  413. package/src/components/post_view/reaction/reaction.tsx +0 -263
  414. package/src/components/post_view/reaction/reaction_tooltip/index.test.js +0 -56
  415. package/src/components/post_view/reaction/reaction_tooltip/index.ts +0 -67
  416. package/src/components/post_view/reaction/reaction_tooltip/reaction_tooltip.tsx +0 -140
  417. package/src/components/post_view/reaction_list/__snapshots__/reactions_list.test.jsx.snap +0 -95
  418. package/src/components/post_view/reaction_list/index.ts +0 -52
  419. package/src/components/post_view/reaction_list/reaction_list.tsx +0 -201
  420. package/src/components/post_view/reaction_list/reactions_list.test.jsx +0 -57
  421. package/src/components/post_view/scroll_to_bottom_arrows.jsx +0 -37
  422. package/src/components/post_view/show_more/__snapshots__/show_more.test.tsx.snap +0 -237
  423. package/src/components/post_view/show_more/index.ts +0 -23
  424. package/src/components/post_view/show_more/show_more.test.tsx +0 -102
  425. package/src/components/post_view/show_more/show_more.tsx +0 -196
  426. package/src/components/status_icon.tsx +0 -49
  427. package/src/components/status_icon_new.tsx +0 -35
  428. package/src/compute.ts +0 -74
  429. package/src/containers/Dashboard.tsx +0 -527
  430. package/src/containers/DashboardWithLoader.tsx +0 -38
  431. package/src/containers/Inbox.tsx +0 -13
  432. package/src/containers/Loading.tsx +0 -12
  433. package/src/containers/Messenger.tsx +0 -18
  434. package/src/containers/__tests__/ApolloProvider.test.tsx +0 -48
  435. package/src/containers/__tests__/Counter.test.tsx +0 -49
  436. package/src/containers/__tests__/PersonList.test.tsx +0 -43
  437. package/src/containers/__tests__/__snapshots__/Counter.test.tsx.snap +0 -299
  438. package/src/containers/__tests__/__snapshots__/PersonList.test.tsx.snap +0 -230
  439. package/src/containers/__tests__/redux.test.tsx +0 -86
  440. package/src/containers/__tests__/setup.ts +0 -18
  441. package/src/containers/__tests__/utils.ts +0 -5
  442. package/src/containers/index.ts +0 -4
  443. package/src/index.ts +0 -5
  444. package/src/inversify-containers/index.ts +0 -1
  445. package/src/inversify-containers/module.ts +0 -4
  446. package/src/module.ts +0 -21
  447. package/src/packages/constants/constants.ts +0 -1831
  448. package/src/packages/types/channels.ts +0 -194
  449. package/src/packages/types/emojis.ts +0 -41
  450. package/src/packages/types/files.ts +0 -43
  451. package/src/packages/types/posts.ts +0 -155
  452. package/src/packages/types/reactions.ts +0 -8
  453. package/src/packages/types/teams.ts +0 -105
  454. package/src/packages/types/utilities.ts +0 -30
  455. package/src/services/index.ts +0 -0
  456. package/src/style.ts +0 -401
  457. package/src/utils/constants.tsx +0 -1120
  458. package/src/utils/i18n.tsx +0 -15
  459. package/src/utils/index.ts +0 -34
  460. package/src/utils/post_list.ts +0 -54
  461. package/src/utils/post_utils.ts +0 -33
  462. package/src/utils/user_agent.tsx +0 -153
  463. package/src/utils/utils.tsx +0 -54
  464. package/src/widgets/badges/badge.scss +0 -21
  465. package/src/widgets/badges/badge.tsx +0 -30
  466. package/src/widgets/badges/bot_badge.tsx +0 -31
  467. package/src/widgets/badges/guest_badge.tsx +0 -31
  468. package/src/widgets/badges/style.ts +0 -24
  469. package/src/widgets/icons/accordion_toggle_icon.tsx +0 -59
  470. package/src/widgets/icons/add_reaction_icon.tsx +0 -23
  471. package/src/widgets/icons/admin_eye_icon.tsx +0 -30
  472. package/src/widgets/icons/alert_icon.tsx +0 -22
  473. package/src/widgets/icons/archive_icon.tsx +0 -23
  474. package/src/widgets/icons/arrow_right_icon.tsx +0 -23
  475. package/src/widgets/icons/at_icon.tsx +0 -22
  476. package/src/widgets/icons/attachment_icon.tsx +0 -38
  477. package/src/widgets/icons/back_icon.tsx +0 -22
  478. package/src/widgets/icons/bot_icon.tsx +0 -23
  479. package/src/widgets/icons/camera_icon.tsx +0 -41
  480. package/src/widgets/icons/checkbox_checked_icon.tsx +0 -62
  481. package/src/widgets/icons/checkbox_partial_icon.tsx +0 -62
  482. package/src/widgets/icons/close_circle_icon.tsx +0 -25
  483. package/src/widgets/icons/close_circle_solid_icon.tsx +0 -25
  484. package/src/widgets/icons/close_icon.tsx +0 -27
  485. package/src/widgets/icons/dots_horizontal.tsx +0 -22
  486. package/src/widgets/icons/download_icon.tsx +0 -46
  487. package/src/widgets/icons/draft_icon.tsx +0 -32
  488. package/src/widgets/icons/ellipsis_h_icon.tsx +0 -23
  489. package/src/widgets/icons/email_icon.tsx +0 -23
  490. package/src/widgets/icons/emoji_icon.tsx +0 -22
  491. package/src/widgets/icons/fa_add_icon.tsx +0 -15
  492. package/src/widgets/icons/fa_back_icon.tsx +0 -16
  493. package/src/widgets/icons/fa_dropdown_icon.tsx +0 -15
  494. package/src/widgets/icons/fa_edit_icon.tsx +0 -16
  495. package/src/widgets/icons/fa_logout_icon.tsx +0 -15
  496. package/src/widgets/icons/fa_next_icon.tsx +0 -28
  497. package/src/widgets/icons/fa_previous_icon.tsx +0 -28
  498. package/src/widgets/icons/fa_reload_icon.tsx +0 -16
  499. package/src/widgets/icons/fa_remove_icon.tsx +0 -16
  500. package/src/widgets/icons/fa_search_icon.tsx +0 -16
  501. package/src/widgets/icons/fa_select_icon.tsx +0 -16
  502. package/src/widgets/icons/fa_success_icon.tsx +0 -16
  503. package/src/widgets/icons/fa_warning_icon.tsx +0 -28
  504. package/src/widgets/icons/flag_icon.tsx +0 -22
  505. package/src/widgets/icons/flag_icon_filled.tsx +0 -41
  506. package/src/widgets/icons/gfycat_icon.tsx +0 -38
  507. package/src/widgets/icons/gif_reactions_icon.tsx +0 -52
  508. package/src/widgets/icons/gif_search_clear_icon.tsx +0 -27
  509. package/src/widgets/icons/gif_search_icon.tsx +0 -29
  510. package/src/widgets/icons/gif_trending_icon.tsx +0 -49
  511. package/src/widgets/icons/globe_icon.tsx +0 -22
  512. package/src/widgets/icons/icons.stories.js +0 -110
  513. package/src/widgets/icons/info_icon.tsx +0 -40
  514. package/src/widgets/icons/info_small_icon.tsx +0 -35
  515. package/src/widgets/icons/invite_icon.tsx +0 -22
  516. package/src/widgets/icons/invite_members_icon.tsx +0 -22
  517. package/src/widgets/icons/leave_team_icon.tsx +0 -30
  518. package/src/widgets/icons/link_icon.tsx +0 -23
  519. package/src/widgets/icons/lock_icon.tsx +0 -41
  520. package/src/widgets/icons/mail_icon.tsx +0 -22
  521. package/src/widgets/icons/mail_plus_icon.tsx +0 -22
  522. package/src/widgets/icons/mattermost_logo.tsx +0 -40
  523. package/src/widgets/icons/member_icon.tsx +0 -22
  524. package/src/widgets/icons/mentions_icon.tsx +0 -24
  525. package/src/widgets/icons/menu_icon.tsx +0 -42
  526. package/src/widgets/icons/message_icon.tsx +0 -42
  527. package/src/widgets/icons/pin_icon.tsx +0 -23
  528. package/src/widgets/icons/plugin_channel_header_icon.tsx +0 -23
  529. package/src/widgets/icons/plugin_icon.tsx +0 -44
  530. package/src/widgets/icons/reply_icon.tsx +0 -23
  531. package/src/widgets/icons/scroll_to_bottom_icon.tsx +0 -23
  532. package/src/widgets/icons/search_icon.tsx +0 -22
  533. package/src/widgets/icons/shield_outline_icon.tsx +0 -23
  534. package/src/widgets/icons/status_away_avatar_icon.tsx +0 -33
  535. package/src/widgets/icons/status_away_icon.tsx +0 -33
  536. package/src/widgets/icons/status_dnd_avatar_icon.tsx +0 -41
  537. package/src/widgets/icons/status_dnd_icon.tsx +0 -33
  538. package/src/widgets/icons/status_offline_avatar_icon.tsx +0 -45
  539. package/src/widgets/icons/status_offline_icon.tsx +0 -31
  540. package/src/widgets/icons/status_online_avatar_icon.tsx +0 -49
  541. package/src/widgets/icons/status_online_icon.tsx +0 -33
  542. package/src/widgets/icons/team_info_icon.tsx +0 -32
  543. package/src/widgets/icons/unarchive_icon.tsx +0 -22
  544. package/src/widgets/icons/unread_below_icon.tsx +0 -23
  545. package/src/widgets/icons/user_guide_icon.tsx +0 -26
  546. package/src/widgets/overlay_trigger.tsx +0 -59
  547. package/src/widgets/shared_user_indicator.tsx +0 -37
  548. package/src/widgets/simple_tooltip/index.ts +0 -7
  549. package/src/widgets/simple_tooltip/simple_tooltip.tsx +0 -63
  550. package/src/widgets/users/avatar/avatar.test.tsx +0 -34
  551. package/src/widgets/users/avatar/avatar.tsx +0 -38
  552. package/src/widgets/users/avatar/index.ts +0 -4
  553. package/src/widgets/users/avatar/style.ts +0 -79
  554. package/src/widgets/users/avatars/__snapshots__/avatars.test.tsx.snap +0 -1585
  555. package/src/widgets/users/avatars/avatars.scss +0 -64
  556. package/src/widgets/users/avatars/avatars.test.tsx +0 -184
  557. package/src/widgets/users/avatars/avatars.tsx +0 -146
  558. package/src/widgets/users/avatars/index.ts +0 -4
  559. package/src/widgets/users/users.stories.tsx +0 -37
  560. package/tsconfig.json +0 -14
  561. package/webpack.config.js +0 -58
@@ -1,274 +0,0 @@
1
- // // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
2
- // // See LICENSE.txt for license information.
3
-
4
- // import * as React from 'react';
5
- // import {shallow} from 'enzyme';
6
-
7
- // import VirtPostList from 'components/post_view/post_list_virtualized/post_list_virtualized';
8
-
9
- // import {PostRequestTypes} from 'utils/constants';
10
-
11
- // import PostList, {MAX_EXTRA_PAGES_LOADED} from './post_list.jsx';
12
-
13
- // const actionsProp = {
14
- // loadPostsAround: jest.fn().mockImplementation(() => Promise.resolve({atLatestMessage: true, atOldestmessage: true})),
15
- // loadUnreads: jest.fn().mockImplementation(() => Promise.resolve({atLatestMessage: true, atOldestmessage: true})),
16
- // loadPosts: jest.fn().mockImplementation(() => Promise.resolve({moreToLoad: false})),
17
- // syncPostsInChannel: jest.fn().mockResolvedValue({}),
18
- // loadLatestPosts: jest.fn().mockImplementation(() => Promise.resolve({atLatestMessage: true, atOldestmessage: true})),
19
- // checkAndSetMobileView: jest.fn(),
20
- // markChannelAsViewed: jest.fn(),
21
- // markChannelAsRead: jest.fn(),
22
- // updateNewMessagesAtInChannel: jest.fn(),
23
- // };
24
-
25
- // const lastViewedAt = 1532345226632;
26
- // const channelId = 'fake-id';
27
-
28
- // const createFakePosIds = (num) => {
29
- // const postIds = [];
30
- // for (let i = 1; i <= num; i++) {
31
- // postIds.push(`1234${i}`);
32
- // }
33
-
34
- // return postIds;
35
- // };
36
-
37
- // const baseProps = {
38
- // actions: actionsProp,
39
- // lastViewedAt,
40
- // channelId,
41
- // postListIds: [],
42
- // changeUnreadChunkTimeStamp: jest.fn(),
43
- // isFirstLoad: true,
44
- // atLatestPost: false,
45
- // formattedPostIds: [],
46
- // channelManuallyUnread: false,
47
- // isPrefetchingInProcess: false,
48
- // };
49
-
50
- // describe('components/post_view/post_list', () => {
51
- // it('snapshot for loading when there are no posts', () => {
52
- // const wrapper = shallow(
53
- // <PostList {...{...baseProps, postListIds: []}}/>,
54
- // );
55
- // expect(wrapper).toMatchSnapshot();
56
- // });
57
-
58
- // it('snapshot with couple of posts', () => {
59
- // const postIds = createFakePosIds(2);
60
- // const wrapper = shallow(
61
- // <PostList {...{...baseProps, postListIds: postIds}}/>,
62
- // );
63
- // expect(wrapper).toMatchSnapshot();
64
- // });
65
-
66
- // it('Should call postsOnLoad', async () => {
67
- // const emptyPostList = [];
68
-
69
- // const wrapper = shallow(
70
- // <PostList {...{...baseProps, postListIds: emptyPostList}}/>,
71
- // );
72
-
73
- // expect(actionsProp.loadUnreads).toHaveBeenCalledWith(baseProps.channelId);
74
- // await wrapper.instance().postsOnLoad();
75
- // expect(wrapper.state('loadingNewerPosts')).toBe(false);
76
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
77
- // });
78
-
79
- // it('Should not call loadUnreads if isPrefetchingInProcess is true', async () => {
80
- // const emptyPostList = [];
81
-
82
- // shallow(<PostList {...{...baseProps, postListIds: emptyPostList, isPrefetchingInProcess: true}}/>);
83
-
84
- // expect(actionsProp.loadUnreads).not.toHaveBeenCalledWith(baseProps.channelId);
85
- // });
86
-
87
- // it('Should call for before and afterPosts', async () => {
88
- // const postIds = createFakePosIds(2);
89
- // const wrapper = shallow(
90
- // <PostList {...{...baseProps, postListIds: postIds}}/>,
91
- // );
92
-
93
- // wrapper.find(VirtPostList).prop('actions').loadOlderPosts();
94
- // expect(wrapper.state('loadingOlderPosts')).toEqual(true);
95
- // expect(actionsProp.loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[postIds.length - 1], type: PostRequestTypes.BEFORE_ID});
96
- // await wrapper.instance().callLoadPosts();
97
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
98
-
99
- // wrapper.find(VirtPostList).prop('actions').loadNewerPosts();
100
- // expect(wrapper.state('loadingNewerPosts')).toEqual(true);
101
- // expect(actionsProp.loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[0], type: PostRequestTypes.AFTER_ID});
102
- // await wrapper.instance().callLoadPosts();
103
- // expect(wrapper.state('loadingNewerPosts')).toBe(false);
104
- // });
105
-
106
- // it('VirtPostList Should have formattedPostIds as prop', async () => {
107
- // const postIds = createFakePosIds(2);
108
- // const wrapper = shallow(
109
- // <PostList {...{...baseProps, postListIds: postIds}}/>,
110
- // );
111
-
112
- // const formattedPostIds = wrapper.find(VirtPostList).prop('postListIds');
113
- // expect(formattedPostIds).toEqual([]);
114
- // });
115
-
116
- // it('getOldestVisiblePostId and getLatestVisiblePostId should return based on postListIds', async () => {
117
- // const postIds = createFakePosIds(10);
118
- // const formattedPostIds = ['1', '2'];
119
- // const wrapper = shallow(
120
- // <PostList {...{...baseProps, postListIds: postIds, formattedPostIds}}/>,
121
- // );
122
-
123
- // const instance = wrapper.instance();
124
- // expect(instance.getOldestVisiblePostId()).toEqual('123410');
125
- // expect(instance.getLatestVisiblePostId()).toEqual('12341');
126
- // });
127
-
128
- // it('Should call for permalink posts', async () => {
129
- // const focusedPostId = 'new';
130
- // const wrapper = shallow(
131
- // <PostList {...{...baseProps, focusedPostId}}/>,
132
- // );
133
-
134
- // expect(actionsProp.loadPostsAround).toHaveBeenCalledWith(baseProps.channelId, focusedPostId);
135
- // await actionsProp.loadPostsAround();
136
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
137
- // expect(wrapper.state('loadingNewerPosts')).toBe(false);
138
- // });
139
-
140
- // it('Should call for loadLatestPosts', async () => {
141
- // const wrapper = shallow(
142
- // <PostList {...{...baseProps, postListIds: [], isFirstLoad: false}}/>,
143
- // );
144
-
145
- // expect(actionsProp.loadLatestPosts).toHaveBeenCalledWith(baseProps.channelId);
146
- // await actionsProp.loadLatestPosts();
147
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
148
- // expect(wrapper.state('loadingNewerPosts')).toBe(false);
149
- // });
150
-
151
- // describe('getPostsSince', () => {
152
- // test('should call getPostsSince on channel switch', () => {
153
- // const postIds = createFakePosIds(2);
154
- // shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds, latestPostTimeStamp: 1234}}/>);
155
- // expect(actionsProp.syncPostsInChannel).toHaveBeenCalledWith(baseProps.channelId, 1234, false);
156
- // });
157
- // });
158
-
159
- // describe('canLoadMorePosts', () => {
160
- // test('Should not call loadLatestPosts if postListIds is empty', async () => {
161
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: []}}/>);
162
- // expect(actionsProp.loadLatestPosts).toHaveBeenCalledWith(baseProps.channelId);
163
- // await actionsProp.loadLatestPosts();
164
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
165
- // expect(wrapper.state('loadingNewerPosts')).toBe(false);
166
- // });
167
-
168
- // test('Should not call loadPosts if olderPosts or newerPosts are loading', async () => {
169
- // const postIds = createFakePosIds(2);
170
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds}}/>);
171
- // wrapper.setState({loadingOlderPosts: true});
172
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts();
173
- // expect(actionsProp.loadPosts).not.toHaveBeenCalled();
174
- // wrapper.setState({loadingOlderPosts: false});
175
- // wrapper.setState({loadingNewerPosts: true});
176
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts();
177
- // expect(actionsProp.loadPosts).not.toHaveBeenCalled();
178
- // });
179
-
180
- // test('Should not call loadPosts if there were more than MAX_EXTRA_PAGES_LOADED', async () => {
181
- // const postIds = createFakePosIds(2);
182
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds}}/>);
183
- // wrapper.instance().extraPagesLoaded = MAX_EXTRA_PAGES_LOADED + 1;
184
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts();
185
- // expect(actionsProp.loadPosts).not.toHaveBeenCalled();
186
- // });
187
-
188
- // test('Should call getPostsBefore if not all older posts are loaded', async () => {
189
- // const postIds = createFakePosIds(2);
190
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds}}/>);
191
- // wrapper.setProps({atOldestPost: false});
192
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts();
193
- // expect(actionsProp.loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[postIds.length - 1], type: PostRequestTypes.BEFORE_ID});
194
- // });
195
-
196
- // test('Should call getPostsAfter if all older posts are loaded and not newerPosts', async () => {
197
- // const postIds = createFakePosIds(2);
198
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds}}/>);
199
- // wrapper.setProps({atOldestPost: true});
200
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts();
201
- // expect(actionsProp.loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[0], type: PostRequestTypes.AFTER_ID});
202
- // });
203
-
204
- // test('Should call getPostsAfter canLoadMorePosts is requested with AFTER_ID', async () => {
205
- // const postIds = createFakePosIds(2);
206
- // const wrapper = shallow(<PostList {...{...baseProps, isFirstLoad: false, postListIds: postIds}}/>);
207
- // wrapper.find(VirtPostList).prop('actions').canLoadMorePosts(PostRequestTypes.AFTER_ID);
208
- // expect(actionsProp.loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[0], type: PostRequestTypes.AFTER_ID});
209
- // });
210
- // });
211
-
212
- // describe('Auto retry of load more posts', () => {
213
- // test('Should retry loadPosts on failure of loadPosts', async () => {
214
- // const postIds = createFakePosIds(2);
215
- // const loadPosts = jest.fn().mockImplementation(() => Promise.resolve({moreToLoad: true, error: {}}));
216
- // const props = {
217
- // ...baseProps,
218
- // postListIds: postIds,
219
- // actions: {
220
- // ...actionsProp,
221
- // loadPosts,
222
- // },
223
- // };
224
-
225
- // const wrapper = shallow(
226
- // <PostList {...props}/>,
227
- // );
228
-
229
- // wrapper.find(VirtPostList).prop('actions').loadOlderPosts();
230
- // expect(wrapper.state('loadingOlderPosts')).toEqual(true);
231
- // expect(loadPosts).toHaveBeenCalledTimes(1);
232
- // expect(loadPosts).toHaveBeenCalledWith({channelId: baseProps.channelId, postId: postIds[postIds.length - 1], type: PostRequestTypes.BEFORE_ID});
233
- // await loadPosts();
234
- // expect(wrapper.state('loadingOlderPosts')).toBe(false);
235
- // expect(loadPosts).toHaveBeenCalledTimes(3);
236
- // });
237
- // });
238
-
239
- // describe('markChannelAsReadAndViewed', () => {
240
- // test('Should call markChannelAsReadAndViewed on postsOnLoad', async () => {
241
- // const emptyPostList = [];
242
-
243
- // const wrapper = shallow(
244
- // <PostList {...{...baseProps, postListIds: emptyPostList}}/>,
245
- // );
246
-
247
- // await wrapper.instance().postsOnLoad();
248
- // expect(actionsProp.markChannelAsRead).toHaveBeenCalledWith(baseProps.channelId);
249
- // expect(actionsProp.markChannelAsViewed).toHaveBeenCalledWith(baseProps.channelId);
250
- // });
251
- // test('Should call markChannelAsReadAndViewed on componeneWillUnmount', async () => {
252
- // const emptyPostList = [];
253
-
254
- // const wrapper = shallow(
255
- // <PostList {...{...baseProps, postListIds: emptyPostList}}/>,
256
- // );
257
-
258
- // await wrapper.instance().componentWillUnmount();
259
- // expect(actionsProp.markChannelAsRead).toHaveBeenCalledWith(baseProps.channelId);
260
- // expect(actionsProp.markChannelAsViewed).toHaveBeenCalledWith(baseProps.channelId);
261
- // });
262
- // test('Should not call markChannelAsReadAndViewed as it is a permalink', async () => {
263
- // const emptyPostList = [];
264
- // const focusedPostId = 'new';
265
- // shallow(
266
- // <PostList {...{...baseProps, postListIds: emptyPostList, focusedPostId}}/>,
267
- // );
268
-
269
- // await actionsProp.loadPostsAround();
270
- // expect(actionsProp.markChannelAsRead).not.toHaveBeenCalled();
271
- // expect(actionsProp.markChannelAsViewed).not.toHaveBeenCalled();
272
- // });
273
- // });
274
- // });
@@ -1,108 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`components/post_view/post_list_row should have class hideAnimation for NEWER_MESSAGES_LOADER if loadingNewerPosts is false 1`] = `
4
- <div
5
- className="loading-screen"
6
- >
7
- <div
8
- className="loading__content hideAnimation"
9
- >
10
- <div
11
- className="round round-1"
12
- />
13
- <div
14
- className="round round-2"
15
- />
16
- <div
17
- className="round round-3"
18
- />
19
- </div>
20
- </div>
21
- `;
22
-
23
- exports[`components/post_view/post_list_row should have class hideAnimation for OLDER_MESSAGES_LOADER if loadingOlderPosts is false 1`] = `
24
- <div
25
- className="loading-screen"
26
- >
27
- <div
28
- className="loading__content hideAnimation"
29
- >
30
- <div
31
- className="round round-1"
32
- />
33
- <div
34
- className="round round-2"
35
- />
36
- <div
37
- className="round round-3"
38
- />
39
- </div>
40
- </div>
41
- `;
42
-
43
- exports[`components/post_view/post_list_row should render channel intro message 1`] = `<Connect(ChannelIntroMessage) />`;
44
-
45
- exports[`components/post_view/post_list_row should render combined post 1`] = `
46
- <Connect(Connect(Post))
47
- combinedId="user-activity-1234-5678"
48
- isLastPost={false}
49
- previousPostId="abcd"
50
- shouldHighlight={false}
51
- togglePostMenu={[MockFunction]}
52
- />
53
- `;
54
-
55
- exports[`components/post_view/post_list_row should render date line 1`] = `
56
- <Memo(DateSeparator)
57
- date={1553106600000}
58
- key="1553106600000"
59
- />
60
- `;
61
-
62
- exports[`components/post_view/post_list_row should render manual load messages trigger 1`] = `
63
- <button
64
- className="more-messages-text theme style--none color--link"
65
- onClick={[MockFunction]}
66
- >
67
- <MemoizedFormattedMessage
68
- defaultMessage="Load More Messages"
69
- id="posts_view.loadMore"
70
- />
71
- </button>
72
- `;
73
-
74
- exports[`components/post_view/post_list_row should render more messages loading indicator 1`] = `
75
- <div
76
- className="loading-screen"
77
- >
78
- <div
79
- className="loading__content"
80
- >
81
- <div
82
- className="round round-1"
83
- />
84
- <div
85
- className="round round-2"
86
- />
87
- <div
88
- className="round round-3"
89
- />
90
- </div>
91
- </div>
92
- `;
93
-
94
- exports[`components/post_view/post_list_row should render new messages line 1`] = `
95
- <NewMessageSeparator
96
- separatorId="start-of-new-messages"
97
- />
98
- `;
99
-
100
- exports[`components/post_view/post_list_row should render post 1`] = `
101
- <Connect(Post)
102
- isLastPost={false}
103
- postId="1234"
104
- previousPostId="abcd"
105
- shouldHighlight={false}
106
- togglePostMenu={[MockFunction]}
107
- />
108
- `;
@@ -1,42 +0,0 @@
1
- // // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
2
- // // See LICENSE.txt for license information.
3
-
4
- // import {connect} from 'react-redux';
5
- // import {bindActionCreators, Dispatch} from 'redux';
6
-
7
- // import {GenericAction} from 'mattermost-redux/types/actions';
8
-
9
- // import {Channel} from 'mattermost-redux/types/channels';
10
- // import {Post} from 'mattermost-redux/types/posts';
11
-
12
- // import {getShortcutReactToLastPostEmittedFrom} from 'selectors/emojis';
13
- // import {emitShortcutReactToLastPostFrom} from 'actions/post_actions.jsx';
14
-
15
- // import {GlobalState} from 'types/store';
16
-
17
- // import PostListRow from './post_list_row';
18
-
19
- // type Props = {
20
- // post: Post;
21
- // channel: Channel;
22
- // }
23
-
24
- // function mapStateToProps(state: GlobalState, ownProps: Props) {
25
- // const shortcutReactToLastPostEmittedFrom = getShortcutReactToLastPostEmittedFrom(state);
26
-
27
- // return {
28
- // post: ownProps.post,
29
- // channel: ownProps.channel,
30
- // shortcutReactToLastPostEmittedFrom,
31
- // };
32
- // }
33
-
34
- // function mapDispatchToProps(dispatch: Dispatch<GenericAction>) {
35
- // return {
36
- // actions: bindActionCreators({
37
- // emitShortcutReactToLastPostFrom,
38
- // }, dispatch),
39
- // };
40
- // }
41
-
42
- // export default connect(mapStateToProps, mapDispatchToProps)(PostListRow);
@@ -1,176 +0,0 @@
1
- // // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
2
- // // See LICENSE.txt for license information.
3
-
4
- // import {shallow} from 'enzyme';
5
- // import * as React from 'react';
6
-
7
- // import * as PostListUtils from 'mattermost-redux/utils/post_list';
8
-
9
- // import {ChannelType} from 'mattermost-redux/types/channels';
10
-
11
- // import CombinedUserActivityPost from 'components/post_view/combined_user_activity_post';
12
- // import Post from 'components/post_view/post';
13
- // import DateSeparator from 'components/post_view/date_separator';
14
- // import NewMessageSeparator from 'components/post_view/new_message_separator/new_message_separator';
15
- // import ChannelIntroMessage from 'components/post_view/channel_intro_message/';
16
-
17
- // import {PostListRowListIds} from 'utils/constants';
18
-
19
- // import PostListRow from './post_list_row';
20
-
21
- // describe('components/post_view/post_list_row', () => {
22
- // const defaultProps = {
23
- // listId: '1234',
24
- // loadOlderPosts: jest.fn(),
25
- // loadNewerPosts: jest.fn(),
26
- // togglePostMenu: jest.fn(),
27
- // isLastPost: false,
28
- // shortcutReactToLastPostEmittedFrom: 'NO_WHERE',
29
- // loadingNewerPosts: false,
30
- // loadingOlderPosts: false,
31
- // isCurrentUserLastPostGroupFirstPost: false,
32
- // actions: {
33
- // emitShortcutReactToLastPostFrom: jest.fn(),
34
- // },
35
- // };
36
-
37
- // test('should render more messages loading indicator', () => {
38
- // const listId = PostListRowListIds.OLDER_MESSAGES_LOADER;
39
- // const props = {
40
- // ...defaultProps,
41
- // listId,
42
- // loadingOlderPosts: true,
43
- // };
44
- // const wrapper = shallow(
45
- // <PostListRow {...props}/>,
46
- // );
47
- // expect(wrapper).toMatchSnapshot();
48
- // });
49
-
50
- // test('should render manual load messages trigger', () => {
51
- // const listId = PostListRowListIds.LOAD_OLDER_MESSAGES_TRIGGER;
52
- // const loadOlderPosts = jest.fn();
53
- // const props = {
54
- // ...defaultProps,
55
- // listId,
56
- // loadOlderPosts,
57
- // };
58
- // const wrapper = shallow(
59
- // <PostListRow {...props}/>,
60
- // );
61
- // expect(wrapper).toMatchSnapshot();
62
- // wrapper.prop('onClick')();
63
- // expect(loadOlderPosts).toHaveBeenCalledTimes(1);
64
- // });
65
-
66
- // test('should render channel intro message', () => {
67
- // const listId = PostListRowListIds.CHANNEL_INTRO_MESSAGE;
68
- // const props = {
69
- // ...defaultProps,
70
- // channel: {
71
- // id: '123',
72
- // name: 'test-channel-1',
73
- // display_name: 'Test Channel 1',
74
- // type: ('P' as ChannelType),
75
- // team_id: 'team-1',
76
- // header: '',
77
- // purpose: '',
78
- // creator_id: '',
79
- // scheme_id: '',
80
- // group_constrained: false,
81
- // create_at: 0,
82
- // update_at: 0,
83
- // delete_at: 0,
84
- // last_post_at: 0,
85
- // },
86
- // fullWidth: true,
87
- // listId,
88
- // };
89
-
90
- // const wrapper = shallow(
91
- // <PostListRow {...props}/>,
92
- // );
93
- // expect(wrapper).toMatchSnapshot();
94
- // expect(wrapper.find(ChannelIntroMessage).exists()).toBe(true);
95
- // });
96
-
97
- // test('should render new messages line', () => {
98
- // const listId = PostListRowListIds.START_OF_NEW_MESSAGES;
99
- // const props = {
100
- // ...defaultProps,
101
- // listId,
102
- // };
103
- // const wrapper = shallow(
104
- // <PostListRow {...props}/>,
105
- // );
106
- // expect(wrapper).toMatchSnapshot();
107
- // expect(wrapper.find(NewMessageSeparator).exists()).toBe(true);
108
- // });
109
-
110
- // test('should render date line', () => {
111
- // const listId = `${PostListRowListIds.DATE_LINE}1553106600000`;
112
- // const props = {
113
- // ...defaultProps,
114
- // listId,
115
- // };
116
- // const wrapper = shallow(
117
- // <PostListRow {...props}/>,
118
- // );
119
- // expect(wrapper).toMatchSnapshot();
120
- // expect(wrapper.find(DateSeparator).exists()).toBe(true);
121
- // });
122
-
123
- // test('should render combined post', () => {
124
- // const props = {
125
- // ...defaultProps,
126
- // shouldHighlight: false,
127
- // listId: `${PostListUtils.COMBINED_USER_ACTIVITY}1234-5678`,
128
- // previousListId: 'abcd',
129
- // };
130
- // const wrapper = shallow(
131
- // <PostListRow {...props}/>,
132
- // );
133
- // expect(wrapper).toMatchSnapshot();
134
- // expect(wrapper.find(CombinedUserActivityPost).exists()).toBe(true);
135
- // });
136
-
137
- // test('should render post', () => {
138
- // const props = {
139
- // ...defaultProps,
140
- // shouldHighlight: false,
141
- // listId: '1234',
142
- // previousListId: 'abcd',
143
- // };
144
- // const wrapper = shallow(
145
- // <PostListRow {...props}/>,
146
- // );
147
- // expect(wrapper).toMatchSnapshot();
148
- // expect(wrapper.find(Post).exists()).toBe(true);
149
- // });
150
-
151
- // test('should have class hideAnimation for OLDER_MESSAGES_LOADER if loadingOlderPosts is false', () => {
152
- // const listId = PostListRowListIds.OLDER_MESSAGES_LOADER;
153
- // const props = {
154
- // ...defaultProps,
155
- // listId,
156
- // loadingOlderPosts: false,
157
- // };
158
- // const wrapper = shallow(
159
- // <PostListRow {...props}/>,
160
- // );
161
- // expect(wrapper).toMatchSnapshot();
162
- // });
163
-
164
- // test('should have class hideAnimation for NEWER_MESSAGES_LOADER if loadingNewerPosts is false', () => {
165
- // const listId = PostListRowListIds.NEWER_MESSAGES_LOADER;
166
- // const props = {
167
- // ...defaultProps,
168
- // listId,
169
- // loadingNewerPosts: false,
170
- // };
171
- // const wrapper = shallow(
172
- // <PostListRow {...props}/>,
173
- // );
174
- // expect(wrapper).toMatchSnapshot();
175
- // });
176
- // });