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
@@ -2,12 +2,14 @@ import PropTypes from 'prop-types';
2
2
  import React, { Component } from 'react';
3
3
  import classNames from 'classnames';
4
4
 
5
- import { ContentExplorerModePropType, FoldersPathPropType, ItemsPropType } from '../prop-types';
5
+ import { BreadcrumbPropType, ContentExplorerModePropType, FoldersPathPropType, ItemsPropType } from '../prop-types';
6
6
  import ContentExplorerModal from '../content-explorer-modal';
7
7
  import NewFolderModal from '../new-folder-modal';
8
8
 
9
9
  class ContentExplorerModalContainer extends Component {
10
10
  static propTypes = {
11
+ /** Breadcrumb component options */
12
+ breadcrumbProps: BreadcrumbPropType,
11
13
  /** Adds class name. */
12
14
  className: PropTypes.string,
13
15
  /** Any extra items in the header to the right of the search input (and new folder button) */
@@ -161,6 +163,7 @@ class ContentExplorerModalContainer extends Component {
161
163
 
162
164
  render() {
163
165
  const {
166
+ breadcrumbProps,
164
167
  className,
165
168
  headerActionsAccessory,
166
169
  modalTitle,
@@ -199,6 +202,7 @@ class ContentExplorerModalContainer extends Component {
199
202
  return (
200
203
  <div className={classNames('content-explorer-modal-container', className)}>
201
204
  <ContentExplorerModal
205
+ breadcrumbProps={breadcrumbProps}
202
206
  className={isNewFolderModalOpen ? 'hidden' : ''}
203
207
  headerActionsAccessory={headerActionsAccessory}
204
208
  title={modalTitle}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js"],"names":["PropTypes","React","Component","classNames","ContentExplorerModePropType","FoldersPathPropType","ItemsPropType","ContentExplorerModal","NewFolderModal","ContentExplorerModalContainer","props","enteredFolder","newFoldersPath","onEnterFolder","setState","foldersPath","onNewFolderModalShown","isNewFolderModalOpen","onNewFolderModalClosed","state","initialFoldersPath","prevInitialFoldersPath","className","headerActionsAccessory","modalTitle","modalDescription","onRequestClose","onCreateFolderSubmit","onCreateFolderInput","isCreatingFolder","createFolderError","contentExplorerMode","onChooseItems","onMoveItem","onCopyItem","isCreateNewFolderAllowed","onSearchSubmit","onExitSearch","onSelectedClick","onSelectItem","items","numItemsPerPage","numTotalItems","onLoadMoreItems","itemIconRenderer","itemNameLinkRenderer","itemButtonRenderer","showCreateNewFolderButton","searchInputProps","chooseButtonText","initialSelectedItems","isSelectAllAllowed","currentFolder","length","handleEnterFolder","handleCreateNewFolderButtonClick","name","handleNewFolderModalClose","string","node","func","isRequired","bool","object","number"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SAASC,2BAAT,EAAsCC,mBAAtC,EAA2DC,aAA3D,QAAgF,eAAhF;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,cAAP,MAA2B,qBAA3B;;IAEMC,6B;;;;;AAkHF,yCAAYC,KAAZ,EAAmB;AAA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A8GoB;AAClBkB,EAAAA,oBAAoB,EAAE,gCAAM,CAAE;AADZ,C;;AAkI1B,eAAelB,6BAAf","sourcesContent":["import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport classNames from 'classnames';\n\nimport { ContentExplorerModePropType, FoldersPathPropType, ItemsPropType } from '../prop-types';\nimport ContentExplorerModal from '../content-explorer-modal';\nimport NewFolderModal from '../new-folder-modal';\n\nclass ContentExplorerModalContainer extends Component {\n static propTypes = {\n /** Adds class name. */\n className: PropTypes.string,\n /** Any extra items in the header to the right of the search input (and new folder button) */\n headerActionsAccessory: PropTypes.node,\n /** Title shown in the ContentExplorerModal. */\n modalTitle: PropTypes.string,\n /** Description text shown in the ContentExplorerModal. */\n modalDescription: PropTypes.string,\n /** Called when the ContentExplorerModal is closed. */\n onRequestClose: PropTypes.func.isRequired,\n /**\n * Called when the folder creation is submitted.\n *\n * @param {string} folderName\n */\n onCreateFolderSubmit: PropTypes.func,\n /**\n * Called with the latest folder name input.\n *\n * @param {string} folderName\n */\n onCreateFolderInput: PropTypes.func,\n /** Called when the NewFolderModal is shown. */\n onNewFolderModalShown: PropTypes.func,\n /** Called when the NewFolderModal is closed. */\n onNewFolderModalClosed: PropTypes.func,\n /** Called when selected button is clicked */\n onSelectedClick: PropTypes.func,\n /**\n * Called when an item is selected\n *\n * @param {Object} selectedItem\n * @param {number} selectedItemIndex\n */\n onSelectItem: PropTypes.func,\n /** Folder is in the process of being created. */\n isCreatingFolder: PropTypes.bool,\n /** Whether the user can see select all checkbox */\n isSelectAllAllowed: PropTypes.bool,\n /** Message that will be shown when there was an error creating the folder. */\n createFolderError: PropTypes.string,\n /** Configures the content explorer based on the user's intended action (ex. select file or move/copy) */\n contentExplorerMode: ContentExplorerModePropType.isRequired,\n /** Initial path of folders. The last folder in the array is the current folder. */\n initialFoldersPath: FoldersPathPropType.isRequired,\n /** Initial items that will show up as selected */\n initialSelectedItems: PropTypes.object,\n /**\n * Called when the current folder changes\n *\n * @param {Object} enteredFolder\n * @param {Array} newFoldersPath\n */\n onEnterFolder: PropTypes.func.isRequired,\n /**\n * Called when items are chosen.\n *\n * @param {Object[]} chosenItems In non-multi select mode, the chosenItems will be a 1 element array contain the one chosen item\n */\n onChooseItems: PropTypes.func,\n /**\n * Called when a destination folder has been selected for moving an item to\n *\n * @param {Object} destFolder destination folder\n */\n onMoveItem: PropTypes.func,\n /**\n * Called when a destination folder has been selected for copying an item to\n *\n * @param {Object} destFolder destination folder\n */\n onCopyItem: PropTypes.func,\n /** Whether the user has permission to create a new folder */\n isCreateNewFolderAllowed: PropTypes.bool,\n /**\n * Called when a search query is submitted.\n *\n * @param {string} searchQuery\n */\n onSearchSubmit: PropTypes.func.isRequired,\n /**\n * Called when search mode is exited. An updated items list should now be passed in to display the user's file tree.\n *\n * @param {Object} folderBeforeSearch the previous folder object before entering search mode\n */\n onExitSearch: PropTypes.func.isRequired,\n /** List of items to display */\n items: ItemsPropType.isRequired,\n /** Number of items to load per page as the user scrolls */\n numItemsPerPage: PropTypes.number,\n /** Total number of items across all pages */\n numTotalItems: PropTypes.number,\n /** Called to load more items */\n onLoadMoreItems: PropTypes.func,\n /** Used to render item icons in the list. Overrides the default icons. */\n itemIconRenderer: PropTypes.func,\n /** Used to render item name links in the list. Overrides the default links. */\n itemNameLinkRenderer: PropTypes.func,\n /** Used to render item buttons in the list. Overrides the default buttons. */\n itemButtonRenderer: PropTypes.func,\n /** Whether the new folder button should be shown */\n showCreateNewFolderButton: PropTypes.bool,\n /** Props for the search input */\n searchInputProps: PropTypes.object,\n /** Custom text for the choose button */\n chooseButtonText: PropTypes.node,\n };\n\n static defaultProps = {\n onCreateFolderSubmit: () => {},\n };\n\n constructor(props) {\n super(props);\n this.state = {\n foldersPath: props.initialFoldersPath,\n isNewFolderModalOpen: false,\n };\n }\n\n componentDidUpdate({ initialFoldersPath: prevInitialFoldersPath }) {\n const { initialFoldersPath } = this.props;\n\n if (prevInitialFoldersPath !== initialFoldersPath) {\n // Close the new folder modal when the folders path has changed\n this.setState({\n foldersPath: initialFoldersPath,\n isNewFolderModalOpen: false,\n });\n }\n }\n\n handleEnterFolder = (enteredFolder, newFoldersPath) => {\n const { onEnterFolder } = this.props;\n\n this.setState({ foldersPath: newFoldersPath });\n onEnterFolder(enteredFolder, newFoldersPath);\n };\n\n handleCreateNewFolderButtonClick = () => {\n const { onNewFolderModalShown } = this.props;\n\n this.setState({ isNewFolderModalOpen: true }, () => onNewFolderModalShown && onNewFolderModalShown());\n };\n\n handleNewFolderModalClose = () => {\n const { onNewFolderModalClosed } = this.props;\n\n this.setState({ isNewFolderModalOpen: false }, () => onNewFolderModalClosed && onNewFolderModalClosed());\n };\n\n render() {\n const {\n className,\n headerActionsAccessory,\n modalTitle,\n modalDescription,\n onRequestClose,\n onCreateFolderSubmit,\n onCreateFolderInput,\n isCreatingFolder,\n createFolderError,\n contentExplorerMode,\n initialFoldersPath,\n onChooseItems,\n onMoveItem,\n onCopyItem,\n isCreateNewFolderAllowed,\n onSearchSubmit,\n onExitSearch,\n onSelectedClick,\n onSelectItem,\n items,\n numItemsPerPage,\n numTotalItems,\n onLoadMoreItems,\n itemIconRenderer,\n itemNameLinkRenderer,\n itemButtonRenderer,\n showCreateNewFolderButton,\n searchInputProps,\n chooseButtonText,\n initialSelectedItems,\n isSelectAllAllowed,\n } = this.props;\n const { foldersPath, isNewFolderModalOpen } = this.state;\n const currentFolder = foldersPath[foldersPath.length - 1];\n\n return (\n <div className={classNames('content-explorer-modal-container', className)}>\n <ContentExplorerModal\n className={isNewFolderModalOpen ? 'hidden' : ''}\n headerActionsAccessory={headerActionsAccessory}\n title={modalTitle}\n description={modalDescription}\n isOpen\n onRequestClose={onRequestClose}\n contentExplorerMode={contentExplorerMode}\n initialFoldersPath={initialFoldersPath}\n onEnterFolder={this.handleEnterFolder}\n onChooseItems={onChooseItems}\n onMoveItem={onMoveItem}\n onCopyItem={onCopyItem}\n onSelectedClick={onSelectedClick}\n onSelectItem={onSelectItem}\n onCreateNewFolderButtonClick={this.handleCreateNewFolderButtonClick}\n isCreateNewFolderAllowed={isCreateNewFolderAllowed}\n isSelectAllAllowed={isSelectAllAllowed}\n onSearchSubmit={onSearchSubmit}\n onExitSearch={onExitSearch}\n items={items}\n numItemsPerPage={numItemsPerPage}\n numTotalItems={numTotalItems}\n onLoadMoreItems={onLoadMoreItems}\n itemIconRenderer={itemIconRenderer}\n itemNameLinkRenderer={itemNameLinkRenderer}\n itemButtonRenderer={itemButtonRenderer}\n showCreateNewFolderButton={showCreateNewFolderButton}\n searchInputProps={searchInputProps}\n chooseButtonText={chooseButtonText}\n initialSelectedItems={initialSelectedItems}\n />\n {isNewFolderModalOpen && (\n <NewFolderModal\n isOpen\n parentFolderName={currentFolder.name}\n onRequestClose={this.handleNewFolderModalClose}\n onCreateFolderSubmit={onCreateFolderSubmit}\n onCreateFolderInput={onCreateFolderInput}\n isCreatingFolder={isCreatingFolder}\n createFolderError={createFolderError}\n />\n )}\n </div>\n );\n }\n}\n\nexport default ContentExplorerModalContainer;\n"],"file":"ContentExplorerModalContainer.js"}
1
+ {"version":3,"sources":["../../../../src/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js"],"names":["PropTypes","React","Component","classNames","BreadcrumbPropType","ContentExplorerModePropType","FoldersPathPropType","ItemsPropType","ContentExplorerModal","NewFolderModal","ContentExplorerModalContainer","props","enteredFolder","newFoldersPath","onEnterFolder","setState","foldersPath","onNewFolderModalShown","isNewFolderModalOpen","onNewFolderModalClosed","state","initialFoldersPath","prevInitialFoldersPath","breadcrumbProps","className","headerActionsAccessory","modalTitle","modalDescription","onRequestClose","onCreateFolderSubmit","onCreateFolderInput","isCreatingFolder","createFolderError","contentExplorerMode","onChooseItems","onMoveItem","onCopyItem","isCreateNewFolderAllowed","onSearchSubmit","onExitSearch","onSelectedClick","onSelectItem","items","numItemsPerPage","numTotalItems","onLoadMoreItems","itemIconRenderer","itemNameLinkRenderer","itemButtonRenderer","showCreateNewFolderButton","searchInputProps","chooseButtonText","initialSelectedItems","isSelectAllAllowed","currentFolder","length","handleEnterFolder","handleCreateNewFolderButtonClick","name","handleNewFolderModalClose","string","node","func","isRequired","bool","object","number"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SAASC,kBAAT,EAA6BC,2BAA7B,EAA0DC,mBAA1D,EAA+EC,aAA/E,QAAoG,eAApG;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,cAAP,MAA2B,qBAA3B;;IAEMC,6B;;;;;AAoHF,yCAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACf,uGAAMA,KAAN;;AADe,wEAoBC,UAACC,aAAD,EAAgBC,cAAhB,EAAmC;AAAA,UAC3CC,aAD2C,GACzB,MAAKH,KADoB,CAC3CG,aAD2C;;AAGnD,YAAKC,QAAL,CAAc;AAAEC,QAAAA,WAAW,EAAEH;AAAf,OAAd;;AACAC,MAAAA,aAAa,CAACF,aAAD,EAAgBC,cAAhB,CAAb;AACH,KAzBkB;;AAAA,uFA2BgB,YAAM;AAAA,UAC7BI,qBAD6B,GACH,MAAKN,KADF,CAC7BM,qBAD6B;;AAGrC,YAAKF,QAAL,CAAc;AAAEG,QAAAA,oBAAoB,EAAE;AAAxB,OAAd,EAA8C;AAAA,eAAMD,qBAAqB,IAAIA,qBAAqB,EAApD;AAAA,OAA9C;AACH,KA/BkB;;AAAA,gFAiCS,YAAM;AAAA,UACtBE,sBADsB,GACK,MAAKR,KADV,CACtBQ,sBADsB;;AAG9B,YAAKJ,QAAL,CAAc;AAAEG,QAAAA,oBAAoB,EAAE;AAAxB,OAAd,EAA+C;AAAA,eAAMC,sBAAsB,IAAIA,sBAAsB,EAAtD;AAAA,OAA/C;AACH,KArCkB;;AAEf,UAAKC,KAAL,GAAa;AACTJ,MAAAA,WAAW,EAAEL,KAAK,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,UA1FN;;AA2Ff;AACApB,EAAAA,eAAe,EAAE3C,SAAS,CAACkE,MA5FZ;;AA6Ff;AACAtB,EAAAA,aAAa,EAAE5C,SAAS,CAACkE,MA9FV;;AA+Ff;AACArB,EAAAA,eAAe,EAAE7C,SAAS,CAAC8D,IAhGZ;;AAiGf;AACAhB,EAAAA,gBAAgB,EAAE9C,SAAS,CAAC8D,IAlGb;;AAmGf;AACAf,EAAAA,oBAAoB,EAAE/C,SAAS,CAAC8D,IApGjB;;AAqGf;AACAd,EAAAA,kBAAkB,EAAEhD,SAAS,CAAC8D,IAtGf;;AAuGf;AACAb,EAAAA,yBAAyB,EAAEjD,SAAS,CAACgE,IAxGtB;;AAyGf;AACAd,EAAAA,gBAAgB,EAAElD,SAAS,CAACiE,MA1Gb;;AA2Gf;AACAd,EAAAA,gBAAgB,EAAEnD,SAAS,CAAC6D;AA5Gb,C;;gBADjBnD,6B,kBAgHoB;AAClBmB,EAAAA,oBAAoB,EAAE,gCAAM,CAAE;AADZ,C;;AAoI1B,eAAenB,6BAAf","sourcesContent":["import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport classNames from 'classnames';\n\nimport { BreadcrumbPropType, ContentExplorerModePropType, FoldersPathPropType, ItemsPropType } from '../prop-types';\nimport ContentExplorerModal from '../content-explorer-modal';\nimport NewFolderModal from '../new-folder-modal';\n\nclass ContentExplorerModalContainer extends Component {\n static propTypes = {\n /** Breadcrumb component options */\n breadcrumbProps: BreadcrumbPropType,\n /** Adds class name. */\n className: PropTypes.string,\n /** Any extra items in the header to the right of the search input (and new folder button) */\n headerActionsAccessory: PropTypes.node,\n /** Title shown in the ContentExplorerModal. */\n modalTitle: PropTypes.string,\n /** Description text shown in the ContentExplorerModal. */\n modalDescription: PropTypes.string,\n /** Called when the ContentExplorerModal is closed. */\n onRequestClose: PropTypes.func.isRequired,\n /**\n * Called when the folder creation is submitted.\n *\n * @param {string} folderName\n */\n onCreateFolderSubmit: PropTypes.func,\n /**\n * Called with the latest folder name input.\n *\n * @param {string} folderName\n */\n onCreateFolderInput: PropTypes.func,\n /** Called when the NewFolderModal is shown. */\n onNewFolderModalShown: PropTypes.func,\n /** Called when the NewFolderModal is closed. */\n onNewFolderModalClosed: PropTypes.func,\n /** Called when selected button is clicked */\n onSelectedClick: PropTypes.func,\n /**\n * Called when an item is selected\n *\n * @param {Object} selectedItem\n * @param {number} selectedItemIndex\n */\n onSelectItem: PropTypes.func,\n /** Folder is in the process of being created. */\n isCreatingFolder: PropTypes.bool,\n /** Whether the user can see select all checkbox */\n isSelectAllAllowed: PropTypes.bool,\n /** Message that will be shown when there was an error creating the folder. */\n createFolderError: PropTypes.string,\n /** Configures the content explorer based on the user's intended action (ex. select file or move/copy) */\n contentExplorerMode: ContentExplorerModePropType.isRequired,\n /** Initial path of folders. The last folder in the array is the current folder. */\n initialFoldersPath: FoldersPathPropType.isRequired,\n /** Initial items that will show up as selected */\n initialSelectedItems: PropTypes.object,\n /**\n * Called when the current folder changes\n *\n * @param {Object} enteredFolder\n * @param {Array} newFoldersPath\n */\n onEnterFolder: PropTypes.func.isRequired,\n /**\n * Called when items are chosen.\n *\n * @param {Object[]} chosenItems In non-multi select mode, the chosenItems will be a 1 element array contain the one chosen item\n */\n onChooseItems: PropTypes.func,\n /**\n * Called when a destination folder has been selected for moving an item to\n *\n * @param {Object} destFolder destination folder\n */\n onMoveItem: PropTypes.func,\n /**\n * Called when a destination folder has been selected for copying an item to\n *\n * @param {Object} destFolder destination folder\n */\n onCopyItem: PropTypes.func,\n /** Whether the user has permission to create a new folder */\n isCreateNewFolderAllowed: PropTypes.bool,\n /**\n * Called when a search query is submitted.\n *\n * @param {string} searchQuery\n */\n onSearchSubmit: PropTypes.func.isRequired,\n /**\n * Called when search mode is exited. An updated items list should now be passed in to display the user's file tree.\n *\n * @param {Object} folderBeforeSearch the previous folder object before entering search mode\n */\n onExitSearch: PropTypes.func.isRequired,\n /** List of items to display */\n items: ItemsPropType.isRequired,\n /** Number of items to load per page as the user scrolls */\n numItemsPerPage: PropTypes.number,\n /** Total number of items across all pages */\n numTotalItems: PropTypes.number,\n /** Called to load more items */\n onLoadMoreItems: PropTypes.func,\n /** Used to render item icons in the list. Overrides the default icons. */\n itemIconRenderer: PropTypes.func,\n /** Used to render item name links in the list. Overrides the default links. */\n itemNameLinkRenderer: PropTypes.func,\n /** Used to render item buttons in the list. Overrides the default buttons. */\n itemButtonRenderer: PropTypes.func,\n /** Whether the new folder button should be shown */\n showCreateNewFolderButton: PropTypes.bool,\n /** Props for the search input */\n searchInputProps: PropTypes.object,\n /** Custom text for the choose button */\n chooseButtonText: PropTypes.node,\n };\n\n static defaultProps = {\n onCreateFolderSubmit: () => {},\n };\n\n constructor(props) {\n super(props);\n this.state = {\n foldersPath: props.initialFoldersPath,\n isNewFolderModalOpen: false,\n };\n }\n\n componentDidUpdate({ initialFoldersPath: prevInitialFoldersPath }) {\n const { initialFoldersPath } = this.props;\n\n if (prevInitialFoldersPath !== initialFoldersPath) {\n // Close the new folder modal when the folders path has changed\n this.setState({\n foldersPath: initialFoldersPath,\n isNewFolderModalOpen: false,\n });\n }\n }\n\n handleEnterFolder = (enteredFolder, newFoldersPath) => {\n const { onEnterFolder } = this.props;\n\n this.setState({ foldersPath: newFoldersPath });\n onEnterFolder(enteredFolder, newFoldersPath);\n };\n\n handleCreateNewFolderButtonClick = () => {\n const { onNewFolderModalShown } = this.props;\n\n this.setState({ isNewFolderModalOpen: true }, () => onNewFolderModalShown && onNewFolderModalShown());\n };\n\n handleNewFolderModalClose = () => {\n const { onNewFolderModalClosed } = this.props;\n\n this.setState({ isNewFolderModalOpen: false }, () => onNewFolderModalClosed && onNewFolderModalClosed());\n };\n\n render() {\n const {\n breadcrumbProps,\n className,\n headerActionsAccessory,\n modalTitle,\n modalDescription,\n onRequestClose,\n onCreateFolderSubmit,\n onCreateFolderInput,\n isCreatingFolder,\n createFolderError,\n contentExplorerMode,\n initialFoldersPath,\n onChooseItems,\n onMoveItem,\n onCopyItem,\n isCreateNewFolderAllowed,\n onSearchSubmit,\n onExitSearch,\n onSelectedClick,\n onSelectItem,\n items,\n numItemsPerPage,\n numTotalItems,\n onLoadMoreItems,\n itemIconRenderer,\n itemNameLinkRenderer,\n itemButtonRenderer,\n showCreateNewFolderButton,\n searchInputProps,\n chooseButtonText,\n initialSelectedItems,\n isSelectAllAllowed,\n } = this.props;\n const { foldersPath, isNewFolderModalOpen } = this.state;\n const currentFolder = foldersPath[foldersPath.length - 1];\n\n return (\n <div className={classNames('content-explorer-modal-container', className)}>\n <ContentExplorerModal\n breadcrumbProps={breadcrumbProps}\n className={isNewFolderModalOpen ? 'hidden' : ''}\n headerActionsAccessory={headerActionsAccessory}\n title={modalTitle}\n description={modalDescription}\n isOpen\n onRequestClose={onRequestClose}\n contentExplorerMode={contentExplorerMode}\n initialFoldersPath={initialFoldersPath}\n onEnterFolder={this.handleEnterFolder}\n onChooseItems={onChooseItems}\n onMoveItem={onMoveItem}\n onCopyItem={onCopyItem}\n onSelectedClick={onSelectedClick}\n onSelectItem={onSelectItem}\n onCreateNewFolderButtonClick={this.handleCreateNewFolderButtonClick}\n isCreateNewFolderAllowed={isCreateNewFolderAllowed}\n isSelectAllAllowed={isSelectAllAllowed}\n onSearchSubmit={onSearchSubmit}\n onExitSearch={onExitSearch}\n items={items}\n numItemsPerPage={numItemsPerPage}\n numTotalItems={numTotalItems}\n onLoadMoreItems={onLoadMoreItems}\n itemIconRenderer={itemIconRenderer}\n itemNameLinkRenderer={itemNameLinkRenderer}\n itemButtonRenderer={itemButtonRenderer}\n showCreateNewFolderButton={showCreateNewFolderButton}\n searchInputProps={searchInputProps}\n chooseButtonText={chooseButtonText}\n initialSelectedItems={initialSelectedItems}\n />\n {isNewFolderModalOpen && (\n <NewFolderModal\n isOpen\n parentFolderName={currentFolder.name}\n onRequestClose={this.handleNewFolderModalClose}\n onCreateFolderSubmit={onCreateFolderSubmit}\n onCreateFolderInput={onCreateFolderInput}\n isCreatingFolder={isCreatingFolder}\n createFolderError={createFolderError}\n />\n )}\n </div>\n );\n }\n}\n\nexport default ContentExplorerModalContainer;\n"],"file":"ContentExplorerModalContainer.js"}
@@ -26,5 +26,11 @@ var PlaceholderPropType = PropTypes.shape({
26
26
  var ItemOrPlaceholderPropType = PropTypes.oneOfType([ItemPropType, PlaceholderPropType]);
27
27
  var ItemsPropType = PropTypes.arrayOf(ItemOrPlaceholderPropType);
28
28
  var ItemsMapPropType = PropTypes.objectOf(ItemPropType);
29
- export { ContentExplorerModePropType, FolderPropType, FoldersPathPropType, ItemTypePropType, ItemPropType, ItemsPropType, ItemsMapPropType };
29
+ var BreadcrumbPropType = PropTypes.shape({
30
+ className: PropTypes.string,
31
+ itemsBeforeOverflow: PropTypes.number,
32
+ overflowIcon: PropTypes.node,
33
+ threshold: PropTypes.number
34
+ });
35
+ export { BreadcrumbPropType, ContentExplorerModePropType, FolderPropType, FoldersPathPropType, ItemTypePropType, ItemPropType, ItemsPropType, ItemsMapPropType };
30
36
  //# sourceMappingURL=prop-types.js.map
@@ -43,7 +43,15 @@ const ItemsPropType = PropTypes.arrayOf(ItemOrPlaceholderPropType);
43
43
 
44
44
  const ItemsMapPropType = PropTypes.objectOf(ItemPropType);
45
45
 
46
+ const BreadcrumbPropType = PropTypes.shape({
47
+ className: PropTypes.string,
48
+ itemsBeforeOverflow: PropTypes.number,
49
+ overflowIcon: PropTypes.node,
50
+ threshold: PropTypes.number,
51
+ });
52
+
46
53
  export {
54
+ BreadcrumbPropType,
47
55
  ContentExplorerModePropType,
48
56
  FolderPropType,
49
57
  FoldersPathPropType,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/features/content-explorer/prop-types.js"],"names":["PropTypes","ContentExplorerModes","ItemTypes","ContentExplorerModePropType","oneOf","COPY","MOVE_COPY","MULTI_SELECT","SELECT_FILE","SELECT_FOLDER","FolderPropType","shape","id","string","isRequired","name","FoldersPathPropType","arrayOf","ItemTypePropType","FILE","FOLDER","BOOKMARK","ItemPropType","type","label","extension","hasCollaborations","bool","isExternallyOwned","isDisabled","isActionDisabled","PlaceholderPropType","isLoading","loadingPlaceholderColumnWidths","ItemOrPlaceholderPropType","oneOfType","ItemsPropType","ItemsMapPropType","objectOf"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,oBAAP,MAAiC,SAAjC;AACA,OAAOC,SAAP,MAAsB,cAAtB;AAEA,IAAMC,2BAA2B,GAAGH,SAAS,CAACI,KAAV,CAAgB,CAChDH,oBAAoB,CAACI,IAD2B,EAEhDJ,oBAAoB,CAACK,SAF2B,EAGhDL,oBAAoB,CAACM,YAH2B,EAIhDN,oBAAoB,CAACO,WAJ2B,EAKhDP,oBAAoB,CAACQ,aAL2B,CAAhB,CAApC;AAQA,IAAMC,cAAc,GAAGV,SAAS,CAACW,KAAV,CAAgB;AACnCC,EAAAA,EAAE,EAAEZ,SAAS,CAACa,MAAV,CAAiBC,UADc;AAEnCC,EAAAA,IAAI,EAAEf,SAAS,CAACa,MAAV,CAAiBC;AAFY,CAAhB,CAAvB;AAKA,IAAME,mBAAmB,GAAGhB,SAAS,CAACiB,OAAV,CAAkBP,cAAlB,CAA5B;AAEA,IAAMQ,gBAAgB,GAAGlB,SAAS,CAACI,KAAV,CAAgB,CAACF,SAAS,CAACiB,IAAX,EAAiBjB,SAAS,CAACkB,MAA3B,EAAmClB,SAAS,CAACmB,QAA7C,CAAhB,CAAzB;AAEA,IAAMC,YAAY,GAAGtB,SAAS,CAACW,KAAV,CAAgB;AACjCC,EAAAA,EAAE,EAAEZ,SAAS,CAACa,MAAV,CAAiBC,UADY;AAEjCS,EAAAA,IAAI,EAAEL,gBAF2B;AAGjCH,EAAAA,IAAI,EAAEf,SAAS,CAACa,MAAV,CAAiBC,UAHU;AAIjCU,EAAAA,KAAK,EAAExB,SAAS,CAACa,MAJgB;AAKjCY,EAAAA,SAAS,EAAEzB,SAAS,CAACa,MALY;AAMjCa,EAAAA,iBAAiB,EAAE1B,SAAS,CAAC2B,IANI;AAOjCC,EAAAA,iBAAiB,EAAE5B,SAAS,CAAC2B,IAPI;AAQjCE,EAAAA,UAAU,EAAE7B,SAAS,CAAC2B,IARW;AASjCG,EAAAA,gBAAgB,EAAE9B,SAAS,CAAC2B;AATK,CAAhB,CAArB;AAYA,IAAMI,mBAAmB,GAAG/B,SAAS,CAACW,KAAV,CAAgB;AACxCqB,EAAAA,SAAS,EAAEhC,SAAS,CAAC2B,IAAV,CAAeb,UADc;AAExCmB,EAAAA,8BAA8B,EAAEjC,SAAS,CAACiB,OAAV,CAAkBjB,SAAS,CAACa,MAA5B;AAFQ,CAAhB,CAA5B;AAKA,IAAMqB,yBAAyB,GAAGlC,SAAS,CAACmC,SAAV,CAAoB,CAACb,YAAD,EAAeS,mBAAf,CAApB,CAAlC;AAEA,IAAMK,aAAa,GAAGpC,SAAS,CAACiB,OAAV,CAAkBiB,yBAAlB,CAAtB;AAEA,IAAMG,gBAAgB,GAAGrC,SAAS,CAACsC,QAAV,CAAmBhB,YAAnB,CAAzB;AAEA,SACInB,2BADJ,EAEIO,cAFJ,EAGIM,mBAHJ,EAIIE,gBAJJ,EAKII,YALJ,EAMIc,aANJ,EAOIC,gBAPJ","sourcesContent":["import PropTypes from 'prop-types';\n\nimport ContentExplorerModes from './modes';\nimport ItemTypes from './item-types';\n\nconst ContentExplorerModePropType = PropTypes.oneOf([\n ContentExplorerModes.COPY,\n ContentExplorerModes.MOVE_COPY,\n ContentExplorerModes.MULTI_SELECT,\n ContentExplorerModes.SELECT_FILE,\n ContentExplorerModes.SELECT_FOLDER,\n]);\n\nconst FolderPropType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n});\n\nconst FoldersPathPropType = PropTypes.arrayOf(FolderPropType);\n\nconst ItemTypePropType = PropTypes.oneOf([ItemTypes.FILE, ItemTypes.FOLDER, ItemTypes.BOOKMARK]);\n\nconst ItemPropType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: ItemTypePropType,\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n extension: PropTypes.string,\n hasCollaborations: PropTypes.bool,\n isExternallyOwned: PropTypes.bool,\n isDisabled: PropTypes.bool,\n isActionDisabled: PropTypes.bool,\n});\n\nconst PlaceholderPropType = PropTypes.shape({\n isLoading: PropTypes.bool.isRequired,\n loadingPlaceholderColumnWidths: PropTypes.arrayOf(PropTypes.string),\n});\n\nconst ItemOrPlaceholderPropType = PropTypes.oneOfType([ItemPropType, PlaceholderPropType]);\n\nconst ItemsPropType = PropTypes.arrayOf(ItemOrPlaceholderPropType);\n\nconst ItemsMapPropType = PropTypes.objectOf(ItemPropType);\n\nexport {\n ContentExplorerModePropType,\n FolderPropType,\n FoldersPathPropType,\n ItemTypePropType,\n ItemPropType,\n ItemsPropType,\n ItemsMapPropType,\n};\n"],"file":"prop-types.js"}
1
+ {"version":3,"sources":["../../../src/features/content-explorer/prop-types.js"],"names":["PropTypes","ContentExplorerModes","ItemTypes","ContentExplorerModePropType","oneOf","COPY","MOVE_COPY","MULTI_SELECT","SELECT_FILE","SELECT_FOLDER","FolderPropType","shape","id","string","isRequired","name","FoldersPathPropType","arrayOf","ItemTypePropType","FILE","FOLDER","BOOKMARK","ItemPropType","type","label","extension","hasCollaborations","bool","isExternallyOwned","isDisabled","isActionDisabled","PlaceholderPropType","isLoading","loadingPlaceholderColumnWidths","ItemOrPlaceholderPropType","oneOfType","ItemsPropType","ItemsMapPropType","objectOf","BreadcrumbPropType","className","itemsBeforeOverflow","number","overflowIcon","node","threshold"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,oBAAP,MAAiC,SAAjC;AACA,OAAOC,SAAP,MAAsB,cAAtB;AAEA,IAAMC,2BAA2B,GAAGH,SAAS,CAACI,KAAV,CAAgB,CAChDH,oBAAoB,CAACI,IAD2B,EAEhDJ,oBAAoB,CAACK,SAF2B,EAGhDL,oBAAoB,CAACM,YAH2B,EAIhDN,oBAAoB,CAACO,WAJ2B,EAKhDP,o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AACmC,SAAV,CAAoB,CAACb,YAAD,EAAeS,mBAAf,CAApB,CAAlC;AAEA,IAAMK,aAAa,GAAGpC,SAAS,CAACiB,OAAV,CAAkBiB,yBAAlB,CAAtB;AAEA,IAAMG,gBAAgB,GAAGrC,SAAS,CAACsC,QAAV,CAAmBhB,YAAnB,CAAzB;AAEA,IAAMiB,kBAAkB,GAAGvC,SAAS,CAACW,KAAV,CAAgB;AACvC6B,EAAAA,SAAS,EAAExC,SAAS,CAACa,MADkB;AAEvC4B,EAAAA,mBAAmB,EAAEzC,SAAS,CAAC0C,MAFQ;AAGvCC,EAAAA,YAAY,EAAE3C,SAAS,CAAC4C,IAHe;AAIvCC,EAAAA,SAAS,EAAE7C,SAAS,CAAC0C;AAJkB,CAAhB,CAA3B;AAOA,SACIH,kBADJ,EAEIpC,2BAFJ,EAGIO,cAHJ,EAIIM,mBAJJ,EAKIE,gBALJ,EAMII,YANJ,EAOIc,aAPJ,EAQIC,gBARJ","sourcesContent":["import PropTypes from 'prop-types';\n\nimport ContentExplorerModes from './modes';\nimport ItemTypes from './item-types';\n\nconst ContentExplorerModePropType = PropTypes.oneOf([\n ContentExplorerModes.COPY,\n ContentExplorerModes.MOVE_COPY,\n ContentExplorerModes.MULTI_SELECT,\n ContentExplorerModes.SELECT_FILE,\n ContentExplorerModes.SELECT_FOLDER,\n]);\n\nconst FolderPropType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n});\n\nconst FoldersPathPropType = PropTypes.arrayOf(FolderPropType);\n\nconst ItemTypePropType = PropTypes.oneOf([ItemTypes.FILE, ItemTypes.FOLDER, ItemTypes.BOOKMARK]);\n\nconst ItemPropType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n type: ItemTypePropType,\n name: PropTypes.string.isRequired,\n label: PropTypes.string,\n extension: PropTypes.string,\n hasCollaborations: PropTypes.bool,\n isExternallyOwned: PropTypes.bool,\n isDisabled: PropTypes.bool,\n isActionDisabled: PropTypes.bool,\n});\n\nconst PlaceholderPropType = PropTypes.shape({\n isLoading: PropTypes.bool.isRequired,\n loadingPlaceholderColumnWidths: PropTypes.arrayOf(PropTypes.string),\n});\n\nconst ItemOrPlaceholderPropType = PropTypes.oneOfType([ItemPropType, PlaceholderPropType]);\n\nconst ItemsPropType = PropTypes.arrayOf(ItemOrPlaceholderPropType);\n\nconst ItemsMapPropType = PropTypes.objectOf(ItemPropType);\n\nconst BreadcrumbPropType = PropTypes.shape({\n className: PropTypes.string,\n itemsBeforeOverflow: PropTypes.number,\n overflowIcon: PropTypes.node,\n threshold: PropTypes.number,\n});\n\nexport {\n BreadcrumbPropType,\n ContentExplorerModePropType,\n FolderPropType,\n FoldersPathPropType,\n ItemTypePropType,\n ItemPropType,\n ItemsPropType,\n ItemsMapPropType,\n};\n"],"file":"prop-types.js"}
@@ -0,0 +1,24 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+
5
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
+
7
+ import React from 'react';
8
+ import { injectIntl } from 'react-intl';
9
+ import classNames from 'classnames';
10
+ import { formatCount } from './numberUtils';
11
+
12
+ function CompactCount(_ref) {
13
+ var className = _ref.className,
14
+ count = _ref.count,
15
+ intl = _ref.intl,
16
+ rest = _objectWithoutProperties(_ref, ["className", "count", "intl"]);
17
+
18
+ return React.createElement("span", _extends({
19
+ className: classNames('CompactCount', className)
20
+ }, rest), formatCount(count, intl));
21
+ }
22
+
23
+ export default injectIntl(CompactCount);
24
+ //# sourceMappingURL=CompactCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/CompactCount.tsx"],"names":["React","injectIntl","classNames","formatCount","CompactCount","className","count","intl","rest"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAAsC,YAAtC;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SAASC,WAAT,QAA4B,eAA5B;;AAUA,SAASC,YAAT,OAAkE;AAAA,MAA1CC,SAA0C,QAA1CA,SAA0C;AAAA,MAA/BC,KAA+B,QAA/BA,KAA+B;AAAA,MAAxBC,IAAwB,QAAxBA,IAAwB;AAAA,MAAfC,IAAe;;AAC9D,SACI;AAAM,IAAA,SAAS,EAAEN,UAAU,CAAC,cAAD,EAAiBG,SAAjB;AAA3B,KAA4DG,IAA5D,GACKL,WAAW,CAACG,KAAD,EAAQC,IAAR,CADhB,CADJ;AAKH;;AAED,eAAeN,UAAU,CAACG,YAAD,CAAzB","sourcesContent":["import React from 'react';\nimport { injectIntl, IntlShape } from 'react-intl';\nimport classNames from 'classnames';\n\nimport { formatCount } from './numberUtils';\n\ninterface Props {\n className?: string;\n count: number;\n intl: IntlShape;\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n}\n\nfunction CompactCount({ className, count, intl, ...rest }: Props) {\n return (\n <span className={classNames('CompactCount', className)} {...rest}>\n {formatCount(count, intl)}\n </span>\n );\n}\n\nexport default injectIntl(CompactCount);\n"],"file":"CompactCount.js"}
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ import { FormattedMessage } from 'react-intl';
3
+ import MetricsReview56 from '../../illustration/MetricsReview56';
4
+ import messages from './messages';
5
+ import './ContentAnalyticsErrorState.scss';
6
+
7
+ var ContentAnalyticsErrorState = function ContentAnalyticsErrorState(_ref) {
8
+ var error = _ref.error;
9
+
10
+ var renderErrorMessage = function renderErrorMessage(responseError) {
11
+ var isPermissionError = !!responseError && responseError.status === 403;
12
+
13
+ if (isPermissionError) {
14
+ return React.createElement("div", {
15
+ className: "ContentAnalyticsErrorState-text--permission",
16
+ "data-testid": "ContentAnalyticsErrorState-text--permission"
17
+ }, React.createElement(FormattedMessage, messages.contentAnalyticsPermissionError));
18
+ }
19
+
20
+ return React.createElement("div", {
21
+ className: "ContentAnalyticsErrorState-text",
22
+ "data-testid": "ContentAnalyticsErrorState-text"
23
+ }, React.createElement(FormattedMessage, messages.contentAnalyticsErrorText));
24
+ };
25
+
26
+ return React.createElement("div", {
27
+ className: "ContentAnalyticsErrorState",
28
+ "data-testid": "ContentAnalyticsErrorState"
29
+ }, React.createElement(MetricsReview56, {
30
+ "data-testid": "ContentAnalyticsErrorState-image"
31
+ }), renderErrorMessage(error));
32
+ };
33
+
34
+ export default ContentAnalyticsErrorState;
35
+ //# sourceMappingURL=ContentAnalyticsErrorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/ContentAnalyticsErrorState.tsx"],"names":["React","FormattedMessage","MetricsReview56","messages","ContentAnalyticsErrorState","error","renderErrorMessage","responseError","isPermissionError","status","contentAnalyticsPermissionError","contentAnalyticsErrorText"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AAEA,OAAOC,eAAP,MAA4B,oCAA5B;AACA,OAAOC,QAAP,MAAqB,YAArB;AAGA,OAAO,mCAAP;;AAMA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA6B,OAAsB;AAAA,MAAnBC,KAAmB,QAAnBA,KAAmB;;AACrD,MAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,aAAD,EAAmC;AAC1D,QAAMC,iBAAiB,GAAG,CAAC,CAACD,aAAF,IAAmBA,aAAa,CAACE,MAAd,KAAyB,GAAtE;;AAEA,QAAID,iBAAJ,EAAuB;AACnB,aACI;AACI,QAAA,SAAS,EAAC,6CADd;AAEI,uBAAY;AAFhB,SAII,oBAAC,gBAAD,EAAsBL,QAAQ,CAACO,+BAA/B,CAJJ,CADJ;AAQH;;AAED,WACI;AAAK,MAAA,SAAS,EAAC,iCAAf;AAAiD,qBAAY;AAA7D,OACI,oBAAC,gBAAD,EAAsBP,QAAQ,CAACQ,yBAA/B,CADJ,CADJ;AAKH,GAnBD;;AAqBA,SACI;AAAK,IAAA,SAAS,EAAC,4BAAf;AAA4C,mBAAY;AAAxD,KACI,oBAAC,eAAD;AAAiB,mBAAY;AAA7B,IADJ,EAEKL,kBAAkB,CAACD,KAAD,CAFvB,CADJ;AAMH,CA5BD;;AA8BA,eAAeD,0BAAf","sourcesContent":["import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport MetricsReview56 from '../../illustration/MetricsReview56';\nimport messages from './messages';\nimport { ResponseError } from './types';\n\nimport './ContentAnalyticsErrorState.scss';\n\ninterface Props {\n error?: ResponseError;\n}\n\nconst ContentAnalyticsErrorState = ({ error }: Props) => {\n const renderErrorMessage = (responseError?: ResponseError) => {\n const isPermissionError = !!responseError && responseError.status === 403;\n\n if (isPermissionError) {\n return (\n <div\n className=\"ContentAnalyticsErrorState-text--permission\"\n data-testid=\"ContentAnalyticsErrorState-text--permission\"\n >\n <FormattedMessage {...messages.contentAnalyticsPermissionError} />\n </div>\n );\n }\n\n return (\n <div className=\"ContentAnalyticsErrorState-text\" data-testid=\"ContentAnalyticsErrorState-text\">\n <FormattedMessage {...messages.contentAnalyticsErrorText} />\n </div>\n );\n };\n\n return (\n <div className=\"ContentAnalyticsErrorState\" data-testid=\"ContentAnalyticsErrorState\">\n <MetricsReview56 data-testid=\"ContentAnalyticsErrorState-image\" />\n {renderErrorMessage(error)}\n </div>\n );\n};\n\nexport default ContentAnalyticsErrorState;\n"],"file":"ContentAnalyticsErrorState.js"}
@@ -0,0 +1,17 @@
1
+ @import '../../styles/variables';
2
+
3
+ .ContentAnalyticsErrorState {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ height: 100%;
9
+ }
10
+
11
+ .ContentAnalyticsErrorState-text,
12
+ .ContentAnalyticsErrorState-text--permission {
13
+ width: 100%;
14
+ margin-top: $bdl-grid-unit * 5;
15
+ font-size: $bdl-fontSize--dejaBlue;
16
+ text-align: center;
17
+ }
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import ContentAnalyticsErrorState from './ContentAnalyticsErrorState';
3
+ import ContentInsightsSummaryGhostState from './ContentInsightsSummaryGhostState';
4
+ import GraphCardPreviewsSummary from './GraphCardPreviewsSummary';
5
+ import OpenContentInsightsButton from './OpenContentInsightsButton';
6
+ import './ContentInsightsSummary.scss';
7
+
8
+ var ContentInsightsSummary = function ContentInsightsSummary(_ref) {
9
+ var error = _ref.error,
10
+ graphData = _ref.graphData,
11
+ isLoading = _ref.isLoading,
12
+ previousPeriodCount = _ref.previousPeriodCount,
13
+ onClick = _ref.onClick,
14
+ totalCount = _ref.totalCount;
15
+
16
+ var renderContentAnalyticsSummary = function renderContentAnalyticsSummary() {
17
+ if (error) {
18
+ return React.createElement(ContentAnalyticsErrorState, {
19
+ error: error
20
+ });
21
+ }
22
+
23
+ if (isLoading) {
24
+ return React.createElement(ContentInsightsSummaryGhostState, null);
25
+ }
26
+
27
+ return React.createElement(React.Fragment, null, React.createElement(GraphCardPreviewsSummary, {
28
+ graphData: graphData,
29
+ previousPeriodCount: previousPeriodCount,
30
+ totalCount: totalCount
31
+ }), React.createElement(OpenContentInsightsButton, {
32
+ onClick: onClick
33
+ }));
34
+ };
35
+
36
+ return React.createElement("div", {
37
+ className: "ContentInsightsSummary"
38
+ }, renderContentAnalyticsSummary());
39
+ };
40
+
41
+ export default ContentInsightsSummary;
42
+ //# sourceMappingURL=ContentInsightsSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/ContentInsightsSummary.tsx"],"names":["React","ContentAnalyticsErrorState","ContentInsightsSummaryGhostState","GraphCardPreviewsSummary","OpenContentInsightsButton","ContentInsightsSummary","error","graphData","isLoading","previousPeriodCount","onClick","totalCount","renderContentAnalyticsSummary"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,0BAAP,MAAuC,8BAAvC;AACA,OAAOC,gCAAP,MAA6C,oCAA7C;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,yBAAP,MAAsC,6BAAtC;AAGA,OAAO,+BAAP;;AAWA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,OAAsF;AAAA,MAAnFC,KAAmF,QAAnFA,KAAmF;AAAA,MAA5EC,SAA4E,QAA5EA,SAA4E;AAAA,MAAjEC,SAAiE,QAAjEA,SAAiE;AAAA,MAAtDC,mBAAsD,QAAtDA,mBAAsD;AAAA,MAAjCC,OAAiC,QAAjCA,OAAiC;AAAA,MAAxBC,UAAwB,QAAxBA,UAAwB;;AACjH,MAAMC,6BAA6B,GAAG,SAAhCA,6BAAgC,GAAM;AACxC,QAAIN,KAAJ,EAAW;AACP,aAAO,oBAAC,0BAAD;AAA4B,QAAA,KAAK,EAAEA;AAAnC,QAAP;AACH;;AAED,QAAIE,SAAJ,EAAe;AACX,aAAO,oBAAC,gCAAD,OAAP;AACH;;AAED,WACI,0CACI,oBAAC,wBAAD;AACI,MAAA,SAAS,EAAED,SADf;AAEI,MAAA,mBAAmB,EAAEE,mBAFzB;AAGI,MAAA,UAAU,EAAEE;AAHhB,MADJ,EAMI,oBAAC,yBAAD;AAA2B,MAAA,OAAO,EAAED;AAApC,MANJ,CADJ;AAUH,GAnBD;;AAqBA,SAAO;AAAK,IAAA,SAAS,EAAC;AAAf,KAAyCE,6BAA6B,EAAtE,CAAP;AACH,CAvBD;;AAyBA,eAAeP,sBAAf","sourcesContent":["import * as React from 'react';\n\nimport ContentAnalyticsErrorState from './ContentAnalyticsErrorState';\nimport ContentInsightsSummaryGhostState from './ContentInsightsSummaryGhostState';\nimport GraphCardPreviewsSummary from './GraphCardPreviewsSummary';\nimport OpenContentInsightsButton from './OpenContentInsightsButton';\nimport { GraphData, ResponseError } from './types';\n\nimport './ContentInsightsSummary.scss';\n\ninterface Props {\n graphData: GraphData;\n error?: ResponseError;\n isLoading: boolean;\n onClick: () => void;\n previousPeriodCount: number;\n totalCount: number;\n}\n\nconst ContentInsightsSummary = ({ error, graphData, isLoading, previousPeriodCount, onClick, totalCount }: Props) => {\n const renderContentAnalyticsSummary = () => {\n if (error) {\n return <ContentAnalyticsErrorState error={error} />;\n }\n\n if (isLoading) {\n return <ContentInsightsSummaryGhostState />;\n }\n\n return (\n <>\n <GraphCardPreviewsSummary\n graphData={graphData}\n previousPeriodCount={previousPeriodCount}\n totalCount={totalCount}\n />\n <OpenContentInsightsButton onClick={onClick} />\n </>\n );\n };\n\n return <div className=\"ContentInsightsSummary\">{renderContentAnalyticsSummary()}</div>;\n};\n\nexport default ContentInsightsSummary;\n"],"file":"ContentInsightsSummary.js"}
@@ -0,0 +1,12 @@
1
+ @import '../../styles/variables';
2
+
3
+ .ContentInsightsSummary {
4
+ display: flex;
5
+ flex-direction: column;
6
+
7
+ .OpenContentInsightsButton {
8
+ margin-top: $bdl-grid-unit * 5;
9
+ margin-right: 0;
10
+ margin-left: 0;
11
+ }
12
+ }
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import Ghost from '../../components/ghost';
3
+ import GraphCardGhostState from './GraphCardGhostState';
4
+ import './ContentInsightsSummaryGhostState.scss';
5
+
6
+ var ContentInsightsSummaryGhostState = function ContentInsightsSummaryGhostState() {
7
+ return React.createElement("div", {
8
+ className: "ContentInsightsSummaryGhostState"
9
+ }, React.createElement(GraphCardGhostState, null), React.createElement("div", {
10
+ className: "ContentInsightsSummaryGhostState-cta"
11
+ }, React.createElement(Ghost, {
12
+ borderRadius: 6,
13
+ className: "ContentInsightsSummaryGhostState-ctaButton",
14
+ height: 32
15
+ })));
16
+ };
17
+
18
+ export default ContentInsightsSummaryGhostState;
19
+ //# sourceMappingURL=ContentInsightsSummaryGhostState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/ContentInsightsSummaryGhostState.tsx"],"names":["React","Ghost","GraphCardGhostState","ContentInsightsSummaryGhostState"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,KAAP,MAAkB,wBAAlB;AAEA,OAAOC,mBAAP,MAAgC,uBAAhC;AAEA,OAAO,yCAAP;;AAEA,IAAMC,gCAAgC,GAAG,SAAnCA,gCAAmC;AAAA,SACrC;AAAK,IAAA,SAAS,EAAC;AAAf,KACI,oBAAC,mBAAD,OADJ,EAEI;AAAK,IAAA,SAAS,EAAC;AAAf,KACI,oBAAC,KAAD;AAAO,IAAA,YAAY,EAAE,CAArB;AAAwB,IAAA,SAAS,EAAC,4CAAlC;AAA+E,IAAA,MAAM,EAAE;AAAvF,IADJ,CAFJ,CADqC;AAAA,CAAzC;;AASA,eAAeA,gCAAf","sourcesContent":["import * as React from 'react';\n\nimport Ghost from '../../components/ghost';\n\nimport GraphCardGhostState from './GraphCardGhostState';\n\nimport './ContentInsightsSummaryGhostState.scss';\n\nconst ContentInsightsSummaryGhostState = () => (\n <div className=\"ContentInsightsSummaryGhostState\">\n <GraphCardGhostState />\n <div className=\"ContentInsightsSummaryGhostState-cta\">\n <Ghost borderRadius={6} className=\"ContentInsightsSummaryGhostState-ctaButton\" height={32} />\n </div>\n </div>\n);\n\nexport default ContentInsightsSummaryGhostState;\n"],"file":"ContentInsightsSummaryGhostState.js"}
@@ -0,0 +1,9 @@
1
+ @import '../../styles/variables';
2
+
3
+ .ContentInsightsSummaryGhostState-cta {
4
+ margin-top: $bdl-grid-unit * 5;
5
+ }
6
+
7
+ .ContentInsightsSummaryGhostState-ctaButton {
8
+ margin: 0;
9
+ }
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import Ghost from '../../components/ghost';
3
+ import GraphGhostState from './GraphGhostState';
4
+ import './GraphCardGhostState.scss';
5
+
6
+ var GraphCardGhostState = function GraphCardGhostState() {
7
+ return React.createElement("div", {
8
+ className: "GraphCardGhostState",
9
+ "data-testid": "GraphCardGhostState"
10
+ }, React.createElement("div", {
11
+ className: "GraphCardGhostState-header"
12
+ }, React.createElement(Ghost, {
13
+ borderRadius: 4,
14
+ height: 16,
15
+ width: 56
16
+ }), React.createElement(Ghost, {
17
+ borderRadius: 4,
18
+ className: "GraphCardGhostState-headlinePill",
19
+ height: 20,
20
+ width: 96
21
+ })), React.createElement(GraphGhostState, null));
22
+ };
23
+
24
+ export default GraphCardGhostState;
25
+ //# sourceMappingURL=GraphCardGhostState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/GraphCardGhostState.tsx"],"names":["React","Ghost","GraphGhostState","GraphCardGhostState"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,wBAAlB;AAEA,OAAOC,eAAP,MAA4B,mBAA5B;AAEA,OAAO,4BAAP;;AAEA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB;AAAA,SACxB;AAAK,IAAA,SAAS,EAAC,qBAAf;AAAqC,mBAAY;AAAjD,KACI;AAAK,IAAA,SAAS,EAAC;AAAf,KACI,oBAAC,KAAD;AAAO,IAAA,YAAY,EAAE,CAArB;AAAwB,IAAA,MAAM,EAAE,EAAhC;AAAoC,IAAA,KAAK,EAAE;AAA3C,IADJ,EAEI,oBAAC,KAAD;AAAO,IAAA,YAAY,EAAE,CAArB;AAAwB,IAAA,SAAS,EAAC,kCAAlC;AAAqE,IAAA,MAAM,EAAE,EAA7E;AAAiF,IAAA,KAAK,EAAE;AAAxF,IAFJ,CADJ,EAKI,oBAAC,eAAD,OALJ,CADwB;AAAA,CAA5B;;AAUA,eAAeA,mBAAf","sourcesContent":["import React from 'react';\nimport Ghost from '../../components/ghost';\n\nimport GraphGhostState from './GraphGhostState';\n\nimport './GraphCardGhostState.scss';\n\nconst GraphCardGhostState = () => (\n <div className=\"GraphCardGhostState\" data-testid=\"GraphCardGhostState\">\n <div className=\"GraphCardGhostState-header\">\n <Ghost borderRadius={4} height={16} width={56} />\n <Ghost borderRadius={4} className=\"GraphCardGhostState-headlinePill\" height={20} width={96} />\n </div>\n <GraphGhostState />\n </div>\n);\n\nexport default GraphCardGhostState;\n"],"file":"GraphCardGhostState.js"}
@@ -0,0 +1,18 @@
1
+ @import '../../styles/variables';
2
+
3
+ .GraphCardGhostState {
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
7
+
8
+ .GraphCardGhostState-header {
9
+ display: flex;
10
+ flex: 0 0 70px;
11
+ flex-direction: column;
12
+ justify-content: space-around;
13
+ }
14
+
15
+ .GraphCardGhostState-headlinePill {
16
+ margin-top: $bdl-grid-unit * 2;
17
+ margin-bottom: $bdl-grid-unit * 6;
18
+ }
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import { injectIntl } from 'react-intl';
3
+ import BarChart from './charts/bar/BarChart';
4
+ import messages from './messages';
5
+ import MetricSummary from './MetricSummary';
6
+ import { METRIC, PERIOD } from './constants';
7
+ import './GraphCardPreviewsSummary.scss';
8
+
9
+ function GraphCardPreviewsSummary(_ref) {
10
+ var graphData = _ref.graphData,
11
+ intl = _ref.intl,
12
+ previousPeriodCount = _ref.previousPeriodCount,
13
+ totalCount = _ref.totalCount;
14
+ return React.createElement(React.Fragment, null, React.createElement(MetricSummary, {
15
+ data: graphData,
16
+ metric: METRIC.PREVIEWS,
17
+ period: PERIOD.WEEK,
18
+ previousPeriodCount: previousPeriodCount,
19
+ totalCount: totalCount
20
+ }), React.createElement(BarChart, {
21
+ className: "GraphCardPreviewsSummary-chart",
22
+ data: graphData,
23
+ label: intl.formatMessage(messages.previewGraphLabel),
24
+ labelAccessor: "start",
25
+ valueAccessor: "previewsCount"
26
+ }));
27
+ }
28
+
29
+ export default injectIntl(GraphCardPreviewsSummary);
30
+ //# sourceMappingURL=GraphCardPreviewsSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/GraphCardPreviewsSummary.tsx"],"names":["React","injectIntl","BarChart","messages","MetricSummary","METRIC","PERIOD","GraphCardPreviewsSummary","graphData","intl","previousPeriodCount","totalCount","PREVIEWS","WEEK","formatMessage","previewGraphLabel"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,UAAT,QAAsC,YAAtC;AAEA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,SAASC,MAAT,EAAiBC,MAAjB,QAA+B,aAA/B;AAGA,OAAO,iCAAP;;AASA,SAASC,wBAAT,OAA+F;AAAA,MAA3DC,SAA2D,QAA3DA,SAA2D;AAAA,MAAhDC,IAAgD,QAAhDA,IAAgD;AAAA,MAA1CC,mBAA0C,QAA1CA,mBAA0C;AAAA,MAArBC,UAAqB,QAArBA,UAAqB;AAC3F,SACI,0CACI,oBAAC,aAAD;AACI,IAAA,IAAI,EAAEH,SADV;AAEI,IAAA,MAAM,EAAEH,MAAM,CAACO,QAFnB;AAGI,IAAA,MAAM,EAAEN,MAAM,CAACO,IAHnB;AAII,IAAA,mBAAmB,EAAEH,mBAJzB;AAKI,IAAA,UAAU,EAAEC;AALhB,IADJ,EAQI,oBAAC,QAAD;AACI,IAAA,SAAS,EAAC,gCADd;AAEI,IAAA,IAAI,EAAEH,SAFV;AAGI,IAAA,KAAK,EAAEC,IAAI,CAACK,aAAL,CAAmBX,QAAQ,CAACY,iBAA5B,CAHX;AAII,IAAA,aAAa,EAAC,OAJlB;AAKI,IAAA,aAAa,EAAC;AALlB,IARJ,CADJ;AAkBH;;AAED,eAAed,UAAU,CAACM,wBAAD,CAAzB","sourcesContent":["import * as React from 'react';\nimport { injectIntl, IntlShape } from 'react-intl';\n\nimport BarChart from './charts/bar/BarChart';\nimport messages from './messages';\nimport MetricSummary from './MetricSummary';\nimport { METRIC, PERIOD } from './constants';\nimport { GraphData } from './types';\n\nimport './GraphCardPreviewsSummary.scss';\n\ninterface Props {\n graphData: GraphData;\n intl: IntlShape;\n previousPeriodCount: number;\n totalCount: number;\n}\n\nfunction GraphCardPreviewsSummary({ graphData, intl, previousPeriodCount, totalCount }: Props) {\n return (\n <>\n <MetricSummary\n data={graphData}\n metric={METRIC.PREVIEWS}\n period={PERIOD.WEEK}\n previousPeriodCount={previousPeriodCount}\n totalCount={totalCount}\n />\n <BarChart\n className=\"GraphCardPreviewsSummary-chart\"\n data={graphData}\n label={intl.formatMessage(messages.previewGraphLabel)}\n labelAccessor=\"start\"\n valueAccessor=\"previewsCount\"\n />\n </>\n );\n}\n\nexport default injectIntl(GraphCardPreviewsSummary);\n"],"file":"GraphCardPreviewsSummary.js"}
@@ -0,0 +1,10 @@
1
+ @import './variables';
2
+
3
+ .GraphCardPreviewsSummary-chart.ca-BarChart {
4
+ flex: 0 0 $ContentInsights-chart-height-small;
5
+ margin-top: $bdl-grid-unit * 5.5;
6
+
7
+ .ca-Bar-value {
8
+ background: $ContentInsights-chart-color-previews;
9
+ }
10
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import Ghost from '../../components/ghost';
3
+ import './GraphGhostState.scss';
4
+ var GRAPH_BAR_HEIGHTS = [28, 36, 54, 80, 36, 48, 28];
5
+
6
+ var GraphGhostState = function GraphGhostState() {
7
+ return React.createElement("div", {
8
+ className: "GraphGhostState"
9
+ }, GRAPH_BAR_HEIGHTS.map(function (height, index) {
10
+ return (// eslint-disable-next-line react/no-array-index-key
11
+ React.createElement(Ghost, {
12
+ key: index,
13
+ borderRadius: 4,
14
+ height: height
15
+ })
16
+ );
17
+ }));
18
+ };
19
+
20
+ export default GraphGhostState;
21
+ //# sourceMappingURL=GraphGhostState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/GraphGhostState.tsx"],"names":["React","Ghost","GRAPH_BAR_HEIGHTS","GraphGhostState","map","height","index"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,wBAAlB;AAEA,OAAO,wBAAP;AAEA,IAAMC,iBAAiB,GAAG,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,EAAiB,EAAjB,EAAqB,EAArB,EAAyB,EAAzB,CAA1B;;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB;AAAA,SACpB;AAAK,IAAA,SAAS,EAAC;AAAf,KACKD,iBAAiB,CAACE,GAAlB,CAAsB,UAACC,MAAD,EAASC,KAAT;AAAA,WACnB;AACA,0BAAC,KAAD;AAAO,QAAA,GAAG,EAAEA,KAAZ;AAAmB,QAAA,YAAY,EAAE,CAAjC;AAAoC,QAAA,MAAM,EAAED;AAA5C;AAFmB;AAAA,GAAtB,CADL,CADoB;AAAA,CAAxB;;AASA,eAAeF,eAAf","sourcesContent":["import React from 'react';\nimport Ghost from '../../components/ghost';\n\nimport './GraphGhostState.scss';\n\nconst GRAPH_BAR_HEIGHTS = [28, 36, 54, 80, 36, 48, 28];\n\nconst GraphGhostState = () => (\n <div className=\"GraphGhostState\">\n {GRAPH_BAR_HEIGHTS.map((height, index) => (\n // eslint-disable-next-line react/no-array-index-key\n <Ghost key={index} borderRadius={4} height={height} />\n ))}\n </div>\n);\n\nexport default GraphGhostState;\n"],"file":"GraphGhostState.js"}
@@ -0,0 +1,11 @@
1
+ @import '../../styles/variables';
2
+
3
+ .GraphGhostState {
4
+ display: flex;
5
+ align-items: flex-end;
6
+ justify-content: space-around;
7
+
8
+ .bdl-Ghost + .bdl-Ghost {
9
+ margin-left: $bdl-grid-unit * .5;
10
+ }
11
+ }
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import CompactCount from './CompactCount';
3
+ import './HeaderWithCount.scss';
4
+
5
+ function isNumber(count) {
6
+ return typeof count === 'number';
7
+ }
8
+
9
+ function HeaderWithCount(_ref) {
10
+ var title = _ref.title,
11
+ totalCount = _ref.totalCount;
12
+ return React.createElement("div", {
13
+ className: "HeaderWithCount"
14
+ }, React.createElement("span", {
15
+ className: "HeaderWithCount-title"
16
+ }, title), isNumber(totalCount) ? React.createElement(CompactCount, {
17
+ className: "HeaderWithCount-titleCount",
18
+ count: totalCount
19
+ }) : null);
20
+ }
21
+
22
+ export default HeaderWithCount;
23
+ //# sourceMappingURL=HeaderWithCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/features/content-insights/HeaderWithCount.tsx"],"names":["React","CompactCount","isNumber","count","HeaderWithCount","title","totalCount"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AAEA,OAAO,wBAAP;;AAOA,SAASC,QAAT,CAAkBC,KAAlB,EAAmD;AAC/C,SAAO,OAAOA,KAAP,KAAiB,QAAxB;AACH;;AAED,SAASC,eAAT,OAAuD;AAAA,MAA5BC,KAA4B,QAA5BA,KAA4B;AAAA,MAArBC,UAAqB,QAArBA,UAAqB;AACnD,SACI;AAAK,IAAA,SAAS,EAAC;AAAf,KACI;AAAM,IAAA,SAAS,EAAC;AAAhB,KAAyCD,KAAzC,CADJ,EAEKH,QAAQ,CAACI,UAAD,CAAR,GAAuB,oBAAC,YAAD;AAAc,IAAA,SAAS,EAAC,4BAAxB;AAAqD,IAAA,KAAK,EAAEA;AAA5D,IAAvB,GAAoG,IAFzG,CADJ;AAMH;;AAED,eAAeF,eAAf","sourcesContent":["import * as React from 'react';\nimport CompactCount from './CompactCount';\n\nimport './HeaderWithCount.scss';\n\ninterface Props {\n title: string;\n totalCount?: number;\n}\n\nfunction isNumber(count?: number): count is number {\n return typeof count === 'number';\n}\n\nfunction HeaderWithCount({ title, totalCount }: Props) {\n return (\n <div className=\"HeaderWithCount\">\n <span className=\"HeaderWithCount-title\">{title}</span>\n {isNumber(totalCount) ? <CompactCount className=\"HeaderWithCount-titleCount\" count={totalCount} /> : null}\n </div>\n );\n}\n\nexport default HeaderWithCount;\n"],"file":"HeaderWithCount.js"}
@@ -0,0 +1,10 @@
1
+ @import './mixins';
2
+
3
+ .HeaderWithCount {
4
+ @include ContentInsightsHeaderText;
5
+ }
6
+
7
+ .HeaderWithCount-titleCount::before {
8
+ margin: 0 $bdl-grid-unit;
9
+ content: '•';
10
+ }