box-ui-elements 16.0.0-beta.8 → 16.0.0

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 (798) hide show
  1. package/dist/explorer.css +1 -1
  2. package/dist/explorer.js +19 -58
  3. package/dist/openwith.css +1 -1
  4. package/dist/openwith.js +10 -10
  5. package/dist/picker.css +1 -1
  6. package/dist/picker.js +12 -12
  7. package/dist/preview.css +1 -1
  8. package/dist/preview.js +17 -56
  9. package/dist/sharing.css +1 -1
  10. package/dist/sharing.js +34 -34
  11. package/dist/sidebar.css +1 -1
  12. package/dist/sidebar.js +17 -56
  13. package/dist/uploader.css +1 -1
  14. package/dist/uploader.js +12 -12
  15. package/es/api/APIFactory.js +27 -0
  16. package/es/api/APIFactory.js.flow +26 -0
  17. package/es/api/APIFactory.js.map +1 -1
  18. package/es/api/Annotations.js +180 -27
  19. package/es/api/Annotations.js.flow +150 -14
  20. package/es/api/Annotations.js.map +1 -1
  21. package/es/api/Comments.js +2 -2
  22. package/es/api/Comments.js.flow +5 -4
  23. package/es/api/Comments.js.map +1 -1
  24. package/es/api/Feed.js +578 -69
  25. package/es/api/Feed.js.flow +677 -17
  26. package/es/api/Feed.js.map +1 -1
  27. package/es/api/FileCollaborators.js +29 -0
  28. package/es/api/FileCollaborators.js.flow +30 -0
  29. package/es/api/FileCollaborators.js.map +1 -1
  30. package/es/api/ThreadedComments.js +64 -27
  31. package/es/api/ThreadedComments.js.flow +54 -29
  32. package/es/api/ThreadedComments.js.map +1 -1
  33. package/es/api/fixtures.js +381 -0
  34. package/es/api/fixtures.js.flow +401 -0
  35. package/es/api/fixtures.js.map +1 -0
  36. package/es/api/messages.js +4 -0
  37. package/es/api/messages.js.flow +5 -0
  38. package/es/api/messages.js.map +1 -1
  39. package/es/api/utils.js +33 -0
  40. package/es/api/utils.js.flow +30 -0
  41. package/es/api/utils.js.map +1 -0
  42. package/es/common/types/annotations.js.flow +18 -10
  43. package/es/common/types/feed.js +1 -1
  44. package/es/common/types/feed.js.flow +40 -4
  45. package/es/common/types/feed.js.map +1 -1
  46. package/es/components/accessible-svg/AccessibleSVG.stories.js +20 -0
  47. package/es/components/accessible-svg/AccessibleSVG.stories.js.map +1 -0
  48. package/es/components/badge/Badge.stories.js +1 -13
  49. package/es/components/badge/Badge.stories.js.map +1 -1
  50. package/es/components/badge/BetaBadge.stories.js +10 -0
  51. package/es/components/badge/BetaBadge.stories.js.map +1 -0
  52. package/es/components/badge/TrialBadge.stories.js +10 -0
  53. package/es/components/badge/TrialBadge.stories.js.map +1 -0
  54. package/es/components/badge/UpgradeBadge.stories.js +10 -0
  55. package/es/components/badge/UpgradeBadge.stories.js.map +1 -0
  56. package/es/components/breadcrumb/Breadcrumb.js +48 -35
  57. package/es/components/breadcrumb/Breadcrumb.js.flow +68 -42
  58. package/es/components/breadcrumb/Breadcrumb.js.map +1 -1
  59. package/es/components/breadcrumb/EllipsisCrumb.js +5 -3
  60. package/es/components/breadcrumb/EllipsisCrumb.js.flow +10 -6
  61. package/es/components/breadcrumb/EllipsisCrumb.js.map +1 -1
  62. package/es/components/count-badge/CountBadge.stories.js +1 -1
  63. package/es/components/count-badge/CountBadge.stories.js.map +1 -1
  64. package/es/components/draggable-list/DraggableList.stories.js +119 -5
  65. package/es/components/draggable-list/DraggableList.stories.js.map +1 -1
  66. package/es/components/dropdown-menu/DropdownMenu.js +9 -0
  67. package/es/components/dropdown-menu/DropdownMenu.js.flow +11 -0
  68. package/es/components/dropdown-menu/DropdownMenu.js.map +1 -1
  69. package/es/components/dropdown-menu/DropdownMenu.scss +3 -3
  70. package/es/components/infinite-scroll/InfiniteScroll.js +4 -2
  71. package/es/components/infinite-scroll/InfiniteScroll.js.map +1 -1
  72. package/es/components/modal/Modal.scss +5 -1
  73. package/es/components/search-form/SearchForm.js +1 -1
  74. package/es/components/search-form/SearchForm.js.flow +1 -1
  75. package/es/components/search-form/SearchForm.js.map +1 -1
  76. package/es/components/table/makeSelectable.js +304 -97
  77. package/es/components/table/makeSelectable.js.flow +299 -98
  78. package/es/components/table/makeSelectable.js.map +1 -1
  79. package/es/components/tooltip/Tooltip.js +3 -2
  80. package/es/components/tooltip/Tooltip.js.map +1 -1
  81. package/es/constants.js +11 -0
  82. package/es/constants.js.flow +11 -0
  83. package/es/constants.js.map +1 -1
  84. package/es/elements/common/annotator-context/index.js +1 -0
  85. package/es/elements/common/annotator-context/index.js.flow +4 -0
  86. package/es/elements/common/annotator-context/index.js.map +1 -1
  87. package/es/elements/common/annotator-context/types.js +12 -0
  88. package/es/elements/common/annotator-context/types.js.flow +77 -35
  89. package/es/elements/common/annotator-context/types.js.map +1 -1
  90. package/es/elements/common/annotator-context/useAnnotatorEvents.js +205 -0
  91. package/es/elements/common/annotator-context/useAnnotatorEvents.js.flow +52 -0
  92. package/es/elements/common/annotator-context/useAnnotatorEvents.js.map +1 -0
  93. package/es/elements/common/annotator-context/withAnnotations.js +224 -5
  94. package/es/elements/common/annotator-context/withAnnotations.js.flow +73 -36
  95. package/es/elements/common/annotator-context/withAnnotations.js.map +1 -1
  96. package/es/elements/common/annotator-context/withAnnotatorContext.js +12 -4
  97. package/es/elements/common/annotator-context/withAnnotatorContext.js.flow +29 -9
  98. package/es/elements/common/annotator-context/withAnnotatorContext.js.map +1 -1
  99. package/es/elements/common/current-user/index.js +3 -0
  100. package/es/elements/common/current-user/index.js.flow +8 -0
  101. package/es/elements/common/current-user/index.js.map +1 -0
  102. package/es/elements/common/current-user/withCurrentUser.js +139 -0
  103. package/es/elements/common/current-user/withCurrentUser.js.flow +40 -0
  104. package/es/elements/common/current-user/withCurrentUser.js.map +1 -0
  105. package/es/elements/common/flowTypes.js.flow +22 -4
  106. package/es/elements/common/flowTypes.js.map +1 -1
  107. package/es/elements/common/interactionTargets.js +2 -0
  108. package/es/elements/common/interactionTargets.js.flow +2 -0
  109. package/es/elements/common/interactionTargets.js.map +1 -1
  110. package/es/elements/common/logger/Logger.js +1 -1
  111. package/es/elements/common/logger/Logger.js.flow +1 -1
  112. package/es/elements/common/logger/Logger.js.map +1 -1
  113. package/es/elements/common/messages.js +4 -0
  114. package/es/elements/common/messages.js.flow +5 -0
  115. package/es/elements/common/messages.js.map +1 -1
  116. package/es/elements/content-explorer/DeleteConfirmationDialog.js +2 -1
  117. package/es/elements/content-explorer/DeleteConfirmationDialog.js.flow +3 -1
  118. package/es/elements/content-explorer/DeleteConfirmationDialog.js.map +1 -1
  119. package/es/elements/content-explorer/DeleteConfirmationDialog.scss +5 -0
  120. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +58 -0
  121. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.flow +60 -0
  122. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.map +1 -0
  123. package/es/elements/content-sidebar/ActivitySidebar.js +323 -197
  124. package/es/elements/content-sidebar/ActivitySidebar.js.flow +381 -154
  125. package/es/elements/content-sidebar/ActivitySidebar.js.map +1 -1
  126. package/es/elements/content-sidebar/ActivitySidebarFilter.js +52 -0
  127. package/es/elements/content-sidebar/ActivitySidebarFilter.js.flow +59 -0
  128. package/es/elements/content-sidebar/ActivitySidebarFilter.js.map +1 -0
  129. package/es/elements/content-sidebar/ActivitySidebarFilter.scss +4 -0
  130. package/es/elements/content-sidebar/DetailsSidebar.js +50 -25
  131. package/es/elements/content-sidebar/DetailsSidebar.js.flow +32 -4
  132. package/es/elements/content-sidebar/DetailsSidebar.js.map +1 -1
  133. package/es/elements/content-sidebar/Sidebar.js +4 -1
  134. package/es/elements/content-sidebar/Sidebar.js.flow +6 -1
  135. package/es/elements/content-sidebar/Sidebar.js.map +1 -1
  136. package/es/elements/content-sidebar/SidebarContentInsights.js +45 -0
  137. package/es/elements/content-sidebar/SidebarContentInsights.js.map +1 -0
  138. package/es/elements/content-sidebar/SidebarContentInsights.scss +6 -0
  139. package/es/elements/content-sidebar/SidebarPanels.js +2 -0
  140. package/es/elements/content-sidebar/SidebarPanels.js.flow +4 -0
  141. package/es/elements/content-sidebar/SidebarPanels.js.map +1 -1
  142. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +91 -10
  143. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.flow +122 -24
  144. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.map +1 -1
  145. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js +27 -15
  146. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.flow +59 -18
  147. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.map +1 -1
  148. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js +101 -0
  149. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js.flow +126 -0
  150. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js.map +1 -0
  151. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.scss +17 -0
  152. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js +69 -0
  153. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js.flow +85 -0
  154. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js.map +1 -0
  155. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.scss +16 -0
  156. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js +62 -0
  157. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js.flow +59 -0
  158. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js.map +1 -0
  159. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.scss +22 -0
  160. package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js +2 -2
  161. package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js.flow +2 -2
  162. package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js.map +1 -1
  163. package/es/elements/content-sidebar/activity-feed/activity-feed/fixtures.js +55 -0
  164. package/es/elements/content-sidebar/activity-feed/activity-feed/fixtures.js.map +1 -0
  165. package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js +16 -0
  166. package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js.flow +20 -0
  167. package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js.map +1 -1
  168. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js +121 -0
  169. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js.flow +117 -0
  170. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js.map +1 -0
  171. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.scss +7 -0
  172. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js +75 -0
  173. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.flow +105 -0
  174. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.map +1 -0
  175. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.scss +5 -0
  176. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js +77 -0
  177. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js.flow +86 -0
  178. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js.map +1 -0
  179. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.scss +3 -0
  180. package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js +11 -0
  181. package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js.flow +26 -0
  182. package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js.map +1 -0
  183. package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js +2 -0
  184. package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js.flow +1 -0
  185. package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js.map +1 -0
  186. package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js +17 -0
  187. package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js.flow +21 -0
  188. package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js.map +1 -0
  189. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js +180 -0
  190. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js.flow +203 -0
  191. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js.map +1 -0
  192. package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js +124 -0
  193. package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js.flow +121 -0
  194. package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js.map +1 -0
  195. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +19 -5
  196. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.flow +24 -4
  197. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.map +1 -1
  198. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js +25 -4
  199. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js.flow +36 -2
  200. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js.map +1 -1
  201. package/es/elements/content-sidebar/activity-feed/annotations/messages.js +8 -0
  202. package/es/elements/content-sidebar/activity-feed/annotations/messages.js.flow +10 -0
  203. package/es/elements/content-sidebar/activity-feed/annotations/messages.js.map +1 -1
  204. package/es/elements/content-sidebar/activity-feed/comment/Comment.js +61 -28
  205. package/es/elements/content-sidebar/activity-feed/comment/Comment.js.flow +54 -10
  206. package/es/elements/content-sidebar/activity-feed/comment/Comment.js.map +1 -1
  207. package/es/elements/content-sidebar/activity-feed/comment/messages.js +8 -0
  208. package/es/elements/content-sidebar/activity-feed/comment/messages.js.flow +10 -0
  209. package/es/elements/content-sidebar/activity-feed/comment/messages.js.map +1 -1
  210. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +4 -2
  211. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.flow +3 -1
  212. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.map +1 -1
  213. package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js +16 -5
  214. package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js.flow +34 -4
  215. package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js.map +1 -1
  216. package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.scss +40 -3
  217. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js +49 -0
  218. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js.flow +42 -0
  219. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js.map +1 -0
  220. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js +21 -0
  221. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js.flow +24 -0
  222. package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js.map +1 -0
  223. package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js +12 -0
  224. package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js.flow +15 -0
  225. package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js.map +1 -1
  226. package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js +24 -0
  227. package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js.flow +30 -0
  228. package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js.map +1 -0
  229. package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.scss +6 -0
  230. package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js +2 -0
  231. package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js.flow +2 -0
  232. package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js.map +1 -0
  233. package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js +9 -0
  234. package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js.flow +13 -0
  235. package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js.map +1 -0
  236. package/es/elements/content-sidebar/activity-feed/common/activity-timestamp/ActivityTimestamp.scss +1 -1
  237. package/es/elements/content-sidebar/fixtures.js +181 -0
  238. package/es/elements/content-sidebar/fixtures.js.flow +185 -0
  239. package/es/elements/content-sidebar/fixtures.js.map +1 -0
  240. package/es/elements/content-sidebar/flowTypes.js.flow +9 -25
  241. package/es/elements/content-sidebar/messages.js +8 -0
  242. package/es/elements/content-sidebar/messages.js.flow +10 -0
  243. package/es/elements/content-sidebar/messages.js.map +1 -1
  244. package/es/elements/content-sidebar/withErrorHandling.js.flow +1 -1
  245. package/es/elements/content-sidebar/withErrorHandling.js.map +1 -1
  246. package/es/elements/content-sidebar/withSidebarAnnotations.js +215 -30
  247. package/es/elements/content-sidebar/withSidebarAnnotations.js.flow +162 -11
  248. package/es/elements/content-sidebar/withSidebarAnnotations.js.map +1 -1
  249. package/es/elements/content-uploader/OverallUploadsProgressBar.js +10 -8
  250. package/es/elements/content-uploader/OverallUploadsProgressBar.js.flow +11 -12
  251. package/es/elements/content-uploader/OverallUploadsProgressBar.js.map +1 -1
  252. package/es/features/classification/Classification.scss +1 -1
  253. package/es/features/classification/security-controls/SecurityControlsItem.scss +1 -0
  254. package/es/features/classification/security-controls/messages.js +8 -0
  255. package/es/features/classification/security-controls/messages.js.flow +10 -0
  256. package/es/features/classification/security-controls/messages.js.map +1 -1
  257. package/es/features/classification/security-controls/utils.js +4 -7
  258. package/es/features/classification/security-controls/utils.js.flow +8 -12
  259. package/es/features/classification/security-controls/utils.js.map +1 -1
  260. package/es/features/content-explorer/content-explorer/ContentExplorer.js +6 -1
  261. package/es/features/content-explorer/content-explorer/ContentExplorer.js.flow +4 -0
  262. package/es/features/content-explorer/content-explorer/ContentExplorer.js.map +1 -1
  263. package/es/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
  264. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +15 -9
  265. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.flow +14 -11
  266. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.map +1 -1
  267. package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js +4 -1
  268. package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js.flow +4 -1
  269. package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js.map +1 -1
  270. package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js +6 -3
  271. package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.flow +5 -1
  272. package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.map +1 -1
  273. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +6 -1
  274. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.flow +5 -1
  275. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.map +1 -1
  276. package/es/features/content-explorer/prop-types.js +7 -1
  277. package/es/features/content-explorer/prop-types.js.flow +8 -0
  278. package/es/features/content-explorer/prop-types.js.map +1 -1
  279. package/es/features/content-insights/CompactCount.js +24 -0
  280. package/es/features/content-insights/CompactCount.js.map +1 -0
  281. package/es/features/content-insights/ContentAnalyticsErrorState.js +35 -0
  282. package/es/features/content-insights/ContentAnalyticsErrorState.js.map +1 -0
  283. package/es/features/content-insights/ContentAnalyticsErrorState.scss +17 -0
  284. package/es/features/content-insights/ContentInsightsSummary.js +42 -0
  285. package/es/features/content-insights/ContentInsightsSummary.js.map +1 -0
  286. package/es/features/content-insights/ContentInsightsSummary.scss +12 -0
  287. package/es/features/content-insights/ContentInsightsSummaryGhostState.js +19 -0
  288. package/es/features/content-insights/ContentInsightsSummaryGhostState.js.map +1 -0
  289. package/es/features/content-insights/ContentInsightsSummaryGhostState.scss +9 -0
  290. package/es/features/content-insights/GraphCardGhostState.js +25 -0
  291. package/es/features/content-insights/GraphCardGhostState.js.map +1 -0
  292. package/es/features/content-insights/GraphCardGhostState.scss +18 -0
  293. package/es/features/content-insights/GraphCardPreviewsSummary.js +30 -0
  294. package/es/features/content-insights/GraphCardPreviewsSummary.js.map +1 -0
  295. package/es/features/content-insights/GraphCardPreviewsSummary.scss +10 -0
  296. package/es/features/content-insights/GraphGhostState.js +21 -0
  297. package/es/features/content-insights/GraphGhostState.js.map +1 -0
  298. package/es/features/content-insights/GraphGhostState.scss +11 -0
  299. package/es/features/content-insights/HeaderWithCount.js +23 -0
  300. package/es/features/content-insights/HeaderWithCount.js.map +1 -0
  301. package/es/features/content-insights/HeaderWithCount.scss +10 -0
  302. package/es/features/content-insights/MetricSummary.js +85 -0
  303. package/es/features/content-insights/MetricSummary.js.map +1 -0
  304. package/es/features/content-insights/MetricSummary.scss +14 -0
  305. package/es/features/content-insights/OpenContentInsightsButton.js +16 -0
  306. package/es/features/content-insights/OpenContentInsightsButton.js.map +1 -0
  307. package/es/features/content-insights/TrendPill.js +61 -0
  308. package/es/features/content-insights/TrendPill.js.map +1 -0
  309. package/es/features/content-insights/TrendPill.scss +33 -0
  310. package/es/features/content-insights/_mixins.scss +7 -0
  311. package/es/features/content-insights/_variables.scss +4 -0
  312. package/es/features/content-insights/charts/bar/Bar.js +57 -0
  313. package/es/features/content-insights/charts/bar/Bar.js.map +1 -0
  314. package/es/features/content-insights/charts/bar/Bar.scss +27 -0
  315. package/es/features/content-insights/charts/bar/BarChart.js +70 -0
  316. package/es/features/content-insights/charts/bar/BarChart.js.map +1 -0
  317. package/es/features/content-insights/charts/bar/BarChart.scss +56 -0
  318. package/es/features/content-insights/charts/types.js +2 -0
  319. package/es/{common/types/threadedComments.js.map → features/content-insights/charts/types.js.map} +1 -1
  320. package/es/features/content-insights/constants.js +54 -0
  321. package/es/features/content-insights/constants.js.map +1 -0
  322. package/es/features/content-insights/messages.js +69 -0
  323. package/es/features/content-insights/messages.js.map +1 -0
  324. package/es/features/content-insights/numberUtils.js +10 -0
  325. package/es/features/content-insights/numberUtils.js.map +1 -0
  326. package/es/features/content-insights/types.js +2 -0
  327. package/es/features/content-insights/types.js.map +1 -0
  328. package/es/features/item-details/ItemProperties.scss +1 -1
  329. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js +5 -3
  330. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js.flow +4 -2
  331. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js.map +1 -1
  332. package/es/features/unified-share-modal/ContactRestrictionNotice.js +34 -8
  333. package/es/features/unified-share-modal/ContactRestrictionNotice.js.flow +36 -6
  334. package/es/features/unified-share-modal/ContactRestrictionNotice.js.map +1 -1
  335. package/es/features/unified-share-modal/EmailForm.js +59 -47
  336. package/es/features/unified-share-modal/EmailForm.js.flow +31 -13
  337. package/es/features/unified-share-modal/EmailForm.js.map +1 -1
  338. package/es/features/unified-share-modal/UnifiedShareForm.js +112 -103
  339. package/es/features/unified-share-modal/UnifiedShareForm.js.flow +25 -8
  340. package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
  341. package/es/features/unified-share-modal/UnifiedShareModal.js +1 -0
  342. package/es/features/unified-share-modal/UnifiedShareModal.js.flow +1 -0
  343. package/es/features/unified-share-modal/UnifiedShareModal.js.map +1 -1
  344. package/es/features/unified-share-modal/flowTypes.js.flow +4 -2
  345. package/es/features/unified-share-modal/flowTypes.js.map +1 -1
  346. package/es/features/unified-share-modal/messages.js +12 -8
  347. package/es/features/unified-share-modal/messages.js.flow +14 -8
  348. package/es/features/unified-share-modal/messages.js.map +1 -1
  349. package/es/features/unified-share-modal/utils/hasRestrictedContacts.js +9 -4
  350. package/es/features/unified-share-modal/utils/hasRestrictedContacts.js.flow +10 -3
  351. package/es/features/unified-share-modal/utils/hasRestrictedContacts.js.map +1 -1
  352. package/es/features/unified-share-modal/utils/isRestrictedContact.js +15 -0
  353. package/es/features/unified-share-modal/utils/isRestrictedContact.js.flow +21 -0
  354. package/es/features/unified-share-modal/utils/isRestrictedContact.js.map +1 -0
  355. package/es/icon/fill/Alert16.js +3 -2
  356. package/es/icon/fill/Alert16.js.flow +3 -2
  357. package/es/icon/fill/Alert16.js.map +1 -1
  358. package/es/icon/fill/AlertBadge16.js +31 -0
  359. package/es/icon/fill/AlertBadge16.js.flow +29 -0
  360. package/es/icon/fill/AlertBadge16.js.map +1 -0
  361. package/es/icon/fill/AlertBadge16.stories.js +13 -0
  362. package/es/icon/fill/AlertBadge16.stories.js.map +1 -0
  363. package/es/icon/fill/Info16.js +2 -2
  364. package/es/icon/fill/Info16.js.flow +1 -1
  365. package/es/icon/fill/Info16.js.map +1 -1
  366. package/es/icon/fill/InfoBadge16.js +30 -0
  367. package/es/icon/fill/InfoBadge16.js.flow +28 -0
  368. package/es/icon/fill/InfoBadge16.js.map +1 -0
  369. package/es/icon/fill/InfoBadge16.stories.js +13 -0
  370. package/es/icon/fill/InfoBadge16.stories.js.map +1 -0
  371. package/es/icon/fill/UserSettings16.js +38 -0
  372. package/es/icon/fill/UserSettings16.js.flow +38 -0
  373. package/es/icon/fill/UserSettings16.js.map +1 -0
  374. package/es/icon/fill/UserSettings16.stories.js +13 -0
  375. package/es/icon/fill/UserSettings16.stories.js.map +1 -0
  376. package/es/icon/line/AlertBubble16.js +31 -0
  377. package/es/icon/line/AlertBubble16.js.flow +29 -0
  378. package/es/icon/line/AlertBubble16.js.map +1 -0
  379. package/es/icon/line/AlertBubble16.stories.js +13 -0
  380. package/es/icon/line/AlertBubble16.stories.js.map +1 -0
  381. package/es/icon/line/AvatarXBadge16.js +45 -0
  382. package/es/icon/line/AvatarXBadge16.js.flow +39 -0
  383. package/es/icon/line/AvatarXBadge16.js.map +1 -0
  384. package/es/icon/line/AvatarXBadge16.stories.js +13 -0
  385. package/es/icon/line/AvatarXBadge16.stories.js.map +1 -0
  386. package/es/icon/line/CoEdit16.js +32 -0
  387. package/es/icon/line/CoEdit16.js.flow +30 -0
  388. package/es/icon/line/CoEdit16.js.map +1 -0
  389. package/es/icon/line/CoEdit16.stories.js +13 -0
  390. package/es/icon/line/CoEdit16.stories.js.map +1 -0
  391. package/es/icon/line/Collaborations16.js +32 -0
  392. package/es/icon/line/Collaborations16.js.flow +30 -0
  393. package/es/icon/line/Collaborations16.js.map +1 -0
  394. package/es/icon/line/Collaborations16.stories.js +13 -0
  395. package/es/icon/line/Collaborations16.stories.js.map +1 -0
  396. package/es/icon/line/CommentBubble16.js +35 -0
  397. package/es/icon/line/CommentBubble16.js.flow +34 -0
  398. package/es/icon/line/CommentBubble16.js.map +1 -0
  399. package/es/icon/line/CommentBubble16.stories.js +13 -0
  400. package/es/icon/line/CommentBubble16.stories.js.map +1 -0
  401. package/es/src/components/accessible-svg/AccessibleSVG.stories.d.ts +7 -0
  402. package/es/src/components/badge/Badge.stories.d.ts +0 -3
  403. package/es/src/components/badge/BetaBadge.stories.d.ts +6 -0
  404. package/es/src/components/badge/TrialBadge.stories.d.ts +6 -0
  405. package/es/src/components/badge/UpgradeBadge.stories.d.ts +6 -0
  406. package/es/src/components/draggable-list/DraggableList.stories.d.ts +3 -3
  407. package/es/src/components/infinite-scroll/InfiniteScroll.d.ts +1 -1
  408. package/es/src/components/tooltip/Tooltip.d.ts +2 -0
  409. package/es/src/elements/common/annotator-context/__tests__/useAnnotatorEvents.test.d.ts +1 -0
  410. package/es/src/elements/common/annotator-context/index.d.ts +1 -0
  411. package/es/src/elements/common/annotator-context/types.d.ts +28 -6
  412. package/es/src/elements/common/annotator-context/useAnnotatorEvents.d.ts +52 -0
  413. package/es/src/elements/common/annotator-context/withAnnotations.d.ts +11 -2
  414. package/es/src/elements/common/annotator-context/withAnnotatorContext.d.ts +6 -2
  415. package/es/src/elements/common/current-user/__tests__/withCurrentUser.test.d.ts +1 -0
  416. package/es/src/elements/common/current-user/index.d.ts +2 -0
  417. package/es/src/elements/common/current-user/withCurrentUser.d.ts +20 -0
  418. package/es/src/elements/content-sidebar/SidebarContentInsights.d.ts +15 -0
  419. package/es/src/elements/content-sidebar/__tests__/SidebarContentInsights.test.d.ts +1 -0
  420. package/es/src/elements/content-sidebar/activity-feed/activity-feed/fixtures.d.ts +55 -0
  421. package/es/src/features/content-insights/CompactCount.d.ts +15 -0
  422. package/es/src/features/content-insights/ContentAnalyticsErrorState.d.ts +7 -0
  423. package/es/src/features/content-insights/ContentInsightsSummary.d.ts +12 -0
  424. package/es/src/features/content-insights/ContentInsightsSummaryGhostState.d.ts +3 -0
  425. package/es/src/features/content-insights/GraphCardGhostState.d.ts +3 -0
  426. package/es/src/features/content-insights/GraphCardPreviewsSummary.d.ts +16 -0
  427. package/es/src/features/content-insights/GraphGhostState.d.ts +3 -0
  428. package/es/src/features/content-insights/HeaderWithCount.d.ts +7 -0
  429. package/es/src/features/content-insights/MetricSummary.d.ts +18 -0
  430. package/es/src/features/content-insights/OpenContentInsightsButton.d.ts +5 -0
  431. package/es/src/features/content-insights/TrendPill.d.ts +15 -0
  432. package/es/src/features/content-insights/__tests__/CompactCount.test.d.ts +1 -0
  433. package/es/src/features/content-insights/__tests__/ContentAnalyticsErrorState.test.d.ts +1 -0
  434. package/es/src/features/content-insights/__tests__/ContentInsightsSummary.test.d.ts +1 -0
  435. package/es/src/features/content-insights/__tests__/GraphCardPreviewsSummary.test.d.ts +1 -0
  436. package/es/src/features/content-insights/__tests__/HeaderWithCount.test.d.ts +1 -0
  437. package/es/src/features/content-insights/__tests__/MetricSummary.test.d.ts +1 -0
  438. package/es/src/features/content-insights/charts/bar/Bar.d.ts +11 -0
  439. package/es/src/features/content-insights/charts/bar/BarChart.d.ts +19 -0
  440. package/es/src/features/content-insights/charts/bar/__tests__/Bar.test.d.ts +1 -0
  441. package/es/src/features/content-insights/charts/bar/__tests__/BarChart.test.d.ts +1 -0
  442. package/es/src/features/content-insights/charts/types.d.ts +2 -0
  443. package/es/src/features/content-insights/constants.d.ts +27 -0
  444. package/es/src/features/content-insights/messages.d.ts +83 -0
  445. package/es/src/features/content-insights/numberUtils.d.ts +3 -0
  446. package/es/src/features/content-insights/types.d.ts +24 -0
  447. package/es/src/icon/fill/AlertBadge16.d.ts +13 -0
  448. package/es/src/icon/fill/AlertBadge16.stories.d.ts +9 -0
  449. package/es/src/icon/fill/InfoBadge16.d.ts +13 -0
  450. package/es/src/icon/fill/InfoBadge16.stories.d.ts +9 -0
  451. package/es/src/icon/fill/UserSettings16.d.ts +13 -0
  452. package/es/src/icon/fill/UserSettings16.stories.d.ts +9 -0
  453. package/es/src/icon/line/AlertBubble16.d.ts +13 -0
  454. package/es/src/icon/line/AlertBubble16.stories.d.ts +9 -0
  455. package/es/src/icon/line/AvatarXBadge16.d.ts +13 -0
  456. package/es/src/icon/line/AvatarXBadge16.stories.d.ts +9 -0
  457. package/es/src/icon/line/CoEdit16.d.ts +13 -0
  458. package/es/src/icon/line/CoEdit16.stories.d.ts +9 -0
  459. package/es/src/icon/line/Collaborations16.d.ts +13 -0
  460. package/es/src/icon/line/Collaborations16.stories.d.ts +9 -0
  461. package/es/src/icon/line/CommentBubble16.d.ts +13 -0
  462. package/es/src/icon/line/CommentBubble16.stories.d.ts +9 -0
  463. package/es/src/styles/variables.d.ts +3 -1
  464. package/es/styles/constants/_layout.scss +1 -1
  465. package/es/styles/constants/_media-queries.scss +2 -0
  466. package/es/styles/variables.js +6 -2
  467. package/es/styles/variables.js.flow +4 -2
  468. package/es/styles/variables.js.map +1 -1
  469. package/es/utils/error.js +5 -1
  470. package/es/utils/error.js.flow +5 -1
  471. package/es/utils/error.js.map +1 -1
  472. package/es/utils/fields.js +8 -3
  473. package/es/utils/fields.js.flow +21 -3
  474. package/es/utils/fields.js.map +1 -1
  475. package/es/utils/sorter.js.flow +2 -2
  476. package/es/utils/sorter.js.map +1 -1
  477. package/i18n/bn-IN.js +45 -7
  478. package/i18n/bn-IN.properties +83 -7
  479. package/i18n/da-DK.js +45 -7
  480. package/i18n/da-DK.properties +83 -7
  481. package/i18n/de-DE.js +45 -7
  482. package/i18n/de-DE.properties +83 -7
  483. package/i18n/en-AU.js +45 -7
  484. package/i18n/en-AU.properties +83 -7
  485. package/i18n/en-CA.js +45 -7
  486. package/i18n/en-CA.properties +83 -7
  487. package/i18n/en-GB.js +45 -7
  488. package/i18n/en-GB.properties +83 -7
  489. package/i18n/en-US.js +45 -7
  490. package/i18n/en-US.properties +83 -7
  491. package/i18n/en-x-pseudo.js +891 -854
  492. package/i18n/en-x-pseudo.properties +941 -843
  493. package/i18n/es-419.js +45 -7
  494. package/i18n/es-419.properties +83 -7
  495. package/i18n/es-ES.js +45 -7
  496. package/i18n/es-ES.properties +83 -7
  497. package/i18n/fi-FI.js +45 -7
  498. package/i18n/fi-FI.properties +83 -7
  499. package/i18n/fr-CA.js +45 -7
  500. package/i18n/fr-CA.properties +83 -7
  501. package/i18n/fr-FR.js +45 -7
  502. package/i18n/fr-FR.properties +83 -7
  503. package/i18n/hi-IN.js +45 -7
  504. package/i18n/hi-IN.properties +83 -7
  505. package/i18n/it-IT.js +45 -7
  506. package/i18n/it-IT.properties +83 -7
  507. package/i18n/ja-JP.js +47 -9
  508. package/i18n/ja-JP.properties +85 -9
  509. package/i18n/ko-KR.js +45 -7
  510. package/i18n/ko-KR.properties +83 -7
  511. package/i18n/nb-NO.js +45 -7
  512. package/i18n/nb-NO.properties +83 -7
  513. package/i18n/nl-NL.js +45 -7
  514. package/i18n/nl-NL.properties +83 -7
  515. package/i18n/pl-PL.js +45 -7
  516. package/i18n/pl-PL.properties +83 -7
  517. package/i18n/pt-BR.js +45 -7
  518. package/i18n/pt-BR.properties +83 -7
  519. package/i18n/ru-RU.js +45 -7
  520. package/i18n/ru-RU.properties +83 -7
  521. package/i18n/sv-SE.js +45 -7
  522. package/i18n/sv-SE.properties +83 -7
  523. package/i18n/tr-TR.js +45 -7
  524. package/i18n/tr-TR.properties +83 -7
  525. package/i18n/zh-CN.js +45 -7
  526. package/i18n/zh-CN.properties +83 -7
  527. package/i18n/zh-TW.js +45 -7
  528. package/i18n/zh-TW.properties +83 -7
  529. package/package.json +7 -8
  530. package/src/__mocks__/react-intl.js +4 -0
  531. package/src/api/APIFactory.js +26 -0
  532. package/src/api/Annotations.js +150 -14
  533. package/src/api/Comments.js +5 -4
  534. package/src/api/Feed.js +677 -17
  535. package/src/api/FileCollaborators.js +30 -0
  536. package/src/api/ThreadedComments.js +54 -29
  537. package/src/api/__tests__/Annotations.test.js +217 -11
  538. package/src/api/__tests__/Feed.test.js +699 -86
  539. package/src/api/__tests__/FileCollaborators.test.js +41 -0
  540. package/src/api/__tests__/ThreadedComments.test.js +47 -10
  541. package/src/api/__tests__/utils.test.js +11 -0
  542. package/src/api/fixtures.js +401 -0
  543. package/src/api/messages.js +5 -0
  544. package/src/api/utils.js +30 -0
  545. package/src/common/types/annotations.js +18 -10
  546. package/src/common/types/feed.js +40 -4
  547. package/src/components/accessible-svg/AccessibleSVG.stories.tsx +18 -0
  548. package/src/components/badge/Badge.stories.md +1 -7
  549. package/src/components/badge/Badge.stories.tsx +1 -10
  550. package/src/components/badge/BetaBadge.stories.tsx +9 -0
  551. package/src/components/badge/TrialBadge.stories.tsx +9 -0
  552. package/src/components/badge/UpgradeBadge.stories.tsx +9 -0
  553. package/src/components/breadcrumb/Breadcrumb.js +68 -42
  554. package/src/components/breadcrumb/EllipsisCrumb.js +10 -6
  555. package/src/components/count-badge/CountBadge.stories.tsx +1 -1
  556. package/src/components/draggable-list/DraggableList.stories.tsx +72 -5
  557. package/src/components/dropdown-menu/DropdownMenu.js +11 -0
  558. package/src/components/dropdown-menu/DropdownMenu.scss +3 -3
  559. package/src/components/dropdown-menu/__tests__/DropdownMenu.test.js +38 -0
  560. package/src/components/grid-view/__tests__/__snapshots__/GridViewSlider.test.js.snap +1 -0
  561. package/src/components/infinite-scroll/InfiniteScroll.md +1 -1
  562. package/src/components/infinite-scroll/InfiniteScroll.tsx +5 -2
  563. package/src/components/infinite-scroll/__tests__/InfiniteScroll.test.tsx +115 -127
  564. package/src/components/modal/Modal.scss +5 -1
  565. package/src/components/search-form/SearchForm.js +1 -1
  566. package/src/components/search-form/__tests__/SearchForm.test.js +25 -6
  567. package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +4 -0
  568. package/src/components/table/__tests__/makeSelectable.test.js +654 -144
  569. package/src/components/table/makeSelectable.js +299 -98
  570. package/src/components/time/__tests__/ReadableTime.test.js +0 -1
  571. package/src/components/tooltip/Tooltip.tsx +5 -2
  572. package/src/components/tooltip/__tests__/Tooltip.test.tsx +10 -0
  573. package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +1 -1
  574. package/src/constants.js +11 -0
  575. package/src/elements/common/annotator-context/__tests__/useAnnotatorEvents.test.tsx +509 -0
  576. package/src/elements/common/annotator-context/__tests__/withAnnotations.test.tsx +275 -12
  577. package/src/elements/common/annotator-context/__tests__/withAnnotatorContext.test.tsx +18 -6
  578. package/src/elements/common/annotator-context/index.js.flow +4 -0
  579. package/src/elements/common/annotator-context/index.ts +1 -0
  580. package/src/elements/common/annotator-context/types.js.flow +77 -35
  581. package/src/elements/common/annotator-context/types.ts +28 -6
  582. package/src/elements/common/annotator-context/useAnnotatorEvents.js.flow +52 -0
  583. package/src/elements/common/annotator-context/useAnnotatorEvents.ts +190 -0
  584. package/src/elements/common/annotator-context/withAnnotations.js.flow +73 -36
  585. package/src/elements/common/annotator-context/withAnnotations.tsx +170 -7
  586. package/src/elements/common/annotator-context/withAnnotatorContext.js.flow +29 -9
  587. package/src/elements/common/annotator-context/withAnnotatorContext.tsx +28 -5
  588. package/src/elements/common/current-user/__tests__/withCurrentUser.test.tsx +108 -0
  589. package/src/elements/common/current-user/index.js.flow +8 -0
  590. package/src/elements/common/current-user/index.ts +2 -0
  591. package/src/elements/common/current-user/withCurrentUser.js.flow +40 -0
  592. package/src/elements/common/current-user/withCurrentUser.tsx +139 -0
  593. package/src/elements/common/flowTypes.js +22 -4
  594. package/src/elements/common/interactionTargets.js +2 -0
  595. package/src/elements/common/logger/Logger.js +1 -1
  596. package/src/elements/common/messages.js +5 -0
  597. package/src/elements/content-explorer/DeleteConfirmationDialog.js +3 -1
  598. package/src/elements/content-explorer/DeleteConfirmationDialog.scss +5 -0
  599. package/src/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +60 -0
  600. package/src/elements/content-explorer/stories/DeleteConfirmationDialog.stories.md +1 -0
  601. package/src/elements/content-sidebar/ActivitySidebar.js +381 -154
  602. package/src/elements/content-sidebar/ActivitySidebarFilter.js +59 -0
  603. package/src/elements/content-sidebar/ActivitySidebarFilter.scss +4 -0
  604. package/src/elements/content-sidebar/DetailsSidebar.js +32 -4
  605. package/src/elements/content-sidebar/Sidebar.js +6 -1
  606. package/src/elements/content-sidebar/SidebarContentInsights.scss +6 -0
  607. package/src/elements/content-sidebar/SidebarContentInsights.tsx +57 -0
  608. package/src/elements/content-sidebar/SidebarPanels.js +4 -0
  609. package/src/elements/content-sidebar/__tests__/ActivitySidebar.test.js +533 -243
  610. package/src/elements/content-sidebar/__tests__/ActivitySidebarFilter.test.js +54 -0
  611. package/src/elements/content-sidebar/__tests__/DetailsSidebar.test.js +45 -0
  612. package/src/elements/content-sidebar/__tests__/Sidebar.test.js +1 -1
  613. package/src/elements/content-sidebar/__tests__/SidebarContentInsights.test.tsx +56 -0
  614. package/src/elements/content-sidebar/__tests__/SidebarPanels.test.js +4 -3
  615. package/src/elements/content-sidebar/__tests__/__snapshots__/ActivitySidebar.test.js.snap +29 -15
  616. package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarFileProperties.test.js.snap +1 -0
  617. package/src/elements/content-sidebar/__tests__/withSidebarAnnotations.test.js +325 -32
  618. package/src/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +122 -24
  619. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js +59 -18
  620. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js +126 -0
  621. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.scss +17 -0
  622. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js +85 -0
  623. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.scss +16 -0
  624. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js +59 -0
  625. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.scss +22 -0
  626. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActiveState.test.js +19 -5
  627. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityFeed.test.js +22 -16
  628. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThread.test.js +80 -0
  629. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThreadReplies.test.js +24 -0
  630. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThreadRepliesForm.test.js +47 -0
  631. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/__snapshots__/ActiveState.test.js.snap +74 -43
  632. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/activityFeedUtils.test.js +8 -8
  633. package/src/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js +2 -2
  634. package/src/elements/content-sidebar/activity-feed/activity-feed/fixtures.ts +56 -0
  635. package/src/elements/content-sidebar/activity-feed/activity-feed/messages.js +20 -0
  636. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js +117 -0
  637. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.scss +7 -0
  638. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js +105 -0
  639. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.scss +5 -0
  640. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js +86 -0
  641. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.scss +3 -0
  642. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThread.test.js +28 -0
  643. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThreadContent.test.js +89 -0
  644. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThreadCreate.test.js +103 -0
  645. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/useAnnotationAPI.test.js +202 -0
  646. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/useRepliesAPI.test.js +99 -0
  647. package/src/elements/content-sidebar/activity-feed/annotation-thread/errors.js +26 -0
  648. package/src/elements/content-sidebar/activity-feed/annotation-thread/index.js +1 -0
  649. package/src/elements/content-sidebar/activity-feed/annotation-thread/messages.js +21 -0
  650. package/src/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js +203 -0
  651. package/src/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js +121 -0
  652. package/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +24 -4
  653. package/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js +36 -2
  654. package/src/elements/content-sidebar/activity-feed/annotations/__tests__/AnnotationActivity.test.js +14 -10
  655. package/src/elements/content-sidebar/activity-feed/annotations/__tests__/AnnotationActivityMenu.test.js +35 -1
  656. package/src/elements/content-sidebar/activity-feed/annotations/messages.js +10 -0
  657. package/src/elements/content-sidebar/activity-feed/comment/Comment.js +54 -10
  658. package/src/elements/content-sidebar/activity-feed/comment/__tests__/Comment.test.js +152 -7
  659. package/src/elements/content-sidebar/activity-feed/comment/__tests__/__snapshots__/Comment.test.js.snap +12 -7
  660. package/src/elements/content-sidebar/activity-feed/comment/messages.js +10 -0
  661. package/src/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +3 -1
  662. package/src/elements/content-sidebar/activity-feed/comment-form/__tests__/CommentForm.test.js +11 -0
  663. package/src/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js +34 -4
  664. package/src/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.scss +40 -3
  665. package/src/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js +42 -0
  666. package/src/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js +24 -0
  667. package/src/elements/content-sidebar/activity-feed/common/activity-message/__tests__/ActivityMessage.test.js +48 -1
  668. package/src/elements/content-sidebar/activity-feed/common/activity-message/messages.js +15 -0
  669. package/src/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js +30 -0
  670. package/src/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.scss +6 -0
  671. package/src/elements/content-sidebar/activity-feed/common/activity-status/__tests__/ActivityStatus.test.js +19 -0
  672. package/src/elements/content-sidebar/activity-feed/common/activity-status/index.js +2 -0
  673. package/src/elements/content-sidebar/activity-feed/common/activity-status/messages.js +13 -0
  674. package/src/elements/content-sidebar/activity-feed/common/activity-timestamp/ActivityTimestamp.scss +1 -1
  675. package/src/elements/content-sidebar/activity-feed/task-new/__tests__/Task.test.js +4 -3
  676. package/src/elements/content-sidebar/activity-feed/task-new/__tests__/__snapshots__/Task.test.js.snap +1 -2
  677. package/src/elements/content-sidebar/fixtures.js +185 -0
  678. package/src/elements/content-sidebar/flowTypes.js +9 -25
  679. package/src/elements/content-sidebar/messages.js +10 -0
  680. package/src/elements/content-sidebar/withErrorHandling.js +1 -1
  681. package/src/elements/content-sidebar/withSidebarAnnotations.js +162 -11
  682. package/src/elements/content-uploader/OverallUploadsProgressBar.js +11 -12
  683. package/src/features/classification/Classification.scss +1 -1
  684. package/src/features/classification/security-controls/SecurityControlsItem.scss +1 -0
  685. package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +18 -16
  686. package/src/features/classification/security-controls/__tests__/utils.test.js +13 -5
  687. package/src/features/classification/security-controls/messages.js +10 -0
  688. package/src/features/classification/security-controls/utils.js +8 -12
  689. package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebarLogo.test.js.snap +2 -0
  690. package/src/features/content-explorer/content-explorer/ContentExplorer.js +4 -0
  691. package/src/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
  692. package/src/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +14 -11
  693. package/src/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js +4 -1
  694. package/src/features/content-explorer/content-explorer/__tests__/ContentExplorerBreadcrumbs.test.js +2 -2
  695. package/src/features/content-explorer/content-explorer-modal/ContentExplorerModal.js +5 -1
  696. package/src/features/content-explorer/content-explorer-modal/__tests__/__snapshots__/ContentExplorerModal.test.js.snap +1 -0
  697. package/src/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +5 -1
  698. package/src/features/content-explorer/prop-types.js +8 -0
  699. package/src/features/content-insights/CompactCount.tsx +23 -0
  700. package/src/features/content-insights/ContentAnalyticsErrorState.scss +17 -0
  701. package/src/features/content-insights/ContentAnalyticsErrorState.tsx +44 -0
  702. package/src/features/content-insights/ContentInsightsSummary.scss +12 -0
  703. package/src/features/content-insights/ContentInsightsSummary.tsx +45 -0
  704. package/src/features/content-insights/ContentInsightsSummaryGhostState.scss +9 -0
  705. package/src/features/content-insights/ContentInsightsSummaryGhostState.tsx +18 -0
  706. package/src/features/content-insights/GraphCardGhostState.scss +18 -0
  707. package/src/features/content-insights/GraphCardGhostState.tsx +18 -0
  708. package/src/features/content-insights/GraphCardPreviewsSummary.scss +10 -0
  709. package/src/features/content-insights/GraphCardPreviewsSummary.tsx +40 -0
  710. package/src/features/content-insights/GraphGhostState.scss +11 -0
  711. package/src/features/content-insights/GraphGhostState.tsx +17 -0
  712. package/src/features/content-insights/HeaderWithCount.scss +10 -0
  713. package/src/features/content-insights/HeaderWithCount.tsx +24 -0
  714. package/src/features/content-insights/MetricSummary.scss +14 -0
  715. package/src/features/content-insights/MetricSummary.tsx +65 -0
  716. package/src/features/content-insights/OpenContentInsightsButton.tsx +20 -0
  717. package/src/features/content-insights/TrendPill.scss +33 -0
  718. package/src/features/content-insights/TrendPill.tsx +70 -0
  719. package/src/features/content-insights/__tests__/CompactCount.test.tsx +57 -0
  720. package/src/features/content-insights/__tests__/ContentAnalyticsErrorState.test.tsx +33 -0
  721. package/src/features/content-insights/__tests__/ContentInsightsSummary.test.tsx +81 -0
  722. package/src/features/content-insights/__tests__/GraphCardPreviewsSummary.test.tsx +35 -0
  723. package/src/features/content-insights/__tests__/HeaderWithCount.test.tsx +26 -0
  724. package/src/features/content-insights/__tests__/MetricSummary.test.tsx +88 -0
  725. package/src/features/content-insights/_mixins.scss +7 -0
  726. package/src/features/content-insights/_variables.scss +4 -0
  727. package/src/features/content-insights/charts/bar/Bar.scss +27 -0
  728. package/src/features/content-insights/charts/bar/Bar.tsx +48 -0
  729. package/src/features/content-insights/charts/bar/BarChart.scss +56 -0
  730. package/src/features/content-insights/charts/bar/BarChart.tsx +78 -0
  731. package/src/features/content-insights/charts/bar/__tests__/Bar.test.tsx +74 -0
  732. package/src/features/content-insights/charts/bar/__tests__/BarChart.test.tsx +110 -0
  733. package/src/features/content-insights/charts/types.ts +3 -0
  734. package/src/features/content-insights/constants.ts +60 -0
  735. package/src/features/content-insights/messages.ts +90 -0
  736. package/src/features/content-insights/numberUtils.ts +9 -0
  737. package/src/features/content-insights/types.ts +33 -0
  738. package/src/features/item-details/ItemProperties.scss +1 -1
  739. package/src/features/shared-link-settings-modal/SharedLinkSettingsModal.js +4 -2
  740. package/src/features/shared-link-settings-modal/__tests__/SharedLinkSettingsModal.test.js +22 -3
  741. package/src/features/shared-link-settings-modal/__tests__/__snapshots__/SharedLinkSettingsModal.test.js.snap +2 -1
  742. package/src/features/unified-share-modal/ContactRestrictionNotice.js +36 -6
  743. package/src/features/unified-share-modal/EmailForm.js +31 -13
  744. package/src/features/unified-share-modal/UnifiedShareForm.js +25 -8
  745. package/src/features/unified-share-modal/UnifiedShareModal.js +1 -0
  746. package/src/features/unified-share-modal/__tests__/ContactRestrictionNotice.test.js +55 -6
  747. package/src/features/unified-share-modal/__tests__/EmailForm.test.js +131 -24
  748. package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +89 -35
  749. package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +16 -0
  750. package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareModal.test.js.snap +17 -0
  751. package/src/features/unified-share-modal/flowTypes.js +4 -2
  752. package/src/features/unified-share-modal/messages.js +14 -8
  753. package/src/features/unified-share-modal/utils/__tests__/hasRestrictedContacts.test.js +24 -10
  754. package/src/features/unified-share-modal/utils/__tests__/isRestrictedContact.test.js +33 -0
  755. package/src/features/unified-share-modal/utils/hasRestrictedContacts.js +10 -3
  756. package/src/features/unified-share-modal/utils/isRestrictedContact.js +21 -0
  757. package/src/features/virtualized-table/__tests__/__snapshots__/VirtualizedTable.test.js.snap +1 -0
  758. package/src/icon/fill/Alert16.js.flow +3 -2
  759. package/src/icon/fill/Alert16.tsx +3 -2
  760. package/src/icon/fill/AlertBadge16.js.flow +29 -0
  761. package/src/icon/fill/AlertBadge16.stories.tsx +13 -0
  762. package/src/icon/fill/AlertBadge16.tsx +27 -0
  763. package/src/icon/fill/Info16.js.flow +1 -1
  764. package/src/icon/fill/Info16.tsx +1 -1
  765. package/src/icon/fill/InfoBadge16.js.flow +28 -0
  766. package/src/icon/fill/InfoBadge16.stories.tsx +13 -0
  767. package/src/icon/fill/InfoBadge16.tsx +26 -0
  768. package/src/icon/fill/UserSettings16.js.flow +38 -0
  769. package/src/icon/fill/UserSettings16.stories.tsx +13 -0
  770. package/src/icon/fill/UserSettings16.tsx +36 -0
  771. package/src/icon/line/AlertBubble16.js.flow +29 -0
  772. package/src/icon/line/AlertBubble16.stories.tsx +13 -0
  773. package/src/icon/line/AlertBubble16.tsx +27 -0
  774. package/src/icon/line/AvatarXBadge16.js.flow +39 -0
  775. package/src/icon/line/AvatarXBadge16.stories.tsx +13 -0
  776. package/src/icon/line/AvatarXBadge16.tsx +37 -0
  777. package/src/icon/line/CoEdit16.js.flow +30 -0
  778. package/src/icon/line/CoEdit16.stories.tsx +13 -0
  779. package/src/icon/line/CoEdit16.tsx +28 -0
  780. package/src/icon/line/Collaborations16.js.flow +30 -0
  781. package/src/icon/line/Collaborations16.stories.tsx +13 -0
  782. package/src/icon/line/Collaborations16.tsx +28 -0
  783. package/src/icon/line/CommentBubble16.js.flow +34 -0
  784. package/src/icon/line/CommentBubble16.stories.tsx +13 -0
  785. package/src/icon/line/CommentBubble16.tsx +32 -0
  786. package/src/styles/constants/_layout.scss +1 -1
  787. package/src/styles/constants/_media-queries.scss +2 -0
  788. package/src/styles/variables.js +4 -2
  789. package/src/styles/variables.json +4 -2
  790. package/src/styles/variables.ts +3 -1
  791. package/src/utils/__tests__/fields.test.js +23 -4
  792. package/src/utils/__tests__/sorter.test.js +3 -3
  793. package/src/utils/error.js +5 -1
  794. package/src/utils/fields.js +21 -3
  795. package/src/utils/sorter.js +2 -2
  796. package/es/common/types/threadedComments.js +0 -2
  797. package/es/common/types/threadedComments.js.flow +0 -9
  798. package/src/common/types/threadedComments.js +0 -9
@@ -9,6 +9,7 @@ import debounce from 'lodash/debounce';
9
9
  import flow from 'lodash/flow';
10
10
  import getProp from 'lodash/get';
11
11
  import noop from 'lodash/noop';
12
+ import uniqueId from 'lodash/uniqueId';
12
13
  import { FormattedMessage } from 'react-intl';
13
14
  import { type ContextRouter } from 'react-router-dom';
14
15
  import ActivityFeed from './activity-feed';
@@ -18,16 +19,18 @@ import messages from '../common/messages';
18
19
  import SidebarContent from './SidebarContent';
19
20
  import { WithAnnotatorContextProps, withAnnotatorContext } from '../common/annotator-context';
20
21
  import { EVENT_DATA_READY, EVENT_JS_READY } from '../common/logger/constants';
21
- import { getBadUserError, getBadItemError } from '../../utils/error';
22
+ import { getBadUserError } from '../../utils/error';
22
23
  import { mark } from '../../utils/performance';
23
24
  import { withAPIContext } from '../common/api-context';
24
25
  import { withErrorBoundary } from '../common/error-boundary';
25
26
  import { withFeatureConsumer, isFeatureEnabled } from '../common/feature-checking';
26
27
  import { withLogger } from '../common/logger';
27
28
  import { withRouterAndRef } from '../common/routing';
29
+ import ActivitySidebarFilter from './ActivitySidebarFilter';
28
30
  import {
29
31
  DEFAULT_COLLAB_DEBOUNCE,
30
32
  ERROR_CODE_FETCH_ACTIVITY,
33
+ FEED_ITEM_TYPE_VERSION,
31
34
  ORIGIN_ACTIVITY_SIDEBAR,
32
35
  SIDEBAR_VIEW_ACTIVITY,
33
36
  TASK_COMPLETION_RULE_ALL,
@@ -39,12 +42,21 @@ import type {
39
42
  TaskUpdatePayload,
40
43
  TaskCollabStatus,
41
44
  } from '../../common/types/tasks';
42
- import type { Annotation, AnnotationPermission, FocusableFeedItemType, FeedItems } from '../../common/types/feed';
43
- import type { ElementsErrorCallback, ErrorContextProps, ElementsXhrError } from '../../common/types/api';
45
+ import type {
46
+ Annotation,
47
+ AnnotationPermission,
48
+ BoxCommentPermission,
49
+ Comment,
50
+ CommentFeedItemType,
51
+ FocusableFeedItemType,
52
+ FeedItems,
53
+ FeedItemStatus,
54
+ } from '../../common/types/feed';
55
+ import type { ErrorContextProps, ElementsXhrError } from '../../common/types/api';
44
56
  import type { WithLoggerProps } from '../../common/types/logging';
45
- import type { SelectorItems, User, UserMini, GroupMini, BoxItem, BoxItemPermission } from '../../common/types/core';
46
- import type { GetProfileUrlCallback } from '../common/flowTypes';
47
- import type { Translations, Collaborators, Errors } from './flowTypes';
57
+ import type { SelectorItems, User, UserMini, GroupMini, BoxItem } from '../../common/types/core';
58
+ import type { Errors, GetProfileUrlCallback } from '../common/flowTypes';
59
+ import type { Translations } from './flowTypes';
48
60
  import type { FeatureConfig } from '../common/feature-checking';
49
61
  import './ActivitySidebar.scss';
50
62
 
@@ -52,6 +64,7 @@ type ExternalProps = {
52
64
  activeFeedEntryId?: string,
53
65
  activeFeedEntryType?: FocusableFeedItemType,
54
66
  currentUser?: User,
67
+ currentUserError?: Errors,
55
68
  getUserProfileUrl?: GetProfileUrlCallback,
56
69
  hasReplies?: boolean,
57
70
  hasTasks?: boolean,
@@ -73,6 +86,7 @@ type PropsWithoutContext = {
73
86
  hasSidebarInitialized?: boolean,
74
87
  isDisabled: boolean,
75
88
  onAnnotationSelect: Function,
89
+ onFilterChange: (status?: FeedItemStatus) => void,
76
90
  onVersionChange: Function,
77
91
  onVersionHistoryClick?: Function,
78
92
  translations?: Translations,
@@ -89,9 +103,8 @@ type State = {
89
103
  activityFeedError?: Errors,
90
104
  approverSelectorContacts: SelectorItems<UserMini | GroupMini>,
91
105
  contactsLoaded?: boolean,
92
- currentUser?: User,
93
- currentUserError?: Errors,
94
106
  feedItems?: FeedItems,
107
+ feedItemsStatusFilter?: FeedItemStatus,
95
108
  mentionSelectorContacts?: SelectorItems<UserMini>,
96
109
  };
97
110
 
@@ -111,7 +124,12 @@ mark(MARK_NAME_JS_READY);
111
124
  class ActivitySidebar extends React.PureComponent<Props, State> {
112
125
  static defaultProps = {
113
126
  annotatorState: {},
114
- emitAnnotatorActiveChangeEvent: noop,
127
+ emitActiveAnnotationChangeEvent: noop,
128
+ emitAnnotationRemoveEvent: noop,
129
+ emitAnnotationReplyCreateEvent: noop,
130
+ emitAnnotationReplyDeleteEvent: noop,
131
+ emitAnnotationReplyUpdateEvent: noop,
132
+ emitAnnotationUpdateEvent: noop,
115
133
  getAnnotationsMatchPath: noop,
116
134
  getAnnotationsPath: noop,
117
135
  hasReplies: false,
@@ -122,6 +140,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
122
140
  onCommentCreate: noop,
123
141
  onCommentDelete: noop,
124
142
  onCommentUpdate: noop,
143
+ onFilterChange: noop,
125
144
  onTaskAssignmentUpdate: noop,
126
145
  onTaskCreate: noop,
127
146
  onTaskDelete: noop,
@@ -144,15 +163,13 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
144
163
  }
145
164
 
146
165
  componentDidMount() {
147
- const { currentUser } = this.props;
148
-
149
166
  this.fetchFeedItems(true);
150
- this.fetchCurrentUser(currentUser);
151
167
  }
152
168
 
153
169
  handleAnnotationDelete = ({ id, permissions }: { id: string, permissions: AnnotationPermission }) => {
154
- const { api, file } = this.props;
170
+ const { api, emitAnnotationRemoveEvent, file } = this.props;
155
171
 
172
+ emitAnnotationRemoveEvent(id, true);
156
173
  api.getFeedAPI(false).deleteAnnotation(
157
174
  file,
158
175
  id,
@@ -165,51 +182,58 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
165
182
  };
166
183
 
167
184
  handleAnnotationEdit = (id: string, text: string, permissions: AnnotationPermission) => {
168
- const { api, file } = this.props;
185
+ const { api, emitAnnotationUpdateEvent, file } = this.props;
169
186
 
187
+ emitAnnotationUpdateEvent(
188
+ {
189
+ id,
190
+ description: {
191
+ message: text,
192
+ },
193
+ },
194
+ true,
195
+ );
170
196
  api.getFeedAPI(false).updateAnnotation(
171
197
  file,
172
198
  id,
173
199
  text,
200
+ undefined,
174
201
  permissions,
175
- this.feedSuccessCallback,
202
+ (annotation: Annotation) => {
203
+ emitAnnotationUpdateEvent(annotation);
204
+ this.feedSuccessCallback();
205
+ },
176
206
  this.feedErrorCallback,
177
207
  );
178
208
 
179
209
  this.fetchFeedItems();
180
210
  };
181
211
 
182
- deleteAnnotationSuccess(id: string) {
183
- const { emitRemoveEvent } = this.props;
212
+ handleAnnotationStatusChange = (id: string, status: FeedItemStatus, permissions: AnnotationPermission) => {
213
+ const { api, emitAnnotationUpdateEvent, file } = this.props;
184
214
 
185
- this.feedSuccessCallback();
186
- emitRemoveEvent(id);
187
- }
215
+ emitAnnotationUpdateEvent({ id, status }, true);
216
+ api.getFeedAPI(false).updateAnnotation(
217
+ file,
218
+ id,
219
+ undefined,
220
+ status,
221
+ permissions,
222
+ (annotation: Annotation) => {
223
+ emitAnnotationUpdateEvent(annotation);
224
+ this.feedSuccessCallback();
225
+ },
226
+ this.feedErrorCallback,
227
+ );
188
228
 
189
- /**
190
- * Fetches a Users info
191
- *
192
- * @private
193
- * @param {User} [user] - Box User. If missing, gets user that the current token was generated for.
194
- * @param {boolean} shouldDestroy
195
- * @return {void}
196
- */
197
- fetchCurrentUser(user?: User, shouldDestroy: boolean = false): void {
198
- const { api, file } = this.props;
229
+ this.fetchFeedItems();
230
+ };
199
231
 
200
- if (!file) {
201
- throw getBadItemError();
202
- }
232
+ deleteAnnotationSuccess(id: string) {
233
+ const { emitAnnotationRemoveEvent } = this.props;
203
234
 
204
- if (typeof user === 'undefined') {
205
- api.getUsersAPI(shouldDestroy).getUser(
206
- file.id,
207
- this.fetchCurrentUserSuccessCallback,
208
- this.fetchCurrentUserErrorCallback,
209
- );
210
- } else {
211
- this.setState({ currentUser: user, currentUserError: undefined });
212
- }
235
+ this.feedSuccessCallback();
236
+ emitAnnotationRemoveEvent(id);
213
237
  }
214
238
 
215
239
  /**
@@ -240,8 +264,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
240
264
  onSuccess: ?Function,
241
265
  onError: ?Function,
242
266
  ): void => {
243
- const { currentUser } = this.state;
244
- const { file, api } = this.props;
267
+ const { api, currentUser, file } = this.props;
245
268
 
246
269
  if (!currentUser) {
247
270
  throw getBadUserError();
@@ -292,7 +315,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
292
315
  };
293
316
 
294
317
  updateTask = (task: TaskUpdatePayload, onSuccess: ?Function, onError: ?Function): void => {
295
- const { file, api, onTaskUpdate } = this.props;
318
+ const { api, file, onTaskUpdate } = this.props;
296
319
  const errorCallback = (e, code) => {
297
320
  if (onError) {
298
321
  onError(e, code);
@@ -316,8 +339,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
316
339
  };
317
340
 
318
341
  updateTaskAssignment = (taskId: string, taskAssignmentId: string, status: TaskCollabStatus): void => {
319
- const { file, api, onTaskAssignmentUpdate } = this.props;
320
- const { currentUser = {} } = this.state;
342
+ const { api, currentUser = {}, file, onTaskAssignmentUpdate } = this.props;
321
343
 
322
344
  const successCallback = () => {
323
345
  this.feedSuccessCallback();
@@ -343,17 +365,48 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
343
365
  * @param {Object} args - A subset of the comment
344
366
  * @return void
345
367
  */
346
- deleteComment = ({ id, permissions }: { id: string, permissions: BoxItemPermission }): void => {
347
- const { file, api, onCommentDelete } = this.props;
368
+ deleteComment = ({ id, permissions }: { id: string, permissions: BoxCommentPermission }): void => {
369
+ const { api, file, hasReplies, onCommentDelete } = this.props;
370
+
371
+ const successCallback = (comment: Comment) => {
372
+ this.feedSuccessCallback();
373
+ onCommentDelete(comment);
374
+ };
375
+
376
+ if (hasReplies) {
377
+ api.getFeedAPI(false).deleteThreadedComment(file, id, permissions, successCallback, this.feedErrorCallback);
378
+ } else {
379
+ api.getFeedAPI(false).deleteComment(file, id, permissions, successCallback, this.feedErrorCallback);
380
+ }
381
+
382
+ // need to load the pending item
383
+ this.fetchFeedItems();
384
+ };
385
+
386
+ /**
387
+ * Deletes a reply via the API.
388
+ *
389
+ * @param {Object} args - A subset of the comment
390
+ * @return void
391
+ */
392
+ deleteReply = ({
393
+ id,
394
+ parentId,
395
+ permissions,
396
+ }: {
397
+ id: string,
398
+ parentId: string,
399
+ permissions: BoxCommentPermission,
400
+ }): void => {
401
+ const { api, emitAnnotationReplyDeleteEvent, file } = this.props;
348
402
 
349
- api.getFeedAPI(false).deleteComment(
403
+ emitAnnotationReplyDeleteEvent(id, parentId, true);
404
+ api.getFeedAPI(false).deleteReply(
350
405
  file,
351
406
  id,
407
+ parentId,
352
408
  permissions,
353
- (comment: Comment) => {
354
- this.feedSuccessCallback();
355
- onCommentDelete(comment);
356
- },
409
+ this.deleteReplySuccessCallback.bind(this, id, parentId),
357
410
  this.feedErrorCallback,
358
411
  );
359
412
 
@@ -361,15 +414,31 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
361
414
  this.fetchFeedItems();
362
415
  };
363
416
 
417
+ /**
418
+ * Handles a successful deletion of a reply
419
+ *
420
+ * @private
421
+ * @param {string} id - The id of the reply
422
+ * @param {string} parentId - The id of the reply's parent item
423
+ * @return {void}
424
+ */
425
+ deleteReplySuccessCallback = (id: string, parentId: string) => {
426
+ const { emitAnnotationReplyDeleteEvent } = this.props;
427
+
428
+ this.feedSuccessCallback();
429
+ emitAnnotationReplyDeleteEvent(id, parentId);
430
+ };
431
+
364
432
  updateComment = (
365
433
  id: string,
366
- text: string,
434
+ text?: string,
435
+ status?: FeedItemStatus,
367
436
  hasMention: boolean,
368
- permissions: BoxItemPermission,
437
+ permissions: BoxCommentPermission,
369
438
  onSuccess: ?Function,
370
439
  onError: ?Function,
371
440
  ): void => {
372
- const { file, api, onCommentUpdate } = this.props;
441
+ const { api, file, hasReplies, onCommentUpdate } = this.props;
373
442
 
374
443
  const errorCallback = (e, code) => {
375
444
  if (onError) {
@@ -386,12 +455,92 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
386
455
  onCommentUpdate();
387
456
  };
388
457
 
389
- api.getFeedAPI(false).updateComment(file, id, text, hasMention, permissions, successCallback, errorCallback);
458
+ if (hasReplies) {
459
+ api.getFeedAPI(false).updateThreadedComment(
460
+ file,
461
+ id,
462
+ text,
463
+ status,
464
+ permissions,
465
+ successCallback,
466
+ errorCallback,
467
+ );
468
+ } else {
469
+ api.getFeedAPI(false).updateComment(
470
+ file,
471
+ id,
472
+ text || '',
473
+ hasMention,
474
+ permissions,
475
+ successCallback,
476
+ errorCallback,
477
+ );
478
+ }
390
479
 
391
480
  // need to load the pending item
392
481
  this.fetchFeedItems();
393
482
  };
394
483
 
484
+ /**
485
+ * Updates a reply
486
+ *
487
+ * @param {string} id - id of the reply
488
+ * @param {string} parentId - id of the parent item
489
+ * @param {string} text - the reply updated text
490
+ * @param {BoxCommentPermission} permissions - permissions associated with the reply
491
+ * @param {Function} onSuccess - the success callback
492
+ * @param {Function} onError - the error callback
493
+ * @return {void}
494
+ */
495
+ updateReply = (
496
+ id: string,
497
+ parentId: string,
498
+ text: string,
499
+ permissions: BoxCommentPermission,
500
+ onSuccess: ?Function,
501
+ onError: ?Function,
502
+ ): void => {
503
+ const { api, emitAnnotationReplyUpdateEvent, file } = this.props;
504
+
505
+ emitAnnotationReplyUpdateEvent({ id, tagged_message: text }, parentId, true);
506
+ api.getFeedAPI(false).updateReply(
507
+ file,
508
+ id,
509
+ parentId,
510
+ text,
511
+ permissions,
512
+ this.updateReplySuccessCallback.bind(this, parentId, onSuccess),
513
+ (error, code) => {
514
+ if (onError) {
515
+ onError(error, code);
516
+ }
517
+ this.feedErrorCallback(error, code);
518
+ },
519
+ );
520
+
521
+ // need to load the pending item
522
+ this.fetchFeedItems();
523
+ };
524
+
525
+ /**
526
+ * Handles a successful update of a reply
527
+ *
528
+ * @private
529
+ * @param {string} parentId - The id of the reply's parent item
530
+ * @param {Function} onSuccess - the success callback
531
+ * @param {Comment} reply - The reply comment object
532
+ * @return {void}
533
+ */
534
+ updateReplySuccessCallback = (parentId: string, onSuccess: ?Function, reply: Comment) => {
535
+ const { emitAnnotationReplyUpdateEvent } = this.props;
536
+
537
+ this.feedSuccessCallback();
538
+ emitAnnotationReplyUpdateEvent(reply, parentId);
539
+ if (onSuccess) {
540
+ onSuccess();
541
+ }
542
+ };
543
+
395
544
  /**
396
545
  * Posts a new comment to the API
397
546
  *
@@ -400,22 +549,64 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
400
549
  * @return {void}
401
550
  */
402
551
  createComment = (text: string, hasMention: boolean): void => {
403
- const { file, api, onCommentCreate } = this.props;
404
- const { currentUser } = this.state;
552
+ const { api, currentUser, file, hasReplies, onCommentCreate } = this.props;
553
+
554
+ if (!currentUser) {
555
+ throw getBadUserError();
556
+ }
557
+
558
+ const successCallback = (comment: Comment) => {
559
+ onCommentCreate(comment);
560
+ this.feedSuccessCallback();
561
+ };
562
+
563
+ if (hasReplies) {
564
+ api.getFeedAPI(false).createThreadedComment(
565
+ file,
566
+ currentUser,
567
+ text,
568
+ successCallback,
569
+ this.feedErrorCallback,
570
+ );
571
+ } else {
572
+ api.getFeedAPI(false).createComment(
573
+ file,
574
+ currentUser,
575
+ text,
576
+ hasMention,
577
+ successCallback,
578
+ this.feedErrorCallback,
579
+ );
580
+ }
581
+
582
+ // need to load the pending item
583
+ this.fetchFeedItems();
584
+ };
585
+
586
+ /**
587
+ * Posts a new reply to the API
588
+ *
589
+ * @param {string} parentId - The id of the parent item
590
+ * @param {CommentFeedItemType} parentType - The type of the parent item
591
+ * @param {string} text - The text of reply
592
+ * @return {void}
593
+ */
594
+ createReply = (parentId: string, parentType: CommentFeedItemType, text: string): void => {
595
+ const { api, currentUser, emitAnnotationReplyCreateEvent, file } = this.props;
405
596
 
406
597
  if (!currentUser) {
407
598
  throw getBadUserError();
408
599
  }
409
600
 
410
- api.getFeedAPI(false).createComment(
601
+ const eventRequestId = uniqueId('comment_');
602
+ emitAnnotationReplyCreateEvent({ tagged_message: text }, eventRequestId, parentId, true);
603
+ api.getFeedAPI(false).createReply(
411
604
  file,
412
605
  currentUser,
606
+ parentId,
607
+ parentType,
413
608
  text,
414
- hasMention,
415
- (comment: Comment) => {
416
- onCommentCreate(comment);
417
- this.feedSuccessCallback();
418
- },
609
+ this.createReplySuccessCallback.bind(this, eventRequestId, parentId),
419
610
  this.feedErrorCallback,
420
611
  );
421
612
 
@@ -423,6 +614,22 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
423
614
  this.fetchFeedItems();
424
615
  };
425
616
 
617
+ /**
618
+ * Handles a successful creation of a reply
619
+ *
620
+ * @private
621
+ * @param {string} eventRequestId - The id of the parent item
622
+ * @param {string} parentId - The id of the reply's parent item
623
+ * @param {Comment} reply - The reply comment object
624
+ * @return {void}
625
+ */
626
+ createReplySuccessCallback = (eventRequestId: string, parentId: string, reply: Comment) => {
627
+ const { emitAnnotationReplyCreateEvent } = this.props;
628
+
629
+ this.feedSuccessCallback();
630
+ emitAnnotationReplyCreateEvent(reply, eventRequestId, parentId);
631
+ };
632
+
426
633
  /**
427
634
  * Deletes an app activity item via the API.
428
635
  *
@@ -430,7 +637,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
430
637
  * @return void
431
638
  */
432
639
  deleteAppActivity = ({ id }: { id: string }): void => {
433
- const { file, api } = this.props;
640
+ const { api, file } = this.props;
434
641
 
435
642
  api.getFeedAPI(false).deleteAppActivity(file, id, this.feedSuccessCallback, this.feedErrorCallback);
436
643
 
@@ -445,7 +652,14 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
445
652
  * @param {boolean} shouldDestroy true if the api factory should be destroyed
446
653
  */
447
654
  fetchFeedItems(shouldRefreshCache: boolean = false, shouldDestroy: boolean = false) {
448
- const { file, api, features, hasTasks: shouldShowTasks, hasVersions: shouldShowVersions } = this.props;
655
+ const {
656
+ api,
657
+ file,
658
+ features,
659
+ hasReplies: shouldShowReplies,
660
+ hasTasks: shouldShowTasks,
661
+ hasVersions: shouldShowVersions,
662
+ } = this.props;
449
663
  const shouldShowAppActivity = isFeatureEnabled(features, 'activityFeed.appActivity.enabled');
450
664
  const shouldShowAnnotations = isFeatureEnabled(features, 'activityFeed.annotations.enabled');
451
665
 
@@ -455,7 +669,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
455
669
  this.fetchFeedItemsSuccessCallback,
456
670
  this.fetchFeedItemsErrorCallback,
457
671
  this.errorCallback,
458
- { shouldShowAnnotations, shouldShowAppActivity, shouldShowTasks, shouldShowVersions },
672
+ { shouldShowAnnotations, shouldShowAppActivity, shouldShowReplies, shouldShowTasks, shouldShowVersions },
459
673
  );
460
674
  }
461
675
 
@@ -529,17 +743,6 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
529
743
  this.props.onError(error, code, contextInfo);
530
744
  };
531
745
 
532
- /**
533
- * User fetch success callback
534
- *
535
- * @private
536
- * @param {Object} currentUser - User info object
537
- * @return {void}
538
- */
539
- fetchCurrentUserSuccessCallback = (currentUser: User): void => {
540
- this.setState({ currentUser, currentUserError: undefined });
541
- };
542
-
543
746
  /**
544
747
  * File approver contacts fetch success callback
545
748
  *
@@ -570,19 +773,24 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
570
773
  };
571
774
 
572
775
  /**
573
- * File @mention contacts fetch success callback
776
+ * Fetches file @mention's with groups
574
777
  *
575
778
  * @private
576
779
  * @param {string} searchStr - Search string to filter file collaborators by
577
780
  * @return {void}
578
781
  */
579
- getApproverWithQuery = debounce(
580
- (searchStr: string) =>
581
- this.getCollaborators(this.getApproverContactsSuccessCallback, this.errorCallback, searchStr, {
782
+ getApprover = debounce((searchStr: string) => {
783
+ const { file, api } = this.props;
784
+ api.getFileCollaboratorsAPI(false).getCollaboratorsWithQuery(
785
+ file.id,
786
+ this.getApproverContactsSuccessCallback,
787
+ this.errorCallback,
788
+ searchStr,
789
+ {
582
790
  includeGroups: true,
583
- }),
584
- DEFAULT_COLLAB_DEBOUNCE,
585
- );
791
+ },
792
+ );
793
+ }, DEFAULT_COLLAB_DEBOUNCE);
586
794
 
587
795
  /**
588
796
  * Fetches file @mention's
@@ -591,62 +799,30 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
591
799
  * @param {string} searchStr - Search string to filter file collaborators by
592
800
  * @return {void}
593
801
  */
594
- getMentionWithQuery = debounce(
595
- (searchStr: string) =>
596
- this.getCollaborators(this.getMentionContactsSuccessCallback, this.errorCallback, searchStr),
597
- DEFAULT_COLLAB_DEBOUNCE,
598
- );
599
-
600
- /**
601
- * Fetches file collaborators
602
- *
603
- * @param {Function} successCallback - the success callback
604
- * @param {Function} errorCallback - the error callback
605
- * @param {string} searchStr - the search string
606
- * @param {Object} [options]
607
- * @param {boolean} [options.includeGroups] - return groups as well as users
608
- * @return {void}
609
- */
610
- getCollaborators(
611
- successCallback: Collaborators => void,
612
- errorCallback: ElementsErrorCallback,
613
- searchStr: string,
614
- { includeGroups = false }: { includeGroups: boolean } = {},
615
- ): void {
616
- // Do not fetch without filter
802
+ getMention = debounce((searchStr: string) => {
617
803
  const { file, api } = this.props;
618
- if (!searchStr || searchStr.trim() === '') {
619
- return;
620
- }
621
-
622
- api.getFileCollaboratorsAPI(true).getFileCollaborators(file.id, successCallback, errorCallback, {
623
- filter_term: searchStr,
624
- include_groups: includeGroups,
625
- include_uploader_collabs: false,
626
- });
627
- }
804
+ api.getFileCollaboratorsAPI(false).getCollaboratorsWithQuery(
805
+ file.id,
806
+ this.getMentionContactsSuccessCallback,
807
+ this.errorCallback,
808
+ searchStr,
809
+ );
810
+ }, DEFAULT_COLLAB_DEBOUNCE);
628
811
 
629
812
  /**
630
- * Handles a failed file user info fetch
813
+ * Fetches replies (comments) of a comment or annotation
631
814
  *
632
- * @private
633
- * @param {ElementsXhrError} e - API error
815
+ * @param {string} id - id of the feed item
816
+ * @param {CommentFeedItemType} type - type of the feed item
634
817
  * @return {void}
635
818
  */
636
- fetchCurrentUserErrorCallback = (e: ElementsXhrError, code: string) => {
637
- this.setState({
638
- currentUser: undefined,
639
- currentUserError: {
640
- maskError: {
641
- errorHeader: messages.currentUserErrorHeaderMessage,
642
- errorSubHeader: messages.defaultErrorMaskSubHeaderMessage,
643
- },
644
- },
645
- });
819
+ getReplies = (id: string, type: CommentFeedItemType): void => {
820
+ const { api, file } = this.props;
646
821
 
647
- this.errorCallback(e, code, {
648
- error: e,
649
- });
822
+ api.getFeedAPI(false).fetchReplies(file, id, type, this.feedSuccessCallback, this.feedErrorCallback);
823
+
824
+ // need to load the pending item
825
+ this.fetchFeedItems();
650
826
  };
651
827
 
652
828
  /**
@@ -665,7 +841,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
665
841
  handleAnnotationSelect = (annotation: Annotation): void => {
666
842
  const { file_version, id: nextActiveAnnotationId } = annotation;
667
843
  const {
668
- emitAnnotatorActiveChangeEvent,
844
+ emitActiveAnnotationChangeEvent,
669
845
  file,
670
846
  getAnnotationsMatchPath,
671
847
  getAnnotationsPath,
@@ -678,7 +854,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
678
854
  const match = getAnnotationsMatchPath(location);
679
855
  const selectedFileVersionId = getProp(match, 'params.fileVersionId', currentFileVersionId);
680
856
 
681
- emitAnnotatorActiveChangeEvent(nextActiveAnnotationId);
857
+ emitActiveAnnotationChangeEvent(nextActiveAnnotationId);
682
858
 
683
859
  if (annotationFileVersionId && annotationFileVersionId !== selectedFileVersionId) {
684
860
  history.push(getAnnotationsPath(annotationFileVersionId, nextActiveAnnotationId));
@@ -687,6 +863,23 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
687
863
  onAnnotationSelect(annotation);
688
864
  };
689
865
 
866
+ handleItemsFiltered = (status?: FeedItemStatus) => {
867
+ const { onFilterChange } = this.props;
868
+
869
+ this.setState({ feedItemsStatusFilter: status });
870
+ onFilterChange(status);
871
+ };
872
+
873
+ getFilteredFeedItems = (): FeedItems | typeof undefined => {
874
+ const { feedItems, feedItemsStatusFilter } = this.state;
875
+ if (!feedItems || !feedItemsStatusFilter) {
876
+ return feedItems;
877
+ }
878
+ return feedItems.filter(item => {
879
+ return item.status === feedItemsStatusFilter || item.type === FEED_ITEM_TYPE_VERSION;
880
+ });
881
+ };
882
+
690
883
  onTaskModalClose = () => {
691
884
  this.setState({
692
885
  approverSelectorContacts: [],
@@ -700,7 +893,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
700
893
  renderAddTaskButton = () => {
701
894
  const { isDisabled, hasTasks } = this.props;
702
895
  const { approverSelectorContacts } = this.state;
703
- const { getApproverWithQuery, getAvatarUrl, createTask, onTaskModalClose } = this;
896
+ const { getApprover, getAvatarUrl, createTask, onTaskModalClose } = this;
704
897
 
705
898
  if (!hasTasks) {
706
899
  return null;
@@ -715,7 +908,7 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
715
908
  approverSelectorContacts,
716
909
  completionRule: TASK_COMPLETION_RULE_ALL,
717
910
  createTask,
718
- getApproverWithQuery,
911
+ getApproverWithQuery: getApprover,
719
912
  getAvatarUrl,
720
913
  id: '',
721
914
  message: '',
@@ -724,10 +917,46 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
724
917
  );
725
918
  };
726
919
 
920
+ renderActivitySidebarFilter = () => {
921
+ const { features } = this.props;
922
+ const { feedItemsStatusFilter } = this.state;
923
+ const shouldShowActivityFeedFilter = isFeatureEnabled(features, 'activityFeed.filter.enabled');
924
+
925
+ if (!shouldShowActivityFeedFilter) {
926
+ return null;
927
+ }
928
+ return (
929
+ <ActivitySidebarFilter
930
+ feedItemStatus={feedItemsStatusFilter}
931
+ onFeedItemStatusClick={selectedStatus => {
932
+ this.handleItemsFiltered(selectedStatus);
933
+ }}
934
+ />
935
+ );
936
+ };
937
+
938
+ renderActions = () => (
939
+ <>
940
+ {this.renderActivitySidebarFilter()}
941
+ {this.renderAddTaskButton()}
942
+ </>
943
+ );
944
+
945
+ renderTitle = () => {
946
+ const { features } = this.props;
947
+ if (isFeatureEnabled(features, 'activityFeed.filter.enabled')) {
948
+ return undefined;
949
+ }
950
+ return <FormattedMessage {...messages.sidebarActivityTitle} />;
951
+ };
952
+
727
953
  render() {
728
954
  const {
955
+ currentUser,
956
+ currentUserError,
729
957
  elementId,
730
958
  file,
959
+ hasReplies,
731
960
  isDisabled = false,
732
961
  onVersionHistoryClick,
733
962
  getUserProfileUrl,
@@ -735,23 +964,15 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
735
964
  activeFeedEntryType,
736
965
  onTaskView,
737
966
  } = this.props;
738
- const {
739
- currentUser,
740
- approverSelectorContacts,
741
- mentionSelectorContacts,
742
- contactsLoaded,
743
- feedItems,
744
- activityFeedError,
745
- currentUserError,
746
- } = this.state;
967
+ const { activityFeedError, approverSelectorContacts, contactsLoaded, mentionSelectorContacts } = this.state;
747
968
 
748
969
  return (
749
970
  <SidebarContent
750
- actions={this.renderAddTaskButton()}
971
+ actions={this.renderActions()}
751
972
  className="bcs-activity"
752
973
  elementId={elementId}
753
974
  sidebarView={SIDEBAR_VIEW_ACTIVITY}
754
- title={<FormattedMessage {...messages.sidebarActivityTitle} />}
975
+ title={this.renderTitle()}
755
976
  >
756
977
  <ActivityFeed
757
978
  activeFeedEntryId={activeFeedEntryId}
@@ -760,22 +981,28 @@ class ActivitySidebar extends React.PureComponent<Props, State> {
760
981
  approverSelectorContacts={approverSelectorContacts}
761
982
  currentUser={currentUser}
762
983
  currentUserError={currentUserError}
763
- feedItems={feedItems}
984
+ feedItems={this.getFilteredFeedItems()}
764
985
  file={file}
765
- getApproverWithQuery={this.getApproverWithQuery}
986
+ getApproverWithQuery={this.getApprover}
766
987
  getAvatarUrl={this.getAvatarUrl}
767
- getMentionWithQuery={this.getMentionWithQuery}
988
+ getMentionWithQuery={this.getMention}
768
989
  getUserProfileUrl={getUserProfileUrl}
990
+ hasReplies={hasReplies}
769
991
  isDisabled={isDisabled}
770
992
  mentionSelectorContacts={mentionSelectorContacts}
771
993
  contactsLoaded={contactsLoaded}
772
994
  onAnnotationDelete={this.handleAnnotationDelete}
773
995
  onAnnotationEdit={this.handleAnnotationEdit}
774
996
  onAnnotationSelect={this.handleAnnotationSelect}
997
+ onAnnotationStatusChange={this.handleAnnotationStatusChange}
775
998
  onAppActivityDelete={this.deleteAppActivity}
776
999
  onCommentCreate={this.createComment}
777
1000
  onCommentDelete={this.deleteComment}
778
1001
  onCommentUpdate={this.updateComment}
1002
+ onReplyCreate={this.createReply}
1003
+ onReplyDelete={this.deleteReply}
1004
+ onReplyUpdate={this.updateReply}
1005
+ onShowReplies={this.getReplies}
779
1006
  onTaskAssignmentUpdate={this.updateTaskAssignment}
780
1007
  onTaskCreate={this.createTask}
781
1008
  onTaskDelete={this.deleteTask}