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.
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +19 -58
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +10 -10
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -12
- package/dist/preview.css +1 -1
- package/dist/preview.js +17 -56
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +34 -34
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +17 -56
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +12 -12
- package/es/api/APIFactory.js +27 -0
- package/es/api/APIFactory.js.flow +26 -0
- package/es/api/APIFactory.js.map +1 -1
- package/es/api/Annotations.js +180 -27
- package/es/api/Annotations.js.flow +150 -14
- package/es/api/Annotations.js.map +1 -1
- package/es/api/Comments.js +2 -2
- package/es/api/Comments.js.flow +5 -4
- package/es/api/Comments.js.map +1 -1
- package/es/api/Feed.js +578 -69
- package/es/api/Feed.js.flow +677 -17
- package/es/api/Feed.js.map +1 -1
- package/es/api/FileCollaborators.js +29 -0
- package/es/api/FileCollaborators.js.flow +30 -0
- package/es/api/FileCollaborators.js.map +1 -1
- package/es/api/ThreadedComments.js +64 -27
- package/es/api/ThreadedComments.js.flow +54 -29
- package/es/api/ThreadedComments.js.map +1 -1
- package/es/api/fixtures.js +381 -0
- package/es/api/fixtures.js.flow +401 -0
- package/es/api/fixtures.js.map +1 -0
- package/es/api/messages.js +4 -0
- package/es/api/messages.js.flow +5 -0
- package/es/api/messages.js.map +1 -1
- package/es/api/utils.js +33 -0
- package/es/api/utils.js.flow +30 -0
- package/es/api/utils.js.map +1 -0
- package/es/common/types/annotations.js.flow +18 -10
- package/es/common/types/feed.js +1 -1
- package/es/common/types/feed.js.flow +40 -4
- package/es/common/types/feed.js.map +1 -1
- package/es/components/accessible-svg/AccessibleSVG.stories.js +20 -0
- package/es/components/accessible-svg/AccessibleSVG.stories.js.map +1 -0
- package/es/components/badge/Badge.stories.js +1 -13
- package/es/components/badge/Badge.stories.js.map +1 -1
- package/es/components/badge/BetaBadge.stories.js +10 -0
- package/es/components/badge/BetaBadge.stories.js.map +1 -0
- package/es/components/badge/TrialBadge.stories.js +10 -0
- package/es/components/badge/TrialBadge.stories.js.map +1 -0
- package/es/components/badge/UpgradeBadge.stories.js +10 -0
- package/es/components/badge/UpgradeBadge.stories.js.map +1 -0
- package/es/components/breadcrumb/Breadcrumb.js +48 -35
- package/es/components/breadcrumb/Breadcrumb.js.flow +68 -42
- package/es/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/es/components/breadcrumb/EllipsisCrumb.js +5 -3
- package/es/components/breadcrumb/EllipsisCrumb.js.flow +10 -6
- package/es/components/breadcrumb/EllipsisCrumb.js.map +1 -1
- package/es/components/count-badge/CountBadge.stories.js +1 -1
- package/es/components/count-badge/CountBadge.stories.js.map +1 -1
- package/es/components/draggable-list/DraggableList.stories.js +119 -5
- package/es/components/draggable-list/DraggableList.stories.js.map +1 -1
- package/es/components/dropdown-menu/DropdownMenu.js +9 -0
- package/es/components/dropdown-menu/DropdownMenu.js.flow +11 -0
- package/es/components/dropdown-menu/DropdownMenu.js.map +1 -1
- package/es/components/dropdown-menu/DropdownMenu.scss +3 -3
- package/es/components/infinite-scroll/InfiniteScroll.js +4 -2
- package/es/components/infinite-scroll/InfiniteScroll.js.map +1 -1
- package/es/components/modal/Modal.scss +5 -1
- package/es/components/search-form/SearchForm.js +1 -1
- package/es/components/search-form/SearchForm.js.flow +1 -1
- package/es/components/search-form/SearchForm.js.map +1 -1
- package/es/components/table/makeSelectable.js +304 -97
- package/es/components/table/makeSelectable.js.flow +299 -98
- package/es/components/table/makeSelectable.js.map +1 -1
- package/es/components/tooltip/Tooltip.js +3 -2
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/constants.js +11 -0
- package/es/constants.js.flow +11 -0
- package/es/constants.js.map +1 -1
- package/es/elements/common/annotator-context/index.js +1 -0
- package/es/elements/common/annotator-context/index.js.flow +4 -0
- package/es/elements/common/annotator-context/index.js.map +1 -1
- package/es/elements/common/annotator-context/types.js +12 -0
- package/es/elements/common/annotator-context/types.js.flow +77 -35
- package/es/elements/common/annotator-context/types.js.map +1 -1
- package/es/elements/common/annotator-context/useAnnotatorEvents.js +205 -0
- package/es/elements/common/annotator-context/useAnnotatorEvents.js.flow +52 -0
- package/es/elements/common/annotator-context/useAnnotatorEvents.js.map +1 -0
- package/es/elements/common/annotator-context/withAnnotations.js +224 -5
- package/es/elements/common/annotator-context/withAnnotations.js.flow +73 -36
- package/es/elements/common/annotator-context/withAnnotations.js.map +1 -1
- package/es/elements/common/annotator-context/withAnnotatorContext.js +12 -4
- package/es/elements/common/annotator-context/withAnnotatorContext.js.flow +29 -9
- package/es/elements/common/annotator-context/withAnnotatorContext.js.map +1 -1
- package/es/elements/common/current-user/index.js +3 -0
- package/es/elements/common/current-user/index.js.flow +8 -0
- package/es/elements/common/current-user/index.js.map +1 -0
- package/es/elements/common/current-user/withCurrentUser.js +139 -0
- package/es/elements/common/current-user/withCurrentUser.js.flow +40 -0
- package/es/elements/common/current-user/withCurrentUser.js.map +1 -0
- package/es/elements/common/flowTypes.js.flow +22 -4
- package/es/elements/common/flowTypes.js.map +1 -1
- package/es/elements/common/interactionTargets.js +2 -0
- package/es/elements/common/interactionTargets.js.flow +2 -0
- package/es/elements/common/interactionTargets.js.map +1 -1
- package/es/elements/common/logger/Logger.js +1 -1
- package/es/elements/common/logger/Logger.js.flow +1 -1
- package/es/elements/common/logger/Logger.js.map +1 -1
- package/es/elements/common/messages.js +4 -0
- package/es/elements/common/messages.js.flow +5 -0
- package/es/elements/common/messages.js.map +1 -1
- package/es/elements/content-explorer/DeleteConfirmationDialog.js +2 -1
- package/es/elements/content-explorer/DeleteConfirmationDialog.js.flow +3 -1
- package/es/elements/content-explorer/DeleteConfirmationDialog.js.map +1 -1
- package/es/elements/content-explorer/DeleteConfirmationDialog.scss +5 -0
- package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +58 -0
- package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.flow +60 -0
- package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.map +1 -0
- package/es/elements/content-sidebar/ActivitySidebar.js +323 -197
- package/es/elements/content-sidebar/ActivitySidebar.js.flow +381 -154
- package/es/elements/content-sidebar/ActivitySidebar.js.map +1 -1
- package/es/elements/content-sidebar/ActivitySidebarFilter.js +52 -0
- package/es/elements/content-sidebar/ActivitySidebarFilter.js.flow +59 -0
- package/es/elements/content-sidebar/ActivitySidebarFilter.js.map +1 -0
- package/es/elements/content-sidebar/ActivitySidebarFilter.scss +4 -0
- package/es/elements/content-sidebar/DetailsSidebar.js +50 -25
- package/es/elements/content-sidebar/DetailsSidebar.js.flow +32 -4
- package/es/elements/content-sidebar/DetailsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/Sidebar.js +4 -1
- package/es/elements/content-sidebar/Sidebar.js.flow +6 -1
- package/es/elements/content-sidebar/Sidebar.js.map +1 -1
- package/es/elements/content-sidebar/SidebarContentInsights.js +45 -0
- package/es/elements/content-sidebar/SidebarContentInsights.js.map +1 -0
- package/es/elements/content-sidebar/SidebarContentInsights.scss +6 -0
- package/es/elements/content-sidebar/SidebarPanels.js +2 -0
- package/es/elements/content-sidebar/SidebarPanels.js.flow +4 -0
- package/es/elements/content-sidebar/SidebarPanels.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +91 -10
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.flow +122 -24
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js +27 -15
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.flow +59 -18
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js +101 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js.flow +126 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.scss +17 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js +69 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js.flow +85 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.scss +16 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js +62 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js.flow +59 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.scss +22 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js +2 -2
- package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js.flow +2 -2
- package/es/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/activity-feed/fixtures.js +55 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/fixtures.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js +16 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js.flow +20 -0
- package/es/elements/content-sidebar/activity-feed/activity-feed/messages.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js +121 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js.flow +117 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.scss +7 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js +75 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.flow +105 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.scss +5 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js +77 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js.flow +86 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.scss +3 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js +11 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js.flow +26 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/errors.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js +2 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js.flow +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/index.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js +17 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js.flow +21 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/messages.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js +180 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js.flow +203 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js +124 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js.flow +121 -0
- package/es/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +19 -5
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.flow +24 -4
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js +25 -4
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js.flow +36 -2
- package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/annotations/messages.js +8 -0
- package/es/elements/content-sidebar/activity-feed/annotations/messages.js.flow +10 -0
- package/es/elements/content-sidebar/activity-feed/annotations/messages.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/comment/Comment.js +61 -28
- package/es/elements/content-sidebar/activity-feed/comment/Comment.js.flow +54 -10
- package/es/elements/content-sidebar/activity-feed/comment/Comment.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/comment/messages.js +8 -0
- package/es/elements/content-sidebar/activity-feed/comment/messages.js.flow +10 -0
- package/es/elements/content-sidebar/activity-feed/comment/messages.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +4 -2
- package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.flow +3 -1
- package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js +16 -5
- package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js.flow +34 -4
- package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.scss +40 -3
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js +49 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js.flow +42 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js +21 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js.flow +24 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js +12 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js.flow +15 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-message/messages.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js +24 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js.flow +30 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.scss +6 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js +2 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js.flow +2 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/index.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js +9 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js.flow +13 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-status/messages.js.map +1 -0
- package/es/elements/content-sidebar/activity-feed/common/activity-timestamp/ActivityTimestamp.scss +1 -1
- package/es/elements/content-sidebar/fixtures.js +181 -0
- package/es/elements/content-sidebar/fixtures.js.flow +185 -0
- package/es/elements/content-sidebar/fixtures.js.map +1 -0
- package/es/elements/content-sidebar/flowTypes.js.flow +9 -25
- package/es/elements/content-sidebar/messages.js +8 -0
- package/es/elements/content-sidebar/messages.js.flow +10 -0
- package/es/elements/content-sidebar/messages.js.map +1 -1
- package/es/elements/content-sidebar/withErrorHandling.js.flow +1 -1
- package/es/elements/content-sidebar/withErrorHandling.js.map +1 -1
- package/es/elements/content-sidebar/withSidebarAnnotations.js +215 -30
- package/es/elements/content-sidebar/withSidebarAnnotations.js.flow +162 -11
- package/es/elements/content-sidebar/withSidebarAnnotations.js.map +1 -1
- package/es/elements/content-uploader/OverallUploadsProgressBar.js +10 -8
- package/es/elements/content-uploader/OverallUploadsProgressBar.js.flow +11 -12
- package/es/elements/content-uploader/OverallUploadsProgressBar.js.map +1 -1
- package/es/features/classification/Classification.scss +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.scss +1 -0
- package/es/features/classification/security-controls/messages.js +8 -0
- package/es/features/classification/security-controls/messages.js.flow +10 -0
- package/es/features/classification/security-controls/messages.js.map +1 -1
- package/es/features/classification/security-controls/utils.js +4 -7
- package/es/features/classification/security-controls/utils.js.flow +8 -12
- package/es/features/classification/security-controls/utils.js.map +1 -1
- package/es/features/content-explorer/content-explorer/ContentExplorer.js +6 -1
- package/es/features/content-explorer/content-explorer/ContentExplorer.js.flow +4 -0
- package/es/features/content-explorer/content-explorer/ContentExplorer.js.map +1 -1
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
- package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +15 -9
- package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.flow +14 -11
- package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.map +1 -1
- package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js +4 -1
- package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js.flow +4 -1
- package/es/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js.map +1 -1
- package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js +6 -3
- package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.flow +5 -1
- package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.map +1 -1
- package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +6 -1
- package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.flow +5 -1
- package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.map +1 -1
- package/es/features/content-explorer/prop-types.js +7 -1
- package/es/features/content-explorer/prop-types.js.flow +8 -0
- package/es/features/content-explorer/prop-types.js.map +1 -1
- package/es/features/content-insights/CompactCount.js +24 -0
- package/es/features/content-insights/CompactCount.js.map +1 -0
- package/es/features/content-insights/ContentAnalyticsErrorState.js +35 -0
- package/es/features/content-insights/ContentAnalyticsErrorState.js.map +1 -0
- package/es/features/content-insights/ContentAnalyticsErrorState.scss +17 -0
- package/es/features/content-insights/ContentInsightsSummary.js +42 -0
- package/es/features/content-insights/ContentInsightsSummary.js.map +1 -0
- package/es/features/content-insights/ContentInsightsSummary.scss +12 -0
- package/es/features/content-insights/ContentInsightsSummaryGhostState.js +19 -0
- package/es/features/content-insights/ContentInsightsSummaryGhostState.js.map +1 -0
- package/es/features/content-insights/ContentInsightsSummaryGhostState.scss +9 -0
- package/es/features/content-insights/GraphCardGhostState.js +25 -0
- package/es/features/content-insights/GraphCardGhostState.js.map +1 -0
- package/es/features/content-insights/GraphCardGhostState.scss +18 -0
- package/es/features/content-insights/GraphCardPreviewsSummary.js +30 -0
- package/es/features/content-insights/GraphCardPreviewsSummary.js.map +1 -0
- package/es/features/content-insights/GraphCardPreviewsSummary.scss +10 -0
- package/es/features/content-insights/GraphGhostState.js +21 -0
- package/es/features/content-insights/GraphGhostState.js.map +1 -0
- package/es/features/content-insights/GraphGhostState.scss +11 -0
- package/es/features/content-insights/HeaderWithCount.js +23 -0
- package/es/features/content-insights/HeaderWithCount.js.map +1 -0
- package/es/features/content-insights/HeaderWithCount.scss +10 -0
- package/es/features/content-insights/MetricSummary.js +85 -0
- package/es/features/content-insights/MetricSummary.js.map +1 -0
- package/es/features/content-insights/MetricSummary.scss +14 -0
- package/es/features/content-insights/OpenContentInsightsButton.js +16 -0
- package/es/features/content-insights/OpenContentInsightsButton.js.map +1 -0
- package/es/features/content-insights/TrendPill.js +61 -0
- package/es/features/content-insights/TrendPill.js.map +1 -0
- package/es/features/content-insights/TrendPill.scss +33 -0
- package/es/features/content-insights/_mixins.scss +7 -0
- package/es/features/content-insights/_variables.scss +4 -0
- package/es/features/content-insights/charts/bar/Bar.js +57 -0
- package/es/features/content-insights/charts/bar/Bar.js.map +1 -0
- package/es/features/content-insights/charts/bar/Bar.scss +27 -0
- package/es/features/content-insights/charts/bar/BarChart.js +70 -0
- package/es/features/content-insights/charts/bar/BarChart.js.map +1 -0
- package/es/features/content-insights/charts/bar/BarChart.scss +56 -0
- package/es/features/content-insights/charts/types.js +2 -0
- package/es/{common/types/threadedComments.js.map → features/content-insights/charts/types.js.map} +1 -1
- package/es/features/content-insights/constants.js +54 -0
- package/es/features/content-insights/constants.js.map +1 -0
- package/es/features/content-insights/messages.js +69 -0
- package/es/features/content-insights/messages.js.map +1 -0
- package/es/features/content-insights/numberUtils.js +10 -0
- package/es/features/content-insights/numberUtils.js.map +1 -0
- package/es/features/content-insights/types.js +2 -0
- package/es/features/content-insights/types.js.map +1 -0
- package/es/features/item-details/ItemProperties.scss +1 -1
- package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js +5 -3
- package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js.flow +4 -2
- package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.js.map +1 -1
- package/es/features/unified-share-modal/ContactRestrictionNotice.js +34 -8
- package/es/features/unified-share-modal/ContactRestrictionNotice.js.flow +36 -6
- package/es/features/unified-share-modal/ContactRestrictionNotice.js.map +1 -1
- package/es/features/unified-share-modal/EmailForm.js +59 -47
- package/es/features/unified-share-modal/EmailForm.js.flow +31 -13
- package/es/features/unified-share-modal/EmailForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +112 -103
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +25 -8
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareModal.js +1 -0
- package/es/features/unified-share-modal/UnifiedShareModal.js.flow +1 -0
- package/es/features/unified-share-modal/UnifiedShareModal.js.map +1 -1
- package/es/features/unified-share-modal/flowTypes.js.flow +4 -2
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/es/features/unified-share-modal/messages.js +12 -8
- package/es/features/unified-share-modal/messages.js.flow +14 -8
- package/es/features/unified-share-modal/messages.js.map +1 -1
- package/es/features/unified-share-modal/utils/hasRestrictedContacts.js +9 -4
- package/es/features/unified-share-modal/utils/hasRestrictedContacts.js.flow +10 -3
- package/es/features/unified-share-modal/utils/hasRestrictedContacts.js.map +1 -1
- package/es/features/unified-share-modal/utils/isRestrictedContact.js +15 -0
- package/es/features/unified-share-modal/utils/isRestrictedContact.js.flow +21 -0
- package/es/features/unified-share-modal/utils/isRestrictedContact.js.map +1 -0
- package/es/icon/fill/Alert16.js +3 -2
- package/es/icon/fill/Alert16.js.flow +3 -2
- package/es/icon/fill/Alert16.js.map +1 -1
- package/es/icon/fill/AlertBadge16.js +31 -0
- package/es/icon/fill/AlertBadge16.js.flow +29 -0
- package/es/icon/fill/AlertBadge16.js.map +1 -0
- package/es/icon/fill/AlertBadge16.stories.js +13 -0
- package/es/icon/fill/AlertBadge16.stories.js.map +1 -0
- package/es/icon/fill/Info16.js +2 -2
- package/es/icon/fill/Info16.js.flow +1 -1
- package/es/icon/fill/Info16.js.map +1 -1
- package/es/icon/fill/InfoBadge16.js +30 -0
- package/es/icon/fill/InfoBadge16.js.flow +28 -0
- package/es/icon/fill/InfoBadge16.js.map +1 -0
- package/es/icon/fill/InfoBadge16.stories.js +13 -0
- package/es/icon/fill/InfoBadge16.stories.js.map +1 -0
- package/es/icon/fill/UserSettings16.js +38 -0
- package/es/icon/fill/UserSettings16.js.flow +38 -0
- package/es/icon/fill/UserSettings16.js.map +1 -0
- package/es/icon/fill/UserSettings16.stories.js +13 -0
- package/es/icon/fill/UserSettings16.stories.js.map +1 -0
- package/es/icon/line/AlertBubble16.js +31 -0
- package/es/icon/line/AlertBubble16.js.flow +29 -0
- package/es/icon/line/AlertBubble16.js.map +1 -0
- package/es/icon/line/AlertBubble16.stories.js +13 -0
- package/es/icon/line/AlertBubble16.stories.js.map +1 -0
- package/es/icon/line/AvatarXBadge16.js +45 -0
- package/es/icon/line/AvatarXBadge16.js.flow +39 -0
- package/es/icon/line/AvatarXBadge16.js.map +1 -0
- package/es/icon/line/AvatarXBadge16.stories.js +13 -0
- package/es/icon/line/AvatarXBadge16.stories.js.map +1 -0
- package/es/icon/line/CoEdit16.js +32 -0
- package/es/icon/line/CoEdit16.js.flow +30 -0
- package/es/icon/line/CoEdit16.js.map +1 -0
- package/es/icon/line/CoEdit16.stories.js +13 -0
- package/es/icon/line/CoEdit16.stories.js.map +1 -0
- package/es/icon/line/Collaborations16.js +32 -0
- package/es/icon/line/Collaborations16.js.flow +30 -0
- package/es/icon/line/Collaborations16.js.map +1 -0
- package/es/icon/line/Collaborations16.stories.js +13 -0
- package/es/icon/line/Collaborations16.stories.js.map +1 -0
- package/es/icon/line/CommentBubble16.js +35 -0
- package/es/icon/line/CommentBubble16.js.flow +34 -0
- package/es/icon/line/CommentBubble16.js.map +1 -0
- package/es/icon/line/CommentBubble16.stories.js +13 -0
- package/es/icon/line/CommentBubble16.stories.js.map +1 -0
- package/es/src/components/accessible-svg/AccessibleSVG.stories.d.ts +7 -0
- package/es/src/components/badge/Badge.stories.d.ts +0 -3
- package/es/src/components/badge/BetaBadge.stories.d.ts +6 -0
- package/es/src/components/badge/TrialBadge.stories.d.ts +6 -0
- package/es/src/components/badge/UpgradeBadge.stories.d.ts +6 -0
- package/es/src/components/draggable-list/DraggableList.stories.d.ts +3 -3
- package/es/src/components/infinite-scroll/InfiniteScroll.d.ts +1 -1
- package/es/src/components/tooltip/Tooltip.d.ts +2 -0
- package/es/src/elements/common/annotator-context/__tests__/useAnnotatorEvents.test.d.ts +1 -0
- package/es/src/elements/common/annotator-context/index.d.ts +1 -0
- package/es/src/elements/common/annotator-context/types.d.ts +28 -6
- package/es/src/elements/common/annotator-context/useAnnotatorEvents.d.ts +52 -0
- package/es/src/elements/common/annotator-context/withAnnotations.d.ts +11 -2
- package/es/src/elements/common/annotator-context/withAnnotatorContext.d.ts +6 -2
- package/es/src/elements/common/current-user/__tests__/withCurrentUser.test.d.ts +1 -0
- package/es/src/elements/common/current-user/index.d.ts +2 -0
- package/es/src/elements/common/current-user/withCurrentUser.d.ts +20 -0
- package/es/src/elements/content-sidebar/SidebarContentInsights.d.ts +15 -0
- package/es/src/elements/content-sidebar/__tests__/SidebarContentInsights.test.d.ts +1 -0
- package/es/src/elements/content-sidebar/activity-feed/activity-feed/fixtures.d.ts +55 -0
- package/es/src/features/content-insights/CompactCount.d.ts +15 -0
- package/es/src/features/content-insights/ContentAnalyticsErrorState.d.ts +7 -0
- package/es/src/features/content-insights/ContentInsightsSummary.d.ts +12 -0
- package/es/src/features/content-insights/ContentInsightsSummaryGhostState.d.ts +3 -0
- package/es/src/features/content-insights/GraphCardGhostState.d.ts +3 -0
- package/es/src/features/content-insights/GraphCardPreviewsSummary.d.ts +16 -0
- package/es/src/features/content-insights/GraphGhostState.d.ts +3 -0
- package/es/src/features/content-insights/HeaderWithCount.d.ts +7 -0
- package/es/src/features/content-insights/MetricSummary.d.ts +18 -0
- package/es/src/features/content-insights/OpenContentInsightsButton.d.ts +5 -0
- package/es/src/features/content-insights/TrendPill.d.ts +15 -0
- package/es/src/features/content-insights/__tests__/CompactCount.test.d.ts +1 -0
- package/es/src/features/content-insights/__tests__/ContentAnalyticsErrorState.test.d.ts +1 -0
- package/es/src/features/content-insights/__tests__/ContentInsightsSummary.test.d.ts +1 -0
- package/es/src/features/content-insights/__tests__/GraphCardPreviewsSummary.test.d.ts +1 -0
- package/es/src/features/content-insights/__tests__/HeaderWithCount.test.d.ts +1 -0
- package/es/src/features/content-insights/__tests__/MetricSummary.test.d.ts +1 -0
- package/es/src/features/content-insights/charts/bar/Bar.d.ts +11 -0
- package/es/src/features/content-insights/charts/bar/BarChart.d.ts +19 -0
- package/es/src/features/content-insights/charts/bar/__tests__/Bar.test.d.ts +1 -0
- package/es/src/features/content-insights/charts/bar/__tests__/BarChart.test.d.ts +1 -0
- package/es/src/features/content-insights/charts/types.d.ts +2 -0
- package/es/src/features/content-insights/constants.d.ts +27 -0
- package/es/src/features/content-insights/messages.d.ts +83 -0
- package/es/src/features/content-insights/numberUtils.d.ts +3 -0
- package/es/src/features/content-insights/types.d.ts +24 -0
- package/es/src/icon/fill/AlertBadge16.d.ts +13 -0
- package/es/src/icon/fill/AlertBadge16.stories.d.ts +9 -0
- package/es/src/icon/fill/InfoBadge16.d.ts +13 -0
- package/es/src/icon/fill/InfoBadge16.stories.d.ts +9 -0
- package/es/src/icon/fill/UserSettings16.d.ts +13 -0
- package/es/src/icon/fill/UserSettings16.stories.d.ts +9 -0
- package/es/src/icon/line/AlertBubble16.d.ts +13 -0
- package/es/src/icon/line/AlertBubble16.stories.d.ts +9 -0
- package/es/src/icon/line/AvatarXBadge16.d.ts +13 -0
- package/es/src/icon/line/AvatarXBadge16.stories.d.ts +9 -0
- package/es/src/icon/line/CoEdit16.d.ts +13 -0
- package/es/src/icon/line/CoEdit16.stories.d.ts +9 -0
- package/es/src/icon/line/Collaborations16.d.ts +13 -0
- package/es/src/icon/line/Collaborations16.stories.d.ts +9 -0
- package/es/src/icon/line/CommentBubble16.d.ts +13 -0
- package/es/src/icon/line/CommentBubble16.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +3 -1
- package/es/styles/constants/_layout.scss +1 -1
- package/es/styles/constants/_media-queries.scss +2 -0
- package/es/styles/variables.js +6 -2
- package/es/styles/variables.js.flow +4 -2
- package/es/styles/variables.js.map +1 -1
- package/es/utils/error.js +5 -1
- package/es/utils/error.js.flow +5 -1
- package/es/utils/error.js.map +1 -1
- package/es/utils/fields.js +8 -3
- package/es/utils/fields.js.flow +21 -3
- package/es/utils/fields.js.map +1 -1
- package/es/utils/sorter.js.flow +2 -2
- package/es/utils/sorter.js.map +1 -1
- package/i18n/bn-IN.js +45 -7
- package/i18n/bn-IN.properties +83 -7
- package/i18n/da-DK.js +45 -7
- package/i18n/da-DK.properties +83 -7
- package/i18n/de-DE.js +45 -7
- package/i18n/de-DE.properties +83 -7
- package/i18n/en-AU.js +45 -7
- package/i18n/en-AU.properties +83 -7
- package/i18n/en-CA.js +45 -7
- package/i18n/en-CA.properties +83 -7
- package/i18n/en-GB.js +45 -7
- package/i18n/en-GB.properties +83 -7
- package/i18n/en-US.js +45 -7
- package/i18n/en-US.properties +83 -7
- package/i18n/en-x-pseudo.js +891 -854
- package/i18n/en-x-pseudo.properties +941 -843
- package/i18n/es-419.js +45 -7
- package/i18n/es-419.properties +83 -7
- package/i18n/es-ES.js +45 -7
- package/i18n/es-ES.properties +83 -7
- package/i18n/fi-FI.js +45 -7
- package/i18n/fi-FI.properties +83 -7
- package/i18n/fr-CA.js +45 -7
- package/i18n/fr-CA.properties +83 -7
- package/i18n/fr-FR.js +45 -7
- package/i18n/fr-FR.properties +83 -7
- package/i18n/hi-IN.js +45 -7
- package/i18n/hi-IN.properties +83 -7
- package/i18n/it-IT.js +45 -7
- package/i18n/it-IT.properties +83 -7
- package/i18n/ja-JP.js +47 -9
- package/i18n/ja-JP.properties +85 -9
- package/i18n/ko-KR.js +45 -7
- package/i18n/ko-KR.properties +83 -7
- package/i18n/nb-NO.js +45 -7
- package/i18n/nb-NO.properties +83 -7
- package/i18n/nl-NL.js +45 -7
- package/i18n/nl-NL.properties +83 -7
- package/i18n/pl-PL.js +45 -7
- package/i18n/pl-PL.properties +83 -7
- package/i18n/pt-BR.js +45 -7
- package/i18n/pt-BR.properties +83 -7
- package/i18n/ru-RU.js +45 -7
- package/i18n/ru-RU.properties +83 -7
- package/i18n/sv-SE.js +45 -7
- package/i18n/sv-SE.properties +83 -7
- package/i18n/tr-TR.js +45 -7
- package/i18n/tr-TR.properties +83 -7
- package/i18n/zh-CN.js +45 -7
- package/i18n/zh-CN.properties +83 -7
- package/i18n/zh-TW.js +45 -7
- package/i18n/zh-TW.properties +83 -7
- package/package.json +7 -8
- package/src/__mocks__/react-intl.js +4 -0
- package/src/api/APIFactory.js +26 -0
- package/src/api/Annotations.js +150 -14
- package/src/api/Comments.js +5 -4
- package/src/api/Feed.js +677 -17
- package/src/api/FileCollaborators.js +30 -0
- package/src/api/ThreadedComments.js +54 -29
- package/src/api/__tests__/Annotations.test.js +217 -11
- package/src/api/__tests__/Feed.test.js +699 -86
- package/src/api/__tests__/FileCollaborators.test.js +41 -0
- package/src/api/__tests__/ThreadedComments.test.js +47 -10
- package/src/api/__tests__/utils.test.js +11 -0
- package/src/api/fixtures.js +401 -0
- package/src/api/messages.js +5 -0
- package/src/api/utils.js +30 -0
- package/src/common/types/annotations.js +18 -10
- package/src/common/types/feed.js +40 -4
- package/src/components/accessible-svg/AccessibleSVG.stories.tsx +18 -0
- package/src/components/badge/Badge.stories.md +1 -7
- package/src/components/badge/Badge.stories.tsx +1 -10
- package/src/components/badge/BetaBadge.stories.tsx +9 -0
- package/src/components/badge/TrialBadge.stories.tsx +9 -0
- package/src/components/badge/UpgradeBadge.stories.tsx +9 -0
- package/src/components/breadcrumb/Breadcrumb.js +68 -42
- package/src/components/breadcrumb/EllipsisCrumb.js +10 -6
- package/src/components/count-badge/CountBadge.stories.tsx +1 -1
- package/src/components/draggable-list/DraggableList.stories.tsx +72 -5
- package/src/components/dropdown-menu/DropdownMenu.js +11 -0
- package/src/components/dropdown-menu/DropdownMenu.scss +3 -3
- package/src/components/dropdown-menu/__tests__/DropdownMenu.test.js +38 -0
- package/src/components/grid-view/__tests__/__snapshots__/GridViewSlider.test.js.snap +1 -0
- package/src/components/infinite-scroll/InfiniteScroll.md +1 -1
- package/src/components/infinite-scroll/InfiniteScroll.tsx +5 -2
- package/src/components/infinite-scroll/__tests__/InfiniteScroll.test.tsx +115 -127
- package/src/components/modal/Modal.scss +5 -1
- package/src/components/search-form/SearchForm.js +1 -1
- package/src/components/search-form/__tests__/SearchForm.test.js +25 -6
- package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +4 -0
- package/src/components/table/__tests__/makeSelectable.test.js +654 -144
- package/src/components/table/makeSelectable.js +299 -98
- package/src/components/time/__tests__/ReadableTime.test.js +0 -1
- package/src/components/tooltip/Tooltip.tsx +5 -2
- package/src/components/tooltip/__tests__/Tooltip.test.tsx +10 -0
- package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +1 -1
- package/src/constants.js +11 -0
- package/src/elements/common/annotator-context/__tests__/useAnnotatorEvents.test.tsx +509 -0
- package/src/elements/common/annotator-context/__tests__/withAnnotations.test.tsx +275 -12
- package/src/elements/common/annotator-context/__tests__/withAnnotatorContext.test.tsx +18 -6
- package/src/elements/common/annotator-context/index.js.flow +4 -0
- package/src/elements/common/annotator-context/index.ts +1 -0
- package/src/elements/common/annotator-context/types.js.flow +77 -35
- package/src/elements/common/annotator-context/types.ts +28 -6
- package/src/elements/common/annotator-context/useAnnotatorEvents.js.flow +52 -0
- package/src/elements/common/annotator-context/useAnnotatorEvents.ts +190 -0
- package/src/elements/common/annotator-context/withAnnotations.js.flow +73 -36
- package/src/elements/common/annotator-context/withAnnotations.tsx +170 -7
- package/src/elements/common/annotator-context/withAnnotatorContext.js.flow +29 -9
- package/src/elements/common/annotator-context/withAnnotatorContext.tsx +28 -5
- package/src/elements/common/current-user/__tests__/withCurrentUser.test.tsx +108 -0
- package/src/elements/common/current-user/index.js.flow +8 -0
- package/src/elements/common/current-user/index.ts +2 -0
- package/src/elements/common/current-user/withCurrentUser.js.flow +40 -0
- package/src/elements/common/current-user/withCurrentUser.tsx +139 -0
- package/src/elements/common/flowTypes.js +22 -4
- package/src/elements/common/interactionTargets.js +2 -0
- package/src/elements/common/logger/Logger.js +1 -1
- package/src/elements/common/messages.js +5 -0
- package/src/elements/content-explorer/DeleteConfirmationDialog.js +3 -1
- package/src/elements/content-explorer/DeleteConfirmationDialog.scss +5 -0
- package/src/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +60 -0
- package/src/elements/content-explorer/stories/DeleteConfirmationDialog.stories.md +1 -0
- package/src/elements/content-sidebar/ActivitySidebar.js +381 -154
- package/src/elements/content-sidebar/ActivitySidebarFilter.js +59 -0
- package/src/elements/content-sidebar/ActivitySidebarFilter.scss +4 -0
- package/src/elements/content-sidebar/DetailsSidebar.js +32 -4
- package/src/elements/content-sidebar/Sidebar.js +6 -1
- package/src/elements/content-sidebar/SidebarContentInsights.scss +6 -0
- package/src/elements/content-sidebar/SidebarContentInsights.tsx +57 -0
- package/src/elements/content-sidebar/SidebarPanels.js +4 -0
- package/src/elements/content-sidebar/__tests__/ActivitySidebar.test.js +533 -243
- package/src/elements/content-sidebar/__tests__/ActivitySidebarFilter.test.js +54 -0
- package/src/elements/content-sidebar/__tests__/DetailsSidebar.test.js +45 -0
- package/src/elements/content-sidebar/__tests__/Sidebar.test.js +1 -1
- package/src/elements/content-sidebar/__tests__/SidebarContentInsights.test.tsx +56 -0
- package/src/elements/content-sidebar/__tests__/SidebarPanels.test.js +4 -3
- package/src/elements/content-sidebar/__tests__/__snapshots__/ActivitySidebar.test.js.snap +29 -15
- package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarFileProperties.test.js.snap +1 -0
- package/src/elements/content-sidebar/__tests__/withSidebarAnnotations.test.js +325 -32
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +122 -24
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js +59 -18
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.js +126 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThread.scss +17 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js +85 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.scss +16 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.js +59 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplyForm.scss +22 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActiveState.test.js +19 -5
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityFeed.test.js +22 -16
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThread.test.js +80 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThreadReplies.test.js +24 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActivityThreadRepliesForm.test.js +47 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/__snapshots__/ActiveState.test.js.snap +74 -43
- package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/activityFeedUtils.test.js +8 -8
- package/src/elements/content-sidebar/activity-feed/activity-feed/activityFeedUtils.js +2 -2
- package/src/elements/content-sidebar/activity-feed/activity-feed/fixtures.ts +56 -0
- package/src/elements/content-sidebar/activity-feed/activity-feed/messages.js +20 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.js +117 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThread.scss +7 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js +105 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.scss +5 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.js +86 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadCreate.scss +3 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThread.test.js +28 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThreadContent.test.js +89 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/AnnotationThreadCreate.test.js +103 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/useAnnotationAPI.test.js +202 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/useRepliesAPI.test.js +99 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/errors.js +26 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/index.js +1 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/messages.js +21 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationAPI.js +203 -0
- package/src/elements/content-sidebar/activity-feed/annotation-thread/useRepliesAPI.js +121 -0
- package/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +24 -4
- package/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivityMenu.js +36 -2
- package/src/elements/content-sidebar/activity-feed/annotations/__tests__/AnnotationActivity.test.js +14 -10
- package/src/elements/content-sidebar/activity-feed/annotations/__tests__/AnnotationActivityMenu.test.js +35 -1
- package/src/elements/content-sidebar/activity-feed/annotations/messages.js +10 -0
- package/src/elements/content-sidebar/activity-feed/comment/Comment.js +54 -10
- package/src/elements/content-sidebar/activity-feed/comment/__tests__/Comment.test.js +152 -7
- package/src/elements/content-sidebar/activity-feed/comment/__tests__/__snapshots__/Comment.test.js.snap +12 -7
- package/src/elements/content-sidebar/activity-feed/comment/messages.js +10 -0
- package/src/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +3 -1
- package/src/elements/content-sidebar/activity-feed/comment-form/__tests__/CommentForm.test.js +11 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.js +34 -4
- package/src/elements/content-sidebar/activity-feed/common/activity-message/ActivityMessage.scss +40 -3
- package/src/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessage.js +42 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-message/CollapsableMessageToggle.js +24 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-message/__tests__/ActivityMessage.test.js +48 -1
- package/src/elements/content-sidebar/activity-feed/common/activity-message/messages.js +15 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.js +30 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-status/ActivityStatus.scss +6 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-status/__tests__/ActivityStatus.test.js +19 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-status/index.js +2 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-status/messages.js +13 -0
- package/src/elements/content-sidebar/activity-feed/common/activity-timestamp/ActivityTimestamp.scss +1 -1
- package/src/elements/content-sidebar/activity-feed/task-new/__tests__/Task.test.js +4 -3
- package/src/elements/content-sidebar/activity-feed/task-new/__tests__/__snapshots__/Task.test.js.snap +1 -2
- package/src/elements/content-sidebar/fixtures.js +185 -0
- package/src/elements/content-sidebar/flowTypes.js +9 -25
- package/src/elements/content-sidebar/messages.js +10 -0
- package/src/elements/content-sidebar/withErrorHandling.js +1 -1
- package/src/elements/content-sidebar/withSidebarAnnotations.js +162 -11
- package/src/elements/content-uploader/OverallUploadsProgressBar.js +11 -12
- package/src/features/classification/Classification.scss +1 -1
- package/src/features/classification/security-controls/SecurityControlsItem.scss +1 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +18 -16
- package/src/features/classification/security-controls/__tests__/utils.test.js +13 -5
- package/src/features/classification/security-controls/messages.js +10 -0
- package/src/features/classification/security-controls/utils.js +8 -12
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebarLogo.test.js.snap +2 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.js +4 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
- package/src/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +14 -11
- package/src/features/content-explorer/content-explorer/ContentExplorerHeaderActions.js +4 -1
- package/src/features/content-explorer/content-explorer/__tests__/ContentExplorerBreadcrumbs.test.js +2 -2
- package/src/features/content-explorer/content-explorer-modal/ContentExplorerModal.js +5 -1
- package/src/features/content-explorer/content-explorer-modal/__tests__/__snapshots__/ContentExplorerModal.test.js.snap +1 -0
- package/src/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +5 -1
- package/src/features/content-explorer/prop-types.js +8 -0
- package/src/features/content-insights/CompactCount.tsx +23 -0
- package/src/features/content-insights/ContentAnalyticsErrorState.scss +17 -0
- package/src/features/content-insights/ContentAnalyticsErrorState.tsx +44 -0
- package/src/features/content-insights/ContentInsightsSummary.scss +12 -0
- package/src/features/content-insights/ContentInsightsSummary.tsx +45 -0
- package/src/features/content-insights/ContentInsightsSummaryGhostState.scss +9 -0
- package/src/features/content-insights/ContentInsightsSummaryGhostState.tsx +18 -0
- package/src/features/content-insights/GraphCardGhostState.scss +18 -0
- package/src/features/content-insights/GraphCardGhostState.tsx +18 -0
- package/src/features/content-insights/GraphCardPreviewsSummary.scss +10 -0
- package/src/features/content-insights/GraphCardPreviewsSummary.tsx +40 -0
- package/src/features/content-insights/GraphGhostState.scss +11 -0
- package/src/features/content-insights/GraphGhostState.tsx +17 -0
- package/src/features/content-insights/HeaderWithCount.scss +10 -0
- package/src/features/content-insights/HeaderWithCount.tsx +24 -0
- package/src/features/content-insights/MetricSummary.scss +14 -0
- package/src/features/content-insights/MetricSummary.tsx +65 -0
- package/src/features/content-insights/OpenContentInsightsButton.tsx +20 -0
- package/src/features/content-insights/TrendPill.scss +33 -0
- package/src/features/content-insights/TrendPill.tsx +70 -0
- package/src/features/content-insights/__tests__/CompactCount.test.tsx +57 -0
- package/src/features/content-insights/__tests__/ContentAnalyticsErrorState.test.tsx +33 -0
- package/src/features/content-insights/__tests__/ContentInsightsSummary.test.tsx +81 -0
- package/src/features/content-insights/__tests__/GraphCardPreviewsSummary.test.tsx +35 -0
- package/src/features/content-insights/__tests__/HeaderWithCount.test.tsx +26 -0
- package/src/features/content-insights/__tests__/MetricSummary.test.tsx +88 -0
- package/src/features/content-insights/_mixins.scss +7 -0
- package/src/features/content-insights/_variables.scss +4 -0
- package/src/features/content-insights/charts/bar/Bar.scss +27 -0
- package/src/features/content-insights/charts/bar/Bar.tsx +48 -0
- package/src/features/content-insights/charts/bar/BarChart.scss +56 -0
- package/src/features/content-insights/charts/bar/BarChart.tsx +78 -0
- package/src/features/content-insights/charts/bar/__tests__/Bar.test.tsx +74 -0
- package/src/features/content-insights/charts/bar/__tests__/BarChart.test.tsx +110 -0
- package/src/features/content-insights/charts/types.ts +3 -0
- package/src/features/content-insights/constants.ts +60 -0
- package/src/features/content-insights/messages.ts +90 -0
- package/src/features/content-insights/numberUtils.ts +9 -0
- package/src/features/content-insights/types.ts +33 -0
- package/src/features/item-details/ItemProperties.scss +1 -1
- package/src/features/shared-link-settings-modal/SharedLinkSettingsModal.js +4 -2
- package/src/features/shared-link-settings-modal/__tests__/SharedLinkSettingsModal.test.js +22 -3
- package/src/features/shared-link-settings-modal/__tests__/__snapshots__/SharedLinkSettingsModal.test.js.snap +2 -1
- package/src/features/unified-share-modal/ContactRestrictionNotice.js +36 -6
- package/src/features/unified-share-modal/EmailForm.js +31 -13
- package/src/features/unified-share-modal/UnifiedShareForm.js +25 -8
- package/src/features/unified-share-modal/UnifiedShareModal.js +1 -0
- package/src/features/unified-share-modal/__tests__/ContactRestrictionNotice.test.js +55 -6
- package/src/features/unified-share-modal/__tests__/EmailForm.test.js +131 -24
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +89 -35
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +16 -0
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareModal.test.js.snap +17 -0
- package/src/features/unified-share-modal/flowTypes.js +4 -2
- package/src/features/unified-share-modal/messages.js +14 -8
- package/src/features/unified-share-modal/utils/__tests__/hasRestrictedContacts.test.js +24 -10
- package/src/features/unified-share-modal/utils/__tests__/isRestrictedContact.test.js +33 -0
- package/src/features/unified-share-modal/utils/hasRestrictedContacts.js +10 -3
- package/src/features/unified-share-modal/utils/isRestrictedContact.js +21 -0
- package/src/features/virtualized-table/__tests__/__snapshots__/VirtualizedTable.test.js.snap +1 -0
- package/src/icon/fill/Alert16.js.flow +3 -2
- package/src/icon/fill/Alert16.tsx +3 -2
- package/src/icon/fill/AlertBadge16.js.flow +29 -0
- package/src/icon/fill/AlertBadge16.stories.tsx +13 -0
- package/src/icon/fill/AlertBadge16.tsx +27 -0
- package/src/icon/fill/Info16.js.flow +1 -1
- package/src/icon/fill/Info16.tsx +1 -1
- package/src/icon/fill/InfoBadge16.js.flow +28 -0
- package/src/icon/fill/InfoBadge16.stories.tsx +13 -0
- package/src/icon/fill/InfoBadge16.tsx +26 -0
- package/src/icon/fill/UserSettings16.js.flow +38 -0
- package/src/icon/fill/UserSettings16.stories.tsx +13 -0
- package/src/icon/fill/UserSettings16.tsx +36 -0
- package/src/icon/line/AlertBubble16.js.flow +29 -0
- package/src/icon/line/AlertBubble16.stories.tsx +13 -0
- package/src/icon/line/AlertBubble16.tsx +27 -0
- package/src/icon/line/AvatarXBadge16.js.flow +39 -0
- package/src/icon/line/AvatarXBadge16.stories.tsx +13 -0
- package/src/icon/line/AvatarXBadge16.tsx +37 -0
- package/src/icon/line/CoEdit16.js.flow +30 -0
- package/src/icon/line/CoEdit16.stories.tsx +13 -0
- package/src/icon/line/CoEdit16.tsx +28 -0
- package/src/icon/line/Collaborations16.js.flow +30 -0
- package/src/icon/line/Collaborations16.stories.tsx +13 -0
- package/src/icon/line/Collaborations16.tsx +28 -0
- package/src/icon/line/CommentBubble16.js.flow +34 -0
- package/src/icon/line/CommentBubble16.stories.tsx +13 -0
- package/src/icon/line/CommentBubble16.tsx +32 -0
- package/src/styles/constants/_layout.scss +1 -1
- package/src/styles/constants/_media-queries.scss +2 -0
- package/src/styles/variables.js +4 -2
- package/src/styles/variables.json +4 -2
- package/src/styles/variables.ts +3 -1
- package/src/utils/__tests__/fields.test.js +23 -4
- package/src/utils/__tests__/sorter.test.js +3 -3
- package/src/utils/error.js +5 -1
- package/src/utils/fields.js +21 -3
- package/src/utils/sorter.js +2 -2
- package/es/common/types/threadedComments.js +0 -2
- package/es/common/types/threadedComments.js.flow +0 -9
- 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;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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cAAc,EAAEpC,SAAS,CAAC4D,IAAV,CAAeC,UAhFhB;;AAiFf;;;;;AAKAxB,EAAAA,YAAY,EAAErC,SAAS,CAAC4D,IAAV,CAAeC,UAtFd;;AAuFf;AACArB,EAAAA,KAAK,EAAElC,aAAa,CAACuD,UAxFN;;AAyFf;AACApB,EAAAA,eAAe,EAAEzC,SAAS,CAACgE,MA1FZ;;AA2Ff;AACAtB,EAAAA,aAAa,EAAE1C,SAAS,CAACgE,MA5FV;;AA6Ff;AACArB,EAAAA,eAAe,EAAE3C,SAAS,CAAC4D,IA9FZ;;AA+Ff;AACAhB,EAAAA,gBAAgB,EAAE5C,SAAS,CAAC4D,IAhGb;;AAiGf;AACAf,EAAAA,oBAAoB,EAAE7C,SAAS,CAAC4D,IAlGjB;;AAmGf;AACAd,EAAAA,kBAAkB,EAAE9C,SAAS,CAAC4D,IApGf;;AAqGf;AACAb,EAAAA,yBAAyB,EAAE/C,SAAS,CAAC8D,IAtGtB;;AAuGf;AACAd,EAAAA,gBAAgB,EAAEhD,SAAS,CAAC+D,MAxGb;;AAyGf;AACAd,EAAAA,gBAAgB,EAAEjD,SAAS,CAAC2D;AA1Gb,C;;gBADjBlD,6B,kBA8GoB;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,KAA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A1Gb;;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
|
-
|
|
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,SAF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,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,
|
|
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,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;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AkB,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,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,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,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,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"}
|