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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2051) hide show
  1. package/dist/explorer.css +1 -1
  2. package/dist/explorer.js +2 -172
  3. package/dist/explorer.js.LICENSE.txt +178 -0
  4. package/dist/openwith.css +1 -1
  5. package/dist/openwith.js +2 -84
  6. package/dist/openwith.js.LICENSE.txt +94 -0
  7. package/dist/picker.css +1 -1
  8. package/dist/picker.js +2 -101
  9. package/dist/picker.js.LICENSE.txt +112 -0
  10. package/dist/preview.css +1 -1
  11. package/dist/preview.js +2 -155
  12. package/dist/preview.js.LICENSE.txt +160 -0
  13. package/dist/sharing.css +1 -1
  14. package/dist/sharing.js +2 -135
  15. package/dist/sharing.js.LICENSE.txt +149 -0
  16. package/dist/sidebar.css +1 -1
  17. package/dist/sidebar.js +2 -155
  18. package/dist/sidebar.js.LICENSE.txt +160 -0
  19. package/dist/uploader.css +1 -1
  20. package/dist/uploader.js +2 -101
  21. package/dist/uploader.js.LICENSE.txt +112 -0
  22. package/es/api/APIFactory.js +25 -0
  23. package/es/api/APIFactory.js.flow +25 -0
  24. package/es/api/APIFactory.js.map +1 -1
  25. package/es/api/Feed.js +5 -3
  26. package/es/api/Feed.js.flow +8 -4
  27. package/es/api/Feed.js.map +1 -1
  28. package/es/api/Intelligence.js +45 -0
  29. package/es/api/Intelligence.js.flow +47 -0
  30. package/es/api/Intelligence.js.map +1 -0
  31. package/es/common/types/core.js.flow +1 -0
  32. package/es/common/types/core.js.map +1 -1
  33. package/es/components/accessible-svg/AccessibleSVG.stories.js +1 -1
  34. package/es/components/accessible-svg/AccessibleSVG.stories.js.map +1 -1
  35. package/es/components/avatar/Avatar.stories.js +1 -1
  36. package/es/components/avatar/Avatar.stories.js.map +1 -1
  37. package/es/components/badge/Badge.stories.js +1 -1
  38. package/es/components/badge/Badge.stories.js.map +1 -1
  39. package/es/components/badge/BetaBadge.stories.js +1 -1
  40. package/es/components/badge/BetaBadge.stories.js.map +1 -1
  41. package/es/components/badge/TrialBadge.stories.js +1 -1
  42. package/es/components/badge/TrialBadge.stories.js.map +1 -1
  43. package/es/components/badge/UpgradeBadge.stories.js +1 -1
  44. package/es/components/badge/UpgradeBadge.stories.js.map +1 -1
  45. package/es/components/breadcrumb/Breadcrumb.stories.js +1 -1
  46. package/es/components/breadcrumb/Breadcrumb.stories.js.flow +1 -1
  47. package/es/components/breadcrumb/Breadcrumb.stories.js.map +1 -1
  48. package/es/components/button/Button.stories.js +1 -1
  49. package/es/components/button/Button.stories.js.map +1 -1
  50. package/es/components/button-group/ButtonGroup.stories.js +1 -1
  51. package/es/components/button-group/ButtonGroup.stories.js.map +1 -1
  52. package/es/components/category-selector/CategorySelector.stories.js +1 -1
  53. package/es/components/category-selector/CategorySelector.stories.js.map +1 -1
  54. package/es/components/checkbox/Checkbox.stories.js +1 -1
  55. package/es/components/checkbox/Checkbox.stories.js.map +1 -1
  56. package/es/components/close-button/CloseButton.stories.js +1 -1
  57. package/es/components/close-button/CloseButton.stories.js.map +1 -1
  58. package/es/components/collapsible/Collapsible.stories.js +1 -1
  59. package/es/components/collapsible/Collapsible.stories.js.map +1 -1
  60. package/es/components/contact-datalist-item/ContactDatalistItem.stories.js +1 -1
  61. package/es/components/contact-datalist-item/ContactDatalistItem.stories.js.map +1 -1
  62. package/es/components/context-menu/ContextMenu.stories.js +1 -1
  63. package/es/components/context-menu/ContextMenu.stories.js.map +1 -1
  64. package/es/components/count-badge/CountBadge.stories.js +1 -1
  65. package/es/components/count-badge/CountBadge.stories.js.map +1 -1
  66. package/es/components/datalist-item/DatalistItem.stories.js +1 -1
  67. package/es/components/datalist-item/DatalistItem.stories.js.map +1 -1
  68. package/es/components/date-picker/DatePicker.stories.js +1 -1
  69. package/es/components/date-picker/DatePicker.stories.js.map +1 -1
  70. package/es/components/draft-js-editor/DraftJSEditor.stories.js +1 -1
  71. package/es/components/draft-js-editor/DraftJSEditor.stories.js.flow +1 -1
  72. package/es/components/draft-js-editor/DraftJSEditor.stories.js.map +1 -1
  73. package/es/components/draggable-list/DraggableList.stories.js +1 -1
  74. package/es/components/draggable-list/DraggableList.stories.js.map +1 -1
  75. package/es/components/dropdown-menu/DropdownMenu.stories.js +1 -1
  76. package/es/components/dropdown-menu/DropdownMenu.stories.js.flow +1 -1
  77. package/es/components/dropdown-menu/DropdownMenu.stories.js.map +1 -1
  78. package/es/components/error-mask/ErrorMask.stories.js +1 -1
  79. package/es/components/error-mask/ErrorMask.stories.js.map +1 -1
  80. package/es/components/fieldset/Fieldset.stories.js +1 -1
  81. package/es/components/fieldset/Fieldset.stories.js.map +1 -1
  82. package/es/components/flyout/Flyout.stories.js +1 -1
  83. package/es/components/flyout/Flyout.stories.js.map +1 -1
  84. package/es/components/flyout/OverlayHeader.js +2 -1
  85. package/es/components/flyout/OverlayHeader.js.map +1 -1
  86. package/es/components/footer-indicator/FooterIndicator.stories.js +1 -1
  87. package/es/components/footer-indicator/FooterIndicator.stories.js.map +1 -1
  88. package/es/components/form-elements/form/Form.stories.js +1 -1
  89. package/es/components/form-elements/form/Form.stories.js.flow +1 -1
  90. package/es/components/form-elements/form/Form.stories.js.map +1 -1
  91. package/es/components/form-elements/formik/Formik.stories.js +1 -1
  92. package/es/components/form-elements/formik/Formik.stories.js.flow +1 -1
  93. package/es/components/form-elements/formik/Formik.stories.js.map +1 -1
  94. package/es/components/form-elements/text-area/TextArea.stories.js +1 -1
  95. package/es/components/form-elements/text-area/TextArea.stories.js.flow +1 -1
  96. package/es/components/form-elements/text-area/TextArea.stories.js.map +1 -1
  97. package/es/components/form-elements/text-input/TextInput.stories.js +1 -1
  98. package/es/components/form-elements/text-input/TextInput.stories.js.flow +1 -1
  99. package/es/components/form-elements/text-input/TextInput.stories.js.map +1 -1
  100. package/es/components/ghost/Ghost.stories.js +1 -1
  101. package/es/components/ghost/Ghost.stories.js.map +1 -1
  102. package/es/components/guide-tooltip/GuideTooltip.stories.js +1 -1
  103. package/es/components/guide-tooltip/GuideTooltip.stories.js.map +1 -1
  104. package/es/components/header/Header.stories.js +1 -1
  105. package/es/components/header/Header.stories.js.map +1 -1
  106. package/es/components/image-tooltip/ImageTooltip.stories.js +1 -1
  107. package/es/components/image-tooltip/ImageTooltip.stories.js.map +1 -1
  108. package/es/components/inline-error/InlineError.stories.js +1 -1
  109. package/es/components/inline-error/InlineError.stories.js.flow +1 -1
  110. package/es/components/inline-error/InlineError.stories.js.map +1 -1
  111. package/es/components/inline-notice/InlineNotice.stories.js +1 -1
  112. package/es/components/inline-notice/InlineNotice.stories.js.flow +1 -1
  113. package/es/components/inline-notice/InlineNotice.stories.js.map +1 -1
  114. package/es/components/label/HiddenLabel.js +13 -7
  115. package/es/components/label/HiddenLabel.js.flow +3 -2
  116. package/es/components/label/HiddenLabel.js.map +1 -1
  117. package/es/components/label/Label.js +5 -2
  118. package/es/components/label/Label.js.flow +5 -3
  119. package/es/components/label/Label.js.map +1 -1
  120. package/es/components/label/Label.stories.js +1 -1
  121. package/es/components/label/Label.stories.js.map +1 -1
  122. package/es/components/label/LabelPrimitive.js +4 -3
  123. package/es/components/label/LabelPrimitive.js.flow +3 -2
  124. package/es/components/label/LabelPrimitive.js.map +1 -1
  125. package/es/components/label/StandardLabel.js +8 -5
  126. package/es/components/label/StandardLabel.js.flow +3 -2
  127. package/es/components/label/StandardLabel.js.map +1 -1
  128. package/es/components/label-pill/LabelPill.stories.js +1 -1
  129. package/es/components/label-pill/LabelPill.stories.js.map +1 -1
  130. package/es/components/link/stories/Link.stories.js +6 -4
  131. package/es/components/link/stories/Link.stories.js.map +1 -1
  132. package/es/components/link/stories/LinkButton.stories.js +8 -5
  133. package/es/components/link/stories/LinkButton.stories.js.map +1 -1
  134. package/es/components/link/stories/LinkGroup.stories.js +1 -1
  135. package/es/components/link/stories/LinkGroup.stories.js.map +1 -1
  136. package/es/components/link/stories/LinkPrimaryButton.stories.js +6 -4
  137. package/es/components/link/stories/LinkPrimaryButton.stories.js.map +1 -1
  138. package/es/components/loading-indicator/LoadingIndicator.stories.js +1 -1
  139. package/es/components/loading-indicator/LoadingIndicator.stories.js.map +1 -1
  140. package/es/components/loading-indicator/LoadingIndicatorWrapper.stories.js +1 -1
  141. package/es/components/loading-indicator/LoadingIndicatorWrapper.stories.js.map +1 -1
  142. package/es/components/loading-indicator/makeLoadable.js.map +1 -1
  143. package/es/components/logo/Logo.stories.js +1 -1
  144. package/es/components/logo/Logo.stories.js.map +1 -1
  145. package/es/components/media/stories/Media.stories.js +1 -1
  146. package/es/components/media/stories/Media.stories.js.map +1 -1
  147. package/es/components/media/stories/MediaBody.stories.js +1 -1
  148. package/es/components/media/stories/MediaBody.stories.js.map +1 -1
  149. package/es/components/media/stories/MediaFigure.stories.js +1 -1
  150. package/es/components/media/stories/MediaFigure.stories.js.map +1 -1
  151. package/es/components/media/stories/MediaMenu.stories.js +1 -1
  152. package/es/components/media/stories/MediaMenu.stories.js.map +1 -1
  153. package/es/components/media-query/stories/MediaQuery.stories.js +1 -1
  154. package/es/components/media-query/stories/MediaQuery.stories.js.flow +1 -1
  155. package/es/components/media-query/stories/MediaQuery.stories.js.map +1 -1
  156. package/es/components/menu/stories/Menu.stories.js +1 -1
  157. package/es/components/menu/stories/Menu.stories.js.map +1 -1
  158. package/es/components/menu/stories/SelectMenuLinkItem.stories.js +1 -1
  159. package/es/components/menu/stories/SelectMenuLinkItem.stories.js.map +1 -1
  160. package/es/components/modal/Modal.scss +62 -69
  161. package/es/components/modal/stories/Modal.stories.js +1 -1
  162. package/es/components/modal/stories/Modal.stories.js.flow +1 -1
  163. package/es/components/modal/stories/Modal.stories.js.map +1 -1
  164. package/es/components/modal/stories/ModalActions.stories.js +1 -1
  165. package/es/components/modal/stories/ModalActions.stories.js.flow +1 -1
  166. package/es/components/modal/stories/ModalActions.stories.js.map +1 -1
  167. package/es/components/modal/stories/ModalDialog.stories.js +1 -1
  168. package/es/components/modal/stories/ModalDialog.stories.js.flow +1 -1
  169. package/es/components/modal/stories/ModalDialog.stories.js.map +1 -1
  170. package/es/components/nav-sidebar/NavSidebar.stories.js +1 -1
  171. package/es/components/nav-sidebar/NavSidebar.stories.js.flow +1 -1
  172. package/es/components/nav-sidebar/NavSidebar.stories.js.map +1 -1
  173. package/es/components/notification/stories/Notification.stories.js +1 -1
  174. package/es/components/notification/stories/Notification.stories.js.flow +1 -1
  175. package/es/components/notification/stories/Notification.stories.js.map +1 -1
  176. package/es/components/notification/stories/NotificationsWrapper.stories.js +1 -1
  177. package/es/components/notification/stories/NotificationsWrapper.stories.js.flow +1 -1
  178. package/es/components/notification/stories/NotificationsWrapper.stories.js.map +1 -1
  179. package/es/components/nudge/Nudge.stories.js +1 -1
  180. package/es/components/nudge/Nudge.stories.js.map +1 -1
  181. package/es/components/pill-cloud/PillCloud.stories.js +1 -1
  182. package/es/components/pill-cloud/PillCloud.stories.js.flow +1 -1
  183. package/es/components/pill-cloud/PillCloud.stories.js.map +1 -1
  184. package/es/components/pill-selector-dropdown/PillSelector.js +7 -3
  185. package/es/components/pill-selector-dropdown/PillSelector.js.flow +10 -2
  186. package/es/components/pill-selector-dropdown/PillSelector.js.map +1 -1
  187. package/es/components/pill-selector-dropdown/PillSelector.scss +4 -0
  188. package/es/components/pill-selector-dropdown/PillSelectorDropdown.stories.js +1 -1
  189. package/es/components/pill-selector-dropdown/PillSelectorDropdown.stories.js.flow +1 -1
  190. package/es/components/pill-selector-dropdown/PillSelectorDropdown.stories.js.map +1 -1
  191. package/es/components/plain-button/PlainButton.stories.js +1 -1
  192. package/es/components/plain-button/PlainButton.stories.js.map +1 -1
  193. package/es/components/primary-button/PrimaryButton.stories.js +1 -1
  194. package/es/components/primary-button/PrimaryButton.stories.js.map +1 -1
  195. package/es/components/radar/RadarAnimation.stories.js +1 -1
  196. package/es/components/radar/RadarAnimation.stories.js.map +1 -1
  197. package/es/components/radio/stories/RadioButton.stories.js +1 -1
  198. package/es/components/radio/stories/RadioButton.stories.js.map +1 -1
  199. package/es/components/radio/stories/RadioGroup.stories.js +1 -1
  200. package/es/components/radio/stories/RadioGroup.stories.js.map +1 -1
  201. package/es/components/search-form/SearchActions.js +35 -0
  202. package/es/components/search-form/SearchActions.js.map +1 -0
  203. package/es/components/search-form/SearchForm.js +11 -39
  204. package/es/components/search-form/SearchForm.js.flow +10 -54
  205. package/es/components/search-form/SearchForm.js.map +1 -1
  206. package/es/components/search-form/messages.js +17 -0
  207. package/es/components/search-form/messages.js.map +1 -0
  208. package/es/components/section/Section.stories.js +1 -1
  209. package/es/components/section/Section.stories.js.map +1 -1
  210. package/es/components/select/Select.stories.js +1 -1
  211. package/es/components/select/Select.stories.js.flow +1 -1
  212. package/es/components/select/Select.stories.js.map +1 -1
  213. package/es/components/select-button/SelectButton.stories.js +1 -1
  214. package/es/components/select-button/SelectButton.stories.js.flow +1 -1
  215. package/es/components/select-button/SelectButton.stories.js.map +1 -1
  216. package/es/components/selector-dropdown/SelectorDropdown.stories.js +1 -1
  217. package/es/components/selector-dropdown/SelectorDropdown.stories.js.flow +1 -1
  218. package/es/components/selector-dropdown/SelectorDropdown.stories.js.map +1 -1
  219. package/es/components/sidebar-toggle-button/SidebarToggleButton.stories.js +1 -1
  220. package/es/components/sidebar-toggle-button/SidebarToggleButton.stories.js.flow +1 -1
  221. package/es/components/sidebar-toggle-button/SidebarToggleButton.stories.js.map +1 -1
  222. package/es/components/tab-view/TabView.stories.js +1 -1
  223. package/es/components/tab-view/TabView.stories.js.flow +1 -1
  224. package/es/components/tab-view/TabView.stories.js.map +1 -1
  225. package/es/components/text-input/TextInput.stories.js +1 -1
  226. package/es/components/text-input/TextInput.stories.js.flow +1 -1
  227. package/es/components/text-input/TextInput.stories.js.map +1 -1
  228. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.js +9 -3
  229. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.js.flow +9 -4
  230. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.js.map +1 -1
  231. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.stories.js +1 -1
  232. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.stories.js.flow +1 -1
  233. package/es/components/text-input-with-copy-button/TextInputWithCopyButton.stories.js.map +1 -1
  234. package/es/components/thumbnail-card/ThumbnailCard.stories.js +1 -1
  235. package/es/components/thumbnail-card/ThumbnailCard.stories.js.flow +1 -1
  236. package/es/components/thumbnail-card/ThumbnailCard.stories.js.map +1 -1
  237. package/es/components/time/ReadableTime.stories.js +1 -1
  238. package/es/components/time/ReadableTime.stories.js.flow +1 -1
  239. package/es/components/time/ReadableTime.stories.js.map +1 -1
  240. package/es/components/time-input/TimeInput.stories.js +1 -1
  241. package/es/components/time-input/TimeInput.stories.js.map +1 -1
  242. package/es/components/toggle/Toggle.stories.js +1 -1
  243. package/es/components/toggle/Toggle.stories.js.flow +1 -1
  244. package/es/components/toggle/Toggle.stories.js.map +1 -1
  245. package/es/components/tooltip/Tooltip.stories.js +1 -1
  246. package/es/components/tooltip/Tooltip.stories.js.map +1 -1
  247. package/es/constants.js +1 -0
  248. package/es/constants.js.flow +1 -0
  249. package/es/constants.js.map +1 -1
  250. package/es/elements/common/_variables.scss +1 -0
  251. package/es/elements/common/current-user/withCurrentUser.js +1 -0
  252. package/es/elements/common/current-user/withCurrentUser.js.map +1 -1
  253. package/es/elements/common/selectors/version.js +2 -1
  254. package/es/elements/common/selectors/version.js.flow +2 -1
  255. package/es/elements/common/selectors/version.js.map +1 -1
  256. package/es/elements/content-explorer/ContentExplorer.js +2 -0
  257. package/es/elements/content-explorer/ContentExplorer.js.flow +10 -4
  258. package/es/elements/content-explorer/ContentExplorer.js.map +1 -1
  259. package/es/elements/content-explorer/MoreOptions.js +1 -1
  260. package/es/elements/content-explorer/MoreOptions.js.flow +1 -1
  261. package/es/elements/content-explorer/MoreOptions.js.map +1 -1
  262. package/es/elements/content-explorer/PreviewDialog.js +0 -1
  263. package/es/elements/content-explorer/PreviewDialog.js.flow +0 -1
  264. package/es/elements/content-explorer/PreviewDialog.js.map +1 -1
  265. package/es/elements/content-explorer/stories/ContentExplorer.stories.js +25 -35
  266. package/es/elements/content-explorer/stories/ContentExplorer.stories.js.flow +25 -36
  267. package/es/elements/content-explorer/stories/ContentExplorer.stories.js.map +1 -1
  268. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +1 -1
  269. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.flow +1 -1
  270. package/es/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js.map +1 -1
  271. package/es/elements/content-explorer/stories/ShareDialog.stories.js +1 -1
  272. package/es/elements/content-explorer/stories/ShareDialog.stories.js.flow +1 -1
  273. package/es/elements/content-explorer/stories/ShareDialog.stories.js.map +1 -1
  274. package/es/elements/content-picker/ContentPicker.js +2 -2
  275. package/es/elements/content-picker/ContentPicker.js.flow +2 -2
  276. package/es/elements/content-picker/ContentPicker.js.map +1 -1
  277. package/es/elements/content-picker/Footer.scss +6 -0
  278. package/es/elements/content-preview/ContentPreview.js +20 -10
  279. package/es/elements/content-preview/ContentPreview.js.flow +88 -64
  280. package/es/elements/content-preview/ContentPreview.js.map +1 -1
  281. package/es/elements/content-preview/ContentPreview.scss +13 -28
  282. package/es/elements/content-preview/preview-header/PreviewHeader.js +8 -2
  283. package/es/elements/content-preview/preview-header/PreviewHeader.js.flow +6 -0
  284. package/es/elements/content-preview/preview-header/PreviewHeader.js.map +1 -1
  285. package/es/elements/content-preview/stories/ContentPreview.stories.js +32 -46
  286. package/es/elements/content-preview/stories/ContentPreview.stories.js.flow +51 -81
  287. package/es/elements/content-preview/stories/ContentPreview.stories.js.map +1 -1
  288. package/es/elements/content-sharing/stories/ContentSharing.stories.js +19 -63
  289. package/es/elements/content-sharing/stories/ContentSharing.stories.js.flow +18 -84
  290. package/es/elements/content-sharing/stories/ContentSharing.stories.js.map +1 -1
  291. package/es/elements/content-sidebar/ActivitySidebar.js +22 -17
  292. package/es/elements/content-sidebar/ActivitySidebar.js.flow +2 -2
  293. package/es/elements/content-sidebar/ActivitySidebar.js.map +1 -1
  294. package/es/elements/content-sidebar/ContentSidebar.scss +9 -9
  295. package/es/elements/content-sidebar/SidebarContent.scss +6 -8
  296. package/es/elements/content-sidebar/SidebarNav.scss +22 -20
  297. package/es/elements/content-sidebar/SidebarNavButton.scss +12 -14
  298. package/es/elements/content-sidebar/SidebarNavSignButton.scss +6 -8
  299. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +13 -1
  300. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.flow +20 -2
  301. package/es/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js.map +1 -1
  302. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.flow +7 -6
  303. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js.map +1 -1
  304. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.scss +6 -4
  305. package/es/elements/content-sidebar/activity-feed/activity-feed/ActivityItem.scss +2 -2
  306. package/es/elements/content-sidebar/activity-feed/activity-feed/stories/ActivityFeed.stories.js +61 -0
  307. package/es/elements/content-sidebar/activity-feed/activity-feed/stories/ActivityFeed.stories.js.flow +70 -0
  308. package/es/elements/content-sidebar/activity-feed/activity-feed/stories/ActivityFeed.stories.js.map +1 -0
  309. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.flow +2 -2
  310. package/es/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js.map +1 -1
  311. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationThread.js +11 -6
  312. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationThread.js.flow +3 -7
  313. package/es/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationThread.js.map +1 -1
  314. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +5 -1
  315. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.flow +3 -3
  316. package/es/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js.map +1 -1
  317. package/es/elements/content-sidebar/activity-feed/comment/BaseComment.js +50 -142
  318. package/es/elements/content-sidebar/activity-feed/comment/BaseComment.js.flow +59 -166
  319. package/es/elements/content-sidebar/activity-feed/comment/BaseComment.js.map +1 -1
  320. package/es/elements/content-sidebar/activity-feed/comment/BaseComment.scss +34 -12
  321. package/es/elements/content-sidebar/activity-feed/comment/CreateReply.js +6 -5
  322. package/es/elements/content-sidebar/activity-feed/comment/CreateReply.js.flow +5 -4
  323. package/es/elements/content-sidebar/activity-feed/comment/CreateReply.js.map +1 -1
  324. package/es/elements/content-sidebar/activity-feed/comment/Replies.scss +4 -2
  325. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.js +48 -0
  326. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.js.flow +72 -0
  327. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.js.map +1 -0
  328. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.scss +38 -0
  329. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.js +75 -0
  330. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.js.flow +125 -0
  331. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.js.map +1 -0
  332. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.scss +4 -0
  333. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenuWrapper.js +78 -0
  334. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenuWrapper.js.flow +91 -0
  335. package/es/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenuWrapper.js.map +1 -0
  336. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentInfo.stories.js +25 -0
  337. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentInfo.stories.js.flow +25 -0
  338. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentInfo.stories.js.map +1 -0
  339. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentMenu.stories.js +37 -0
  340. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentMenu.stories.js.flow +26 -0
  341. package/es/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentMenu.stories.js.map +1 -0
  342. package/es/elements/content-sidebar/activity-feed/comment/components/stories/common.js +23 -0
  343. package/es/elements/content-sidebar/activity-feed/comment/components/stories/common.js.flow +28 -0
  344. package/es/elements/content-sidebar/activity-feed/comment/components/stories/common.js.map +1 -0
  345. package/es/elements/content-sidebar/activity-feed/comment/messages.js +4 -4
  346. package/es/elements/content-sidebar/activity-feed/comment/messages.js.flow +5 -5
  347. package/es/elements/content-sidebar/activity-feed/comment/messages.js.map +1 -1
  348. package/es/elements/content-sidebar/activity-feed/comment/stories/BaseComment.stories.js +1 -1
  349. package/es/elements/content-sidebar/activity-feed/comment/stories/BaseComment.stories.js.flow +1 -1
  350. package/es/elements/content-sidebar/activity-feed/comment/stories/BaseComment.stories.js.map +1 -1
  351. package/es/elements/content-sidebar/activity-feed/comment/stories/common.js +1 -1
  352. package/es/elements/content-sidebar/activity-feed/comment/stories/common.js.flow +1 -1
  353. package/es/elements/content-sidebar/activity-feed/comment/stories/common.js.map +1 -1
  354. package/es/elements/content-sidebar/activity-feed/comment/types.js.flow +13 -0
  355. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +8 -4
  356. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.flow +11 -3
  357. package/es/elements/content-sidebar/activity-feed/comment-form/CommentForm.js.map +1 -1
  358. package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.js +2 -0
  359. package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.js.flow +2 -0
  360. package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.js.map +1 -1
  361. package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +1 -1
  362. package/es/elements/content-sidebar/activity-feed/task-new/Task.js +7 -3
  363. package/es/elements/content-sidebar/activity-feed/task-new/Task.js.flow +7 -2
  364. package/es/elements/content-sidebar/activity-feed/task-new/Task.js.map +1 -1
  365. package/es/elements/content-sidebar/activity-feed/task-new/messages.js +8 -0
  366. package/es/elements/content-sidebar/activity-feed/task-new/messages.js.flow +10 -0
  367. package/es/elements/content-sidebar/activity-feed/task-new/messages.js.map +1 -1
  368. package/es/elements/content-sidebar/stories/ContentSidebar.stories.js +18 -27
  369. package/es/elements/content-sidebar/stories/ContentSidebar.stories.js.flow +19 -28
  370. package/es/elements/content-sidebar/stories/ContentSidebar.stories.js.map +1 -1
  371. package/es/elements/content-sidebar/versions/VersionsItem.scss +6 -0
  372. package/es/elements/content-uploader/ItemName.scss +1 -1
  373. package/es/elements/content-uploader/ProgressBar.scss +4 -0
  374. package/es/elements/content-uploader/stories/ContentUploader.stories.js +6 -13
  375. package/es/elements/content-uploader/stories/ContentUploader.stories.js.flow +7 -11
  376. package/es/elements/content-uploader/stories/ContentUploader.stories.js.map +1 -1
  377. package/es/features/collaborator-avatars/CollaboratorList.scss +11 -1
  378. package/es/features/collapsible-sidebar/CollapsibleSidebar.stories.js +1 -1
  379. package/es/features/collapsible-sidebar/CollapsibleSidebar.stories.js.flow +1 -1
  380. package/es/features/collapsible-sidebar/CollapsibleSidebar.stories.js.map +1 -1
  381. package/es/features/content-answers/Answer.js +18 -0
  382. package/es/features/content-answers/Answer.js.map +1 -0
  383. package/es/features/content-answers/Answer.scss +4 -0
  384. package/es/features/content-answers/ContentAnswers.js +46 -0
  385. package/es/features/content-answers/ContentAnswers.js.map +1 -0
  386. package/es/features/content-answers/ContentAnswersGridCard.js +24 -0
  387. package/es/features/content-answers/ContentAnswersGridCard.js.map +1 -0
  388. package/es/features/content-answers/ContentAnswersGridCard.scss +26 -0
  389. package/es/features/content-answers/ContentAnswersModal.js +111 -0
  390. package/es/features/content-answers/ContentAnswersModal.js.map +1 -0
  391. package/es/features/content-answers/ContentAnswersModal.scss +56 -0
  392. package/es/features/content-answers/ContentAnswersModalContent.js +60 -0
  393. package/es/features/content-answers/ContentAnswersModalContent.js.map +1 -0
  394. package/es/features/content-answers/ContentAnswersModalContent.scss +12 -0
  395. package/es/features/content-answers/ContentAnswersModalError.js +23 -0
  396. package/es/features/content-answers/ContentAnswersModalError.js.map +1 -0
  397. package/es/features/content-answers/ContentAnswersModalError.scss +28 -0
  398. package/es/features/content-answers/ContentAnswersModalFooter.js +93 -0
  399. package/es/features/content-answers/ContentAnswersModalFooter.js.map +1 -0
  400. package/es/features/content-answers/ContentAnswersModalFooter.scss +42 -0
  401. package/es/features/content-answers/ContentAnswersModalFooterActions.js +38 -0
  402. package/es/features/content-answers/ContentAnswersModalFooterActions.js.map +1 -0
  403. package/es/features/content-answers/ContentAnswersModalFooterActions.scss +17 -0
  404. package/es/features/content-answers/ContentAnswersOpenButton.js +69 -0
  405. package/es/features/content-answers/ContentAnswersOpenButton.js.map +1 -0
  406. package/es/features/content-answers/ContentAnswersOpenButton.scss +54 -0
  407. package/es/features/content-answers/InlineError.js +29 -0
  408. package/es/features/content-answers/InlineError.js.map +1 -0
  409. package/es/features/content-answers/InlineError.scss +39 -0
  410. package/es/features/content-answers/LoadingElement.js +17 -0
  411. package/es/features/content-answers/LoadingElement.js.map +1 -0
  412. package/es/features/content-answers/LoadingElement.scss +4 -0
  413. package/es/features/content-answers/Question.js +27 -0
  414. package/es/features/content-answers/Question.js.map +1 -0
  415. package/es/features/content-answers/Question.scss +16 -0
  416. package/es/features/content-answers/WelcomeMessage.js +32 -0
  417. package/es/features/content-answers/WelcomeMessage.js.map +1 -0
  418. package/es/features/content-answers/WelcomeMessage.scss +25 -0
  419. package/es/features/content-answers/constants.js +10 -0
  420. package/es/features/content-answers/constants.js.map +1 -0
  421. package/es/features/content-answers/index.js +2 -0
  422. package/es/features/content-answers/index.js.map +1 -0
  423. package/es/features/content-answers/messages.js +69 -0
  424. package/es/features/content-answers/messages.js.map +1 -0
  425. package/es/features/content-explorer/content-explorer/ContentExplorer.js +21 -12
  426. package/es/features/content-explorer/content-explorer/ContentExplorer.js.flow +19 -15
  427. package/es/features/content-explorer/content-explorer/ContentExplorer.js.map +1 -1
  428. package/es/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
  429. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +1 -0
  430. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.flow +2 -0
  431. package/es/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js.map +1 -1
  432. package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.flow +1 -0
  433. package/es/features/content-explorer/content-explorer-modal/ContentExplorerModal.js.map +1 -1
  434. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +3 -0
  435. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.flow +2 -0
  436. package/es/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js.map +1 -1
  437. package/es/features/pagination/Pagination.scss +0 -4
  438. package/es/features/sandbox-banner/SandboxBanner.stories.js +1 -1
  439. package/es/features/sandbox-banner/SandboxBanner.stories.js.map +1 -1
  440. package/es/features/security-cloud-game/stories/SecurityCloudGame.stories.js +1 -1
  441. package/es/features/security-cloud-game/stories/SecurityCloudGame.stories.js.flow +1 -1
  442. package/es/features/security-cloud-game/stories/SecurityCloudGame.stories.js.map +1 -1
  443. package/es/features/shared-link-modal/stories/SharedLink.stories.js +1 -1
  444. package/es/features/shared-link-modal/stories/SharedLink.stories.js.flow +1 -1
  445. package/es/features/shared-link-modal/stories/SharedLink.stories.js.map +1 -1
  446. package/es/features/shared-link-modal/stories/SharedLinkModal.stories.js +1 -1
  447. package/es/features/shared-link-modal/stories/SharedLinkModal.stories.js.flow +1 -1
  448. package/es/features/shared-link-modal/stories/SharedLinkModal.stories.js.map +1 -1
  449. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.stories.js +1 -1
  450. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.stories.js.flow +1 -1
  451. package/es/features/shared-link-settings-modal/SharedLinkSettingsModal.stories.js.map +1 -1
  452. package/es/features/targeting/hocs/withTargetedClickThrough.js +13 -3
  453. package/es/features/targeting/hocs/withTargetedClickThrough.js.flow +10 -1
  454. package/es/features/targeting/hocs/withTargetedClickThrough.js.map +1 -1
  455. package/es/features/targeting/types.js.flow +1 -0
  456. package/es/features/targeting/types.js.map +1 -1
  457. package/es/features/unified-share-modal/UnifiedShareModal.scss +61 -79
  458. package/es/features/unified-share-modal/stories/UnifiedShareModal.stories.js +1 -1
  459. package/es/features/unified-share-modal/stories/UnifiedShareModal.stories.js.flow +1 -1
  460. package/es/features/unified-share-modal/stories/UnifiedShareModal.stories.js.map +1 -1
  461. package/es/features/virtualized-table/DraggableVirtualizedTable.stories.js +1 -1
  462. package/es/features/virtualized-table/DraggableVirtualizedTable.stories.js.flow +1 -1
  463. package/es/features/virtualized-table/DraggableVirtualizedTable.stories.js.map +1 -1
  464. package/es/icon/content/ContentSharing32.stories.js +1 -1
  465. package/es/icon/content/ContentSharing32.stories.js.map +1 -1
  466. package/es/icon/content/CustomSetup32.stories.js +1 -1
  467. package/es/icon/content/CustomSetup32.stories.js.map +1 -1
  468. package/es/icon/content/DeviceTrust32.stories.js +1 -1
  469. package/es/icon/content/DeviceTrust32.stories.js.map +1 -1
  470. package/es/icon/content/FileAudio32.stories.js +1 -1
  471. package/es/icon/content/FileAudio32.stories.js.map +1 -1
  472. package/es/icon/content/FileBookmark32.stories.js +1 -1
  473. package/es/icon/content/FileBookmark32.stories.js.map +1 -1
  474. package/es/icon/content/FileBoxNote32.stories.js +1 -1
  475. package/es/icon/content/FileBoxNote32.stories.js.map +1 -1
  476. package/es/icon/content/FileCanvas32.stories.js +1 -1
  477. package/es/icon/content/FileCanvas32.stories.js.map +1 -1
  478. package/es/icon/content/FileCode32.stories.js +1 -1
  479. package/es/icon/content/FileCode32.stories.js.map +1 -1
  480. package/es/icon/content/FileDefault32.stories.js +1 -1
  481. package/es/icon/content/FileDefault32.stories.js.map +1 -1
  482. package/es/icon/content/FileDicom32.stories.js +1 -1
  483. package/es/icon/content/FileDicom32.stories.js.map +1 -1
  484. package/es/icon/content/FileDocs32.stories.js +1 -1
  485. package/es/icon/content/FileDocs32.stories.js.map +1 -1
  486. package/es/icon/content/FileDwg32.stories.js +1 -1
  487. package/es/icon/content/FileDwg32.stories.js.map +1 -1
  488. package/es/icon/content/FileExcel32.stories.js +1 -1
  489. package/es/icon/content/FileExcel32.stories.js.map +1 -1
  490. package/es/icon/content/FileIllustrator32.stories.js +1 -1
  491. package/es/icon/content/FileIllustrator32.stories.js.map +1 -1
  492. package/es/icon/content/FileImage32.stories.js +1 -1
  493. package/es/icon/content/FileImage32.stories.js.map +1 -1
  494. package/es/icon/content/FileIndesign32.stories.js +1 -1
  495. package/es/icon/content/FileIndesign32.stories.js.map +1 -1
  496. package/es/icon/content/FileKeynote32.stories.js +1 -1
  497. package/es/icon/content/FileKeynote32.stories.js.map +1 -1
  498. package/es/icon/content/FileNumbers32.stories.js +1 -1
  499. package/es/icon/content/FileNumbers32.stories.js.map +1 -1
  500. package/es/icon/content/FilePages32.stories.js +1 -1
  501. package/es/icon/content/FilePages32.stories.js.map +1 -1
  502. package/es/icon/content/FilePdf32.stories.js +1 -1
  503. package/es/icon/content/FilePdf32.stories.js.map +1 -1
  504. package/es/icon/content/FilePhotoshop32.stories.js +1 -1
  505. package/es/icon/content/FilePhotoshop32.stories.js.map +1 -1
  506. package/es/icon/content/FilePowerpoint32.stories.js +1 -1
  507. package/es/icon/content/FilePowerpoint32.stories.js.map +1 -1
  508. package/es/icon/content/FilePresentation32.stories.js +1 -1
  509. package/es/icon/content/FilePresentation32.stories.js.map +1 -1
  510. package/es/icon/content/FileSheets32.stories.js +1 -1
  511. package/es/icon/content/FileSheets32.stories.js.map +1 -1
  512. package/es/icon/content/FileSlides32.stories.js +1 -1
  513. package/es/icon/content/FileSlides32.stories.js.map +1 -1
  514. package/es/icon/content/FileSpreadsheet32.stories.js +1 -1
  515. package/es/icon/content/FileSpreadsheet32.stories.js.map +1 -1
  516. package/es/icon/content/FileText32.stories.js +1 -1
  517. package/es/icon/content/FileText32.stories.js.map +1 -1
  518. package/es/icon/content/FileThreeD32.stories.js +1 -1
  519. package/es/icon/content/FileThreeD32.stories.js.map +1 -1
  520. package/es/icon/content/FileUpload32.stories.js +1 -1
  521. package/es/icon/content/FileUpload32.stories.js.map +1 -1
  522. package/es/icon/content/FileVector32.stories.js +1 -1
  523. package/es/icon/content/FileVector32.stories.js.map +1 -1
  524. package/es/icon/content/FileVideo32.stories.js +1 -1
  525. package/es/icon/content/FileVideo32.stories.js.map +1 -1
  526. package/es/icon/content/FileWord32.stories.js +1 -1
  527. package/es/icon/content/FileWord32.stories.js.map +1 -1
  528. package/es/icon/content/FileXbd32.stories.js +1 -1
  529. package/es/icon/content/FileXbd32.stories.js.map +1 -1
  530. package/es/icon/content/FileXdw32.stories.js +1 -1
  531. package/es/icon/content/FileXdw32.stories.js.map +1 -1
  532. package/es/icon/content/FileZip32.stories.js +1 -1
  533. package/es/icon/content/FileZip32.stories.js.map +1 -1
  534. package/es/icon/content/FolderExternal32.stories.js +1 -1
  535. package/es/icon/content/FolderExternal32.stories.js.map +1 -1
  536. package/es/icon/content/FolderPersonal32.stories.js +1 -1
  537. package/es/icon/content/FolderPersonal32.stories.js.map +1 -1
  538. package/es/icon/content/FolderShared32.stories.js +1 -1
  539. package/es/icon/content/FolderShared32.stories.js.map +1 -1
  540. package/es/icon/content/FolderUpload32.stories.js +1 -1
  541. package/es/icon/content/FolderUpload32.stories.js.map +1 -1
  542. package/es/icon/content/Mobile32.stories.js +1 -1
  543. package/es/icon/content/Mobile32.stories.js.map +1 -1
  544. package/es/icon/content/Notifications32.stories.js +1 -1
  545. package/es/icon/content/Notifications32.stories.js.map +1 -1
  546. package/es/icon/content/PlatformCam32.stories.js +1 -1
  547. package/es/icon/content/PlatformCam32.stories.js.map +1 -1
  548. package/es/icon/content/PlatformSandbox32.stories.js +1 -1
  549. package/es/icon/content/PlatformSandbox32.stories.js.map +1 -1
  550. package/es/icon/content/RetentionPolicyModifiable32.stories.js +1 -1
  551. package/es/icon/content/RetentionPolicyModifiable32.stories.js.map +1 -1
  552. package/es/icon/content/RetentionPolicyNonModifiable32.stories.js +1 -1
  553. package/es/icon/content/RetentionPolicyNonModifiable32.stories.js.map +1 -1
  554. package/es/icon/content/Security32.stories.js +1 -1
  555. package/es/icon/content/Security32.stories.js.map +1 -1
  556. package/es/icon/content/SignRequest32.stories.js +1 -1
  557. package/es/icon/content/SignRequest32.stories.js.map +1 -1
  558. package/es/icon/content/UserSettings32.stories.js +1 -1
  559. package/es/icon/content/UserSettings32.stories.js.map +1 -1
  560. package/es/icon/content/Workflow32.stories.js +1 -1
  561. package/es/icon/content/Workflow32.stories.js.map +1 -1
  562. package/es/icon/content/WorkflowTemplate32.stories.js +1 -1
  563. package/es/icon/content/WorkflowTemplate32.stories.js.map +1 -1
  564. package/es/icon/fill/Activity16.stories.js +1 -1
  565. package/es/icon/fill/Activity16.stories.js.map +1 -1
  566. package/es/icon/fill/Activity20.stories.js +1 -1
  567. package/es/icon/fill/Activity20.stories.js.map +1 -1
  568. package/es/icon/fill/Alert16.stories.js +1 -1
  569. package/es/icon/fill/Alert16.stories.js.map +1 -1
  570. package/es/icon/fill/AlertBadge16.stories.js +1 -1
  571. package/es/icon/fill/AlertBadge16.stories.js.map +1 -1
  572. package/es/icon/fill/AnnotationsDrawing16.stories.js +1 -1
  573. package/es/icon/fill/AnnotationsDrawing16.stories.js.map +1 -1
  574. package/es/icon/fill/AnnotationsHighlight16.stories.js +1 -1
  575. package/es/icon/fill/AnnotationsHighlight16.stories.js.map +1 -1
  576. package/es/icon/fill/AnnotationsRegion16.stories.js +1 -1
  577. package/es/icon/fill/AnnotationsRegion16.stories.js.map +1 -1
  578. package/es/icon/fill/Apps16.stories.js +1 -1
  579. package/es/icon/fill/Apps16.stories.js.map +1 -1
  580. package/es/icon/fill/Arrow16.stories.js +1 -1
  581. package/es/icon/fill/Arrow16.stories.js.map +1 -1
  582. package/es/icon/fill/ArrowArcRight.stories.js +1 -1
  583. package/es/icon/fill/ArrowArcRight.stories.js.map +1 -1
  584. package/es/icon/fill/ArrowForward16.stories.js +1 -1
  585. package/es/icon/fill/ArrowForward16.stories.js.map +1 -1
  586. package/es/icon/fill/ArrowSort16.stories.js +1 -1
  587. package/es/icon/fill/ArrowSort16.stories.js.map +1 -1
  588. package/es/icon/fill/AvatarBadge16.stories.js +1 -1
  589. package/es/icon/fill/AvatarBadge16.stories.js.map +1 -1
  590. package/es/icon/fill/BarChart16.stories.js +1 -1
  591. package/es/icon/fill/BarChart16.stories.js.map +1 -1
  592. package/es/icon/fill/BoxDev16.stories.js +1 -1
  593. package/es/icon/fill/BoxDev16.stories.js.map +1 -1
  594. package/es/icon/fill/BoxNotes16.stories.js +1 -1
  595. package/es/icon/fill/BoxNotes16.stories.js.map +1 -1
  596. package/es/icon/fill/Calendar16.stories.js +1 -1
  597. package/es/icon/fill/Calendar16.stories.js.map +1 -1
  598. package/es/icon/fill/Caret8.stories.js +1 -1
  599. package/es/icon/fill/Caret8.stories.js.map +1 -1
  600. package/es/icon/fill/CaretBadge16.stories.js +1 -1
  601. package/es/icon/fill/CaretBadge16.stories.js.map +1 -1
  602. package/es/icon/fill/Checkmark16.stories.js +1 -1
  603. package/es/icon/fill/Checkmark16.stories.js.map +1 -1
  604. package/es/icon/fill/CheckmarkBadge16.stories.js +1 -1
  605. package/es/icon/fill/CheckmarkBadge16.stories.js.map +1 -1
  606. package/es/icon/fill/CircleBackButton24.stories.js +1 -1
  607. package/es/icon/fill/CircleBackButton24.stories.js.map +1 -1
  608. package/es/icon/fill/CircleCloseButton24.stories.js +1 -1
  609. package/es/icon/fill/CircleCloseButton24.stories.js.map +1 -1
  610. package/es/icon/fill/Classify16.stories.js +1 -1
  611. package/es/icon/fill/Classify16.stories.js.map +1 -1
  612. package/es/icon/fill/ClearBadge16.stories.js +1 -1
  613. package/es/icon/fill/ClearBadge16.stories.js.map +1 -1
  614. package/es/icon/fill/ClockBadge16.stories.js +1 -1
  615. package/es/icon/fill/ClockBadge16.stories.js.map +1 -1
  616. package/es/icon/fill/CloudUpload16.stories.js +1 -1
  617. package/es/icon/fill/CloudUpload16.stories.js.map +1 -1
  618. package/es/icon/fill/Code16.stories.js +1 -1
  619. package/es/icon/fill/Code16.stories.js.map +1 -1
  620. package/es/icon/fill/Collection16.stories.js +1 -1
  621. package/es/icon/fill/Collection16.stories.js.map +1 -1
  622. package/es/icon/fill/CollectionBolt16.stories.js +1 -1
  623. package/es/icon/fill/CollectionBolt16.stories.js.map +1 -1
  624. package/es/icon/fill/CollectionPlus16.stories.js +1 -1
  625. package/es/icon/fill/CollectionPlus16.stories.js.map +1 -1
  626. package/es/icon/fill/CollectionStar16.stories.js +1 -1
  627. package/es/icon/fill/CollectionStar16.stories.js.map +1 -1
  628. package/es/icon/fill/CreditCard16.stories.js +1 -1
  629. package/es/icon/fill/CreditCard16.stories.js.map +1 -1
  630. package/es/icon/fill/Download16.stories.js +1 -1
  631. package/es/icon/fill/Download16.stories.js.map +1 -1
  632. package/es/icon/fill/EmailNotification16.stories.js +1 -1
  633. package/es/icon/fill/EmailNotification16.stories.js.map +1 -1
  634. package/es/icon/fill/ExportArrow16.stories.js +1 -1
  635. package/es/icon/fill/ExportArrow16.stories.js.map +1 -1
  636. package/es/icon/fill/Feed16.stories.js +1 -1
  637. package/es/icon/fill/Feed16.stories.js.map +1 -1
  638. package/es/icon/fill/FileAudio16.stories.js +1 -1
  639. package/es/icon/fill/FileAudio16.stories.js.map +1 -1
  640. package/es/icon/fill/FileBookmark16.stories.js +1 -1
  641. package/es/icon/fill/FileBookmark16.stories.js.map +1 -1
  642. package/es/icon/fill/FileBoxNote16.stories.js +1 -1
  643. package/es/icon/fill/FileBoxNote16.stories.js.map +1 -1
  644. package/es/icon/fill/FileCanvas16.stories.js +1 -1
  645. package/es/icon/fill/FileCanvas16.stories.js.map +1 -1
  646. package/es/icon/fill/FileCode16.stories.js +1 -1
  647. package/es/icon/fill/FileCode16.stories.js.map +1 -1
  648. package/es/icon/fill/FileCopy16.stories.js +1 -1
  649. package/es/icon/fill/FileCopy16.stories.js.map +1 -1
  650. package/es/icon/fill/FileDefault16.stories.js +1 -1
  651. package/es/icon/fill/FileDefault16.stories.js.map +1 -1
  652. package/es/icon/fill/FileDicom16.stories.js +1 -1
  653. package/es/icon/fill/FileDicom16.stories.js.map +1 -1
  654. package/es/icon/fill/FileDocs16.stories.js +1 -1
  655. package/es/icon/fill/FileDocs16.stories.js.map +1 -1
  656. package/es/icon/fill/FileDwg16.stories.js +1 -1
  657. package/es/icon/fill/FileDwg16.stories.js.map +1 -1
  658. package/es/icon/fill/FileExcel16.stories.js +1 -1
  659. package/es/icon/fill/FileExcel16.stories.js.map +1 -1
  660. package/es/icon/fill/FileIllustrator16.stories.js +1 -1
  661. package/es/icon/fill/FileIllustrator16.stories.js.map +1 -1
  662. package/es/icon/fill/FileImage16.stories.js +1 -1
  663. package/es/icon/fill/FileImage16.stories.js.map +1 -1
  664. package/es/icon/fill/FileIndesign16.stories.js +1 -1
  665. package/es/icon/fill/FileIndesign16.stories.js.map +1 -1
  666. package/es/icon/fill/FileKeynote16.stories.js +1 -1
  667. package/es/icon/fill/FileKeynote16.stories.js.map +1 -1
  668. package/es/icon/fill/FileNumbers16.stories.js +1 -1
  669. package/es/icon/fill/FileNumbers16.stories.js.map +1 -1
  670. package/es/icon/fill/FilePages16.stories.js +1 -1
  671. package/es/icon/fill/FilePages16.stories.js.map +1 -1
  672. package/es/icon/fill/FilePdf16.stories.js +1 -1
  673. package/es/icon/fill/FilePdf16.stories.js.map +1 -1
  674. package/es/icon/fill/FilePhotoshop16.stories.js +1 -1
  675. package/es/icon/fill/FilePhotoshop16.stories.js.map +1 -1
  676. package/es/icon/fill/FilePowerpoint16.stories.js +1 -1
  677. package/es/icon/fill/FilePowerpoint16.stories.js.map +1 -1
  678. package/es/icon/fill/FilePresentation16.stories.js +1 -1
  679. package/es/icon/fill/FilePresentation16.stories.js.map +1 -1
  680. package/es/icon/fill/FileSheets16.stories.js +1 -1
  681. package/es/icon/fill/FileSheets16.stories.js.map +1 -1
  682. package/es/icon/fill/FileSlides16.stories.js +1 -1
  683. package/es/icon/fill/FileSlides16.stories.js.map +1 -1
  684. package/es/icon/fill/FileSpreadsheet16.stories.js +1 -1
  685. package/es/icon/fill/FileSpreadsheet16.stories.js.map +1 -1
  686. package/es/icon/fill/FileText16.stories.js +1 -1
  687. package/es/icon/fill/FileText16.stories.js.map +1 -1
  688. package/es/icon/fill/FileThreeD16.stories.js +1 -1
  689. package/es/icon/fill/FileThreeD16.stories.js.map +1 -1
  690. package/es/icon/fill/FileVector16.stories.js +1 -1
  691. package/es/icon/fill/FileVector16.stories.js.map +1 -1
  692. package/es/icon/fill/FileVideo16.stories.js +1 -1
  693. package/es/icon/fill/FileVideo16.stories.js.map +1 -1
  694. package/es/icon/fill/FileWord16.stories.js +1 -1
  695. package/es/icon/fill/FileWord16.stories.js.map +1 -1
  696. package/es/icon/fill/FileZip16.stories.js +1 -1
  697. package/es/icon/fill/FileZip16.stories.js.map +1 -1
  698. package/es/icon/fill/Filter16.stories.js +1 -1
  699. package/es/icon/fill/Filter16.stories.js.map +1 -1
  700. package/es/icon/fill/Folder16.stories.js +1 -1
  701. package/es/icon/fill/Folder16.stories.js.map +1 -1
  702. package/es/icon/fill/FolderExternal16.stories.js +1 -1
  703. package/es/icon/fill/FolderExternal16.stories.js.map +1 -1
  704. package/es/icon/fill/FolderPersonal16.stories.js +1 -1
  705. package/es/icon/fill/FolderPersonal16.stories.js.map +1 -1
  706. package/es/icon/fill/FolderShared16.stories.js +1 -1
  707. package/es/icon/fill/FolderShared16.stories.js.map +1 -1
  708. package/es/icon/fill/Gear16.stories.js +1 -1
  709. package/es/icon/fill/Gear16.stories.js.map +1 -1
  710. package/es/icon/fill/GlobeBadge16.stories.js +1 -1
  711. package/es/icon/fill/GlobeBadge16.stories.js.map +1 -1
  712. package/es/icon/fill/Hamburger20.stories.js +1 -1
  713. package/es/icon/fill/Hamburger20.stories.js.map +1 -1
  714. package/es/icon/fill/Help20.stories.js +1 -1
  715. package/es/icon/fill/Help20.stories.js.map +1 -1
  716. package/es/icon/fill/InProgress16.stories.js +1 -1
  717. package/es/icon/fill/InProgress16.stories.js.map +1 -1
  718. package/es/icon/fill/Info16.stories.js +1 -1
  719. package/es/icon/fill/Info16.stories.js.map +1 -1
  720. package/es/icon/fill/InfoBadge16.stories.js +1 -1
  721. package/es/icon/fill/InfoBadge16.stories.js.map +1 -1
  722. package/es/icon/fill/LightningBolt16.stories.js +1 -1
  723. package/es/icon/fill/LightningBolt16.stories.js.map +1 -1
  724. package/es/icon/fill/Lock16.stories.js +1 -1
  725. package/es/icon/fill/Lock16.stories.js.map +1 -1
  726. package/es/icon/fill/Megaphone20.stories.js +1 -1
  727. package/es/icon/fill/Megaphone20.stories.js.map +1 -1
  728. package/es/icon/fill/Minus16.stories.js +1 -1
  729. package/es/icon/fill/Minus16.stories.js.map +1 -1
  730. package/es/icon/fill/Move16.stories.js +1 -1
  731. package/es/icon/fill/Move16.stories.js.map +1 -1
  732. package/es/icon/fill/MoveCopy16.stories.js +1 -1
  733. package/es/icon/fill/MoveCopy16.stories.js.map +1 -1
  734. package/es/icon/fill/Overflow16.stories.js +1 -1
  735. package/es/icon/fill/Overflow16.stories.js.map +1 -1
  736. package/es/icon/fill/PaperAirplane16.stories.js +1 -1
  737. package/es/icon/fill/PaperAirplane16.stories.js.map +1 -1
  738. package/es/icon/fill/Pencil16.stories.js +1 -1
  739. package/es/icon/fill/Pencil16.stories.js.map +1 -1
  740. package/es/icon/fill/Picture16.stories.js +1 -1
  741. package/es/icon/fill/Picture16.stories.js.map +1 -1
  742. package/es/icon/fill/Plus16.stories.js +1 -1
  743. package/es/icon/fill/Plus16.stories.js.map +1 -1
  744. package/es/icon/fill/PlusBadge16.stories.js +1 -1
  745. package/es/icon/fill/PlusBadge16.stories.js.map +1 -1
  746. package/es/icon/fill/PointerChevronDown24.stories.js +1 -1
  747. package/es/icon/fill/PointerChevronDown24.stories.js.map +1 -1
  748. package/es/icon/fill/Printer16.stories.js +1 -1
  749. package/es/icon/fill/Printer16.stories.js.map +1 -1
  750. package/es/icon/fill/Relay16.stories.js +1 -1
  751. package/es/icon/fill/Relay16.stories.js.map +1 -1
  752. package/es/icon/fill/RelayClassic16.stories.js +1 -1
  753. package/es/icon/fill/RelayClassic16.stories.js.map +1 -1
  754. package/es/icon/fill/Ribbon16.stories.js +1 -1
  755. package/es/icon/fill/Ribbon16.stories.js.map +1 -1
  756. package/es/icon/fill/Scribble16.stories.js +1 -1
  757. package/es/icon/fill/Scribble16.stories.js.map +1 -1
  758. package/es/icon/fill/Search16.stories.js +1 -1
  759. package/es/icon/fill/Search16.stories.js.map +1 -1
  760. package/es/icon/fill/Sign16.stories.js +1 -1
  761. package/es/icon/fill/Sign16.stories.js.map +1 -1
  762. package/es/icon/fill/SignFieldCheckBox16.stories.js +1 -1
  763. package/es/icon/fill/SignFieldCheckBox16.stories.js.map +1 -1
  764. package/es/icon/fill/SignFieldSignature16.stories.js +1 -1
  765. package/es/icon/fill/SignFieldSignature16.stories.js.map +1 -1
  766. package/es/icon/fill/SignFieldTextInput16.stories.js +1 -1
  767. package/es/icon/fill/SignFieldTextInput16.stories.js.map +1 -1
  768. package/es/icon/fill/SignMe32.stories.js +1 -1
  769. package/es/icon/fill/SignMe32.stories.js.map +1 -1
  770. package/es/icon/fill/SignMeOthers32.stories.js +1 -1
  771. package/es/icon/fill/SignMeOthers32.stories.js.map +1 -1
  772. package/es/icon/fill/SignOthers32.stories.js +1 -1
  773. package/es/icon/fill/SignOthers32.stories.js.map +1 -1
  774. package/es/icon/fill/Skills16.stories.js +1 -1
  775. package/es/icon/fill/Skills16.stories.js.map +1 -1
  776. package/es/icon/fill/Tag16.stories.js +1 -1
  777. package/es/icon/fill/Tag16.stories.js.map +1 -1
  778. package/es/icon/fill/Task16.stories.js +1 -1
  779. package/es/icon/fill/Task16.stories.js.map +1 -1
  780. package/es/icon/fill/Trash16.stories.js +1 -1
  781. package/es/icon/fill/Trash16.stories.js.map +1 -1
  782. package/es/icon/fill/TwoPeople16.stories.js +1 -1
  783. package/es/icon/fill/TwoPeople16.stories.js.map +1 -1
  784. package/es/icon/fill/Upload16.stories.js +1 -1
  785. package/es/icon/fill/Upload16.stories.js.map +1 -1
  786. package/es/icon/fill/UserSettings16.stories.js +1 -1
  787. package/es/icon/fill/UserSettings16.stories.js.map +1 -1
  788. package/es/icon/fill/Workflow16.stories.js +1 -1
  789. package/es/icon/fill/Workflow16.stories.js.map +1 -1
  790. package/es/icon/fill/X16.stories.js +1 -1
  791. package/es/icon/fill/X16.stories.js.map +1 -1
  792. package/es/icon/line/AlarmClock16.stories.js +1 -1
  793. package/es/icon/line/AlarmClock16.stories.js.map +1 -1
  794. package/es/icon/line/AlertBubble16.stories.js +1 -1
  795. package/es/icon/line/AlertBubble16.stories.js.map +1 -1
  796. package/es/icon/line/Apps16.stories.js +1 -1
  797. package/es/icon/line/Apps16.stories.js.map +1 -1
  798. package/es/icon/line/ArrowBoxRight16.stories.js +1 -1
  799. package/es/icon/line/ArrowBoxRight16.stories.js.map +1 -1
  800. package/es/icon/line/Avatar16.stories.js +1 -1
  801. package/es/icon/line/Avatar16.stories.js.map +1 -1
  802. package/es/icon/line/AvatarBadge16.stories.js +1 -1
  803. package/es/icon/line/AvatarBadge16.stories.js.map +1 -1
  804. package/es/icon/line/AvatarPlusBadge16.stories.js +1 -1
  805. package/es/icon/line/AvatarPlusBadge16.stories.js.map +1 -1
  806. package/es/icon/line/AvatarXBadge16.stories.js +1 -1
  807. package/es/icon/line/AvatarXBadge16.stories.js.map +1 -1
  808. package/es/icon/line/BoxAi.stories.js +1 -1
  809. package/es/icon/line/BoxAi.stories.js.map +1 -1
  810. package/es/icon/line/BoxDev16.stories.js +1 -1
  811. package/es/icon/line/BoxDev16.stories.js.map +1 -1
  812. package/es/icon/line/Bug16.stories.js +1 -1
  813. package/es/icon/line/Bug16.stories.js.map +1 -1
  814. package/es/icon/line/Checkmark16.stories.js +1 -1
  815. package/es/icon/line/Checkmark16.stories.js.map +1 -1
  816. package/es/icon/line/CheckmarkBadge16.stories.js +1 -1
  817. package/es/icon/line/CheckmarkBadge16.stories.js.map +1 -1
  818. package/es/icon/line/CircleCheck16.stories.js +1 -1
  819. package/es/icon/line/CircleCheck16.stories.js.map +1 -1
  820. package/es/icon/line/CircleX16.stories.js +1 -1
  821. package/es/icon/line/CircleX16.stories.js.map +1 -1
  822. package/es/icon/line/ClassificationBadge16.stories.js +1 -1
  823. package/es/icon/line/ClassificationBadge16.stories.js.map +1 -1
  824. package/es/icon/line/ClockArrow16.stories.js +1 -1
  825. package/es/icon/line/ClockArrow16.stories.js.map +1 -1
  826. package/es/icon/line/ClockBadge16.stories.js +1 -1
  827. package/es/icon/line/ClockBadge16.stories.js.map +1 -1
  828. package/es/icon/line/CloudWithArrow16.stories.js +1 -1
  829. package/es/icon/line/CloudWithArrow16.stories.js.map +1 -1
  830. package/es/icon/line/CoAuthoringBadge16.stories.js +1 -1
  831. package/es/icon/line/CoAuthoringBadge16.stories.js.map +1 -1
  832. package/es/icon/line/CoEdit16.stories.js +1 -1
  833. package/es/icon/line/CoEdit16.stories.js.map +1 -1
  834. package/es/icon/line/Collaborations16.stories.js +1 -1
  835. package/es/icon/line/Collaborations16.stories.js.map +1 -1
  836. package/es/icon/line/Collection16.stories.js +1 -1
  837. package/es/icon/line/Collection16.stories.js.map +1 -1
  838. package/es/icon/line/CollectionBolt16.stories.js +1 -1
  839. package/es/icon/line/CollectionBolt16.stories.js.map +1 -1
  840. package/es/icon/line/CollectionPlus16.stories.js +1 -1
  841. package/es/icon/line/CollectionPlus16.stories.js.map +1 -1
  842. package/es/icon/line/CollectionStar16.stories.js +1 -1
  843. package/es/icon/line/CollectionStar16.stories.js.map +1 -1
  844. package/es/icon/line/CommentBubble16.stories.js +1 -1
  845. package/es/icon/line/CommentBubble16.stories.js.map +1 -1
  846. package/es/icon/line/CrosshairRegion32.stories.js +1 -1
  847. package/es/icon/line/CrosshairRegion32.stories.js.map +1 -1
  848. package/es/icon/line/DocInfo16.stories.js +1 -1
  849. package/es/icon/line/DocInfo16.stories.js.map +1 -1
  850. package/es/icon/line/Download16.stories.js +1 -1
  851. package/es/icon/line/Download16.stories.js.map +1 -1
  852. package/es/icon/line/Email16.stories.js +1 -1
  853. package/es/icon/line/Email16.stories.js.map +1 -1
  854. package/es/icon/line/EmailAddress16.stories.js +1 -1
  855. package/es/icon/line/EmailAddress16.stories.js.map +1 -1
  856. package/es/icon/line/EnvelopeBadge16.stories.js +1 -1
  857. package/es/icon/line/EnvelopeBadge16.stories.js.map +1 -1
  858. package/es/icon/line/ExclamationMarkBadge16.stories.js +1 -1
  859. package/es/icon/line/ExclamationMarkBadge16.stories.js.map +1 -1
  860. package/es/icon/line/ExportArrow16.stories.js +1 -1
  861. package/es/icon/line/ExportArrow16.stories.js.map +1 -1
  862. package/es/icon/line/FileDescription16.stories.js +1 -1
  863. package/es/icon/line/FileDescription16.stories.js.map +1 -1
  864. package/es/icon/line/Folder16.stories.js +1 -1
  865. package/es/icon/line/Folder16.stories.js.map +1 -1
  866. package/es/icon/line/Gear16.stories.js +1 -1
  867. package/es/icon/line/Gear16.stories.js.map +1 -1
  868. package/es/icon/line/GenericCopy16.stories.js +1 -1
  869. package/es/icon/line/GenericCopy16.stories.js.map +1 -1
  870. package/es/icon/line/GlobeBadge16.stories.js +1 -1
  871. package/es/icon/line/GlobeBadge16.stories.js.map +1 -1
  872. package/es/icon/line/Help16.stories.js +1 -1
  873. package/es/icon/line/Help16.stories.js.map +1 -1
  874. package/es/icon/line/Hidden16.stories.js +1 -1
  875. package/es/icon/line/Hidden16.stories.js.map +1 -1
  876. package/es/icon/line/History16.stories.js +1 -1
  877. package/es/icon/line/History16.stories.js.map +1 -1
  878. package/es/icon/line/InfoBadge16.stories.js +1 -1
  879. package/es/icon/line/InfoBadge16.stories.js.map +1 -1
  880. package/es/icon/line/Key16.stories.js +1 -1
  881. package/es/icon/line/Key16.stories.js.map +1 -1
  882. package/es/icon/line/Link16.stories.js +1 -1
  883. package/es/icon/line/Link16.stories.js.map +1 -1
  884. package/es/icon/line/LinkBadge16.stories.js +1 -1
  885. package/es/icon/line/LinkBadge16.stories.js.map +1 -1
  886. package/es/icon/line/List16.stories.js +1 -1
  887. package/es/icon/line/List16.stories.js.map +1 -1
  888. package/es/icon/line/Lock16.stories.js +1 -1
  889. package/es/icon/line/Lock16.stories.js.map +1 -1
  890. package/es/icon/line/LockBadge16.stories.js +1 -1
  891. package/es/icon/line/LockBadge16.stories.js.map +1 -1
  892. package/es/icon/line/MetadataBadge16.stories.js +1 -1
  893. package/es/icon/line/MetadataBadge16.stories.js.map +1 -1
  894. package/es/icon/line/MoveCopy16.stories.js +1 -1
  895. package/es/icon/line/MoveCopy16.stories.js.map +1 -1
  896. package/es/icon/line/Pencil16.stories.js +1 -1
  897. package/es/icon/line/Pencil16.stories.js.map +1 -1
  898. package/es/icon/line/PencilBadge16.stories.js +1 -1
  899. package/es/icon/line/PencilBadge16.stories.js.map +1 -1
  900. package/es/icon/line/Plane16.stories.js +1 -1
  901. package/es/icon/line/Plane16.stories.js.map +1 -1
  902. package/es/icon/line/Plus16.stories.js +1 -1
  903. package/es/icon/line/Plus16.stories.js.map +1 -1
  904. package/es/icon/line/Power16.stories.js +1 -1
  905. package/es/icon/line/Power16.stories.js.map +1 -1
  906. package/es/icon/line/Question16.stories.js +1 -1
  907. package/es/icon/line/Question16.stories.js.map +1 -1
  908. package/es/icon/line/Redo16.stories.js +1 -1
  909. package/es/icon/line/Redo16.stories.js.map +1 -1
  910. package/es/icon/line/Relay16.stories.js +1 -1
  911. package/es/icon/line/Relay16.stories.js.map +1 -1
  912. package/es/icon/line/Report16.stories.js +1 -1
  913. package/es/icon/line/Report16.stories.js.map +1 -1
  914. package/es/icon/line/Retry16.stories.js +1 -1
  915. package/es/icon/line/Retry16.stories.js.map +1 -1
  916. package/es/icon/line/Rocket16.stories.js +1 -1
  917. package/es/icon/line/Rocket16.stories.js.map +1 -1
  918. package/es/icon/line/RotatingArrows16.stories.js +1 -1
  919. package/es/icon/line/RotatingArrows16.stories.js.map +1 -1
  920. package/es/icon/line/Sharrow16.stories.js +1 -1
  921. package/es/icon/line/Sharrow16.stories.js.map +1 -1
  922. package/es/icon/line/Shield16.stories.js +1 -1
  923. package/es/icon/line/Shield16.stories.js.map +1 -1
  924. package/es/icon/line/Sign16.stories.js +1 -1
  925. package/es/icon/line/Sign16.stories.js.map +1 -1
  926. package/es/icon/line/SignTinycon16.stories.js +1 -1
  927. package/es/icon/line/SignTinycon16.stories.js.map +1 -1
  928. package/es/icon/line/Star16.stories.js +1 -1
  929. package/es/icon/line/Star16.stories.js.map +1 -1
  930. package/es/icon/line/SyncArrows16.stories.js +1 -1
  931. package/es/icon/line/SyncArrows16.stories.js.map +1 -1
  932. package/es/icon/line/Template16.stories.js +1 -1
  933. package/es/icon/line/Template16.stories.js.map +1 -1
  934. package/es/icon/line/TextLeft16.stories.js +1 -1
  935. package/es/icon/line/TextLeft16.stories.js.map +1 -1
  936. package/es/icon/line/Tool16.stories.js +1 -1
  937. package/es/icon/line/Tool16.stories.js.map +1 -1
  938. package/es/icon/line/Trash16.stories.js +1 -1
  939. package/es/icon/line/Trash16.stories.js.map +1 -1
  940. package/es/icon/line/TriangleAlert16.stories.js +1 -1
  941. package/es/icon/line/TriangleAlert16.stories.js.map +1 -1
  942. package/es/icon/line/Undo16.stories.js +1 -1
  943. package/es/icon/line/Undo16.stories.js.map +1 -1
  944. package/es/icon/line/Unlock16.stories.js +1 -1
  945. package/es/icon/line/Unlock16.stories.js.map +1 -1
  946. package/es/icon/line/Upload16.stories.js +1 -1
  947. package/es/icon/line/Upload16.stories.js.map +1 -1
  948. package/es/icon/line/Video16.stories.js +1 -1
  949. package/es/icon/line/Video16.stories.js.map +1 -1
  950. package/es/icon/line/View16.stories.js +1 -1
  951. package/es/icon/line/View16.stories.js.map +1 -1
  952. package/es/icon/line/XBadge16.stories.js +1 -1
  953. package/es/icon/line/XBadge16.stories.js.map +1 -1
  954. package/es/icon/logo/AccountBilling32.stories.js +1 -1
  955. package/es/icon/logo/AccountBilling32.stories.js.map +1 -1
  956. package/es/icon/logo/AdminFaq32.stories.js +1 -1
  957. package/es/icon/logo/AdminFaq32.stories.js.map +1 -1
  958. package/es/icon/logo/AdminReferences32.stories.js +1 -1
  959. package/es/icon/logo/AdminReferences32.stories.js.map +1 -1
  960. package/es/icon/logo/AdobeAcrobat32.stories.js +1 -1
  961. package/es/icon/logo/AdobeAcrobat32.stories.js.map +1 -1
  962. package/es/icon/logo/Apps32.stories.js +1 -1
  963. package/es/icon/logo/Apps32.stories.js.map +1 -1
  964. package/es/icon/logo/BoxAiLogo.stories.js +1 -1
  965. package/es/icon/logo/BoxAiLogo.stories.js.map +1 -1
  966. package/es/icon/logo/BoxLogo.stories.js +1 -1
  967. package/es/icon/logo/BoxLogo.stories.js.map +1 -1
  968. package/es/icon/logo/BoxSign28.stories.js +1 -1
  969. package/es/icon/logo/BoxSign28.stories.js.map +1 -1
  970. package/es/icon/logo/BoxSign32.stories.js +1 -1
  971. package/es/icon/logo/BoxSign32.stories.js.map +1 -1
  972. package/es/icon/logo/ContentSharing32.stories.js +1 -1
  973. package/es/icon/logo/ContentSharing32.stories.js.map +1 -1
  974. package/es/icon/logo/CustomSetup32.stories.js +1 -1
  975. package/es/icon/logo/CustomSetup32.stories.js.map +1 -1
  976. package/es/icon/logo/DeviceTrust32.stories.js +1 -1
  977. package/es/icon/logo/DeviceTrust32.stories.js.map +1 -1
  978. package/es/icon/logo/HelpArticle32.stories.js +1 -1
  979. package/es/icon/logo/HelpArticle32.stories.js.map +1 -1
  980. package/es/icon/logo/HowToGuides32.stories.js +1 -1
  981. package/es/icon/logo/HowToGuides32.stories.js.map +1 -1
  982. package/es/icon/logo/IconBoxApp512.stories.js +1 -1
  983. package/es/icon/logo/IconBoxApp512.stories.js.map +1 -1
  984. package/es/icon/logo/KeynoteForMac32.stories.js +1 -1
  985. package/es/icon/logo/KeynoteForMac32.stories.js.map +1 -1
  986. package/es/icon/logo/ManageContent32.stories.js +1 -1
  987. package/es/icon/logo/ManageContent32.stories.js.map +1 -1
  988. package/es/icon/logo/ManageUsers32.stories.js +1 -1
  989. package/es/icon/logo/ManageUsers32.stories.js.map +1 -1
  990. package/es/icon/logo/Mobile32.stories.js +1 -1
  991. package/es/icon/logo/Mobile32.stories.js.map +1 -1
  992. package/es/icon/logo/Notifications32.stories.js +1 -1
  993. package/es/icon/logo/Notifications32.stories.js.map +1 -1
  994. package/es/icon/logo/NumbersForMac32.stories.js +1 -1
  995. package/es/icon/logo/NumbersForMac32.stories.js.map +1 -1
  996. package/es/icon/logo/PagesForMac32.stories.js +1 -1
  997. package/es/icon/logo/PagesForMac32.stories.js.map +1 -1
  998. package/es/icon/logo/Reporting32.stories.js +1 -1
  999. package/es/icon/logo/Reporting32.stories.js.map +1 -1
  1000. package/es/icon/logo/Security32.stories.js +1 -1
  1001. package/es/icon/logo/Security32.stories.js.map +1 -1
  1002. package/es/icon/logo/TroubleShootingTools32.stories.js +1 -1
  1003. package/es/icon/logo/TroubleShootingTools32.stories.js.map +1 -1
  1004. package/es/icon/logo/UserSettings32.stories.js +1 -1
  1005. package/es/icon/logo/UserSettings32.stories.js.map +1 -1
  1006. package/es/icons/collections/IconCollections.stories.js +1 -1
  1007. package/es/icons/collections/IconCollections.stories.js.map +1 -1
  1008. package/es/icons/collections/IconCollectionsAdd.stories.js +1 -1
  1009. package/es/icons/collections/IconCollectionsAdd.stories.js.map +1 -1
  1010. package/es/icons/collections/IconCollectionsBolt.stories.js +1 -1
  1011. package/es/icons/collections/IconCollectionsBolt.stories.js.map +1 -1
  1012. package/es/icons/collections/IconCollectionsFilled.stories.js +1 -1
  1013. package/es/icons/collections/IconCollectionsFilled.stories.js.map +1 -1
  1014. package/es/icons/collections/IconCollectionsStar.stories.js +1 -1
  1015. package/es/icons/collections/IconCollectionsStar.stories.js.map +1 -1
  1016. package/es/icons/collections/IconCollectionsStarFilled.stories.js +1 -1
  1017. package/es/icons/collections/IconCollectionsStarFilled.stories.js.map +1 -1
  1018. package/es/icons/collections/collections.stories.js +1 -1
  1019. package/es/icons/collections/collections.stories.js.map +1 -1
  1020. package/es/icons/icons.stories.js +1 -1
  1021. package/es/icons/icons.stories.js.map +1 -1
  1022. package/es/icons/two-toned/IconAnnotation.js +1 -1
  1023. package/es/icons/two-toned/IconAnnotation.js.map +1 -1
  1024. package/es/illustration/AllNewBox140.stories.js +1 -1
  1025. package/es/illustration/AllNewBox140.stories.js.map +1 -1
  1026. package/es/illustration/AppSupport140.stories.js +1 -1
  1027. package/es/illustration/AppSupport140.stories.js.map +1 -1
  1028. package/es/illustration/Bell140.stories.js +1 -1
  1029. package/es/illustration/Bell140.stories.js.map +1 -1
  1030. package/es/illustration/BoxDrive140.stories.js +1 -1
  1031. package/es/illustration/BoxDrive140.stories.js.map +1 -1
  1032. package/es/illustration/BoxMobile140.stories.js +1 -1
  1033. package/es/illustration/BoxMobile140.stories.js.map +1 -1
  1034. package/es/illustration/BudgetApproval56.stories.js +1 -1
  1035. package/es/illustration/BudgetApproval56.stories.js.map +1 -1
  1036. package/es/illustration/Certificate56.stories.js +1 -1
  1037. package/es/illustration/Certificate56.stories.js.map +1 -1
  1038. package/es/illustration/CertificateSigning56.stories.js +1 -1
  1039. package/es/illustration/CertificateSigning56.stories.js.map +1 -1
  1040. package/es/illustration/ChangeOrder56.stories.js +1 -1
  1041. package/es/illustration/ChangeOrder56.stories.js.map +1 -1
  1042. package/es/illustration/Clock140.stories.js +1 -1
  1043. package/es/illustration/Clock140.stories.js.map +1 -1
  1044. package/es/illustration/CollectionStar140.stories.js +1 -1
  1045. package/es/illustration/CollectionStar140.stories.js.map +1 -1
  1046. package/es/illustration/ContractorId56.stories.js +1 -1
  1047. package/es/illustration/ContractorId56.stories.js.map +1 -1
  1048. package/es/illustration/CreativeApproval56.stories.js +1 -1
  1049. package/es/illustration/CreativeApproval56.stories.js.map +1 -1
  1050. package/es/illustration/CreativeAssets56.stories.js +1 -1
  1051. package/es/illustration/CreativeAssets56.stories.js.map +1 -1
  1052. package/es/illustration/CustomApp56.stories.js +1 -1
  1053. package/es/illustration/CustomApp56.stories.js.map +1 -1
  1054. package/es/illustration/CustomSkill56.stories.js +1 -1
  1055. package/es/illustration/CustomSkill56.stories.js.map +1 -1
  1056. package/es/illustration/CustomTemplate56.stories.js +1 -1
  1057. package/es/illustration/CustomTemplate56.stories.js.map +1 -1
  1058. package/es/illustration/CustomerSupport140.stories.js +1 -1
  1059. package/es/illustration/CustomerSupport140.stories.js.map +1 -1
  1060. package/es/illustration/DiscoDanceParty140.stories.js +1 -1
  1061. package/es/illustration/DiscoDanceParty140.stories.js.map +1 -1
  1062. package/es/illustration/Discount140.stories.js +1 -1
  1063. package/es/illustration/Discount140.stories.js.map +1 -1
  1064. package/es/illustration/EmailVerification140.stories.js +1 -1
  1065. package/es/illustration/EmailVerification140.stories.js.map +1 -1
  1066. package/es/illustration/EmployeeId56.stories.js +1 -1
  1067. package/es/illustration/EmployeeId56.stories.js.map +1 -1
  1068. package/es/illustration/EmployeeReview56.stories.js +1 -1
  1069. package/es/illustration/EmployeeReview56.stories.js.map +1 -1
  1070. package/es/illustration/EmptyStateDetails.stories.js +1 -1
  1071. package/es/illustration/EmptyStateDetails.stories.js.map +1 -1
  1072. package/es/illustration/EmptyStateFolder140.stories.js +1 -1
  1073. package/es/illustration/EmptyStateFolder140.stories.js.map +1 -1
  1074. package/es/illustration/EmptyStatePreviewActivity140.stories.js +1 -1
  1075. package/es/illustration/EmptyStatePreviewActivity140.stories.js.map +1 -1
  1076. package/es/illustration/Envelope140.stories.js +1 -1
  1077. package/es/illustration/Envelope140.stories.js.map +1 -1
  1078. package/es/illustration/ErrorState404140.stories.js +1 -1
  1079. package/es/illustration/ErrorState404140.stories.js.map +1 -1
  1080. package/es/illustration/Files.stories.js +1 -1
  1081. package/es/illustration/Files.stories.js.map +1 -1
  1082. package/es/illustration/Files140.stories.js +1 -1
  1083. package/es/illustration/Files140.stories.js.map +1 -1
  1084. package/es/illustration/FinanceContract56.stories.js +1 -1
  1085. package/es/illustration/FinanceContract56.stories.js.map +1 -1
  1086. package/es/illustration/FolderArrow140.stories.js +1 -1
  1087. package/es/illustration/FolderArrow140.stories.js.map +1 -1
  1088. package/es/illustration/FolderFloat140.stories.js +1 -1
  1089. package/es/illustration/FolderFloat140.stories.js.map +1 -1
  1090. package/es/illustration/FolderPlane140.stories.js +1 -1
  1091. package/es/illustration/FolderPlane140.stories.js.map +1 -1
  1092. package/es/illustration/FolderStar140.stories.js +1 -1
  1093. package/es/illustration/FolderStar140.stories.js.map +1 -1
  1094. package/es/illustration/Gavel56.stories.js +1 -1
  1095. package/es/illustration/Gavel56.stories.js.map +1 -1
  1096. package/es/illustration/Handshake56.stories.js +1 -1
  1097. package/es/illustration/Handshake56.stories.js.map +1 -1
  1098. package/es/illustration/HandshakeAgreement56.stories.js +1 -1
  1099. package/es/illustration/HandshakeAgreement56.stories.js.map +1 -1
  1100. package/es/illustration/HatWand140.stories.js +1 -1
  1101. package/es/illustration/HatWand140.stories.js.map +1 -1
  1102. package/es/illustration/Keynote56.stories.js +1 -1
  1103. package/es/illustration/Keynote56.stories.js.map +1 -1
  1104. package/es/illustration/LegalContract56.stories.js +1 -1
  1105. package/es/illustration/LegalContract56.stories.js.map +1 -1
  1106. package/es/illustration/LegalFolder56.stories.js +1 -1
  1107. package/es/illustration/LegalFolder56.stories.js.map +1 -1
  1108. package/es/illustration/LimitedApp56.stories.js +1 -1
  1109. package/es/illustration/LimitedApp56.stories.js.map +1 -1
  1110. package/es/illustration/MarketingPlan56.stories.js +1 -1
  1111. package/es/illustration/MarketingPlan56.stories.js.map +1 -1
  1112. package/es/illustration/Megaphone140.stories.js +1 -1
  1113. package/es/illustration/Megaphone140.stories.js.map +1 -1
  1114. package/es/illustration/MetricsReview56.stories.js +1 -1
  1115. package/es/illustration/MetricsReview56.stories.js.map +1 -1
  1116. package/es/illustration/Microphone140.stories.js +1 -1
  1117. package/es/illustration/Microphone140.stories.js.map +1 -1
  1118. package/es/illustration/Missing140.stories.js +1 -1
  1119. package/es/illustration/Missing140.stories.js.map +1 -1
  1120. package/es/illustration/MoneyStack56.stories.js +1 -1
  1121. package/es/illustration/MoneyStack56.stories.js.map +1 -1
  1122. package/es/illustration/MonthlyReport56.stories.js +1 -1
  1123. package/es/illustration/MonthlyReport56.stories.js.map +1 -1
  1124. package/es/illustration/NotesStar140.stories.js +1 -1
  1125. package/es/illustration/NotesStar140.stories.js.map +1 -1
  1126. package/es/illustration/PlanSelection140.stories.js +1 -1
  1127. package/es/illustration/PlanSelection140.stories.js.map +1 -1
  1128. package/es/illustration/Playbook56.stories.js +1 -1
  1129. package/es/illustration/Playbook56.stories.js.map +1 -1
  1130. package/es/illustration/ProjectFolder56.stories.js +1 -1
  1131. package/es/illustration/ProjectFolder56.stories.js.map +1 -1
  1132. package/es/illustration/RecentFiles140.stories.js +1 -1
  1133. package/es/illustration/RecentFiles140.stories.js.map +1 -1
  1134. package/es/illustration/RelayPlanet140.stories.js +1 -1
  1135. package/es/illustration/RelayPlanet140.stories.js.map +1 -1
  1136. package/es/illustration/SalesContract56.stories.js +1 -1
  1137. package/es/illustration/SalesContract56.stories.js.map +1 -1
  1138. package/es/illustration/Sandbox140.stories.js +1 -1
  1139. package/es/illustration/Sandbox140.stories.js.map +1 -1
  1140. package/es/illustration/TaskList56.stories.js +1 -1
  1141. package/es/illustration/TaskList56.stories.js.map +1 -1
  1142. package/es/illustration/Transfers140.stories.js +1 -1
  1143. package/es/illustration/Transfers140.stories.js.map +1 -1
  1144. package/es/illustration/TrashEmpty140.stories.js +1 -1
  1145. package/es/illustration/TrashEmpty140.stories.js.map +1 -1
  1146. package/es/illustration/Unplugged140.stories.js +1 -1
  1147. package/es/illustration/Unplugged140.stories.js.map +1 -1
  1148. package/es/illustration/UploadCloud140.stories.js +1 -1
  1149. package/es/illustration/UploadCloud140.stories.js.map +1 -1
  1150. package/es/illustration/UserOrbit56.stories.js +1 -1
  1151. package/es/illustration/UserOrbit56.stories.js.map +1 -1
  1152. package/es/src/components/avatar/Avatar.d.ts +2 -2
  1153. package/es/src/components/avatar/Avatar.stories.d.ts +2 -2
  1154. package/es/src/components/badge/Badge.d.ts +1 -1
  1155. package/es/src/components/badge/types.d.ts +1 -1
  1156. package/es/src/components/badgeable/Badgeable.d.ts +1 -1
  1157. package/es/src/components/button/Button.d.ts +1 -1
  1158. package/es/src/components/checkbox/CheckboxField.d.ts +1 -1
  1159. package/es/src/components/close-button/CloseButton.d.ts +2 -2
  1160. package/es/src/components/close-button/CloseButton.stories.d.ts +2 -2
  1161. package/es/src/components/count-badge/CountBadge.d.ts +1 -1
  1162. package/es/src/components/date-picker/DatePicker.d.ts +9 -9
  1163. package/es/src/components/date-picker/DatePicker.stories.d.ts +2 -2
  1164. package/es/src/components/footer-indicator/FooterIndicator.d.ts +1 -1
  1165. package/es/src/components/ghost/Ghost.d.ts +2 -2
  1166. package/es/src/components/ghost/Ghost.stories.d.ts +3 -3
  1167. package/es/src/components/guide-tooltip/GuideTooltip.d.ts +2 -2
  1168. package/es/src/components/header/Header.d.ts +1 -1
  1169. package/es/src/components/image-tooltip/ImageTooltip.d.ts +2 -2
  1170. package/es/src/components/image-tooltip/ImageTooltipContent.d.ts +2 -2
  1171. package/es/src/components/label/HiddenLabel.d.ts +3 -1
  1172. package/es/src/components/label/Label.d.ts +3 -1
  1173. package/es/src/components/label/Label.stories.d.ts +1 -1
  1174. package/es/src/components/label/LabelPrimitive.d.ts +3 -1
  1175. package/es/src/components/label/StandardLabel.d.ts +3 -1
  1176. package/es/src/components/loading-indicator/makeLoadable.d.ts +1 -1
  1177. package/es/src/components/media/Media.d.ts +2 -2
  1178. package/es/src/components/media/MediaMenu.d.ts +2 -2
  1179. package/es/src/components/media/stories/Media.stories.d.ts +2 -2
  1180. package/es/src/components/media/stories/MediaMenu.stories.d.ts +2 -2
  1181. package/es/src/components/menu/Menu.d.ts +1 -1
  1182. package/es/src/components/menu/MenuContext.d.ts +1 -1
  1183. package/es/src/components/plain-button/index.d.ts +1 -1
  1184. package/es/src/components/preview/PreviewLoading.d.ts +1 -1
  1185. package/es/src/components/preview/PreviewLoadingRing.d.ts +1 -1
  1186. package/es/src/components/preview/previewIcons.d.ts +7 -3
  1187. package/es/src/components/radio/RadioButtonField.d.ts +1 -1
  1188. package/es/src/components/radio/RadioGroup.d.ts +1 -1
  1189. package/es/src/components/radio/RadioGroupField.d.ts +1 -1
  1190. package/es/src/components/search-form/SearchActions.d.ts +16 -0
  1191. package/es/src/components/search-form/messages.d.ts +18 -0
  1192. package/es/src/components/time-input/TimeInput.d.ts +3 -3
  1193. package/es/src/components/time-input/TimeInput.stories.d.ts +2 -2
  1194. package/es/src/components/time-input/TimeInputUtils.d.ts +2 -2
  1195. package/es/src/components/tooltip/CloseButton.d.ts +3 -3
  1196. package/es/src/components/tooltip/Tooltip.d.ts +10 -10
  1197. package/es/src/components/tooltip/index.d.ts +1 -1
  1198. package/es/src/elements/common/annotator-context/types.d.ts +2 -2
  1199. package/es/src/elements/common/annotator-context/withAnnotations.d.ts +5 -5
  1200. package/es/src/elements/common/current-user/withCurrentUser.d.ts +4 -4
  1201. package/es/src/elements/common/nav-router/NavRouter.d.ts +1 -1
  1202. package/es/src/elements/common/nav-router/types.d.ts +1 -1
  1203. package/es/src/elements/content-preview/PreviewMask.d.ts +1 -1
  1204. package/es/src/elements/content-sidebar/SidebarNavSignButton.d.ts +24 -4
  1205. package/es/src/elements/content-sidebar/activity-feed/ActivityCard.d.ts +1 -1
  1206. package/es/src/elements/content-sidebar/activity-feed/SelectableActivityCard.d.ts +1 -1
  1207. package/es/src/elements/content-sidebar/activity-feed/activity-feed/ActivityItem.d.ts +1 -1
  1208. package/es/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivityLink.d.ts +3 -3
  1209. package/es/src/elements/content-sidebar/activity-feed/common/activity-datestamp/ActivityDatestamp.d.ts +2 -2
  1210. package/es/src/elements/content-sidebar/activity-feed/illustrations/ActivityFeedEmptyStateIllustration.d.ts +1 -1
  1211. package/es/src/features/content-answers/Answer.d.ts +7 -0
  1212. package/es/src/features/content-answers/ContentAnswers.d.ts +10 -0
  1213. package/es/src/features/content-answers/ContentAnswersGridCard.d.ts +7 -0
  1214. package/es/src/features/content-answers/ContentAnswersModal.d.ts +10 -0
  1215. package/es/src/features/content-answers/ContentAnswersModalContent.d.ts +11 -0
  1216. package/es/src/features/content-answers/ContentAnswersModalError.d.ts +3 -0
  1217. package/es/src/features/content-answers/ContentAnswersModalFooter.d.ts +18 -0
  1218. package/es/src/features/content-answers/ContentAnswersModalFooterActions.d.ts +7 -0
  1219. package/es/src/features/content-answers/ContentAnswersOpenButton.d.ts +16 -0
  1220. package/es/src/features/content-answers/InlineError.d.ts +3 -0
  1221. package/es/src/features/content-answers/LoadingElement.d.ts +3 -0
  1222. package/es/src/features/content-answers/Question.d.ts +8 -0
  1223. package/es/src/features/content-answers/WelcomeMessage.d.ts +6 -0
  1224. package/es/src/features/content-answers/__mocks__/mocks.d.ts +23 -0
  1225. package/es/src/features/content-answers/__tests__/Answer.test.d.ts +1 -0
  1226. package/es/src/features/content-answers/__tests__/ContentAnswers.test.d.ts +1 -0
  1227. package/es/src/features/content-answers/__tests__/ContentAnswersGridCard.test.d.ts +1 -0
  1228. package/es/src/features/content-answers/__tests__/ContentAnswersModal.test.d.ts +1 -0
  1229. package/es/src/features/content-answers/__tests__/ContentAnswersModalContent.test.d.ts +1 -0
  1230. package/es/src/features/content-answers/__tests__/ContentAnswersModalError.test.d.ts +1 -0
  1231. package/es/src/features/content-answers/__tests__/ContentAnswersModalFooter.test.d.ts +1 -0
  1232. package/es/src/features/content-answers/__tests__/ContentAnswersModalFooterActions.d.ts +1 -0
  1233. package/es/src/features/content-answers/__tests__/ContentAnswersOpenButton.test.d.ts +1 -0
  1234. package/es/src/features/content-answers/__tests__/InlineError.test.d.ts +1 -0
  1235. package/es/src/features/content-answers/__tests__/Question.test.d.ts +1 -0
  1236. package/es/src/features/content-answers/__tests__/WelcomeMessage.test.d.ts +1 -0
  1237. package/es/src/features/content-answers/constants.d.ts +7 -0
  1238. package/es/src/features/content-answers/index.d.ts +1 -0
  1239. package/es/src/features/content-answers/messages.d.ts +83 -0
  1240. package/es/src/features/content-insights/CompactCount.d.ts +2 -2
  1241. package/es/src/features/content-insights/GraphCardPreviewsSummary.d.ts +2 -2
  1242. package/es/src/features/content-insights/MetricSummary.d.ts +2 -2
  1243. package/es/src/features/content-insights/TrendPill.d.ts +2 -2
  1244. package/es/src/features/content-insights/charts/bar/BarChart.d.ts +1 -1
  1245. package/es/src/features/content-insights/charts/types.d.ts +2 -2
  1246. package/es/src/features/content-insights/constants.d.ts +30 -18
  1247. package/es/src/features/content-insights/types.d.ts +9 -9
  1248. package/es/src/features/presence/PresenceAvatarList.d.ts +2 -2
  1249. package/es/src/features/presence/PresenceAvatarTooltipContent.d.ts +15 -3
  1250. package/es/src/features/sandbox-banner/SandboxBanner.d.ts +1 -1
  1251. package/es/src/icons/file/IconFileBase.d.ts +1 -1
  1252. package/es/styles/colors.stories.js +1 -1
  1253. package/es/styles/colors.stories.js.map +1 -1
  1254. package/es/styles/common/_buttons.scss +1 -1
  1255. package/es/styles/constants/_buttons.scss +1 -0
  1256. package/es/styles/typography.stories.js +1 -1
  1257. package/es/styles/typography.stories.js.map +1 -1
  1258. package/es/utils/Browser.js +11 -0
  1259. package/es/utils/Browser.js.flow +10 -0
  1260. package/es/utils/Browser.js.map +1 -1
  1261. package/es/utils/comparator.js +1 -1
  1262. package/es/utils/comparator.js.flow +1 -1
  1263. package/es/utils/comparator.js.map +1 -1
  1264. package/es/utils/createTheme.stories.js +1 -1
  1265. package/es/utils/createTheme.stories.js.flow +1 -1
  1266. package/es/utils/createTheme.stories.js.map +1 -1
  1267. package/es/utils/fields.js +3 -3
  1268. package/es/utils/fields.js.flow +3 -0
  1269. package/es/utils/fields.js.map +1 -1
  1270. package/es/utils/flatten.js +1 -1
  1271. package/es/utils/flatten.js.flow +6 -1
  1272. package/es/utils/flatten.js.map +1 -1
  1273. package/es/utils/size.js +5 -5
  1274. package/es/utils/size.js.flow +5 -5
  1275. package/es/utils/size.js.map +1 -1
  1276. package/es/utils/sorter.js +1 -1
  1277. package/es/utils/sorter.js.flow +1 -1
  1278. package/es/utils/sorter.js.map +1 -1
  1279. package/flow-typed/box-ui-elements.js +1 -0
  1280. package/i18n/bn-IN.js +19 -1
  1281. package/i18n/bn-IN.properties +38 -2
  1282. package/i18n/da-DK.js +19 -1
  1283. package/i18n/da-DK.properties +38 -2
  1284. package/i18n/de-DE.js +19 -1
  1285. package/i18n/de-DE.properties +38 -2
  1286. package/i18n/en-AU.js +19 -1
  1287. package/i18n/en-AU.properties +38 -2
  1288. package/i18n/en-CA.js +19 -1
  1289. package/i18n/en-CA.properties +38 -2
  1290. package/i18n/en-GB.js +19 -1
  1291. package/i18n/en-GB.properties +38 -2
  1292. package/i18n/en-US.js +19 -1
  1293. package/i18n/en-US.properties +38 -2
  1294. package/i18n/en-x-pseudo.js +943 -926
  1295. package/i18n/en-x-pseudo.properties +962 -926
  1296. package/i18n/es-419.js +19 -1
  1297. package/i18n/es-419.properties +38 -2
  1298. package/i18n/es-ES.js +19 -1
  1299. package/i18n/es-ES.properties +38 -2
  1300. package/i18n/fi-FI.js +19 -1
  1301. package/i18n/fi-FI.properties +38 -2
  1302. package/i18n/fr-CA.js +19 -1
  1303. package/i18n/fr-CA.properties +38 -2
  1304. package/i18n/fr-FR.js +19 -1
  1305. package/i18n/fr-FR.properties +38 -2
  1306. package/i18n/hi-IN.js +19 -1
  1307. package/i18n/hi-IN.properties +38 -2
  1308. package/i18n/it-IT.js +19 -1
  1309. package/i18n/it-IT.properties +38 -2
  1310. package/i18n/ja-JP.js +29 -11
  1311. package/i18n/ja-JP.properties +48 -12
  1312. package/i18n/ko-KR.js +19 -1
  1313. package/i18n/ko-KR.properties +38 -2
  1314. package/i18n/nb-NO.js +19 -1
  1315. package/i18n/nb-NO.properties +38 -2
  1316. package/i18n/nl-NL.js +19 -1
  1317. package/i18n/nl-NL.properties +38 -2
  1318. package/i18n/pl-PL.js +19 -1
  1319. package/i18n/pl-PL.properties +38 -2
  1320. package/i18n/pt-BR.js +19 -1
  1321. package/i18n/pt-BR.properties +38 -2
  1322. package/i18n/ru-RU.js +19 -1
  1323. package/i18n/ru-RU.properties +38 -2
  1324. package/i18n/sv-SE.js +19 -1
  1325. package/i18n/sv-SE.properties +38 -2
  1326. package/i18n/tr-TR.js +19 -1
  1327. package/i18n/tr-TR.properties +38 -2
  1328. package/i18n/zh-CN.js +19 -1
  1329. package/i18n/zh-CN.properties +38 -2
  1330. package/i18n/zh-TW.js +19 -1
  1331. package/i18n/zh-TW.properties +38 -2
  1332. package/package.json +48 -36
  1333. package/src/api/APIFactory.js +25 -0
  1334. package/src/api/Feed.js +8 -4
  1335. package/src/api/Intelligence.js +47 -0
  1336. package/src/api/__tests__/Intelligence.test.js +81 -0
  1337. package/src/api/__tests__/Item.test.js +1 -1
  1338. package/src/api/uploads/__tests__/BaseUpload.test.js +5 -5
  1339. package/src/api/uploads/__tests__/FolderUpload.test.js +1 -1
  1340. package/src/api/uploads/__tests__/FolderUploadNode.test.js +1 -1
  1341. package/src/api/uploads/__tests__/MultiputUpload.test.js +1 -1
  1342. package/src/common/types/core.js +1 -0
  1343. package/src/components/accessible-svg/AccessibleSVG.stories.tsx +1 -1
  1344. package/src/components/avatar/Avatar.stories.tsx +1 -1
  1345. package/src/components/badge/Badge.stories.tsx +1 -1
  1346. package/src/components/badge/BetaBadge.stories.tsx +1 -1
  1347. package/src/components/badge/TrialBadge.stories.tsx +1 -1
  1348. package/src/components/badge/UpgradeBadge.stories.tsx +1 -1
  1349. package/src/components/breadcrumb/Breadcrumb.stories.js +1 -1
  1350. package/src/components/button/Button.stories.tsx +1 -1
  1351. package/src/components/button-group/ButtonGroup.stories.tsx +1 -1
  1352. package/src/components/category-selector/CategorySelector.stories.tsx +1 -1
  1353. package/src/components/checkbox/Checkbox.stories.tsx +1 -1
  1354. package/src/components/close-button/CloseButton.stories.tsx +1 -1
  1355. package/src/components/collapsible/Collapsible.stories.tsx +1 -1
  1356. package/src/components/collapsible/__tests__/__snapshots__/Collapsible.test.tsx.snap +14 -14
  1357. package/src/components/contact-datalist-item/ContactDatalistItem.stories.tsx +1 -1
  1358. package/src/components/context-menu/ContextMenu.stories.tsx +1 -1
  1359. package/src/components/count-badge/CountBadge.stories.tsx +1 -1
  1360. package/src/components/datalist-item/DatalistItem.stories.tsx +1 -1
  1361. package/src/components/date-picker/DatePicker.stories.tsx +1 -1
  1362. package/src/components/draft-js-editor/DraftJSEditor.stories.js +1 -1
  1363. package/src/components/draggable-list/DraggableList.stories.tsx +1 -1
  1364. package/src/components/dropdown-menu/DropdownMenu.stories.js +1 -1
  1365. package/src/components/error-mask/ErrorMask.stories.tsx +1 -1
  1366. package/src/components/fieldset/Fieldset.stories.tsx +1 -1
  1367. package/src/components/flyout/Flyout.stories.tsx +1 -1
  1368. package/src/components/flyout/OverlayHeader.tsx +1 -1
  1369. package/src/components/footer-indicator/FooterIndicator.stories.tsx +1 -1
  1370. package/src/components/form-elements/form/Form.stories.js +1 -1
  1371. package/src/components/form-elements/formik/Formik.stories.js +1 -1
  1372. package/src/components/form-elements/text-area/TextArea.stories.js +1 -1
  1373. package/src/components/form-elements/text-input/TextInput.stories.js +1 -1
  1374. package/src/components/ghost/Ghost.stories.tsx +1 -1
  1375. package/src/components/grid-view/__tests__/__snapshots__/GridView.test.js.snap +4 -4
  1376. package/src/components/guide-tooltip/GuideTooltip.stories.tsx +1 -1
  1377. package/src/components/header/Header.stories.tsx +1 -1
  1378. package/src/components/image-tooltip/ImageTooltip.stories.tsx +1 -1
  1379. package/src/components/inline-error/InlineError.stories.js +1 -1
  1380. package/src/components/inline-notice/InlineNotice.stories.js +1 -1
  1381. package/src/components/label/HiddenLabel.js.flow +3 -2
  1382. package/src/components/label/HiddenLabel.tsx +4 -2
  1383. package/src/components/label/Label.js.flow +5 -3
  1384. package/src/components/label/Label.stories.tsx +1 -1
  1385. package/src/components/label/Label.tsx +18 -3
  1386. package/src/components/label/LabelPrimitive.js.flow +3 -2
  1387. package/src/components/label/LabelPrimitive.tsx +4 -2
  1388. package/src/components/label/StandardLabel.js.flow +3 -2
  1389. package/src/components/label/StandardLabel.tsx +4 -2
  1390. package/src/components/label/__tests__/__snapshots__/Label.test.tsx.snap +2 -2
  1391. package/src/components/label/__tests__/__snapshots__/StandardLabel.test.tsx.snap +1 -1
  1392. package/src/components/label-pill/LabelPill.stories.tsx +1 -1
  1393. package/src/components/link/stories/Link.stories.tsx +2 -1
  1394. package/src/components/link/stories/LinkButton.stories.tsx +3 -1
  1395. package/src/components/link/stories/LinkGroup.stories.tsx +1 -1
  1396. package/src/components/link/stories/LinkPrimaryButton.stories.tsx +2 -1
  1397. package/src/components/loading-indicator/LoadingIndicator.stories.tsx +1 -1
  1398. package/src/components/loading-indicator/LoadingIndicatorWrapper.stories.tsx +1 -1
  1399. package/src/components/loading-indicator/makeLoadable.tsx +2 -4
  1400. package/src/components/logo/Logo.stories.tsx +1 -1
  1401. package/src/components/media/stories/Media.stories.tsx +1 -1
  1402. package/src/components/media/stories/MediaBody.stories.tsx +1 -1
  1403. package/src/components/media/stories/MediaFigure.stories.tsx +1 -1
  1404. package/src/components/media/stories/MediaMenu.stories.tsx +1 -1
  1405. package/src/components/media-query/stories/MediaQuery.stories.js +1 -1
  1406. package/src/components/menu/stories/Menu.stories.tsx +1 -1
  1407. package/src/components/menu/stories/SelectMenuLinkItem.stories.tsx +1 -1
  1408. package/src/components/modal/Modal.scss +62 -69
  1409. package/src/components/modal/stories/Modal.stories.js +1 -1
  1410. package/src/components/modal/stories/ModalActions.stories.js +1 -1
  1411. package/src/components/modal/stories/ModalDialog.stories.js +1 -1
  1412. package/src/components/nav-sidebar/NavSidebar.stories.js +1 -1
  1413. package/src/components/notification/stories/Notification.stories.js +1 -1
  1414. package/src/components/notification/stories/NotificationsWrapper.stories.js +1 -1
  1415. package/src/components/nudge/Nudge.stories.tsx +1 -1
  1416. package/src/components/pill-cloud/PillCloud.stories.js +1 -1
  1417. package/src/components/pill-selector-dropdown/PillSelector.js +10 -2
  1418. package/src/components/pill-selector-dropdown/PillSelector.scss +4 -0
  1419. package/src/components/pill-selector-dropdown/PillSelectorDropdown.stories.js +1 -1
  1420. package/src/components/pill-selector-dropdown/__tests__/PillSelector.test.js +21 -0
  1421. package/src/components/pill-selector-dropdown/__tests__/__snapshots__/PillSelector.test.js.snap +1 -1
  1422. package/src/components/pill-selector-dropdown/__tests__/__snapshots__/PillSelectorDropdown.test.js.snap +1 -1
  1423. package/src/components/pill-selector-dropdown/__tests__/__snapshots__/PillSelectorDropdownField.test.js.snap +12 -12
  1424. package/src/components/pill-selector-dropdown/__tests__/__snapshots__/defaultDropdownRenderer.test.js.snap +1 -1
  1425. package/src/components/plain-button/PlainButton.stories.tsx +1 -1
  1426. package/src/components/plain-button/__tests__/__snapshots__/PlainButton.test.tsx.snap +4 -4
  1427. package/src/components/primary-button/PrimaryButton.stories.tsx +1 -1
  1428. package/src/components/radar/RadarAnimation.stories.tsx +1 -1
  1429. package/src/components/radar/__tests__/__snapshots__/RadarAnimation.test.tsx.snap +20 -20
  1430. package/src/components/radio/stories/RadioButton.stories.tsx +1 -1
  1431. package/src/components/radio/stories/RadioGroup.stories.tsx +1 -1
  1432. package/src/components/search-form/SearchActions.tsx +50 -0
  1433. package/src/components/search-form/SearchForm.js +10 -54
  1434. package/src/components/search-form/__tests__/SearchForm.test.js +9 -5
  1435. package/src/components/search-form/messages.ts +21 -0
  1436. package/src/components/section/Section.stories.tsx +1 -1
  1437. package/src/components/select/Select.stories.js +1 -1
  1438. package/src/components/select-button/SelectButton.stories.js +1 -1
  1439. package/src/components/select-field/__tests__/__snapshots__/BaseSelectField.test.js.snap +1 -1
  1440. package/src/components/selector-dropdown/SelectorDropdown.stories.js +1 -1
  1441. package/src/components/sidebar-toggle-button/SidebarToggleButton.stories.js +1 -1
  1442. package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +12 -12
  1443. package/src/components/tab-view/TabView.stories.js +1 -1
  1444. package/src/components/text-area/__tests__/__snapshots__/TextArea.test.js.snap +3 -3
  1445. package/src/components/text-input/TextInput.stories.js +1 -1
  1446. package/src/components/text-input-with-copy-button/TextInputWithCopyButton.js +9 -4
  1447. package/src/components/text-input-with-copy-button/TextInputWithCopyButton.stories.js +1 -1
  1448. package/src/components/thumbnail-card/ThumbnailCard.stories.js +1 -1
  1449. package/src/components/time/ReadableTime.stories.js +1 -1
  1450. package/src/components/time-input/TimeInput.stories.tsx +1 -1
  1451. package/src/components/toggle/Toggle.stories.js +1 -1
  1452. package/src/components/tooltip/Tooltip.stories.tsx +1 -1
  1453. package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +14 -14
  1454. package/src/constants.js +1 -0
  1455. package/src/elements/common/_variables.scss +1 -0
  1456. package/src/elements/common/current-user/withCurrentUser.tsx +1 -0
  1457. package/src/elements/common/feature-checking/__tests__/withFeatureProvider.test.js +25 -25
  1458. package/src/elements/common/logger/__tests__/__snapshots__/Logger.test.js.snap +1 -1
  1459. package/src/elements/common/selectors/__tests__/version.js +13 -11
  1460. package/src/elements/common/selectors/version.js +2 -1
  1461. package/src/elements/content-explorer/ContentExplorer.js +10 -4
  1462. package/src/elements/content-explorer/MoreOptions.js +1 -1
  1463. package/src/elements/content-explorer/PreviewDialog.js +0 -1
  1464. package/src/elements/content-explorer/__tests__/ContentExplorer.test.js +60 -0
  1465. package/src/elements/content-explorer/stories/ContentExplorer.stories.js +25 -36
  1466. package/src/elements/content-explorer/stories/DeleteConfirmationDialog.stories.js +1 -1
  1467. package/src/elements/content-explorer/stories/ShareDialog.stories.js +1 -1
  1468. package/src/elements/content-open-with/__tests__/__snapshots__/BoxToolsInstallMessage.test.js.snap +2 -2
  1469. package/src/elements/content-open-with/__tests__/__snapshots__/ContentOpenWith.test.js.snap +6 -6
  1470. package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenu.test.js.snap +1 -1
  1471. package/src/elements/content-picker/ContentPicker.js +2 -2
  1472. package/src/elements/content-picker/Footer.scss +6 -0
  1473. package/src/elements/content-preview/ContentPreview.js +88 -64
  1474. package/src/elements/content-preview/ContentPreview.scss +13 -28
  1475. package/src/elements/content-preview/__tests__/ContentPreview.test.js +6 -5
  1476. package/src/elements/content-preview/__tests__/__snapshots__/PreviewNavigation.test.js.snap +93 -93
  1477. package/src/elements/content-preview/preview-header/PreviewHeader.js +6 -0
  1478. package/src/elements/content-preview/preview-header/__tests__/PreviewHeader.test.js +25 -0
  1479. package/src/elements/content-preview/stories/ContentPreview.stories.js +51 -81
  1480. package/src/elements/content-sharing/stories/ContentSharing.stories.js +18 -84
  1481. package/src/elements/content-sidebar/ActivitySidebar.js +2 -2
  1482. package/src/elements/content-sidebar/ContentSidebar.scss +9 -9
  1483. package/src/elements/content-sidebar/SidebarContent.scss +6 -8
  1484. package/src/elements/content-sidebar/SidebarNav.scss +22 -20
  1485. package/src/elements/content-sidebar/SidebarNavButton.scss +12 -14
  1486. package/src/elements/content-sidebar/SidebarNavSignButton.scss +6 -8
  1487. package/src/elements/content-sidebar/__tests__/ActivitySidebar.test.js +8 -4
  1488. package/src/elements/content-sidebar/__tests__/__snapshots__/ActivitySidebar.test.js.snap +5 -5
  1489. package/src/elements/content-sidebar/__tests__/__snapshots__/DetailsSidebar.test.js.snap +9 -9
  1490. package/src/elements/content-sidebar/__tests__/__snapshots__/MetadataSidebar.test.js.snap +6 -6
  1491. package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarAccessStats.test.js.snap +12 -12
  1492. package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarClassification.test.js.snap +3 -3
  1493. package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarFileProperties.test.js.snap +10 -10
  1494. package/src/elements/content-sidebar/__tests__/__snapshots__/SidebarNotices.test.js.snap +2 -2
  1495. package/src/elements/content-sidebar/__tests__/__snapshots__/SkillsSidebar.test.js.snap +3 -3
  1496. package/src/elements/content-sidebar/__tests__/__snapshots__/TaskModal.test.js.snap +15 -15
  1497. package/src/elements/content-sidebar/activity-feed/__tests__/__snapshots__/Avatar.test.js.snap +1 -1
  1498. package/src/elements/content-sidebar/activity-feed/activity-feed/ActiveState.js +20 -2
  1499. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.js +7 -6
  1500. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityFeed.scss +6 -4
  1501. package/src/elements/content-sidebar/activity-feed/activity-feed/ActivityItem.scss +2 -2
  1502. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/ActiveState.test.js +36 -0
  1503. package/src/elements/content-sidebar/activity-feed/activity-feed/__tests__/__snapshots__/ActiveState.test.js.snap +35 -35
  1504. package/src/elements/content-sidebar/activity-feed/activity-feed/stories/ActivityFeed.stories.js +70 -0
  1505. package/src/elements/content-sidebar/activity-feed/annotation-thread/AnnotationThreadContent.js +2 -2
  1506. package/src/elements/content-sidebar/activity-feed/annotation-thread/__tests__/useAnnotationThread.test.js +4 -2
  1507. package/src/elements/content-sidebar/activity-feed/annotation-thread/useAnnotationThread.js +3 -7
  1508. package/src/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.js +3 -3
  1509. package/src/elements/content-sidebar/activity-feed/app-activity/__tests__/__snapshots__/AppActivity.test.js.snap +2 -2
  1510. package/src/elements/content-sidebar/activity-feed/comment/BaseComment.js +59 -166
  1511. package/src/elements/content-sidebar/activity-feed/comment/BaseComment.scss +34 -12
  1512. package/src/elements/content-sidebar/activity-feed/comment/CreateReply.js +5 -4
  1513. package/src/elements/content-sidebar/activity-feed/comment/Replies.scss +4 -2
  1514. package/src/elements/content-sidebar/activity-feed/comment/__tests__/BaseComment.test.js +18 -6
  1515. package/src/elements/content-sidebar/activity-feed/comment/__tests__/CreateReply.test.js +12 -0
  1516. package/src/elements/content-sidebar/activity-feed/comment/__tests__/Replies.test.js +25 -1
  1517. package/src/elements/content-sidebar/activity-feed/comment/__tests__/__snapshots__/Comment.test.js.snap +8 -8
  1518. package/src/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.js +72 -0
  1519. package/src/elements/content-sidebar/activity-feed/comment/components/BaseCommentInfo.scss +38 -0
  1520. package/src/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.js +125 -0
  1521. package/src/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenu.scss +4 -0
  1522. package/src/elements/content-sidebar/activity-feed/comment/components/BaseCommentMenuWrapper.js +91 -0
  1523. package/src/elements/content-sidebar/activity-feed/comment/components/__tests__/BaseCommentInfo.test.js +51 -0
  1524. package/src/elements/content-sidebar/activity-feed/comment/components/__tests__/BaseCommentMenu.test.js +85 -0
  1525. package/src/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentInfo.stories.js +25 -0
  1526. package/src/elements/content-sidebar/activity-feed/comment/components/stories/BaseCommentMenu.stories.js +26 -0
  1527. package/src/elements/content-sidebar/activity-feed/comment/components/stories/common.js +28 -0
  1528. package/src/elements/content-sidebar/activity-feed/comment/messages.js +5 -5
  1529. package/src/elements/content-sidebar/activity-feed/comment/stories/BaseComment.stories.js +1 -1
  1530. package/src/elements/content-sidebar/activity-feed/comment/stories/common.js +1 -1
  1531. package/src/elements/content-sidebar/activity-feed/comment/types.js +13 -0
  1532. package/src/elements/content-sidebar/activity-feed/comment-form/CommentForm.js +11 -3
  1533. package/src/elements/content-sidebar/activity-feed/comment-form/__tests__/CommentForm.test.js +37 -21
  1534. package/src/elements/content-sidebar/activity-feed/common/activity-timestamp/__tests__/__snapshots__/ActivityTimestamp.test.js.snap +1 -1
  1535. package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.js +2 -0
  1536. package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +1 -1
  1537. package/src/elements/content-sidebar/activity-feed/task-form/__tests__/__snapshots__/TaskError.test.js.snap +10 -10
  1538. package/src/elements/content-sidebar/activity-feed/task-new/Task.js +7 -2
  1539. package/src/elements/content-sidebar/activity-feed/task-new/__tests__/__snapshots__/AssigneeDetails.test.js.snap +9 -9
  1540. package/src/elements/content-sidebar/activity-feed/task-new/__tests__/__snapshots__/Task.test.js.snap +30 -21
  1541. package/src/elements/content-sidebar/activity-feed/task-new/__tests__/__snapshots__/TaskDueDate.test.js.snap +1 -1
  1542. package/src/elements/content-sidebar/activity-feed/task-new/messages.js +10 -0
  1543. package/src/elements/content-sidebar/activity-feed/version/__tests__/__snapshots__/CollapsedVersion.test.js.snap +2 -2
  1544. package/src/elements/content-sidebar/additional-tabs/__tests__/__snapshots__/AdditionalTabsLoading.test.js.snap +1 -1
  1545. package/src/elements/content-sidebar/skills/__tests__/__snapshots__/SidebarSkills.test.js.snap +208 -208
  1546. package/src/elements/content-sidebar/skills/__tests__/__snapshots__/SidebarSkillsCard.test.js.snap +5 -5
  1547. package/src/elements/content-sidebar/skills/faces/__tests__/__snapshots__/Faces.test.js.snap +23 -23
  1548. package/src/elements/content-sidebar/skills/keywords/__tests__/__snapshots__/EditableKeywords.test.js.snap +3 -3
  1549. package/src/elements/content-sidebar/skills/keywords/__tests__/__snapshots__/Keywords.test.js.snap +15 -15
  1550. package/src/elements/content-sidebar/skills/keywords/__tests__/__snapshots__/ReadOnlyKeywords.test.js.snap +8 -8
  1551. package/src/elements/content-sidebar/skills/timeline/__tests__/__snapshots__/Timeslice.test.js.snap +3 -3
  1552. package/src/elements/content-sidebar/skills/transcript/__tests__/__snapshots__/EditingTranscriptRow.test.js.snap +2 -10
  1553. package/src/elements/content-sidebar/stories/ContentSidebar.stories.js +19 -28
  1554. package/src/elements/content-sidebar/versions/VersionsItem.scss +6 -0
  1555. package/src/elements/content-sidebar/versions/__tests__/VersionsItem.test.js +3 -0
  1556. package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsItem.test.js.snap +3 -3
  1557. package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebar.test.js.snap +2 -2
  1558. package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +5 -5
  1559. package/src/elements/content-uploader/ItemName.scss +1 -1
  1560. package/src/elements/content-uploader/ProgressBar.scss +4 -0
  1561. package/src/elements/content-uploader/__tests__/__snapshots__/UploadStateContent.test.js.snap +1 -1
  1562. package/src/elements/content-uploader/stories/ContentUploader.stories.js +7 -11
  1563. package/src/features/access-stats/__tests__/__snapshots__/AccessStats.test.js.snap +30 -30
  1564. package/src/features/access-stats/__tests__/__snapshots__/AccessStatsItemsList.test.js.snap +14 -14
  1565. package/src/features/classification/__tests__/__snapshots__/Classification.test.js.snap +5 -5
  1566. package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControls.test.js.snap +17 -17
  1567. package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsModal.test.js.snap +6 -6
  1568. package/src/features/collaborator-avatars/CollaboratorList.scss +11 -1
  1569. package/src/features/collaborator-avatars/__tests__/__snapshots__/CollaboratorList.test.js.snap +10 -10
  1570. package/src/features/collaborator-avatars/__tests__/__snapshots__/CollaboratorListItem.test.js.snap +3 -3
  1571. package/src/features/collapsible-sidebar/CollapsibleSidebar.stories.js +1 -1
  1572. package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebarLogo.test.js.snap +2 -2
  1573. package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebarNav.test.js.snap +24 -24
  1574. package/src/features/content-answers/Answer.scss +4 -0
  1575. package/src/features/content-answers/Answer.tsx +22 -0
  1576. package/src/features/content-answers/ContentAnswers.tsx +60 -0
  1577. package/src/features/content-answers/ContentAnswersGridCard.scss +26 -0
  1578. package/src/features/content-answers/ContentAnswersGridCard.tsx +27 -0
  1579. package/src/features/content-answers/ContentAnswersModal.scss +56 -0
  1580. package/src/features/content-answers/ContentAnswersModal.tsx +136 -0
  1581. package/src/features/content-answers/ContentAnswersModalContent.scss +12 -0
  1582. package/src/features/content-answers/ContentAnswersModalContent.tsx +64 -0
  1583. package/src/features/content-answers/ContentAnswersModalError.scss +28 -0
  1584. package/src/features/content-answers/ContentAnswersModalError.tsx +32 -0
  1585. package/src/features/content-answers/ContentAnswersModalFooter.scss +42 -0
  1586. package/src/features/content-answers/ContentAnswersModalFooter.tsx +103 -0
  1587. package/src/features/content-answers/ContentAnswersModalFooterActions.scss +17 -0
  1588. package/src/features/content-answers/ContentAnswersModalFooterActions.tsx +45 -0
  1589. package/src/features/content-answers/ContentAnswersOpenButton.scss +54 -0
  1590. package/src/features/content-answers/ContentAnswersOpenButton.tsx +74 -0
  1591. package/src/features/content-answers/InlineError.scss +39 -0
  1592. package/src/features/content-answers/InlineError.tsx +32 -0
  1593. package/src/features/content-answers/LoadingElement.scss +4 -0
  1594. package/src/features/content-answers/LoadingElement.tsx +17 -0
  1595. package/src/features/content-answers/Question.scss +16 -0
  1596. package/src/features/content-answers/Question.tsx +30 -0
  1597. package/src/features/content-answers/WelcomeMessage.scss +25 -0
  1598. package/src/features/content-answers/WelcomeMessage.tsx +35 -0
  1599. package/src/features/content-answers/__mocks__/mocks.ts +66 -0
  1600. package/src/features/content-answers/__tests__/Answer.test.tsx +25 -0
  1601. package/src/features/content-answers/__tests__/ContentAnswers.test.tsx +53 -0
  1602. package/src/features/content-answers/__tests__/ContentAnswersGridCard.test.tsx +21 -0
  1603. package/src/features/content-answers/__tests__/ContentAnswersModal.test.tsx +117 -0
  1604. package/src/features/content-answers/__tests__/ContentAnswersModalContent.test.tsx +104 -0
  1605. package/src/features/content-answers/__tests__/ContentAnswersModalError.test.tsx +26 -0
  1606. package/src/features/content-answers/__tests__/ContentAnswersModalFooter.test.tsx +96 -0
  1607. package/src/features/content-answers/__tests__/ContentAnswersModalFooterActions.tsx +37 -0
  1608. package/src/features/content-answers/__tests__/ContentAnswersOpenButton.test.tsx +73 -0
  1609. package/src/features/content-answers/__tests__/InlineError.test.tsx +20 -0
  1610. package/src/features/content-answers/__tests__/Question.test.tsx +21 -0
  1611. package/src/features/content-answers/__tests__/WelcomeMessage.test.tsx +24 -0
  1612. package/src/features/content-answers/constants.ts +134 -0
  1613. package/src/features/content-answers/index.ts +1 -0
  1614. package/src/features/content-answers/messages.ts +87 -0
  1615. package/src/features/content-explorer/content-explorer/ContentExplorer.js +19 -15
  1616. package/src/features/content-explorer/content-explorer/ContentExplorer.scss +4 -0
  1617. package/src/features/content-explorer/content-explorer/ContentExplorerBreadcrumbs.js +2 -0
  1618. package/src/features/content-explorer/content-explorer/__tests__/ContentExplorer.test.js +29 -0
  1619. package/src/features/content-explorer/content-explorer/__tests__/__snapshots__/ContentExplorer.test.js.snap +10 -10
  1620. package/src/features/content-explorer/content-explorer/__tests__/__snapshots__/ContentExplorerHeaderActions.test.js.snap +1 -1
  1621. package/src/features/content-explorer/content-explorer-modal/ContentExplorerModal.js +1 -0
  1622. package/src/features/content-explorer/content-explorer-modal/__tests__/__snapshots__/ContentExplorerModal.test.js.snap +10 -10
  1623. package/src/features/content-explorer/content-explorer-modal-container/ContentExplorerModalContainer.js +2 -0
  1624. package/src/features/content-explorer/item-list/__tests__/__snapshots__/ItemListIcon.test.js.snap +4 -4
  1625. package/src/features/header-flyout/__tests__/__snapshots__/HeaderFlyout.test.js.snap +3 -3
  1626. package/src/features/invite-collaborators-modal/__tests__/__snapshots__/InviteCollaboratorsModal.test.js.snap +8 -8
  1627. package/src/features/item-details/__tests__/__snapshots__/EditableDescription.test.js.snap +2 -8
  1628. package/src/features/item-details/__tests__/__snapshots__/ItemExpirationNotice.test.js.snap +4 -4
  1629. package/src/features/item-details/__tests__/__snapshots__/ItemProperties.test.js.snap +2 -2
  1630. package/src/features/item-details/__tests__/__snapshots__/ReadonlyDescription.test.js.snap +2 -2
  1631. package/src/features/item-details/__tests__/__snapshots__/SharedLinkExpirationNotice.test.js.snap +2 -2
  1632. package/src/features/item-details/__tests__/__snapshots__/VersionHistoryLink.test.js.snap +2 -2
  1633. package/src/features/left-sidebar/__tests__/__snapshots__/InstantLogin.test.js.snap +2 -2
  1634. package/src/features/left-sidebar/__tests__/__snapshots__/LeftSidebar.test.js.snap +21 -21
  1635. package/src/features/left-sidebar/__tests__/__snapshots__/LeftSidebarLink.test.js.snap +14 -14
  1636. package/src/features/left-sidebar/__tests__/__snapshots__/defaultNavLinkRenderer.test.js.snap +1 -1
  1637. package/src/features/message-center/components/templates/common/__tests__/__snapshots__/MessageTextContent.test.js.snap +2 -2
  1638. package/src/features/message-center/components/templates/preview-title-body-tags-button/__tests__/__snapshots__/PreviewTitleBodyTagsButton.test.js.snap +4 -4
  1639. package/src/features/message-center/components/templates/title-body-tags-button/__tests__/__snapshots__/TitleBodyTagsButton.test.js.snap +4 -4
  1640. package/src/features/metadata-based-view/__tests__/__snapshots__/IconWithTooltip.test.js.snap +3 -3
  1641. package/src/features/metadata-based-view/__tests__/__snapshots__/MetadataBasedItemList.test.js.snap +21 -21
  1642. package/src/features/metadata-instance-editor/__tests__/__snapshots__/Header.test.js.snap +3 -3
  1643. package/src/features/metadata-instance-editor/__tests__/__snapshots__/Instance.test.js.snap +204 -204
  1644. package/src/features/metadata-instance-editor/__tests__/__snapshots__/Instances.test.js.snap +37 -37
  1645. package/src/features/metadata-instance-editor/__tests__/__snapshots__/MetadataInstanceEditor.test.js.snap +229 -229
  1646. package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplateDropdown.test.js.snap +7 -7
  1647. package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplatedInstance.test.js.snap +17 -17
  1648. package/src/features/metadata-instance-fields/__tests__/__snapshots__/DateMetadataField.test.js.snap +1 -1
  1649. package/src/features/metadata-instance-fields/__tests__/__snapshots__/EnumMetadataField.test.js.snap +10 -10
  1650. package/src/features/metadata-instance-fields/__tests__/__snapshots__/MetadataField.test.js.snap +1 -1
  1651. package/src/features/metadata-instance-fields/__tests__/__snapshots__/MultiSelectMetadataField.test.js.snap +4 -4
  1652. package/src/features/pagination/Pagination.scss +0 -4
  1653. package/src/features/pagination/__tests__/__snapshots__/MarkerBasedPagination.test.js.snap +8 -8
  1654. package/src/features/pagination/__tests__/__snapshots__/OffsetBasedPagination.test.js.snap +34 -34
  1655. package/src/features/pagination/__tests__/__snapshots__/PaginationMenu.test.js.snap +3 -3
  1656. package/src/features/presence/__tests__/__snapshots__/Presence.test.js.snap +49 -49
  1657. package/src/features/presence/__tests__/__snapshots__/PresenceLink.test.js.snap +24 -24
  1658. package/src/features/query-bar/__tests__/__snapshots__/ColumnButton.test.js.snap +6 -6
  1659. package/src/features/query-bar/__tests__/__snapshots__/Condition.test.js.snap +10 -10
  1660. package/src/features/query-bar/__tests__/__snapshots__/QueryBar.test.js.snap +41 -41
  1661. package/src/features/query-bar/__tests__/__snapshots__/TemplateButton.test.js.snap +2 -2
  1662. package/src/features/sandbox-banner/SandboxBanner.stories.tsx +1 -1
  1663. package/src/features/security/__tests__/__snapshots__/SecurityBadge.test.js.snap +2 -2
  1664. package/src/features/security-cloud-game/stories/SecurityCloudGame.stories.js +1 -1
  1665. package/src/features/shared-link-modal/__tests__/__snapshots__/AccessLabel.test.js.snap +1 -1
  1666. package/src/features/shared-link-modal/__tests__/__snapshots__/SharedLink.test.js.snap +5 -5
  1667. package/src/features/shared-link-modal/__tests__/__snapshots__/SharedLinkAccess.test.js.snap +4 -4
  1668. package/src/features/shared-link-modal/__tests__/__snapshots__/SharedLinkModal.test.js.snap +1 -1
  1669. package/src/features/shared-link-modal/stories/SharedLink.stories.js +1 -1
  1670. package/src/features/shared-link-modal/stories/SharedLinkModal.stories.js +1 -1
  1671. package/src/features/shared-link-settings-modal/SharedLinkSettingsModal.stories.js +1 -1
  1672. package/src/features/targeting/hocs/__tests__/__snapshots__/withTargetedClickThrough.test.js.snap +1 -1
  1673. package/src/features/targeting/hocs/withTargetedClickThrough.js +10 -1
  1674. package/src/features/targeting/types.js +1 -0
  1675. package/src/features/unified-share-modal/UnifiedShareModal.scss +61 -79
  1676. package/src/features/unified-share-modal/__tests__/__snapshots__/ContactsField.test.js.snap +23 -23
  1677. package/src/features/unified-share-modal/__tests__/__snapshots__/EmailForm.test.js.snap +28 -28
  1678. package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkAccessDescription.test.js.snap +8 -8
  1679. package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkAccessLabel.test.js.snap +10 -10
  1680. package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkSection.test.js.snap +54 -54
  1681. package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +250 -250
  1682. package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareModal.test.js.snap +409 -409
  1683. package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareModalTitle.test.js.snap +1 -1
  1684. package/src/features/unified-share-modal/stories/UnifiedShareModal.stories.js +1 -1
  1685. package/src/features/virtualized-table/DraggableVirtualizedTable.stories.js +1 -1
  1686. package/src/features/virtualized-table/__tests__/__snapshots__/BaseVirtualizedTable.test.js.snap +5 -5
  1687. package/src/features/virtualized-table/__tests__/__snapshots__/DraggableVirtualizedTable.test.js.snap +7 -7
  1688. package/src/features/virtualized-table/__tests__/__snapshots__/VirtualizedTable.test.js.snap +19 -19
  1689. package/src/features/virtualized-table-renderers/__tests__/__snapshots__/loadingRowRenderer.test.js.snap +1 -1
  1690. package/src/features/virtualized-table-renderers/__tests__/draggableRowRenderer.test.js +5 -5
  1691. package/src/icon/content/ContentSharing32.stories.tsx +1 -1
  1692. package/src/icon/content/CustomSetup32.stories.tsx +1 -1
  1693. package/src/icon/content/DeviceTrust32.stories.tsx +1 -1
  1694. package/src/icon/content/FileAudio32.stories.tsx +1 -1
  1695. package/src/icon/content/FileBookmark32.stories.tsx +1 -1
  1696. package/src/icon/content/FileBoxNote32.stories.tsx +1 -1
  1697. package/src/icon/content/FileCanvas32.stories.tsx +1 -1
  1698. package/src/icon/content/FileCode32.stories.tsx +1 -1
  1699. package/src/icon/content/FileDefault32.stories.tsx +1 -1
  1700. package/src/icon/content/FileDicom32.stories.tsx +1 -1
  1701. package/src/icon/content/FileDocs32.stories.tsx +1 -1
  1702. package/src/icon/content/FileDwg32.stories.tsx +1 -1
  1703. package/src/icon/content/FileExcel32.stories.tsx +1 -1
  1704. package/src/icon/content/FileIllustrator32.stories.tsx +1 -1
  1705. package/src/icon/content/FileImage32.stories.tsx +1 -1
  1706. package/src/icon/content/FileIndesign32.stories.tsx +1 -1
  1707. package/src/icon/content/FileKeynote32.stories.tsx +1 -1
  1708. package/src/icon/content/FileNumbers32.stories.tsx +1 -1
  1709. package/src/icon/content/FilePages32.stories.tsx +1 -1
  1710. package/src/icon/content/FilePdf32.stories.tsx +1 -1
  1711. package/src/icon/content/FilePhotoshop32.stories.tsx +1 -1
  1712. package/src/icon/content/FilePowerpoint32.stories.tsx +1 -1
  1713. package/src/icon/content/FilePresentation32.stories.tsx +1 -1
  1714. package/src/icon/content/FileSheets32.stories.tsx +1 -1
  1715. package/src/icon/content/FileSlides32.stories.tsx +1 -1
  1716. package/src/icon/content/FileSpreadsheet32.stories.tsx +1 -1
  1717. package/src/icon/content/FileText32.stories.tsx +1 -1
  1718. package/src/icon/content/FileThreeD32.stories.tsx +1 -1
  1719. package/src/icon/content/FileUpload32.stories.tsx +1 -1
  1720. package/src/icon/content/FileVector32.stories.tsx +1 -1
  1721. package/src/icon/content/FileVideo32.stories.tsx +1 -1
  1722. package/src/icon/content/FileWord32.stories.tsx +1 -1
  1723. package/src/icon/content/FileXbd32.stories.tsx +1 -1
  1724. package/src/icon/content/FileXdw32.stories.tsx +1 -1
  1725. package/src/icon/content/FileZip32.stories.tsx +1 -1
  1726. package/src/icon/content/FolderExternal32.stories.tsx +1 -1
  1727. package/src/icon/content/FolderPersonal32.stories.tsx +1 -1
  1728. package/src/icon/content/FolderShared32.stories.tsx +1 -1
  1729. package/src/icon/content/FolderUpload32.stories.tsx +1 -1
  1730. package/src/icon/content/Mobile32.stories.tsx +1 -1
  1731. package/src/icon/content/Notifications32.stories.tsx +1 -1
  1732. package/src/icon/content/PlatformCam32.stories.tsx +1 -1
  1733. package/src/icon/content/PlatformSandbox32.stories.tsx +1 -1
  1734. package/src/icon/content/RetentionPolicyModifiable32.stories.tsx +1 -1
  1735. package/src/icon/content/RetentionPolicyNonModifiable32.stories.tsx +1 -1
  1736. package/src/icon/content/Security32.stories.tsx +1 -1
  1737. package/src/icon/content/SignRequest32.stories.tsx +1 -1
  1738. package/src/icon/content/UserSettings32.stories.tsx +1 -1
  1739. package/src/icon/content/Workflow32.stories.tsx +1 -1
  1740. package/src/icon/content/WorkflowTemplate32.stories.tsx +1 -1
  1741. package/src/icon/fill/Activity16.stories.tsx +1 -1
  1742. package/src/icon/fill/Activity20.stories.tsx +1 -1
  1743. package/src/icon/fill/Alert16.stories.tsx +1 -1
  1744. package/src/icon/fill/AlertBadge16.stories.tsx +1 -1
  1745. package/src/icon/fill/AnnotationsDrawing16.stories.tsx +1 -1
  1746. package/src/icon/fill/AnnotationsHighlight16.stories.tsx +1 -1
  1747. package/src/icon/fill/AnnotationsRegion16.stories.tsx +1 -1
  1748. package/src/icon/fill/Apps16.stories.tsx +1 -1
  1749. package/src/icon/fill/Arrow16.stories.tsx +1 -1
  1750. package/src/icon/fill/ArrowArcRight.stories.tsx +1 -1
  1751. package/src/icon/fill/ArrowForward16.stories.tsx +1 -1
  1752. package/src/icon/fill/ArrowSort16.stories.tsx +1 -1
  1753. package/src/icon/fill/AvatarBadge16.stories.tsx +1 -1
  1754. package/src/icon/fill/BarChart16.stories.tsx +1 -1
  1755. package/src/icon/fill/BoxDev16.stories.tsx +1 -1
  1756. package/src/icon/fill/BoxNotes16.stories.tsx +1 -1
  1757. package/src/icon/fill/Calendar16.stories.tsx +1 -1
  1758. package/src/icon/fill/Caret8.stories.tsx +1 -1
  1759. package/src/icon/fill/CaretBadge16.stories.tsx +1 -1
  1760. package/src/icon/fill/Checkmark16.stories.tsx +1 -1
  1761. package/src/icon/fill/CheckmarkBadge16.stories.tsx +1 -1
  1762. package/src/icon/fill/CircleBackButton24.stories.tsx +1 -1
  1763. package/src/icon/fill/CircleCloseButton24.stories.tsx +1 -1
  1764. package/src/icon/fill/Classify16.stories.tsx +1 -1
  1765. package/src/icon/fill/ClearBadge16.stories.tsx +1 -1
  1766. package/src/icon/fill/ClockBadge16.stories.tsx +1 -1
  1767. package/src/icon/fill/CloudUpload16.stories.tsx +1 -1
  1768. package/src/icon/fill/Code16.stories.tsx +1 -1
  1769. package/src/icon/fill/Collection16.stories.tsx +1 -1
  1770. package/src/icon/fill/CollectionBolt16.stories.tsx +1 -1
  1771. package/src/icon/fill/CollectionPlus16.stories.tsx +1 -1
  1772. package/src/icon/fill/CollectionStar16.stories.tsx +1 -1
  1773. package/src/icon/fill/CreditCard16.stories.tsx +1 -1
  1774. package/src/icon/fill/Download16.stories.tsx +1 -1
  1775. package/src/icon/fill/EmailNotification16.stories.tsx +1 -1
  1776. package/src/icon/fill/ExportArrow16.stories.tsx +1 -1
  1777. package/src/icon/fill/Feed16.stories.tsx +1 -1
  1778. package/src/icon/fill/FileAudio16.stories.tsx +1 -1
  1779. package/src/icon/fill/FileBookmark16.stories.tsx +1 -1
  1780. package/src/icon/fill/FileBoxNote16.stories.tsx +1 -1
  1781. package/src/icon/fill/FileCanvas16.stories.tsx +1 -1
  1782. package/src/icon/fill/FileCode16.stories.tsx +1 -1
  1783. package/src/icon/fill/FileCopy16.stories.tsx +1 -1
  1784. package/src/icon/fill/FileDefault16.stories.tsx +1 -1
  1785. package/src/icon/fill/FileDicom16.stories.tsx +1 -1
  1786. package/src/icon/fill/FileDocs16.stories.tsx +1 -1
  1787. package/src/icon/fill/FileDwg16.stories.tsx +1 -1
  1788. package/src/icon/fill/FileExcel16.stories.tsx +1 -1
  1789. package/src/icon/fill/FileIllustrator16.stories.tsx +1 -1
  1790. package/src/icon/fill/FileImage16.stories.tsx +1 -1
  1791. package/src/icon/fill/FileIndesign16.stories.tsx +1 -1
  1792. package/src/icon/fill/FileKeynote16.stories.tsx +1 -1
  1793. package/src/icon/fill/FileNumbers16.stories.tsx +1 -1
  1794. package/src/icon/fill/FilePages16.stories.tsx +1 -1
  1795. package/src/icon/fill/FilePdf16.stories.tsx +1 -1
  1796. package/src/icon/fill/FilePhotoshop16.stories.tsx +1 -1
  1797. package/src/icon/fill/FilePowerpoint16.stories.tsx +1 -1
  1798. package/src/icon/fill/FilePresentation16.stories.tsx +1 -1
  1799. package/src/icon/fill/FileSheets16.stories.tsx +1 -1
  1800. package/src/icon/fill/FileSlides16.stories.tsx +1 -1
  1801. package/src/icon/fill/FileSpreadsheet16.stories.tsx +1 -1
  1802. package/src/icon/fill/FileText16.stories.tsx +1 -1
  1803. package/src/icon/fill/FileThreeD16.stories.tsx +1 -1
  1804. package/src/icon/fill/FileVector16.stories.tsx +1 -1
  1805. package/src/icon/fill/FileVideo16.stories.tsx +1 -1
  1806. package/src/icon/fill/FileWord16.stories.tsx +1 -1
  1807. package/src/icon/fill/FileZip16.stories.tsx +1 -1
  1808. package/src/icon/fill/Filter16.stories.tsx +1 -1
  1809. package/src/icon/fill/Folder16.stories.tsx +1 -1
  1810. package/src/icon/fill/FolderExternal16.stories.tsx +1 -1
  1811. package/src/icon/fill/FolderPersonal16.stories.tsx +1 -1
  1812. package/src/icon/fill/FolderShared16.stories.tsx +1 -1
  1813. package/src/icon/fill/Gear16.stories.tsx +1 -1
  1814. package/src/icon/fill/GlobeBadge16.stories.tsx +1 -1
  1815. package/src/icon/fill/Hamburger20.stories.tsx +1 -1
  1816. package/src/icon/fill/Help20.stories.tsx +1 -1
  1817. package/src/icon/fill/InProgress16.stories.tsx +1 -1
  1818. package/src/icon/fill/Info16.stories.tsx +1 -1
  1819. package/src/icon/fill/InfoBadge16.stories.tsx +1 -1
  1820. package/src/icon/fill/LightningBolt16.stories.tsx +1 -1
  1821. package/src/icon/fill/Lock16.stories.tsx +1 -1
  1822. package/src/icon/fill/Megaphone20.stories.tsx +1 -1
  1823. package/src/icon/fill/Minus16.stories.tsx +1 -1
  1824. package/src/icon/fill/Move16.stories.tsx +1 -1
  1825. package/src/icon/fill/MoveCopy16.stories.tsx +1 -1
  1826. package/src/icon/fill/Overflow16.stories.tsx +1 -1
  1827. package/src/icon/fill/PaperAirplane16.stories.tsx +1 -1
  1828. package/src/icon/fill/Pencil16.stories.tsx +1 -1
  1829. package/src/icon/fill/Picture16.stories.tsx +1 -1
  1830. package/src/icon/fill/Plus16.stories.tsx +1 -1
  1831. package/src/icon/fill/PlusBadge16.stories.tsx +1 -1
  1832. package/src/icon/fill/PointerChevronDown24.stories.tsx +1 -1
  1833. package/src/icon/fill/Printer16.stories.tsx +1 -1
  1834. package/src/icon/fill/Relay16.stories.tsx +1 -1
  1835. package/src/icon/fill/RelayClassic16.stories.tsx +1 -1
  1836. package/src/icon/fill/Ribbon16.stories.tsx +1 -1
  1837. package/src/icon/fill/Scribble16.stories.tsx +1 -1
  1838. package/src/icon/fill/Search16.stories.tsx +1 -1
  1839. package/src/icon/fill/Sign16.stories.tsx +1 -1
  1840. package/src/icon/fill/SignFieldCheckBox16.stories.tsx +1 -1
  1841. package/src/icon/fill/SignFieldSignature16.stories.tsx +1 -1
  1842. package/src/icon/fill/SignFieldTextInput16.stories.tsx +1 -1
  1843. package/src/icon/fill/SignMe32.stories.tsx +1 -1
  1844. package/src/icon/fill/SignMeOthers32.stories.tsx +1 -1
  1845. package/src/icon/fill/SignOthers32.stories.tsx +1 -1
  1846. package/src/icon/fill/Skills16.stories.tsx +1 -1
  1847. package/src/icon/fill/Tag16.stories.tsx +1 -1
  1848. package/src/icon/fill/Task16.stories.tsx +1 -1
  1849. package/src/icon/fill/Trash16.stories.tsx +1 -1
  1850. package/src/icon/fill/TwoPeople16.stories.tsx +1 -1
  1851. package/src/icon/fill/Upload16.stories.tsx +1 -1
  1852. package/src/icon/fill/UserSettings16.stories.tsx +1 -1
  1853. package/src/icon/fill/Workflow16.stories.tsx +1 -1
  1854. package/src/icon/fill/X16.stories.tsx +1 -1
  1855. package/src/icon/line/AlarmClock16.stories.tsx +1 -1
  1856. package/src/icon/line/AlertBubble16.stories.tsx +1 -1
  1857. package/src/icon/line/Apps16.stories.tsx +1 -1
  1858. package/src/icon/line/ArrowBoxRight16.stories.tsx +1 -1
  1859. package/src/icon/line/Avatar16.stories.tsx +1 -1
  1860. package/src/icon/line/AvatarBadge16.stories.tsx +1 -1
  1861. package/src/icon/line/AvatarPlusBadge16.stories.tsx +1 -1
  1862. package/src/icon/line/AvatarXBadge16.stories.tsx +1 -1
  1863. package/src/icon/line/BoxAi.stories.tsx +1 -1
  1864. package/src/icon/line/BoxDev16.stories.tsx +1 -1
  1865. package/src/icon/line/Bug16.stories.tsx +1 -1
  1866. package/src/icon/line/Checkmark16.stories.tsx +1 -1
  1867. package/src/icon/line/CheckmarkBadge16.stories.tsx +1 -1
  1868. package/src/icon/line/CircleCheck16.stories.tsx +1 -1
  1869. package/src/icon/line/CircleX16.stories.tsx +1 -1
  1870. package/src/icon/line/ClassificationBadge16.stories.tsx +1 -1
  1871. package/src/icon/line/ClockArrow16.stories.tsx +1 -1
  1872. package/src/icon/line/ClockBadge16.stories.tsx +1 -1
  1873. package/src/icon/line/CloudWithArrow16.stories.tsx +1 -1
  1874. package/src/icon/line/CoAuthoringBadge16.stories.tsx +1 -1
  1875. package/src/icon/line/CoEdit16.stories.tsx +1 -1
  1876. package/src/icon/line/Collaborations16.stories.tsx +1 -1
  1877. package/src/icon/line/Collection16.stories.tsx +1 -1
  1878. package/src/icon/line/CollectionBolt16.stories.tsx +1 -1
  1879. package/src/icon/line/CollectionPlus16.stories.tsx +1 -1
  1880. package/src/icon/line/CollectionStar16.stories.tsx +1 -1
  1881. package/src/icon/line/CommentBubble16.stories.tsx +1 -1
  1882. package/src/icon/line/CrosshairRegion32.stories.tsx +1 -1
  1883. package/src/icon/line/DocInfo16.stories.tsx +1 -1
  1884. package/src/icon/line/Download16.stories.tsx +1 -1
  1885. package/src/icon/line/Email16.stories.tsx +1 -1
  1886. package/src/icon/line/EmailAddress16.stories.tsx +1 -1
  1887. package/src/icon/line/EnvelopeBadge16.stories.tsx +1 -1
  1888. package/src/icon/line/ExclamationMarkBadge16.stories.tsx +1 -1
  1889. package/src/icon/line/ExportArrow16.stories.tsx +1 -1
  1890. package/src/icon/line/FileDescription16.stories.tsx +1 -1
  1891. package/src/icon/line/Folder16.stories.tsx +1 -1
  1892. package/src/icon/line/Gear16.stories.tsx +1 -1
  1893. package/src/icon/line/GenericCopy16.stories.tsx +1 -1
  1894. package/src/icon/line/GlobeBadge16.stories.tsx +1 -1
  1895. package/src/icon/line/Help16.stories.tsx +1 -1
  1896. package/src/icon/line/Hidden16.stories.tsx +1 -1
  1897. package/src/icon/line/History16.stories.tsx +1 -1
  1898. package/src/icon/line/InfoBadge16.stories.tsx +1 -1
  1899. package/src/icon/line/Key16.stories.tsx +1 -1
  1900. package/src/icon/line/Link16.stories.tsx +1 -1
  1901. package/src/icon/line/LinkBadge16.stories.tsx +1 -1
  1902. package/src/icon/line/List16.stories.tsx +1 -1
  1903. package/src/icon/line/Lock16.stories.tsx +1 -1
  1904. package/src/icon/line/LockBadge16.stories.tsx +1 -1
  1905. package/src/icon/line/MetadataBadge16.stories.tsx +1 -1
  1906. package/src/icon/line/MoveCopy16.stories.tsx +1 -1
  1907. package/src/icon/line/Pencil16.stories.tsx +1 -1
  1908. package/src/icon/line/PencilBadge16.stories.tsx +1 -1
  1909. package/src/icon/line/Plane16.stories.tsx +1 -1
  1910. package/src/icon/line/Plus16.stories.tsx +1 -1
  1911. package/src/icon/line/Power16.stories.tsx +1 -1
  1912. package/src/icon/line/Question16.stories.tsx +1 -1
  1913. package/src/icon/line/Redo16.stories.tsx +1 -1
  1914. package/src/icon/line/Relay16.stories.tsx +1 -1
  1915. package/src/icon/line/Report16.stories.tsx +1 -1
  1916. package/src/icon/line/Retry16.stories.tsx +1 -1
  1917. package/src/icon/line/Rocket16.stories.tsx +1 -1
  1918. package/src/icon/line/RotatingArrows16.stories.tsx +1 -1
  1919. package/src/icon/line/Sharrow16.stories.tsx +1 -1
  1920. package/src/icon/line/Shield16.stories.tsx +1 -1
  1921. package/src/icon/line/Sign16.stories.tsx +1 -1
  1922. package/src/icon/line/SignTinycon16.stories.tsx +1 -1
  1923. package/src/icon/line/Star16.stories.tsx +1 -1
  1924. package/src/icon/line/SyncArrows16.stories.tsx +1 -1
  1925. package/src/icon/line/Template16.stories.tsx +1 -1
  1926. package/src/icon/line/TextLeft16.stories.tsx +1 -1
  1927. package/src/icon/line/Tool16.stories.tsx +1 -1
  1928. package/src/icon/line/Trash16.stories.tsx +1 -1
  1929. package/src/icon/line/TriangleAlert16.stories.tsx +1 -1
  1930. package/src/icon/line/Undo16.stories.tsx +1 -1
  1931. package/src/icon/line/Unlock16.stories.tsx +1 -1
  1932. package/src/icon/line/Upload16.stories.tsx +1 -1
  1933. package/src/icon/line/Video16.stories.tsx +1 -1
  1934. package/src/icon/line/View16.stories.tsx +1 -1
  1935. package/src/icon/line/XBadge16.stories.tsx +1 -1
  1936. package/src/icon/logo/AccountBilling32.stories.tsx +1 -1
  1937. package/src/icon/logo/AdminFaq32.stories.tsx +1 -1
  1938. package/src/icon/logo/AdminReferences32.stories.tsx +1 -1
  1939. package/src/icon/logo/AdobeAcrobat32.stories.tsx +1 -1
  1940. package/src/icon/logo/Apps32.stories.tsx +1 -1
  1941. package/src/icon/logo/BoxAiLogo.stories.tsx +1 -1
  1942. package/src/icon/logo/BoxLogo.stories.tsx +1 -1
  1943. package/src/icon/logo/BoxSign28.stories.tsx +1 -1
  1944. package/src/icon/logo/BoxSign32.stories.tsx +1 -1
  1945. package/src/icon/logo/ContentSharing32.stories.tsx +1 -1
  1946. package/src/icon/logo/CustomSetup32.stories.tsx +1 -1
  1947. package/src/icon/logo/DeviceTrust32.stories.tsx +1 -1
  1948. package/src/icon/logo/HelpArticle32.stories.tsx +1 -1
  1949. package/src/icon/logo/HowToGuides32.stories.tsx +1 -1
  1950. package/src/icon/logo/IconBoxApp512.stories.tsx +1 -1
  1951. package/src/icon/logo/KeynoteForMac32.stories.tsx +1 -1
  1952. package/src/icon/logo/ManageContent32.stories.tsx +1 -1
  1953. package/src/icon/logo/ManageUsers32.stories.tsx +1 -1
  1954. package/src/icon/logo/Mobile32.stories.tsx +1 -1
  1955. package/src/icon/logo/Notifications32.stories.tsx +1 -1
  1956. package/src/icon/logo/NumbersForMac32.stories.tsx +1 -1
  1957. package/src/icon/logo/PagesForMac32.stories.tsx +1 -1
  1958. package/src/icon/logo/Reporting32.stories.tsx +1 -1
  1959. package/src/icon/logo/Security32.stories.tsx +1 -1
  1960. package/src/icon/logo/TroubleShootingTools32.stories.tsx +1 -1
  1961. package/src/icon/logo/UserSettings32.stories.tsx +1 -1
  1962. package/src/icons/collections/IconCollections.stories.tsx +1 -1
  1963. package/src/icons/collections/IconCollectionsAdd.stories.tsx +1 -1
  1964. package/src/icons/collections/IconCollectionsBolt.stories.tsx +1 -1
  1965. package/src/icons/collections/IconCollectionsFilled.stories.tsx +1 -1
  1966. package/src/icons/collections/IconCollectionsStar.stories.tsx +1 -1
  1967. package/src/icons/collections/IconCollectionsStarFilled.stories.tsx +1 -1
  1968. package/src/icons/collections/collections.stories.tsx +1 -1
  1969. package/src/icons/icons.stories.tsx +1 -1
  1970. package/src/icons/illustrations/__tests__/__snapshots__/PeopleOpeningEnvelopeIllustration.test.tsx.snap +6 -6
  1971. package/src/icons/states/__tests__/__snapshots__/EnvelopeTrophyState.test.tsx.snap +6 -6
  1972. package/src/icons/two-toned/IconAnnotation.tsx +1 -1
  1973. package/src/illustration/AllNewBox140.stories.tsx +1 -1
  1974. package/src/illustration/AppSupport140.stories.tsx +1 -1
  1975. package/src/illustration/Bell140.stories.tsx +1 -1
  1976. package/src/illustration/BoxDrive140.stories.tsx +1 -1
  1977. package/src/illustration/BoxMobile140.stories.tsx +1 -1
  1978. package/src/illustration/BudgetApproval56.stories.tsx +1 -1
  1979. package/src/illustration/Certificate56.stories.tsx +1 -1
  1980. package/src/illustration/CertificateSigning56.stories.tsx +1 -1
  1981. package/src/illustration/ChangeOrder56.stories.tsx +1 -1
  1982. package/src/illustration/Clock140.stories.tsx +1 -1
  1983. package/src/illustration/CollectionStar140.stories.tsx +1 -1
  1984. package/src/illustration/ContractorId56.stories.tsx +1 -1
  1985. package/src/illustration/CreativeApproval56.stories.tsx +1 -1
  1986. package/src/illustration/CreativeAssets56.stories.tsx +1 -1
  1987. package/src/illustration/CustomApp56.stories.tsx +1 -1
  1988. package/src/illustration/CustomSkill56.stories.tsx +1 -1
  1989. package/src/illustration/CustomTemplate56.stories.tsx +1 -1
  1990. package/src/illustration/CustomerSupport140.stories.tsx +1 -1
  1991. package/src/illustration/DiscoDanceParty140.stories.tsx +1 -1
  1992. package/src/illustration/Discount140.stories.tsx +1 -1
  1993. package/src/illustration/EmailVerification140.stories.tsx +1 -1
  1994. package/src/illustration/EmployeeId56.stories.tsx +1 -1
  1995. package/src/illustration/EmployeeReview56.stories.tsx +1 -1
  1996. package/src/illustration/EmptyStateDetails.stories.tsx +1 -1
  1997. package/src/illustration/EmptyStateFolder140.stories.tsx +1 -1
  1998. package/src/illustration/EmptyStatePreviewActivity140.stories.tsx +1 -1
  1999. package/src/illustration/Envelope140.stories.tsx +1 -1
  2000. package/src/illustration/ErrorState404140.stories.tsx +1 -1
  2001. package/src/illustration/Files.stories.tsx +1 -1
  2002. package/src/illustration/Files140.stories.tsx +1 -1
  2003. package/src/illustration/FinanceContract56.stories.tsx +1 -1
  2004. package/src/illustration/FolderArrow140.stories.tsx +1 -1
  2005. package/src/illustration/FolderFloat140.stories.tsx +1 -1
  2006. package/src/illustration/FolderPlane140.stories.tsx +1 -1
  2007. package/src/illustration/FolderStar140.stories.tsx +1 -1
  2008. package/src/illustration/Gavel56.stories.tsx +1 -1
  2009. package/src/illustration/Handshake56.stories.tsx +1 -1
  2010. package/src/illustration/HandshakeAgreement56.stories.tsx +1 -1
  2011. package/src/illustration/HatWand140.stories.tsx +1 -1
  2012. package/src/illustration/Keynote56.stories.tsx +1 -1
  2013. package/src/illustration/LegalContract56.stories.tsx +1 -1
  2014. package/src/illustration/LegalFolder56.stories.tsx +1 -1
  2015. package/src/illustration/LimitedApp56.stories.tsx +1 -1
  2016. package/src/illustration/MarketingPlan56.stories.tsx +1 -1
  2017. package/src/illustration/Megaphone140.stories.tsx +1 -1
  2018. package/src/illustration/MetricsReview56.stories.tsx +1 -1
  2019. package/src/illustration/Microphone140.stories.tsx +1 -1
  2020. package/src/illustration/Missing140.stories.tsx +1 -1
  2021. package/src/illustration/MoneyStack56.stories.tsx +1 -1
  2022. package/src/illustration/MonthlyReport56.stories.tsx +1 -1
  2023. package/src/illustration/NotesStar140.stories.tsx +1 -1
  2024. package/src/illustration/PlanSelection140.stories.tsx +1 -1
  2025. package/src/illustration/Playbook56.stories.tsx +1 -1
  2026. package/src/illustration/ProjectFolder56.stories.tsx +1 -1
  2027. package/src/illustration/RecentFiles140.stories.tsx +1 -1
  2028. package/src/illustration/RelayPlanet140.stories.tsx +1 -1
  2029. package/src/illustration/SalesContract56.stories.tsx +1 -1
  2030. package/src/illustration/Sandbox140.stories.tsx +1 -1
  2031. package/src/illustration/TaskList56.stories.tsx +1 -1
  2032. package/src/illustration/Transfers140.stories.tsx +1 -1
  2033. package/src/illustration/TrashEmpty140.stories.tsx +1 -1
  2034. package/src/illustration/Unplugged140.stories.tsx +1 -1
  2035. package/src/illustration/UploadCloud140.stories.tsx +1 -1
  2036. package/src/illustration/UserOrbit56.stories.tsx +1 -1
  2037. package/src/styles/colors.stories.tsx +1 -1
  2038. package/src/styles/common/_buttons.scss +1 -1
  2039. package/src/styles/constants/_buttons.scss +1 -0
  2040. package/src/styles/typography.stories.tsx +1 -1
  2041. package/src/utils/Browser.js +10 -0
  2042. package/src/utils/__tests__/Browser.test.js +28 -0
  2043. package/src/utils/__tests__/__snapshots__/createTheme.test.js.snap +35 -35
  2044. package/src/utils/__tests__/fields.test.js +2 -0
  2045. package/src/utils/__tests__/webcrypto.test.js +10 -0
  2046. package/src/utils/comparator.js +1 -1
  2047. package/src/utils/createTheme.stories.js +1 -1
  2048. package/src/utils/fields.js +3 -0
  2049. package/src/utils/flatten.js +6 -1
  2050. package/src/utils/size.js +5 -5
  2051. package/src/utils/sorter.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/elements/content-preview/ContentPreview.js"],"names":["React","classNames","cloneDeep","flow","getProp","isEqual","noop","omit","setProp","throttle","uniqueid","Measure","withRouter","decode","makeResponsive","withNavRouter","Internationalize","AsyncLoad","TokenService","isInputElement","focus","getTypedFileId","withErrorBoundary","withLogger","PREVIEW_FIELDS_TO_FETCH","mark","withFeatureProvider","EVENT_JS_READY","ReloadNotification","API","PreviewHeader","PreviewMask","PreviewNavigation","withAnnotations","WithAnnotationsProps","withAnnotatorContext","WithAnnotatorContextProps","DEFAULT_HOSTNAME_API","DEFAULT_HOSTNAME_APP","DEFAULT_HOSTNAME_STATIC","DEFAULT_PREVIEW_VERSION","DEFAULT_LOCALE","DEFAULT_PATH_STATIC_PREVIEW","CLIENT_NAME_CONTENT_PREVIEW","ORIGIN_PREVIEW","ORIGIN_CONTENT_PREVIEW","ERROR_CODE_UNKNOWN","startAtTypes","page","InvalidIdError","Error","PREVIEW_LOAD_METRIC_EVENT","MARK_NAME_JS_READY","LoadableSidebar","loader","ContentPreview","PureComponent","constructor","props","createRef","canPrint","error","undefined","isLoading","isReloadNotificationVisible","isThumbnailSidebarOpen","rest","code","onError","setState","previewMetrics","logger","event_name","metrics","totalFetchFileTime","getTotalFileFetchTime","totalTime","value","file_info_time","onPreviewMetric","data","onLoad","collection","currentIndex","getFileIndex","filesToPrefetch","slice","previewTimeMetrics","loadData","totalPreviewMetrics","addFetchFileTimeToPreviewMetrics","time","focusPreview","preview","length","prefetch","handleCanPrint","advancedContentInsights","annotatorState","activeAnnotationId","enableThumbnailsSidebar","fileOptions","onAnnotatorEvent","onAnnotator","onContentInsightsEventReport","previewExperiences","showAnnotationsControls","token","tokenOrTokenFunction","file","selectedVersion","startAt","state","isPreviewLibraryLoaded","fileId","getFileId","currentFileId","fileOpts","typedId","getReadTokens","id","previewOptions","container","header","headerElement","experiences","showAnnotations","canViewAnnotations","showDownload","canDownload","showLoading","showProgress","skipServerUpdate","useHotkeys","Preview","global","Box","addListener","onPreviewLoad","onPreviewError","updateFileCache","show","Object","keys","stagedFile","initialState","getCurrentViewer","resize","fetchFileEndTime","performance","now","currentFile","isExistingFile","isWatermarked","file_version","sha1","fileError","errorCode","message","getPreview","viewer","isLoaded","isDestroyed","newIndex","navigateToIndex","onDownload","download","print","getViewer","isPreviewing","CLASS_NAVIGATION_VISIBILITY","clearTimeout","mouseMoveTimeoutID","previewContainer","classList","remove","allowNavigationArrows","add","setTimeout","event","consumed","key","target","onKeydown","nativeEvent","navigateLeft","navigateRight","preventDefault","stopPropagation","version","additionalVersionInfo","onVersionChange","updateVersionToCurrent","location","annotationFileVersionId","currentFileVersionId","currentPreviewFileVersionId","unit","type","emit","pageNumber","getThumbnail","apiHost","cache","language","requestInterceptor","responseInterceptor","sharedLink","sharedLinkPassword","api","clientName","prevFileIdProp","onReadyMetric","endMarkName","componentWillUnmount","destroy","destroyPreview","shouldReset","onPreviewDestroy","removeAllListeners","clearCache","componentDidMount","loadStylesheet","loadScript","fetchFile","getDerivedStateFromProps","componentDidUpdate","prevProps","prevState","prevContentInsightsOptions","prevPreviewExperiences","prevToken","hasFileIdChanged","hasTokenChanged","haveContentInsightsChanged","haveExperiencesChanged","shouldLoadPreview","loadPreview","updatePreviewToken","updateExperiences","updateContentInsightsOptions","shouldReload","updateToken","prevFile","prevSelectedVersion","prevSelectedVersionId","selectedVersionId","prevFileVersionId","fileVersionId","isPreviousCurrent","isSelectedCurrent","getBasePath","asset","staticHost","staticPath","previewLibraryVersion","path","suffix","endsWith","head","document","url","querySelector","link","createElement","rel","href","appendChild","previewScript","script","src","addEventListener","autoFocus","getInnerRef","activeElement","updatePreviewCacheAndPrefetch","files","typedIds","map","cacheTokens","forEach","refreshCache","fetchFileStartTime","Math","round","rendering","conversion","preload","totalConversion","totalRendering","totalPreload","total","isFileDownloadable","canAnnotate","isFileAnnotatable","hasViewAllPermissions","hasViewSelfPermissions","successCallback","errorCallback","fetchOptions","getFileAPI","getFile","fetchFileSuccessCallback","fetchFileErrorCallback","fields","findIndex","item","index","onNavigate","fileOrId","refreshSidebar","current","contentSidebar","refresh","render","messages","className","contentSidebarProps","contentOpenWithProps","hasHeader","history","isLarge","isVeryLarge","logoUrl","onClose","measureRef","styleClassName","currentExtension","currentVersionId","onHeaderClose","onKeyDown","onMouseMove","containerRef","onResize","previewRef","getCache","handleAnnotationSelect","closeReloadNotification","loadFileFromStage","appHost","ContentPreviewComponent"],"mappings":";;;;;;;;;;;;AAAA;;;;;AAMA,OAAO,6BAAP;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,kBAAtB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,OAAP,MAAoB,YAApB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,OAAP,MAAoB,YAApB;AACA,OAAOC,QAAP,MAAqB,iBAArB;AACA,OAAOC,QAAP,MAAqB,iBAArB;AACA,OAAOC,OAAP,MAAoB,eAApB;AACA,SAASC,UAAT,QAA2B,kBAA3B;AAEA,SAASC,MAAT,QAAuB,kBAAvB;AACA,OAAOC,cAAP,MAA2B,0BAA3B;AACA,SAASC,aAAT,QAA8B,sBAA9B;AACA,OAAOC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AuB,EAAE,KATP;AAUlB2N,EAAAA,SAAS,EAAE,KAVO;AAWlBnH,EAAAA,QAAQ,EAAEnK,cAXQ;AAYlB8D,EAAAA,WAAW,EAAEjG,IAZK;AAalBgG,EAAAA,gBAAgB,EAAEhG,IAbA;AAclBkG,EAAAA,4BAA4B,EAAElG,IAdZ;AAelB+J,EAAAA,UAAU,EAAE/J,IAfM;AAgBlB8D,EAAAA,OAAO,EAAE9D,IAhBS;AAiBlB2E,EAAAA,MAAM,EAAE3E,IAjBU;AAkBlB8S,EAAAA,UAAU,EAAE9S,IAlBM;AAmBlBoN,EAAAA,gBAAgB,EAAEpN,IAnBA;AAoBlByL,EAAAA,eAAe,EAAEzL,IApBC;AAqBlByP,EAAAA,qBAAqB,EAAEvN,uBArBL;AAsBlBsF,EAAAA,eAAe,EAAE,KAtBC;AAuBlB+H,EAAAA,UAAU,EAAEtN,uBAvBM;AAwBlBuN,EAAAA,UAAU,EAAEpN,2BAxBM;AAyBlB2F,EAAAA,UAAU,EAAE;AAzBM,C;;AAgoC1B,SAAS9E,cAAc,IAAI6R,uBAA3B;AACA,eAAejV,IAAI,CAAC,CAChBW,cADgB,EAEhBqB,oBAFgB,EAGhBF,eAHgB,EAIhBrB,UAJgB,EAKhBG,aALgB,EAMhBW,mBANgB,EAOhBH,UAAU,CAACsB,sBAAD,CAPM,EAQhBvB,iBAAiB,CAACuB,sBAAD,CARD,CAAD,CAAJ,CASZU,cATY,CAAf","sourcesContent":["/**\n * @flow\n * @file Content Preview Component\n * @author Box\n */\n\nimport 'regenerator-runtime/runtime';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport cloneDeep from 'lodash/cloneDeep';\nimport flow from 'lodash/flow';\nimport getProp from 'lodash/get';\nimport isEqual from 'lodash/isEqual';\nimport noop from 'lodash/noop';\nimport omit from 'lodash/omit';\nimport setProp from 'lodash/set';\nimport throttle from 'lodash/throttle';\nimport uniqueid from 'lodash/uniqueId';\nimport Measure from 'react-measure';\nimport { withRouter } from 'react-router-dom';\nimport type { ContextRouter } from 'react-router-dom';\nimport { decode } from '../../utils/keys';\nimport makeResponsive from '../common/makeResponsive';\nimport { withNavRouter } from '../common/nav-router';\nimport Internationalize from '../common/Internationalize';\nimport AsyncLoad from '../common/async-load';\nimport TokenService from '../../utils/TokenService';\nimport { isInputElement, focus } from '../../utils/dom';\nimport { getTypedFileId } from '../../utils/file';\nimport { withErrorBoundary } from '../common/error-boundary';\nimport { withLogger } from '../common/logger';\nimport { PREVIEW_FIELDS_TO_FETCH } from '../../utils/fields';\nimport { mark } from '../../utils/performance';\nimport { withFeatureProvider } from '../common/feature-checking';\nimport { EVENT_JS_READY } from '../common/logger/constants';\nimport ReloadNotification from './ReloadNotification';\nimport API from '../../api';\nimport PreviewHeader from './preview-header';\nimport PreviewMask from './PreviewMask';\nimport PreviewNavigation from './PreviewNavigation';\nimport {\n withAnnotations,\n WithAnnotationsProps,\n withAnnotatorContext,\n WithAnnotatorContextProps,\n} from '../common/annotator-context';\nimport {\n DEFAULT_HOSTNAME_API,\n DEFAULT_HOSTNAME_APP,\n DEFAULT_HOSTNAME_STATIC,\n DEFAULT_PREVIEW_VERSION,\n DEFAULT_LOCALE,\n DEFAULT_PATH_STATIC_PREVIEW,\n CLIENT_NAME_CONTENT_PREVIEW,\n ORIGIN_PREVIEW,\n ORIGIN_CONTENT_PREVIEW,\n ERROR_CODE_UNKNOWN,\n} from '../../constants';\nimport type { Annotation } from '../../common/types/feed';\nimport type { TargetingApi } from '../../features/targeting/types';\nimport type { ErrorType, AdditionalVersionInfo } from '../common/flowTypes';\nimport type { WithLoggerProps } from '../../common/types/logging';\nimport type { RequestOptions, ErrorContextProps, ElementsXhrError } from '../../common/types/api';\nimport type { StringMap, Token, BoxItem, BoxItemVersion } from '../../common/types/core';\nimport type { VersionChangeCallback } from '../content-sidebar/versions';\nimport type { FeatureConfig } from '../common/feature-checking';\nimport type APICache from '../../utils/Cache';\n\nimport '../common/fonts.scss';\nimport '../common/base.scss';\nimport './ContentPreview.scss';\n\ntype StartAt = {\n unit: 'pages' | 'seconds',\n value: number,\n};\n\ntype Props = {\n advancedContentInsights: {\n isActive: boolean,\n ownerEId: number,\n userId: number,\n },\n apiHost: string,\n appHost: string,\n autoFocus: boolean,\n boxAnnotations?: Object,\n cache?: APICache,\n canDownload?: boolean,\n className: string,\n collection: Array<string | BoxItem>,\n contentOpenWithProps: ContentOpenWithProps,\n contentSidebarProps: ContentSidebarProps,\n enableThumbnailsSidebar: boolean,\n features?: FeatureConfig,\n fileId?: string,\n fileOptions?: Object,\n getInnerRef: () => ?HTMLElement,\n hasHeader?: boolean,\n isLarge: boolean,\n isVeryLarge?: boolean,\n language: string,\n logoUrl?: string,\n measureRef: Function,\n messages?: StringMap,\n onAnnotator: Function,\n onAnnotatorEvent: Function,\n onClose?: Function,\n onContentInsightsEventReport: Function,\n onDownload: Function,\n onLoad: Function,\n onNavigate: Function,\n onVersionChange: VersionChangeCallback,\n previewExperiences?: {\n [name: string]: TargetingApi,\n },\n previewLibraryVersion: string,\n requestInterceptor?: Function,\n responseInterceptor?: Function,\n sharedLink?: string,\n sharedLinkPassword?: string,\n showAnnotations?: boolean,\n showAnnotationsControls?: boolean,\n staticHost: string,\n staticPath: string,\n token: Token,\n useHotkeys: boolean,\n} & ErrorContextProps &\n WithLoggerProps &\n WithAnnotationsProps &\n WithAnnotatorContextProps &\n ContextRouter;\n\ntype State = {\n canPrint?: boolean,\n currentFileId?: string,\n error?: ErrorType,\n file?: BoxItem,\n isLoading: boolean,\n isReloadNotificationVisible: boolean,\n isThumbnailSidebarOpen: boolean,\n prevFileIdProp?: string, // the previous value of the \"fileId\" prop. Needed to implement getDerivedStateFromProps\n selectedVersion?: BoxItemVersion,\n startAt?: StartAt,\n};\n\n// Emitted by preview's 'load' event\ntype PreviewTimeMetrics = {\n conversion: number,\n preload?: number,\n rendering: number,\n total: number,\n};\n\n// Emitted by preview's 'preview_metric' event\ntype PreviewMetrics = {\n browser_name: string,\n client_version: string,\n content_type: string, // Sum of all available load times.\n convert_time: number,\n download_response_time: number,\n error?: Object,\n event_name?: string,\n extension: string,\n file_id: string,\n file_info_time: number,\n file_version_id: string,\n full_document_load_time: number,\n locale: string,\n logger_session_id: string,\n rep_type: string,\n timestamp: string,\n value: number,\n};\n\ntype PreviewLibraryError = {\n error: ErrorType,\n};\n\nconst startAtTypes = {\n page: 'pages',\n};\nconst InvalidIdError = new Error('Invalid id for Preview!');\nconst PREVIEW_LOAD_METRIC_EVENT = 'load';\nconst MARK_NAME_JS_READY = `${ORIGIN_CONTENT_PREVIEW}_${EVENT_JS_READY}`;\n\nmark(MARK_NAME_JS_READY);\n\nconst LoadableSidebar = AsyncLoad({\n loader: () => import(/* webpackMode: \"lazy\", webpackChunkName: \"content-sidebar\" */ '../content-sidebar'),\n});\n\nclass ContentPreview extends React.PureComponent<Props, State> {\n id: string;\n\n props: Props;\n\n state: State;\n\n preview: any;\n\n api: API;\n\n // Defines a generic type for ContentSidebar, since an import would interfere with code splitting\n contentSidebar: { current: null | { refresh: Function } } = React.createRef();\n\n previewContainer: ?HTMLDivElement;\n\n mouseMoveTimeoutID: TimeoutID;\n\n rootElement: HTMLElement;\n\n stagedFile: ?BoxItem;\n\n updateVersionToCurrent: ?() => void;\n\n initialState: State = {\n canPrint: false,\n error: undefined,\n isLoading: true,\n isReloadNotificationVisible: false,\n isThumbnailSidebarOpen: false,\n };\n\n static defaultProps = {\n apiHost: DEFAULT_HOSTNAME_API,\n appHost: DEFAULT_HOSTNAME_APP,\n autoFocus: false,\n canDownload: true,\n className: '',\n collection: [],\n contentOpenWithProps: {},\n contentSidebarProps: {},\n enableThumbnailsSidebar: false,\n hasHeader: false,\n language: DEFAULT_LOCALE,\n onAnnotator: noop,\n onAnnotatorEvent: noop,\n onContentInsightsEventReport: noop,\n onDownload: noop,\n onError: noop,\n onLoad: noop,\n onNavigate: noop,\n onPreviewDestroy: noop,\n onVersionChange: noop,\n previewLibraryVersion: DEFAULT_PREVIEW_VERSION,\n showAnnotations: false,\n staticHost: DEFAULT_HOSTNAME_STATIC,\n staticPath: DEFAULT_PATH_STATIC_PREVIEW,\n useHotkeys: true,\n };\n\n /**\n * @property {number}\n */\n fetchFileEndTime: ?number;\n\n /**\n * @property {number}\n */\n fetchFileStartTime: ?number;\n\n /**\n * [constructor]\n *\n * @return {ContentPreview}\n */\n constructor(props: Props) {\n super(props);\n const {\n apiHost,\n cache,\n fileId,\n language,\n requestInterceptor,\n responseInterceptor,\n sharedLink,\n sharedLinkPassword,\n token,\n } = props;\n\n this.id = uniqueid('bcpr_');\n this.api = new API({\n apiHost,\n cache,\n clientName: CLIENT_NAME_CONTENT_PREVIEW,\n language,\n requestInterceptor,\n responseInterceptor,\n sharedLink,\n sharedLinkPassword,\n token,\n });\n this.state = {\n ...this.initialState,\n currentFileId: fileId,\n // eslint-disable-next-line react/no-unused-state\n prevFileIdProp: fileId,\n };\n const { logger } = props;\n logger.onReadyMetric({\n endMarkName: MARK_NAME_JS_READY,\n });\n }\n\n /**\n * Cleanup\n *\n * @return {void}\n */\n componentWillUnmount(): void {\n // Don't destroy the cache while unmounting\n this.api.destroy(false);\n this.destroyPreview();\n }\n\n /**\n * Cleans up the preview instance\n */\n destroyPreview(shouldReset: boolean = true) {\n const { onPreviewDestroy } = this.props;\n if (this.preview) {\n this.preview.destroy();\n this.preview.removeAllListeners();\n this.preview = undefined;\n\n onPreviewDestroy(shouldReset);\n }\n }\n\n /**\n * Destroys api instances with caches\n *\n * @private\n * @return {void}\n */\n clearCache(): void {\n this.api.destroy(true);\n }\n\n /**\n * Once the component mounts, load Preview assets and fetch file info.\n *\n * @return {void}\n */\n componentDidMount(): void {\n this.loadStylesheet();\n this.loadScript();\n\n this.fetchFile(this.state.currentFileId);\n this.focusPreview();\n }\n\n static getDerivedStateFromProps(props: Props, state: State) {\n const { fileId } = props;\n\n if (fileId !== state.prevFileIdProp) {\n return {\n currentFileId: fileId,\n prevFileIdProp: fileId,\n };\n }\n\n return null;\n }\n\n /**\n * After component updates, load Preview if appropriate.\n *\n * @return {void}\n */\n componentDidUpdate(prevProps: Props, prevState: State): void {\n const { advancedContentInsights, previewExperiences, token } = this.props;\n const {\n advancedContentInsights: prevContentInsightsOptions,\n previewExperiences: prevPreviewExperiences,\n token: prevToken,\n } = prevProps;\n const { currentFileId } = this.state;\n const hasFileIdChanged = prevState.currentFileId !== currentFileId;\n const hasTokenChanged = prevToken !== token;\n const haveContentInsightsChanged = !isEqual(prevContentInsightsOptions, advancedContentInsights);\n const haveExperiencesChanged = prevPreviewExperiences !== previewExperiences;\n\n if (hasFileIdChanged) {\n this.destroyPreview();\n this.setState({ isLoading: true, selectedVersion: undefined });\n this.fetchFile(currentFileId);\n } else if (this.shouldLoadPreview(prevState)) {\n this.destroyPreview(false);\n this.setState({ isLoading: true });\n this.loadPreview();\n } else if (hasTokenChanged) {\n this.updatePreviewToken();\n }\n\n if (haveExperiencesChanged && this.preview && this.preview.updateExperiences) {\n this.preview.updateExperiences(previewExperiences);\n }\n\n if (advancedContentInsights && haveContentInsightsChanged && this.preview?.updateContentInsightsOptions) {\n this.preview.updateContentInsightsOptions(advancedContentInsights);\n }\n }\n\n /**\n * Updates the access token used by preview library\n *\n * @param {boolean} shouldReload - true if preview should be reloaded\n */\n updatePreviewToken(shouldReload: boolean = false) {\n if (this.preview) {\n this.preview.updateToken(this.props.token, shouldReload);\n }\n }\n\n /**\n * Returns whether or not preview should be loaded.\n *\n * @param {State} prevState - Previous state\n * @return {boolean}\n */\n shouldLoadPreview(prevState: State): boolean {\n const { file, selectedVersion }: State = this.state;\n const { file: prevFile, selectedVersion: prevSelectedVersion }: State = prevState;\n const prevSelectedVersionId = getProp(prevSelectedVersion, 'id');\n const selectedVersionId = getProp(selectedVersion, 'id');\n const prevFileVersionId = getProp(prevFile, 'file_version.id');\n const fileVersionId = getProp(file, 'file_version.id');\n let loadPreview = false;\n\n if (selectedVersionId !== prevSelectedVersionId) {\n const isPreviousCurrent = fileVersionId === prevSelectedVersionId || !prevSelectedVersionId;\n const isSelectedCurrent = fileVersionId === selectedVersionId || !selectedVersionId;\n\n // Load preview if the user has selected a non-current version of the file\n loadPreview = !isPreviousCurrent || !isSelectedCurrent;\n } else if (fileVersionId && prevFileVersionId) {\n // Load preview if the file's current version ID has changed\n loadPreview = fileVersionId !== prevFileVersionId;\n } else {\n // Load preview if file object has newly been populated in state\n loadPreview = !prevFile && !!file;\n }\n\n return loadPreview;\n }\n\n /**\n * Returns preview asset urls\n *\n * @return {string} base url\n */\n getBasePath(asset: string): string {\n const { staticHost, staticPath, language, previewLibraryVersion }: Props = this.props;\n const path: string = `${staticPath}/${previewLibraryVersion}/${language}/${asset}`;\n const suffix: string = staticHost.endsWith('/') ? path : `/${path}`;\n return `${staticHost}${suffix}`;\n }\n\n /**\n * Determines if preview assets are loaded\n *\n * @return {boolean} true if preview is loaded\n */\n isPreviewLibraryLoaded(): boolean {\n return !!global.Box && !!global.Box.Preview;\n }\n\n /**\n * Loads external css by appending a <link> element\n *\n * @return {void}\n */\n loadStylesheet(): void {\n const { head } = document;\n const url: string = this.getBasePath('preview.css');\n\n if (!head || head.querySelector(`link[rel=\"stylesheet\"][href=\"${url}\"]`)) {\n return;\n }\n\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.type = 'text/css';\n link.href = url;\n head.appendChild(link);\n }\n\n /**\n * Loads external script by appending a <script> element\n *\n * @return {void}\n */\n loadScript(): void {\n const { head } = document;\n const url: string = this.getBasePath('preview.js');\n\n if (!head || this.isPreviewLibraryLoaded()) {\n return;\n }\n\n const previewScript = head.querySelector(`script[src=\"${url}\"]`);\n if (previewScript) {\n return;\n }\n\n const script = document.createElement('script');\n script.src = url;\n script.addEventListener('load', this.loadPreview);\n head.appendChild(script);\n }\n\n /**\n * Focuses the preview on load.\n *\n * @return {void}\n */\n focusPreview() {\n const { autoFocus, getInnerRef }: Props = this.props;\n if (autoFocus && !isInputElement(document.activeElement)) {\n focus(getInnerRef());\n }\n }\n\n /**\n * Updates preview cache and prefetches a file\n *\n * @param {BoxItem} file - file to prefetch\n * @return {void}\n */\n updatePreviewCacheAndPrefetch(file: BoxItem, token: Token): void {\n if (!this.preview || !file || !file.id) {\n return;\n }\n\n this.preview.updateFileCache([file]);\n this.preview.prefetch({ fileId: file.id, token });\n }\n\n /**\n * Gets the file id\n *\n * @param {string|BoxItem} file - box file or file id\n * @return {string} file id\n */\n getFileId(file?: string | BoxItem): string {\n if (typeof file === 'string') {\n return file;\n }\n\n if (typeof file === 'object' && !!file.id) {\n return file.id;\n }\n\n throw InvalidIdError;\n }\n\n /**\n * Prefetches the next few preview files if any\n *\n * @param {Array<string|BoxItem>} files - files to prefetch\n * @return {void}\n */\n async prefetch(files: Array<string | BoxItem>): Promise<void> {\n const { token }: Props = this.props;\n const typedIds: string[] = files.map(file => getTypedFileId(this.getFileId(file)));\n await TokenService.cacheTokens(typedIds, token);\n files.forEach(file => {\n const fileId = this.getFileId(file);\n this.fetchFile(fileId, noop, noop, {\n refreshCache: false,\n });\n });\n }\n\n /**\n * Calculates the total file fetch time\n *\n * @return {number} the total fetch time\n */\n getTotalFileFetchTime(): number {\n if (!this.fetchFileStartTime || !this.fetchFileEndTime) {\n return 0;\n }\n\n return Math.round(this.fetchFileEndTime - this.fetchFileStartTime);\n }\n\n /**\n * Handler for 'preview_error' preview event\n *\n * @param {PreviewLibraryError} previewError - the error data emitted from preview\n * @return {void}\n */\n onPreviewError = ({ error, ...rest }: PreviewLibraryError): void => {\n const { code = ERROR_CODE_UNKNOWN } = error;\n const { onError } = this.props;\n\n // In case of error, there should be no thumbnail sidebar to account for\n this.setState({ isLoading: false, isThumbnailSidebarOpen: false });\n\n onError(\n error,\n code,\n {\n ...rest,\n error,\n },\n ORIGIN_PREVIEW,\n );\n };\n\n /**\n * Event handler 'preview_metric' which also adds in the file fetch time if it's a load event\n *\n * @param {Object} previewMetrics - the object emitted by 'preview_metric'\n * @return {void}\n */\n onPreviewMetric = (previewMetrics: PreviewMetrics): void => {\n const { logger } = this.props;\n const { event_name } = previewMetrics;\n let metrics = {\n ...previewMetrics,\n };\n\n // We need to add in the total file fetch time to the file_info_time and value (total)\n // as preview does not do the files call\n if (event_name === PREVIEW_LOAD_METRIC_EVENT) {\n const totalFetchFileTime = this.getTotalFileFetchTime();\n const totalTime = (previewMetrics.value || 0) + totalFetchFileTime;\n\n // If an unnatural load time occurs or is invalid, don't log a load event\n if (!totalTime) {\n return;\n }\n\n metrics = {\n ...previewMetrics,\n file_info_time: totalFetchFileTime,\n value: totalTime,\n };\n }\n\n logger.onPreviewMetric(metrics);\n };\n\n /**\n * Adds in the file fetch time to the preview metrics\n *\n * @param {Object} previewTimeMetrics - the preview time metrics\n * @return {Object} the preview time metrics merged with the files call time\n */\n addFetchFileTimeToPreviewMetrics(previewTimeMetrics: PreviewTimeMetrics): PreviewTimeMetrics {\n const totalFetchFileTime = this.getTotalFileFetchTime();\n const { rendering, conversion, preload } = previewTimeMetrics;\n\n // We need to add in the total file fetch time to the rendering and total as preview\n // does not do the files call. In the case the file is in the process of\n // being converted, we need to add to conversion instead of the render\n let totalConversion = conversion;\n let totalRendering = rendering;\n let totalPreload = preload;\n if (conversion) {\n totalConversion += totalFetchFileTime;\n } else {\n totalRendering += totalFetchFileTime;\n }\n\n if (totalPreload) {\n // Preload is optional, depending on file type\n totalPreload += totalFetchFileTime;\n }\n\n const previewMetrics = {\n conversion: totalConversion,\n rendering: totalRendering,\n total: totalRendering + totalConversion,\n preload: totalPreload,\n };\n\n return previewMetrics;\n }\n\n /**\n * onLoad function for preview\n *\n * @return {void}\n */\n onPreviewLoad = (data: Object): void => {\n const { onLoad, collection }: Props = this.props;\n const currentIndex = this.getFileIndex();\n const filesToPrefetch = collection.slice(currentIndex + 1, currentIndex + 5);\n const previewTimeMetrics = getProp(data, 'metrics.time');\n let loadData = data;\n\n if (previewTimeMetrics) {\n const totalPreviewMetrics = this.addFetchFileTimeToPreviewMetrics(previewTimeMetrics);\n loadData = {\n ...loadData,\n metrics: {\n ...loadData.metrics,\n time: totalPreviewMetrics,\n },\n };\n }\n\n onLoad(loadData);\n\n this.setState({ isLoading: false });\n this.focusPreview();\n\n if (this.preview && filesToPrefetch.length) {\n this.prefetch(filesToPrefetch);\n }\n\n this.handleCanPrint();\n };\n\n /**\n * Returns whether file can be downloaded based on file properties, permissions, and user-defined options.\n *\n * @return {boolean}\n */\n canDownload(): boolean {\n const { canDownload }: Props = this.props;\n const { file }: State = this.state;\n const isFileDownloadable =\n getProp(file, 'permissions.can_download', false) && getProp(file, 'is_download_available', false);\n return isFileDownloadable && !!canDownload;\n }\n\n /**\n * Returns whether file can be annotated based on permissions\n *\n * @return {boolean}\n */\n canAnnotate(): boolean {\n const { showAnnotations }: Props = this.props;\n const { file }: State = this.state;\n const isFileAnnotatable = getProp(file, 'permissions.can_annotate', false);\n return !!showAnnotations && isFileAnnotatable;\n }\n\n /**\n * Returns whether a preview should render annotations based on permissions\n *\n * @return {boolean}\n */\n canViewAnnotations(): boolean {\n const { showAnnotations }: Props = this.props;\n const { file }: State = this.state;\n const hasViewAllPermissions = getProp(file, 'permissions.can_view_annotations_all', false);\n const hasViewSelfPermissions = getProp(file, 'permissions.can_view_annotations_self', false);\n return !!showAnnotations && (this.canAnnotate() || hasViewAllPermissions || hasViewSelfPermissions);\n }\n\n handleCanPrint() {\n const preview = this.getPreview();\n this.setState({ canPrint: !!preview && (!preview.canPrint || preview.canPrint()) });\n }\n\n /**\n * Loads preview in the component using the preview library.\n *\n * @return {void}\n */\n loadPreview = async (): Promise<void> => {\n const {\n advancedContentInsights,\n annotatorState: { activeAnnotationId } = {},\n enableThumbnailsSidebar,\n fileOptions,\n onAnnotatorEvent,\n onAnnotator,\n onContentInsightsEventReport,\n previewExperiences,\n showAnnotationsControls,\n token: tokenOrTokenFunction,\n ...rest\n }: Props = this.props;\n const { file, selectedVersion, startAt }: State = this.state;\n\n if (!this.isPreviewLibraryLoaded() || !file || !tokenOrTokenFunction) {\n return;\n }\n\n const fileId = this.getFileId(file);\n\n if (fileId !== this.state.currentFileId) {\n return;\n }\n\n const fileOpts = { ...fileOptions };\n const token = typedId => TokenService.getReadTokens(typedId, tokenOrTokenFunction);\n\n if (selectedVersion) {\n setProp(fileOpts, [fileId, 'fileVersionId'], selectedVersion.id);\n setProp(fileOpts, [fileId, 'currentFileVersionId'], getProp(file, 'file_version.id'));\n }\n\n if (activeAnnotationId) {\n setProp(fileOpts, [fileId, 'annotations', 'activeId'], activeAnnotationId);\n }\n\n if (startAt) {\n setProp(fileOpts, [fileId, 'startAt'], startAt);\n }\n\n const previewOptions = {\n advancedContentInsights,\n container: `#${this.id} .bcpr-content`,\n enableThumbnailsSidebar,\n fileOptions: fileOpts,\n header: 'none',\n headerElement: `#${this.id} .bcpr-PreviewHeader`,\n experiences: previewExperiences,\n showAnnotations: this.canViewAnnotations(),\n showAnnotationsControls,\n showDownload: this.canDownload(),\n showLoading: false,\n showProgress: false,\n skipServerUpdate: true,\n useHotkeys: false,\n };\n const { Preview } = global.Box;\n this.preview = new Preview();\n this.preview.addListener('load', this.onPreviewLoad);\n this.preview.addListener('preview_error', this.onPreviewError);\n this.preview.addListener('preview_metric', this.onPreviewMetric);\n this.preview.addListener('thumbnailsOpen', () => this.setState({ isThumbnailSidebarOpen: true }));\n this.preview.addListener('thumbnailsClose', () => this.setState({ isThumbnailSidebarOpen: false }));\n\n if (showAnnotationsControls) {\n this.preview.addListener('annotator_create', onAnnotator);\n }\n\n this.preview.updateFileCache([file]);\n this.preview.show(file.id, token, {\n ...previewOptions,\n ...omit(rest, Object.keys(previewOptions)),\n });\n if (advancedContentInsights) {\n this.preview.addListener('advanced_insights_report', onContentInsightsEventReport);\n }\n };\n\n /**\n * Updates preview file from temporary staged file.\n *\n * @return {void}\n */\n loadFileFromStage = () => {\n if (this.stagedFile) {\n this.setState({ ...this.initialState, file: this.stagedFile }, () => {\n this.stagedFile = undefined;\n });\n }\n };\n\n /**\n * Removes the reload notification\n *\n * @return {void}\n */\n closeReloadNotification = () => {\n this.setState({ isReloadNotificationVisible: false });\n };\n\n /**\n * Tells the preview to resize\n *\n * @return {void}\n */\n onResize = (): void => {\n if (this.preview && this.preview.getCurrentViewer()) {\n this.preview.resize();\n }\n };\n\n /**\n * File fetch success callback\n *\n * @param {Object} file - Box file\n * @return {void}\n */\n fetchFileSuccessCallback = (file: BoxItem): void => {\n this.fetchFileEndTime = performance.now();\n\n const { file: currentFile }: State = this.state;\n const isExistingFile = currentFile ? currentFile.id === file.id : false;\n const isWatermarked = getProp(file, 'watermark_info.is_watermarked', false);\n\n // If the file is watermarked or if its a new file, then update the state\n // In this case preview should reload without prompting the user\n if (isWatermarked || !isExistingFile) {\n this.setState({ ...this.initialState, file });\n // $FlowFixMe file version and sha1 should exist at this point\n } else if (currentFile.file_version.sha1 !== file.file_version.sha1) {\n // If we are already prevewing the file that got updated then show the\n // user a notification to reload the file only if its sha1 changed\n this.stagedFile = file;\n this.setState({\n ...this.initialState,\n isReloadNotificationVisible: true,\n });\n }\n };\n\n /**\n * File fetch error callback\n *\n * @return {void}\n */\n fetchFileErrorCallback = (fileError: ElementsXhrError, code: string): void => {\n const { onError } = this.props;\n const errorCode = fileError.code || code;\n const error = {\n code: errorCode,\n message: fileError.message,\n };\n this.setState({ error, file: undefined, isLoading: false });\n onError(fileError, errorCode, {\n error: fileError,\n });\n };\n\n /**\n * Fetches a file\n *\n * @param {string} id file id\n * @param {Function|void} [successCallback] - Callback after file is fetched\n * @param {Function|void} [errorCallback] - Callback after error\n * @param {Object|void} [fetchOptions] - Fetch options\n * @return {void}\n */\n fetchFile(\n id: ?string,\n successCallback?: Function,\n errorCallback?: Function,\n fetchOptions: RequestOptions = {},\n ): void {\n if (!id) {\n return;\n }\n\n this.fetchFileStartTime = performance.now();\n this.fetchFileEndTime = null;\n\n this.api\n .getFileAPI()\n .getFile(\n id,\n successCallback || this.fetchFileSuccessCallback,\n errorCallback || this.fetchFileErrorCallback,\n {\n ...fetchOptions,\n fields: PREVIEW_FIELDS_TO_FETCH,\n },\n );\n }\n\n /**\n * Returns the preview instance\n *\n * @return {Preview} current instance of preview\n */\n getPreview = (): any => {\n const { file }: State = this.state;\n if (!this.preview || !file) {\n return null;\n }\n\n return this.preview;\n };\n\n /**\n * Returns the viewer instance being used by preview.\n * This will let child components access the viewers.\n *\n * @return {Viewer} current instance of the preview viewer\n */\n getViewer = (): any => {\n const preview = this.getPreview();\n const viewer = preview ? preview.getCurrentViewer() : null;\n return viewer && viewer.isLoaded() && !viewer.isDestroyed() ? viewer : null;\n };\n\n /**\n * Finds the index of current file inside the collection\n *\n * @return {number} -1 if not indexed\n */\n getFileIndex() {\n const { currentFileId }: State = this.state;\n const { collection }: Props = this.props;\n if (!currentFileId || collection.length < 2) {\n return -1;\n }\n\n return collection.findIndex(item => {\n if (typeof item === 'string') {\n return item === currentFileId;\n }\n\n return item.id === currentFileId;\n });\n }\n\n /**\n * Shows a preview of a file at the specified index in the current collection.\n *\n * @public\n * @param {number} index - Index of file to preview\n * @return {void}\n */\n navigateToIndex(index: number) {\n const { collection, onNavigate }: Props = this.props;\n const { length } = collection;\n if (length < 2 || index < 0 || index > length - 1) {\n return;\n }\n\n const fileOrId = collection[index];\n const fileId = typeof fileOrId === 'object' ? fileOrId.id || '' : fileOrId;\n\n this.setState(\n {\n currentFileId: fileId,\n },\n () => {\n // Execute navigation callback\n onNavigate(fileId);\n },\n );\n }\n\n /**\n * Shows a preview of the previous file.\n *\n * @public\n * @return {void}\n */\n navigateLeft = () => {\n const currentIndex = this.getFileIndex();\n const newIndex = currentIndex === 0 ? 0 : currentIndex - 1;\n if (newIndex !== currentIndex) {\n this.navigateToIndex(newIndex);\n }\n };\n\n /**\n * Shows a preview of the next file.\n *\n * @public\n * @return {void}\n */\n navigateRight = () => {\n const { collection }: Props = this.props;\n const currentIndex = this.getFileIndex();\n const newIndex = currentIndex === collection.length - 1 ? collection.length - 1 : currentIndex + 1;\n if (newIndex !== currentIndex) {\n this.navigateToIndex(newIndex);\n }\n };\n\n /**\n * Downloads file.\n *\n * @public\n * @return {void}\n */\n download = () => {\n const { onDownload }: Props = this.props;\n const { file }: State = this.state;\n if (this.preview) {\n this.preview.download();\n onDownload(cloneDeep(file));\n }\n };\n\n /**\n * Prints file.\n *\n * @public\n * @return {void}\n */\n print = () => {\n if (this.preview) {\n this.preview.print();\n }\n };\n\n /**\n * Mouse move handler that is throttled and show\n * the navigation arrows if applicable.\n *\n * @return {void}\n */\n onMouseMove = throttle(() => {\n const viewer = this.getViewer();\n const isPreviewing = !!viewer;\n const CLASS_NAVIGATION_VISIBILITY = 'bcpr-nav-is-visible';\n\n clearTimeout(this.mouseMoveTimeoutID);\n\n if (!this.previewContainer) {\n return;\n }\n\n // Always assume that navigation arrows will be hidden\n this.previewContainer.classList.remove(CLASS_NAVIGATION_VISIBILITY);\n\n // Only show it if either we aren't previewing or if we are then the viewer\n // is not blocking the show. If we are previewing then the viewer may choose\n // to not allow navigation arrows. This is mostly useful for videos since the\n // navigation arrows may interfere with the settings menu inside video player.\n if (this.previewContainer && (!isPreviewing || viewer.allowNavigationArrows())) {\n this.previewContainer.classList.add(CLASS_NAVIGATION_VISIBILITY);\n }\n\n this.mouseMoveTimeoutID = setTimeout(() => {\n if (this.previewContainer) {\n this.previewContainer.classList.remove(CLASS_NAVIGATION_VISIBILITY);\n }\n }, 1500);\n }, 1000);\n\n /**\n * Keyboard events\n *\n * @return {void}\n */\n onKeyDown = (event: SyntheticKeyboardEvent<HTMLElement>) => {\n const { useHotkeys }: Props = this.props;\n if (!useHotkeys) {\n return;\n }\n\n let consumed = false;\n const key = decode(event);\n const viewer = this.getViewer();\n\n // If focus was on an input or if the viewer doesn't exist\n // then don't bother doing anything further\n if (!key || !viewer || isInputElement(event.target)) {\n return;\n }\n\n if (typeof viewer.onKeydown === 'function') {\n consumed = !!viewer.onKeydown(key, event.nativeEvent);\n }\n\n if (!consumed) {\n switch (key) {\n case 'ArrowLeft':\n this.navigateLeft();\n consumed = true;\n break;\n case 'ArrowRight':\n this.navigateRight();\n consumed = true;\n break;\n default:\n // no-op\n }\n }\n\n if (consumed) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n /**\n * Handles version change events\n *\n * @param {string} [version] - The version that is now previewed\n * @param {object} [additionalVersionInfo] - extra info about the version\n */\n onVersionChange = (version?: BoxItemVersion, additionalVersionInfo: AdditionalVersionInfo = {}): void => {\n const { onVersionChange }: Props = this.props;\n this.updateVersionToCurrent = additionalVersionInfo.updateVersionToCurrent;\n\n onVersionChange(version, additionalVersionInfo);\n this.setState({\n selectedVersion: version,\n });\n };\n\n handleAnnotationSelect = ({ file_version, id, target }: Annotation) => {\n const { location = {} } = target;\n const { file, selectedVersion } = this.state;\n const annotationFileVersionId = getProp(file_version, 'id');\n const currentFileVersionId = getProp(file, 'file_version.id');\n const currentPreviewFileVersionId = getProp(selectedVersion, 'id', currentFileVersionId);\n const unit = startAtTypes[location.type];\n const viewer = this.getViewer();\n\n if (unit && annotationFileVersionId && annotationFileVersionId !== currentPreviewFileVersionId) {\n this.setState({\n startAt: {\n unit,\n value: location.value,\n },\n });\n }\n\n if (viewer) {\n viewer.emit('scrolltoannotation', { id, target });\n }\n };\n\n /**\n * Holds the reference the preview container\n *\n * @return {void}\n */\n containerRef = (container: ?HTMLDivElement) => {\n this.previewContainer = container;\n };\n\n /**\n * Refreshes the content sidebar panel\n *\n * @return {void}\n */\n refreshSidebar(): void {\n const { current: contentSidebar } = this.contentSidebar;\n\n if (contentSidebar) {\n contentSidebar.refresh();\n }\n }\n\n /**\n * Fetches a thumbnail for the page given\n *\n * @return {Promise|null} - promise resolves with the image HTMLElement or null if generation is in progress\n */\n getThumbnail = (pageNumber: ?number): Promise<HTMLElement> | null => {\n const preview = this.getPreview();\n if (preview && preview.viewer) {\n return preview.viewer.getThumbnail(pageNumber);\n }\n\n return null;\n };\n\n /**\n * Renders the file preview\n *\n * @inheritdoc\n * @return {Element}\n */\n render() {\n const {\n apiHost,\n collection,\n token,\n language,\n messages,\n className,\n contentSidebarProps,\n contentOpenWithProps,\n hasHeader,\n history,\n isLarge,\n isVeryLarge,\n logoUrl,\n onClose,\n measureRef,\n sharedLink,\n sharedLinkPassword,\n requestInterceptor,\n responseInterceptor,\n }: Props = this.props;\n\n const {\n canPrint,\n currentFileId,\n error,\n file,\n isLoading,\n isReloadNotificationVisible,\n isThumbnailSidebarOpen,\n selectedVersion,\n }: State = this.state;\n\n const styleClassName = classNames(\n 'be bcpr',\n {\n 'bcpr-thumbnails-open': isThumbnailSidebarOpen,\n },\n className,\n );\n\n if (!currentFileId) {\n return null;\n }\n\n const errorCode = getProp(error, 'code');\n const currentExtension = getProp(file, 'id') === currentFileId ? getProp(file, 'extension') : '';\n const currentVersionId = getProp(file, 'file_version.id');\n const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);\n const onHeaderClose = currentVersionId === selectedVersionId ? onClose : this.updateVersionToCurrent;\n\n /* eslint-disable jsx-a11y/no-static-element-interactions */\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n return (\n <Internationalize language={language} messages={messages}>\n <div id={this.id} className={styleClassName} ref={measureRef} onKeyDown={this.onKeyDown} tabIndex={0}>\n {hasHeader && (\n <PreviewHeader\n file={file}\n logoUrl={logoUrl}\n token={token}\n onClose={onHeaderClose}\n onPrint={this.print}\n canDownload={this.canDownload()}\n canPrint={canPrint}\n onDownload={this.download}\n contentOpenWithProps={contentOpenWithProps}\n canAnnotate={this.canAnnotate()}\n selectedVersion={selectedVersion}\n />\n )}\n <div className=\"bcpr-body\">\n <div className=\"bcpr-container\" onMouseMove={this.onMouseMove} ref={this.containerRef}>\n {file && (\n <Measure bounds onResize={this.onResize}>\n {({ measureRef: previewRef }) => <div ref={previewRef} className=\"bcpr-content\" />}\n </Measure>\n )}\n <PreviewMask errorCode={errorCode} extension={currentExtension} isLoading={isLoading} />\n <PreviewNavigation\n collection={collection}\n currentIndex={this.getFileIndex()}\n onNavigateLeft={this.navigateLeft}\n onNavigateRight={this.navigateRight}\n />\n </div>\n {file && (\n <LoadableSidebar\n {...contentSidebarProps}\n apiHost={apiHost}\n token={token}\n cache={this.api.getCache()}\n fileId={currentFileId}\n getPreview={this.getPreview}\n getViewer={this.getViewer}\n history={history}\n isDefaultOpen={isLarge || isVeryLarge}\n language={language}\n ref={this.contentSidebar}\n sharedLink={sharedLink}\n sharedLinkPassword={sharedLinkPassword}\n requestInterceptor={requestInterceptor}\n responseInterceptor={responseInterceptor}\n onAnnotationSelect={this.handleAnnotationSelect}\n onVersionChange={this.onVersionChange}\n />\n )}\n </div>\n {isReloadNotificationVisible && (\n <ReloadNotification onClose={this.closeReloadNotification} onClick={this.loadFileFromStage} />\n )}\n </div>\n </Internationalize>\n );\n /* eslint-enable jsx-a11y/no-static-element-interactions */\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n }\n}\n\nexport type ContentPreviewProps = Props;\nexport { ContentPreview as ContentPreviewComponent };\nexport default flow([\n makeResponsive,\n withAnnotatorContext,\n withAnnotations,\n withRouter,\n withNavRouter,\n withFeatureProvider,\n withLogger(ORIGIN_CONTENT_PREVIEW),\n withErrorBoundary(ORIGIN_CONTENT_PREVIEW),\n])(ContentPreview);\n"],"file":"ContentPreview.js"}
1
+ {"version":3,"sources":["../../../src/elements/content-preview/ContentPreview.js"],"names":["React","classNames","cloneDeep","flow","getProp","isEqual","noop","omit","setProp","throttle","uniqueid","Measure","withRouter","decode","makeResponsive","withNavRouter","Internationalize","AsyncLoad","TokenService","isInputElement","focus","getTypedFileId","withErrorBoundary","withLogger","PREVIEW_FIELDS_TO_FETCH","mark","withFeatureConsumer","withFeatureProvider","EVENT_JS_READY","ReloadNotification","API","APIContext","PreviewHeader","PreviewMask","PreviewNavigation","withAnnotations","WithAnnotationsProps","withAnnotatorContext","WithAnnotatorContextProps","DEFAULT_HOSTNAME_API","DEFAULT_HOSTNAME_APP","DEFAULT_HOSTNAME_STATIC","DEFAULT_PREVIEW_VERSION","DEFAULT_LOCALE","DEFAULT_PATH_STATIC_PREVIEW","CLIENT_NAME_CONTENT_PREVIEW","ORIGIN_PREVIEW","ORIGIN_CONTENT_PREVIEW","ERROR_CODE_UNKNOWN","startAtTypes","page","InvalidIdError","Error","PREVIEW_LOAD_METRIC_EVENT","MARK_NAME_JS_READY","LoadableSidebar","loader","ContentPreview","PureComponent","constructor","props","createRef","canPrint","error","undefined","isLoading","isReloadNotificationVisible","isThumbnailSidebarOpen","rest","code","onError","setState","previewMetrics","logger","event_name","metrics","totalFetchFileTime","getTotalFileFetchTime","totalTime","value","file_info_time","onPreviewMetric","data","onLoad","collection","currentIndex","getFileIndex","filesToPrefetch","slice","previewTimeMetrics","loadData","totalPreviewMetrics","addFetchFileTimeToPreviewMetrics","time","focusPreview","preview","length","prefetch","handleCanPrint","advancedContentInsights","annotatorState","activeAnnotationId","enableThumbnailsSidebar","features","fileOptions","onAnnotatorEvent","onAnnotator","onContentInsightsEventReport","previewExperiences","showAnnotationsControls","token","tokenOrTokenFunction","file","selectedVersion","startAt","state","isPreviewLibraryLoaded","fileId","getFileId","currentFileId","fileOpts","typedId","getReadTokens","id","previewOptions","container","header","headerElement","experiences","showAnnotations","canViewAnnotations","showDownload","canDownload","showLoading","showProgress","skipServerUpdate","useHotkeys","Preview","global","Box","addListener","onPreviewLoad","onPreviewError","updateFileCache","show","Object","keys","stagedFile","initialState","getCurrentViewer","resize","fetchFileEndTime","performance","now","currentFile","isExistingFile","isWatermarked","file_version","sha1","fileError","errorCode","message","getPreview","viewer","isLoaded","isDestroyed","newIndex","navigateToIndex","onDownload","download","print","getViewer","isPreviewing","CLASS_NAVIGATION_VISIBILITY","clearTimeout","mouseMoveTimeoutID","previewContainer","classList","remove","allowNavigationArrows","add","setTimeout","event","consumed","key","target","onKeydown","nativeEvent","navigateLeft","navigateRight","preventDefault","stopPropagation","version","additionalVersionInfo","onVersionChange","updateVersionToCurrent","location","annotationFileVersionId","currentFileVersionId","currentPreviewFileVersionId","unit","type","emit","pageNumber","getThumbnail","apiHost","cache","language","requestInterceptor","responseInterceptor","sharedLink","sharedLinkPassword","api","clientName","prevFileIdProp","onReadyMetric","endMarkName","componentWillUnmount","destroy","destroyPreview","shouldReset","onPreviewDestroy","removeAllListeners","clearCache","componentDidMount","loadStylesheet","loadScript","fetchFile","getDerivedStateFromProps","componentDidUpdate","prevProps","prevState","prevFeatures","prevPreviewExperiences","prevToken","hasFileIdChanged","hasTokenChanged","haveAdvancedContentInsightsChanged","haveExperiencesChanged","shouldLoadPreview","loadPreview","updatePreviewToken","updateExperiences","updateContentInsightsOptions","shouldReload","updateToken","prevFile","prevSelectedVersion","prevSelectedVersionId","selectedVersionId","prevFileVersionId","fileVersionId","isPreviousCurrent","isSelectedCurrent","getBasePath","asset","staticHost","staticPath","previewLibraryVersion","path","suffix","endsWith","head","document","url","querySelector","link","createElement","rel","href","appendChild","previewScript","script","src","addEventListener","autoFocus","getInnerRef","activeElement","updatePreviewCacheAndPrefetch","files","typedIds","map","cacheTokens","forEach","refreshCache","fetchFileStartTime","Math","round","rendering","conversion","preload","totalConversion","totalRendering","totalPreload","total","isFileDownloadable","canAnnotate","isFileAnnotatable","hasViewAllPermissions","hasViewSelfPermissions","successCallback","errorCallback","fetchOptions","getFileAPI","getFile","fetchFileSuccessCallback","fetchFileErrorCallback","fields","findIndex","item","index","onNavigate","fileOrId","refreshSidebar","current","contentSidebar","refresh","render","messages","className","contentAnswersProps","contentOpenWithProps","contentSidebarProps","hasHeader","history","isLarge","isVeryLarge","logoUrl","onClose","measureRef","styleClassName","currentExtension","currentVersionId","onHeaderClose","onKeyDown","onMouseMove","containerRef","onResize","previewRef","getCache","handleAnnotationSelect","closeReloadNotification","loadFileFromStage","appHost","ContentPreviewComponent"],"mappings":";;;;;;;;;;;;AAAA;;;;;AAMA,OAAO,6BAAP;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,kBAAtB;AACA,OAAOC,IAAP,MAAiB,aAAjB;AACA,OAAOC,OAAP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;AAsBlB4P,EAAAA,qBAAqB,EAAExN,uBAtBL;AAuBlBuF,EAAAA,eAAe,EAAE,KAvBC;AAwBlB+H,EAAAA,UAAU,EAAEvN,uBAxBM;AAyBlBwN,EAAAA,UAAU,EAAErN,2BAzBM;AA0BlB4F,EAAAA,UAAU,EAAE;AA1BM,C;;AAqpC1B,SAAS/E,cAAc,IAAI+R,uBAA3B;AACA,eAAerV,IAAI,CAAC,CAChBW,cADgB,EAEhBuB,oBAFgB,EAGhBF,eAHgB,EAIhBvB,UAJgB,EAKhBG,aALgB,EAMhBW,mBANgB,EAOhBC,mBAPgB,EAQhBJ,UAAU,CAACwB,sBAAD,CARM,EAShBzB,iBAAiB,CAACyB,sBAAD,CATD,CAAD,CAAJ,CAUZU,cAVY,CAAf","sourcesContent":["/**\n * @flow\n * @file Content Preview Component\n * @author Box\n */\n\nimport 'regenerator-runtime/runtime';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport cloneDeep from 'lodash/cloneDeep';\nimport flow from 'lodash/flow';\nimport getProp from 'lodash/get';\nimport isEqual from 'lodash/isEqual';\nimport noop from 'lodash/noop';\nimport omit from 'lodash/omit';\nimport setProp from 'lodash/set';\nimport throttle from 'lodash/throttle';\nimport uniqueid from 'lodash/uniqueId';\nimport Measure from 'react-measure';\nimport { withRouter } from 'react-router-dom';\nimport type { ContextRouter } from 'react-router-dom';\nimport { decode } from '../../utils/keys';\nimport makeResponsive from '../common/makeResponsive';\nimport { withNavRouter } from '../common/nav-router';\nimport Internationalize from '../common/Internationalize';\nimport AsyncLoad from '../common/async-load';\nimport TokenService from '../../utils/TokenService';\nimport { isInputElement, focus } from '../../utils/dom';\nimport { getTypedFileId } from '../../utils/file';\nimport { withErrorBoundary } from '../common/error-boundary';\nimport { withLogger } from '../common/logger';\nimport { PREVIEW_FIELDS_TO_FETCH } from '../../utils/fields';\nimport { mark } from '../../utils/performance';\nimport { withFeatureConsumer, withFeatureProvider } from '../common/feature-checking';\nimport { EVENT_JS_READY } from '../common/logger/constants';\nimport ReloadNotification from './ReloadNotification';\nimport API from '../../api';\nimport APIContext from '../common/api-context';\nimport PreviewHeader from './preview-header';\nimport PreviewMask from './PreviewMask';\nimport PreviewNavigation from './PreviewNavigation';\nimport {\n withAnnotations,\n WithAnnotationsProps,\n withAnnotatorContext,\n WithAnnotatorContextProps,\n} from '../common/annotator-context';\nimport {\n DEFAULT_HOSTNAME_API,\n DEFAULT_HOSTNAME_APP,\n DEFAULT_HOSTNAME_STATIC,\n DEFAULT_PREVIEW_VERSION,\n DEFAULT_LOCALE,\n DEFAULT_PATH_STATIC_PREVIEW,\n CLIENT_NAME_CONTENT_PREVIEW,\n ORIGIN_PREVIEW,\n ORIGIN_CONTENT_PREVIEW,\n ERROR_CODE_UNKNOWN,\n} from '../../constants';\nimport type { Annotation } from '../../common/types/feed';\nimport type { TargetingApi } from '../../features/targeting/types';\nimport type { ErrorType, AdditionalVersionInfo } from '../common/flowTypes';\nimport type { WithLoggerProps } from '../../common/types/logging';\nimport type { RequestOptions, ErrorContextProps, ElementsXhrError } from '../../common/types/api';\nimport type { StringMap, Token, BoxItem, BoxItemVersion } from '../../common/types/core';\nimport type { VersionChangeCallback } from '../content-sidebar/versions';\nimport type { FeatureConfig } from '../common/feature-checking';\nimport type APICache from '../../utils/Cache';\n\nimport '../common/fonts.scss';\nimport '../common/base.scss';\nimport './ContentPreview.scss';\n\ntype StartAt = {\n unit: 'pages' | 'seconds',\n value: number,\n};\n\ntype Props = {\n advancedContentInsights: {\n isActive: boolean,\n ownerEId: number,\n userId: number,\n },\n apiHost: string,\n appHost: string,\n autoFocus: boolean,\n boxAnnotations?: Object,\n cache?: APICache,\n canDownload?: boolean,\n className: string,\n collection: Array<string | BoxItem>,\n contentAnswersProps: ContentAnswersProps,\n contentOpenWithProps: ContentOpenWithProps,\n contentSidebarProps: ContentSidebarProps,\n enableThumbnailsSidebar: boolean,\n features?: FeatureConfig,\n fileId?: string,\n fileOptions?: Object,\n getInnerRef: () => ?HTMLElement,\n hasHeader?: boolean,\n isLarge: boolean,\n isVeryLarge?: boolean,\n language: string,\n logoUrl?: string,\n measureRef: Function,\n messages?: StringMap,\n onAnnotator: Function,\n onAnnotatorEvent: Function,\n onClose?: Function,\n onContentInsightsEventReport: Function,\n onDownload: Function,\n onLoad: Function,\n onNavigate: Function,\n onVersionChange: VersionChangeCallback,\n previewExperiences?: {\n [name: string]: TargetingApi,\n },\n previewLibraryVersion: string,\n requestInterceptor?: Function,\n responseInterceptor?: Function,\n sharedLink?: string,\n sharedLinkPassword?: string,\n showAnnotations?: boolean,\n showAnnotationsControls?: boolean,\n staticHost: string,\n staticPath: string,\n token: Token,\n useHotkeys: boolean,\n} & ErrorContextProps &\n WithLoggerProps &\n WithAnnotationsProps &\n WithAnnotatorContextProps &\n ContextRouter;\n\ntype State = {\n canPrint?: boolean,\n currentFileId?: string,\n error?: ErrorType,\n file?: BoxItem,\n isLoading: boolean,\n isReloadNotificationVisible: boolean,\n isThumbnailSidebarOpen: boolean,\n prevFileIdProp?: string, // the previous value of the \"fileId\" prop. Needed to implement getDerivedStateFromProps\n selectedVersion?: BoxItemVersion,\n startAt?: StartAt,\n};\n\n// Emitted by preview's 'load' event\ntype PreviewTimeMetrics = {\n conversion: number,\n preload?: number,\n rendering: number,\n total: number,\n};\n\n// Emitted by preview's 'preview_metric' event\ntype PreviewMetrics = {\n browser_name: string,\n client_version: string,\n content_type: string, // Sum of all available load times.\n convert_time: number,\n download_response_time: number,\n error?: Object,\n event_name?: string,\n extension: string,\n file_id: string,\n file_info_time: number,\n file_version_id: string,\n full_document_load_time: number,\n locale: string,\n logger_session_id: string,\n rep_type: string,\n timestamp: string,\n value: number,\n};\n\ntype PreviewLibraryError = {\n error: ErrorType,\n};\n\nconst startAtTypes = {\n page: 'pages',\n};\nconst InvalidIdError = new Error('Invalid id for Preview!');\nconst PREVIEW_LOAD_METRIC_EVENT = 'load';\nconst MARK_NAME_JS_READY = `${ORIGIN_CONTENT_PREVIEW}_${EVENT_JS_READY}`;\n\nmark(MARK_NAME_JS_READY);\n\nconst LoadableSidebar = AsyncLoad({\n loader: () => import(/* webpackMode: \"lazy\", webpackChunkName: \"content-sidebar\" */ '../content-sidebar'),\n});\n\nclass ContentPreview extends React.PureComponent<Props, State> {\n id: string;\n\n props: Props;\n\n state: State;\n\n preview: any;\n\n api: API;\n\n // Defines a generic type for ContentSidebar, since an import would interfere with code splitting\n contentSidebar: { current: null | { refresh: Function } } = React.createRef();\n\n previewContainer: ?HTMLDivElement;\n\n mouseMoveTimeoutID: TimeoutID;\n\n rootElement: HTMLElement;\n\n stagedFile: ?BoxItem;\n\n updateVersionToCurrent: ?() => void;\n\n initialState: State = {\n canPrint: false,\n error: undefined,\n isLoading: true,\n isReloadNotificationVisible: false,\n isThumbnailSidebarOpen: false,\n };\n\n static defaultProps = {\n apiHost: DEFAULT_HOSTNAME_API,\n appHost: DEFAULT_HOSTNAME_APP,\n autoFocus: false,\n canDownload: true,\n className: '',\n collection: [],\n contentAnswersProps: {},\n contentOpenWithProps: {},\n contentSidebarProps: {},\n enableThumbnailsSidebar: false,\n hasHeader: false,\n language: DEFAULT_LOCALE,\n onAnnotator: noop,\n onAnnotatorEvent: noop,\n onContentInsightsEventReport: noop,\n onDownload: noop,\n onError: noop,\n onLoad: noop,\n onNavigate: noop,\n onPreviewDestroy: noop,\n onVersionChange: noop,\n previewLibraryVersion: DEFAULT_PREVIEW_VERSION,\n showAnnotations: false,\n staticHost: DEFAULT_HOSTNAME_STATIC,\n staticPath: DEFAULT_PATH_STATIC_PREVIEW,\n useHotkeys: true,\n };\n\n /**\n * @property {number}\n */\n fetchFileEndTime: ?number;\n\n /**\n * @property {number}\n */\n fetchFileStartTime: ?number;\n\n /**\n * [constructor]\n *\n * @return {ContentPreview}\n */\n constructor(props: Props) {\n super(props);\n const {\n apiHost,\n cache,\n fileId,\n language,\n requestInterceptor,\n responseInterceptor,\n sharedLink,\n sharedLinkPassword,\n token,\n } = props;\n\n this.id = uniqueid('bcpr_');\n this.api = new API({\n apiHost,\n cache,\n clientName: CLIENT_NAME_CONTENT_PREVIEW,\n language,\n requestInterceptor,\n responseInterceptor,\n sharedLink,\n sharedLinkPassword,\n token,\n });\n this.state = {\n ...this.initialState,\n currentFileId: fileId,\n // eslint-disable-next-line react/no-unused-state\n prevFileIdProp: fileId,\n };\n const { logger } = props;\n logger.onReadyMetric({\n endMarkName: MARK_NAME_JS_READY,\n });\n }\n\n /**\n * Cleanup\n *\n * @return {void}\n */\n componentWillUnmount(): void {\n // Don't destroy the cache while unmounting\n this.api.destroy(false);\n this.destroyPreview();\n }\n\n /**\n * Cleans up the preview instance\n */\n destroyPreview(shouldReset: boolean = true) {\n const { onPreviewDestroy } = this.props;\n if (this.preview) {\n this.preview.destroy();\n this.preview.removeAllListeners();\n this.preview = undefined;\n\n onPreviewDestroy(shouldReset);\n }\n }\n\n /**\n * Destroys api instances with caches\n *\n * @private\n * @return {void}\n */\n clearCache(): void {\n this.api.destroy(true);\n }\n\n /**\n * Once the component mounts, load Preview assets and fetch file info.\n *\n * @return {void}\n */\n componentDidMount(): void {\n this.loadStylesheet();\n this.loadScript();\n\n this.fetchFile(this.state.currentFileId);\n this.focusPreview();\n }\n\n static getDerivedStateFromProps(props: Props, state: State) {\n const { fileId } = props;\n\n if (fileId !== state.prevFileIdProp) {\n return {\n currentFileId: fileId,\n prevFileIdProp: fileId,\n };\n }\n\n return null;\n }\n\n /**\n * After component updates, load Preview if appropriate.\n *\n * @return {void}\n */\n componentDidUpdate(prevProps: Props, prevState: State): void {\n const { features, previewExperiences, token } = this.props;\n const { features: prevFeatures, previewExperiences: prevPreviewExperiences, token: prevToken } = prevProps;\n const { currentFileId } = this.state;\n const hasFileIdChanged = prevState.currentFileId !== currentFileId;\n const hasTokenChanged = prevToken !== token;\n const haveAdvancedContentInsightsChanged = !isEqual(\n prevFeatures?.advancedContentInsights,\n features?.advancedContentInsights,\n );\n const haveExperiencesChanged = prevPreviewExperiences !== previewExperiences;\n\n if (hasFileIdChanged) {\n this.destroyPreview();\n this.setState({ isLoading: true, selectedVersion: undefined });\n this.fetchFile(currentFileId);\n } else if (this.shouldLoadPreview(prevState)) {\n this.destroyPreview(false);\n this.setState({ isLoading: true });\n this.loadPreview();\n } else if (hasTokenChanged) {\n this.updatePreviewToken();\n }\n\n if (haveExperiencesChanged && this.preview && this.preview.updateExperiences) {\n this.preview.updateExperiences(previewExperiences);\n }\n\n if (\n this.preview?.updateContentInsightsOptions &&\n features?.advancedContentInsights &&\n haveAdvancedContentInsightsChanged\n ) {\n this.preview.updateContentInsightsOptions(features?.advancedContentInsights);\n }\n }\n\n /**\n * Updates the access token used by preview library\n *\n * @param {boolean} shouldReload - true if preview should be reloaded\n */\n updatePreviewToken(shouldReload: boolean = false) {\n if (this.preview) {\n this.preview.updateToken(this.props.token, shouldReload);\n }\n }\n\n /**\n * Returns whether or not preview should be loaded.\n *\n * @param {State} prevState - Previous state\n * @return {boolean}\n */\n shouldLoadPreview(prevState: State): boolean {\n const { file, selectedVersion }: State = this.state;\n const { file: prevFile, selectedVersion: prevSelectedVersion }: State = prevState;\n const prevSelectedVersionId = getProp(prevSelectedVersion, 'id');\n const selectedVersionId = getProp(selectedVersion, 'id');\n const prevFileVersionId = getProp(prevFile, 'file_version.id');\n const fileVersionId = getProp(file, 'file_version.id');\n let loadPreview = false;\n\n if (selectedVersionId !== prevSelectedVersionId) {\n const isPreviousCurrent = fileVersionId === prevSelectedVersionId || !prevSelectedVersionId;\n const isSelectedCurrent = fileVersionId === selectedVersionId || !selectedVersionId;\n\n // Load preview if the user has selected a non-current version of the file\n loadPreview = !isPreviousCurrent || !isSelectedCurrent;\n } else if (fileVersionId && prevFileVersionId) {\n // Load preview if the file's current version ID has changed\n loadPreview = fileVersionId !== prevFileVersionId;\n } else {\n // Load preview if file object has newly been populated in state\n loadPreview = !prevFile && !!file;\n }\n\n return loadPreview;\n }\n\n /**\n * Returns preview asset urls\n *\n * @return {string} base url\n */\n getBasePath(asset: string): string {\n const { staticHost, staticPath, language, previewLibraryVersion }: Props = this.props;\n const path: string = `${staticPath}/${previewLibraryVersion}/${language}/${asset}`;\n const suffix: string = staticHost.endsWith('/') ? path : `/${path}`;\n return `${staticHost}${suffix}`;\n }\n\n /**\n * Determines if preview assets are loaded\n *\n * @return {boolean} true if preview is loaded\n */\n isPreviewLibraryLoaded(): boolean {\n return !!global.Box && !!global.Box.Preview;\n }\n\n /**\n * Loads external css by appending a <link> element\n *\n * @return {void}\n */\n loadStylesheet(): void {\n const { head } = document;\n const url: string = this.getBasePath('preview.css');\n\n if (!head || head.querySelector(`link[rel=\"stylesheet\"][href=\"${url}\"]`)) {\n return;\n }\n\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.type = 'text/css';\n link.href = url;\n head.appendChild(link);\n }\n\n /**\n * Loads external script by appending a <script> element\n *\n * @return {void}\n */\n loadScript(): void {\n const { head } = document;\n const url: string = this.getBasePath('preview.js');\n\n if (!head || this.isPreviewLibraryLoaded()) {\n return;\n }\n\n const previewScript = head.querySelector(`script[src=\"${url}\"]`);\n if (previewScript) {\n return;\n }\n\n const script = document.createElement('script');\n script.src = url;\n script.addEventListener('load', this.loadPreview);\n head.appendChild(script);\n }\n\n /**\n * Focuses the preview on load.\n *\n * @return {void}\n */\n focusPreview() {\n const { autoFocus, getInnerRef }: Props = this.props;\n if (autoFocus && !isInputElement(document.activeElement)) {\n focus(getInnerRef());\n }\n }\n\n /**\n * Updates preview cache and prefetches a file\n *\n * @param {BoxItem} file - file to prefetch\n * @return {void}\n */\n updatePreviewCacheAndPrefetch(file: BoxItem, token: Token): void {\n if (!this.preview || !file || !file.id) {\n return;\n }\n\n this.preview.updateFileCache([file]);\n this.preview.prefetch({ fileId: file.id, token });\n }\n\n /**\n * Gets the file id\n *\n * @param {string|BoxItem} file - box file or file id\n * @return {string} file id\n */\n getFileId(file?: string | BoxItem): string {\n if (typeof file === 'string') {\n return file;\n }\n\n if (typeof file === 'object' && !!file.id) {\n return file.id;\n }\n\n throw InvalidIdError;\n }\n\n /**\n * Prefetches the next few preview files if any\n *\n * @param {Array<string|BoxItem>} files - files to prefetch\n * @return {void}\n */\n async prefetch(files: Array<string | BoxItem>): Promise<void> {\n const { token }: Props = this.props;\n const typedIds: string[] = files.map(file => getTypedFileId(this.getFileId(file)));\n await TokenService.cacheTokens(typedIds, token);\n files.forEach(file => {\n const fileId = this.getFileId(file);\n this.fetchFile(fileId, noop, noop, {\n refreshCache: false,\n });\n });\n }\n\n /**\n * Calculates the total file fetch time\n *\n * @return {number} the total fetch time\n */\n getTotalFileFetchTime(): number {\n if (!this.fetchFileStartTime || !this.fetchFileEndTime) {\n return 0;\n }\n\n return Math.round(this.fetchFileEndTime - this.fetchFileStartTime);\n }\n\n /**\n * Handler for 'preview_error' preview event\n *\n * @param {PreviewLibraryError} previewError - the error data emitted from preview\n * @return {void}\n */\n onPreviewError = ({ error, ...rest }: PreviewLibraryError): void => {\n const { code = ERROR_CODE_UNKNOWN } = error;\n const { onError } = this.props;\n\n // In case of error, there should be no thumbnail sidebar to account for\n this.setState({ isLoading: false, isThumbnailSidebarOpen: false });\n\n onError(\n error,\n code,\n {\n ...rest,\n error,\n },\n ORIGIN_PREVIEW,\n );\n };\n\n /**\n * Event handler 'preview_metric' which also adds in the file fetch time if it's a load event\n *\n * @param {Object} previewMetrics - the object emitted by 'preview_metric'\n * @return {void}\n */\n onPreviewMetric = (previewMetrics: PreviewMetrics): void => {\n const { logger } = this.props;\n const { event_name } = previewMetrics;\n let metrics = {\n ...previewMetrics,\n };\n\n // We need to add in the total file fetch time to the file_info_time and value (total)\n // as preview does not do the files call\n if (event_name === PREVIEW_LOAD_METRIC_EVENT) {\n const totalFetchFileTime = this.getTotalFileFetchTime();\n const totalTime = (previewMetrics.value || 0) + totalFetchFileTime;\n\n // If an unnatural load time occurs or is invalid, don't log a load event\n if (!totalTime) {\n return;\n }\n\n metrics = {\n ...previewMetrics,\n file_info_time: totalFetchFileTime,\n value: totalTime,\n };\n }\n\n logger.onPreviewMetric(metrics);\n };\n\n /**\n * Adds in the file fetch time to the preview metrics\n *\n * @param {Object} previewTimeMetrics - the preview time metrics\n * @return {Object} the preview time metrics merged with the files call time\n */\n addFetchFileTimeToPreviewMetrics(previewTimeMetrics: PreviewTimeMetrics): PreviewTimeMetrics {\n const totalFetchFileTime = this.getTotalFileFetchTime();\n const { rendering, conversion, preload } = previewTimeMetrics;\n\n // We need to add in the total file fetch time to the rendering and total as preview\n // does not do the files call. In the case the file is in the process of\n // being converted, we need to add to conversion instead of the render\n let totalConversion = conversion;\n let totalRendering = rendering;\n let totalPreload = preload;\n if (conversion) {\n totalConversion += totalFetchFileTime;\n } else {\n totalRendering += totalFetchFileTime;\n }\n\n if (totalPreload) {\n // Preload is optional, depending on file type\n totalPreload += totalFetchFileTime;\n }\n\n const previewMetrics = {\n conversion: totalConversion,\n rendering: totalRendering,\n total: totalRendering + totalConversion,\n preload: totalPreload,\n };\n\n return previewMetrics;\n }\n\n /**\n * onLoad function for preview\n *\n * @return {void}\n */\n onPreviewLoad = (data: Object): void => {\n const { onLoad, collection }: Props = this.props;\n const currentIndex = this.getFileIndex();\n const filesToPrefetch = collection.slice(currentIndex + 1, currentIndex + 5);\n const previewTimeMetrics = getProp(data, 'metrics.time');\n let loadData = data;\n\n if (previewTimeMetrics) {\n const totalPreviewMetrics = this.addFetchFileTimeToPreviewMetrics(previewTimeMetrics);\n loadData = {\n ...loadData,\n metrics: {\n ...loadData.metrics,\n time: totalPreviewMetrics,\n },\n };\n }\n\n onLoad(loadData);\n\n this.setState({ isLoading: false });\n this.focusPreview();\n\n if (this.preview && filesToPrefetch.length) {\n this.prefetch(filesToPrefetch);\n }\n\n this.handleCanPrint();\n };\n\n /**\n * Returns whether file can be downloaded based on file properties, permissions, and user-defined options.\n *\n * @return {boolean}\n */\n canDownload(): boolean {\n const { canDownload }: Props = this.props;\n const { file }: State = this.state;\n const isFileDownloadable =\n getProp(file, 'permissions.can_download', false) && getProp(file, 'is_download_available', false);\n return isFileDownloadable && !!canDownload;\n }\n\n /**\n * Returns whether file can be annotated based on permissions\n *\n * @return {boolean}\n */\n canAnnotate(): boolean {\n const { showAnnotations }: Props = this.props;\n const { file }: State = this.state;\n const isFileAnnotatable = getProp(file, 'permissions.can_annotate', false);\n return !!showAnnotations && isFileAnnotatable;\n }\n\n /**\n * Returns whether a preview should render annotations based on permissions\n *\n * @return {boolean}\n */\n canViewAnnotations(): boolean {\n const { showAnnotations }: Props = this.props;\n const { file }: State = this.state;\n const hasViewAllPermissions = getProp(file, 'permissions.can_view_annotations_all', false);\n const hasViewSelfPermissions = getProp(file, 'permissions.can_view_annotations_self', false);\n return !!showAnnotations && (this.canAnnotate() || hasViewAllPermissions || hasViewSelfPermissions);\n }\n\n handleCanPrint() {\n const preview = this.getPreview();\n this.setState({ canPrint: !!preview && (!preview.canPrint || preview.canPrint()) });\n }\n\n /**\n * Loads preview in the component using the preview library.\n *\n * @return {void}\n */\n loadPreview = async (): Promise<void> => {\n const {\n advancedContentInsights, // will be removed once preview package will be updated to utilize feature flip for ACI\n annotatorState: { activeAnnotationId } = {},\n enableThumbnailsSidebar,\n features,\n fileOptions,\n onAnnotatorEvent,\n onAnnotator,\n onContentInsightsEventReport,\n previewExperiences,\n showAnnotationsControls,\n token: tokenOrTokenFunction,\n ...rest\n }: Props = this.props;\n const { file, selectedVersion, startAt }: State = this.state;\n\n if (!this.isPreviewLibraryLoaded() || !file || !tokenOrTokenFunction) {\n return;\n }\n\n const fileId = this.getFileId(file);\n\n if (fileId !== this.state.currentFileId) {\n return;\n }\n\n const fileOpts = { ...fileOptions };\n const token = typedId => TokenService.getReadTokens(typedId, tokenOrTokenFunction);\n\n if (selectedVersion) {\n setProp(fileOpts, [fileId, 'fileVersionId'], selectedVersion.id);\n setProp(fileOpts, [fileId, 'currentFileVersionId'], getProp(file, 'file_version.id'));\n }\n\n if (activeAnnotationId) {\n setProp(fileOpts, [fileId, 'annotations', 'activeId'], activeAnnotationId);\n }\n\n if (startAt) {\n setProp(fileOpts, [fileId, 'startAt'], startAt);\n }\n\n const previewOptions = {\n advancedContentInsights, // will be removed once preview package will be updated to utilize feature flip for ACI\n container: `#${this.id} .bcpr-content`,\n enableThumbnailsSidebar,\n features,\n fileOptions: fileOpts,\n header: 'none',\n headerElement: `#${this.id} .bcpr-PreviewHeader`,\n experiences: previewExperiences,\n showAnnotations: this.canViewAnnotations(),\n showAnnotationsControls,\n showDownload: this.canDownload(),\n showLoading: false,\n showProgress: false,\n skipServerUpdate: true,\n useHotkeys: false,\n };\n const { Preview } = global.Box;\n this.preview = new Preview();\n this.preview.addListener('load', this.onPreviewLoad);\n this.preview.addListener('preview_error', this.onPreviewError);\n this.preview.addListener('preview_metric', this.onPreviewMetric);\n this.preview.addListener('thumbnailsOpen', () => this.setState({ isThumbnailSidebarOpen: true }));\n this.preview.addListener('thumbnailsClose', () => this.setState({ isThumbnailSidebarOpen: false }));\n\n if (showAnnotationsControls) {\n this.preview.addListener('annotator_create', onAnnotator);\n }\n\n this.preview.updateFileCache([file]);\n this.preview.show(file.id, token, {\n ...previewOptions,\n ...omit(rest, Object.keys(previewOptions)),\n });\n if (advancedContentInsights) {\n this.preview.addListener('advanced_insights_report', onContentInsightsEventReport);\n }\n };\n\n /**\n * Updates preview file from temporary staged file.\n *\n * @return {void}\n */\n loadFileFromStage = () => {\n if (this.stagedFile) {\n this.setState({ ...this.initialState, file: this.stagedFile }, () => {\n this.stagedFile = undefined;\n });\n }\n };\n\n /**\n * Removes the reload notification\n *\n * @return {void}\n */\n closeReloadNotification = () => {\n this.setState({ isReloadNotificationVisible: false });\n };\n\n /**\n * Tells the preview to resize\n *\n * @return {void}\n */\n onResize = (): void => {\n if (this.preview && this.preview.getCurrentViewer()) {\n this.preview.resize();\n }\n };\n\n /**\n * File fetch success callback\n *\n * @param {Object} file - Box file\n * @return {void}\n */\n fetchFileSuccessCallback = (file: BoxItem): void => {\n this.fetchFileEndTime = performance.now();\n\n const { file: currentFile }: State = this.state;\n const isExistingFile = currentFile ? currentFile.id === file.id : false;\n const isWatermarked = getProp(file, 'watermark_info.is_watermarked', false);\n\n // If the file is watermarked or if its a new file, then update the state\n // In this case preview should reload without prompting the user\n if (isWatermarked || !isExistingFile) {\n this.setState({ ...this.initialState, file });\n // $FlowFixMe file version and sha1 should exist at this point\n } else if (currentFile.file_version.sha1 !== file.file_version.sha1) {\n // If we are already prevewing the file that got updated then show the\n // user a notification to reload the file only if its sha1 changed\n this.stagedFile = file;\n this.setState({\n ...this.initialState,\n isReloadNotificationVisible: true,\n });\n }\n };\n\n /**\n * File fetch error callback\n *\n * @return {void}\n */\n fetchFileErrorCallback = (fileError: ElementsXhrError, code: string): void => {\n const { onError } = this.props;\n const errorCode = fileError.code || code;\n const error = {\n code: errorCode,\n message: fileError.message,\n };\n this.setState({ error, file: undefined, isLoading: false });\n onError(fileError, errorCode, {\n error: fileError,\n });\n };\n\n /**\n * Fetches a file\n *\n * @param {string} id file id\n * @param {Function|void} [successCallback] - Callback after file is fetched\n * @param {Function|void} [errorCallback] - Callback after error\n * @param {Object|void} [fetchOptions] - Fetch options\n * @return {void}\n */\n fetchFile(\n id: ?string,\n successCallback?: Function,\n errorCallback?: Function,\n fetchOptions: RequestOptions = {},\n ): void {\n if (!id) {\n return;\n }\n\n this.fetchFileStartTime = performance.now();\n this.fetchFileEndTime = null;\n\n this.api\n .getFileAPI()\n .getFile(\n id,\n successCallback || this.fetchFileSuccessCallback,\n errorCallback || this.fetchFileErrorCallback,\n {\n ...fetchOptions,\n fields: PREVIEW_FIELDS_TO_FETCH,\n },\n );\n }\n\n /**\n * Returns the preview instance\n *\n * @return {Preview} current instance of preview\n */\n getPreview = (): any => {\n const { file }: State = this.state;\n if (!this.preview || !file) {\n return null;\n }\n\n return this.preview;\n };\n\n /**\n * Returns the viewer instance being used by preview.\n * This will let child components access the viewers.\n *\n * @return {Viewer} current instance of the preview viewer\n */\n getViewer = (): any => {\n const preview = this.getPreview();\n const viewer = preview ? preview.getCurrentViewer() : null;\n return viewer && viewer.isLoaded() && !viewer.isDestroyed() ? viewer : null;\n };\n\n /**\n * Finds the index of current file inside the collection\n *\n * @return {number} -1 if not indexed\n */\n getFileIndex() {\n const { currentFileId }: State = this.state;\n const { collection }: Props = this.props;\n if (!currentFileId || collection.length < 2) {\n return -1;\n }\n\n return collection.findIndex(item => {\n if (typeof item === 'string') {\n return item === currentFileId;\n }\n\n return item.id === currentFileId;\n });\n }\n\n /**\n * Shows a preview of a file at the specified index in the current collection.\n *\n * @public\n * @param {number} index - Index of file to preview\n * @return {void}\n */\n navigateToIndex(index: number) {\n const { collection, onNavigate }: Props = this.props;\n const { length } = collection;\n if (length < 2 || index < 0 || index > length - 1) {\n return;\n }\n\n const fileOrId = collection[index];\n const fileId = typeof fileOrId === 'object' ? fileOrId.id || '' : fileOrId;\n\n this.setState(\n {\n currentFileId: fileId,\n },\n () => {\n // Execute navigation callback\n onNavigate(fileId);\n },\n );\n }\n\n /**\n * Shows a preview of the previous file.\n *\n * @public\n * @return {void}\n */\n navigateLeft = () => {\n const currentIndex = this.getFileIndex();\n const newIndex = currentIndex === 0 ? 0 : currentIndex - 1;\n if (newIndex !== currentIndex) {\n this.navigateToIndex(newIndex);\n }\n };\n\n /**\n * Shows a preview of the next file.\n *\n * @public\n * @return {void}\n */\n navigateRight = () => {\n const { collection }: Props = this.props;\n const currentIndex = this.getFileIndex();\n const newIndex = currentIndex === collection.length - 1 ? collection.length - 1 : currentIndex + 1;\n if (newIndex !== currentIndex) {\n this.navigateToIndex(newIndex);\n }\n };\n\n /**\n * Downloads file.\n *\n * @public\n * @return {void}\n */\n download = () => {\n const { onDownload }: Props = this.props;\n const { file }: State = this.state;\n if (this.preview) {\n this.preview.download();\n onDownload(cloneDeep(file));\n }\n };\n\n /**\n * Prints file.\n *\n * @public\n * @return {void}\n */\n print = () => {\n if (this.preview) {\n this.preview.print();\n }\n };\n\n /**\n * Mouse move handler that is throttled and show\n * the navigation arrows if applicable.\n *\n * @return {void}\n */\n onMouseMove = throttle(() => {\n const viewer = this.getViewer();\n const isPreviewing = !!viewer;\n const CLASS_NAVIGATION_VISIBILITY = 'bcpr-nav-is-visible';\n\n clearTimeout(this.mouseMoveTimeoutID);\n\n if (!this.previewContainer) {\n return;\n }\n\n // Always assume that navigation arrows will be hidden\n this.previewContainer.classList.remove(CLASS_NAVIGATION_VISIBILITY);\n\n // Only show it if either we aren't previewing or if we are then the viewer\n // is not blocking the show. If we are previewing then the viewer may choose\n // to not allow navigation arrows. This is mostly useful for videos since the\n // navigation arrows may interfere with the settings menu inside video player.\n if (this.previewContainer && (!isPreviewing || viewer.allowNavigationArrows())) {\n this.previewContainer.classList.add(CLASS_NAVIGATION_VISIBILITY);\n }\n\n this.mouseMoveTimeoutID = setTimeout(() => {\n if (this.previewContainer) {\n this.previewContainer.classList.remove(CLASS_NAVIGATION_VISIBILITY);\n }\n }, 1500);\n }, 1000);\n\n /**\n * Keyboard events\n *\n * @return {void}\n */\n onKeyDown = (event: SyntheticKeyboardEvent<HTMLElement>) => {\n const { useHotkeys }: Props = this.props;\n if (!useHotkeys) {\n return;\n }\n\n let consumed = false;\n const key = decode(event);\n const viewer = this.getViewer();\n\n // If focus was on an input or if the viewer doesn't exist\n // then don't bother doing anything further\n if (!key || !viewer || isInputElement(event.target)) {\n return;\n }\n\n if (typeof viewer.onKeydown === 'function') {\n consumed = !!viewer.onKeydown(key, event.nativeEvent);\n }\n\n if (!consumed) {\n switch (key) {\n case 'ArrowLeft':\n this.navigateLeft();\n consumed = true;\n break;\n case 'ArrowRight':\n this.navigateRight();\n consumed = true;\n break;\n default:\n // no-op\n }\n }\n\n if (consumed) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n /**\n * Handles version change events\n *\n * @param {string} [version] - The version that is now previewed\n * @param {object} [additionalVersionInfo] - extra info about the version\n */\n onVersionChange = (version?: BoxItemVersion, additionalVersionInfo: AdditionalVersionInfo = {}): void => {\n const { onVersionChange }: Props = this.props;\n this.updateVersionToCurrent = additionalVersionInfo.updateVersionToCurrent;\n\n onVersionChange(version, additionalVersionInfo);\n this.setState({\n selectedVersion: version,\n });\n };\n\n handleAnnotationSelect = ({ file_version, id, target }: Annotation) => {\n const { location = {} } = target;\n const { file, selectedVersion } = this.state;\n const annotationFileVersionId = getProp(file_version, 'id');\n const currentFileVersionId = getProp(file, 'file_version.id');\n const currentPreviewFileVersionId = getProp(selectedVersion, 'id', currentFileVersionId);\n const unit = startAtTypes[location.type];\n const viewer = this.getViewer();\n\n if (unit && annotationFileVersionId && annotationFileVersionId !== currentPreviewFileVersionId) {\n this.setState({\n startAt: {\n unit,\n value: location.value,\n },\n });\n }\n\n if (viewer) {\n viewer.emit('scrolltoannotation', { id, target });\n }\n };\n\n /**\n * Holds the reference the preview container\n *\n * @return {void}\n */\n containerRef = (container: ?HTMLDivElement) => {\n this.previewContainer = container;\n };\n\n /**\n * Refreshes the content sidebar panel\n *\n * @return {void}\n */\n refreshSidebar(): void {\n const { current: contentSidebar } = this.contentSidebar;\n\n if (contentSidebar) {\n contentSidebar.refresh();\n }\n }\n\n /**\n * Fetches a thumbnail for the page given\n *\n * @return {Promise|null} - promise resolves with the image HTMLElement or null if generation is in progress\n */\n getThumbnail = (pageNumber: ?number): Promise<HTMLElement> | null => {\n const preview = this.getPreview();\n if (preview && preview.viewer) {\n return preview.viewer.getThumbnail(pageNumber);\n }\n\n return null;\n };\n\n /**\n * Renders the file preview\n *\n * @inheritdoc\n * @return {Element}\n */\n render() {\n const {\n apiHost,\n collection,\n token,\n language,\n messages,\n className,\n contentAnswersProps,\n contentOpenWithProps,\n contentSidebarProps,\n hasHeader,\n history,\n isLarge,\n isVeryLarge,\n logoUrl,\n onClose,\n measureRef,\n sharedLink,\n sharedLinkPassword,\n requestInterceptor,\n responseInterceptor,\n }: Props = this.props;\n\n const {\n canPrint,\n currentFileId,\n error,\n file,\n isLoading,\n isReloadNotificationVisible,\n isThumbnailSidebarOpen,\n selectedVersion,\n }: State = this.state;\n\n const styleClassName = classNames(\n 'be bcpr',\n {\n 'bcpr-thumbnails-open': isThumbnailSidebarOpen,\n },\n className,\n );\n\n if (!currentFileId) {\n return null;\n }\n\n const errorCode = getProp(error, 'code');\n const currentExtension = getProp(file, 'id') === currentFileId ? getProp(file, 'extension') : '';\n const currentVersionId = getProp(file, 'file_version.id');\n const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);\n const onHeaderClose = currentVersionId === selectedVersionId ? onClose : this.updateVersionToCurrent;\n\n /* eslint-disable jsx-a11y/no-static-element-interactions */\n /* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n return (\n <Internationalize language={language} messages={messages}>\n <APIContext.Provider value={(this.api: API)}>\n <div\n id={this.id}\n className={styleClassName}\n ref={measureRef}\n onKeyDown={this.onKeyDown}\n tabIndex={0}\n >\n {hasHeader && (\n <PreviewHeader\n file={file}\n logoUrl={logoUrl}\n token={token}\n onClose={onHeaderClose}\n onPrint={this.print}\n canDownload={this.canDownload()}\n canPrint={canPrint}\n onDownload={this.download}\n contentAnswersProps={contentAnswersProps}\n contentOpenWithProps={contentOpenWithProps}\n canAnnotate={this.canAnnotate()}\n selectedVersion={selectedVersion}\n />\n )}\n <div className=\"bcpr-body\">\n <div className=\"bcpr-container\" onMouseMove={this.onMouseMove} ref={this.containerRef}>\n {file && (\n <Measure bounds onResize={this.onResize}>\n {({ measureRef: previewRef }) => (\n <div ref={previewRef} className=\"bcpr-content\" />\n )}\n </Measure>\n )}\n <PreviewMask errorCode={errorCode} extension={currentExtension} isLoading={isLoading} />\n <PreviewNavigation\n collection={collection}\n currentIndex={this.getFileIndex()}\n onNavigateLeft={this.navigateLeft}\n onNavigateRight={this.navigateRight}\n />\n </div>\n {file && (\n <LoadableSidebar\n {...contentSidebarProps}\n apiHost={apiHost}\n token={token}\n cache={this.api.getCache()}\n fileId={currentFileId}\n getPreview={this.getPreview}\n getViewer={this.getViewer}\n history={history}\n isDefaultOpen={isLarge || isVeryLarge}\n language={language}\n ref={this.contentSidebar}\n sharedLink={sharedLink}\n sharedLinkPassword={sharedLinkPassword}\n requestInterceptor={requestInterceptor}\n responseInterceptor={responseInterceptor}\n onAnnotationSelect={this.handleAnnotationSelect}\n onVersionChange={this.onVersionChange}\n />\n )}\n </div>\n {isReloadNotificationVisible && (\n <ReloadNotification\n onClose={this.closeReloadNotification}\n onClick={this.loadFileFromStage}\n />\n )}\n </div>\n </APIContext.Provider>\n </Internationalize>\n );\n /* eslint-enable jsx-a11y/no-static-element-interactions */\n /* eslint-enable jsx-a11y/no-noninteractive-tabindex */\n }\n}\n\nexport type ContentPreviewProps = Props;\nexport { ContentPreview as ContentPreviewComponent };\nexport default flow([\n makeResponsive,\n withAnnotatorContext,\n withAnnotations,\n withRouter,\n withNavRouter,\n withFeatureConsumer,\n withFeatureProvider,\n withLogger(ORIGIN_CONTENT_PREVIEW),\n withErrorBoundary(ORIGIN_CONTENT_PREVIEW),\n])(ContentPreview);\n"],"file":"ContentPreview.js"}
@@ -60,41 +60,26 @@
60
60
  }
61
61
  }
62
62
 
63
- &.be-is-small {
64
- .bcpr-body {
65
- position: relative;
66
- }
67
-
68
- .bcs.bcs-is-open {
69
- position: absolute;
70
- right: 0;
71
- }
63
+ &.bcpr-thumbnails-open .bcpr-navigate-left {
64
+ left: 191px;
72
65
  }
73
66
  }
74
67
 
75
- .bcpr.bcpr-thumbnails-open .bcpr-navigate-left {
76
- left: 191px;
77
- }
68
+ @include breakpoint($medium-screen) {
69
+ .bcpr {
70
+ position: relative;
78
71
 
79
- .is-responsive-web {
80
- @include breakpoint($medium-screen) {
81
- .be.bcpr {
82
- position: relative;
72
+ .bcpr-body {
73
+ position: static;
74
+ flex-direction: column;
83
75
  }
84
76
 
85
- .bcpr {
86
- .bcpr-body {
87
- position: static;
88
- flex-direction: column;
89
- }
90
-
91
- .bcpr-container {
92
- position: static;
93
- }
77
+ .bcpr-container {
78
+ position: static;
79
+ }
94
80
 
95
- &.bcpr-thumbnails-open .bcpr-navigate-left {
96
- left: 0;
97
- }
81
+ &.bcpr-thumbnails-open .bcpr-navigate-left {
82
+ left: 0;
98
83
  }
99
84
  }
100
85
  }
@@ -9,7 +9,9 @@ import React from 'react';
9
9
  import { injectIntl } from 'react-intl';
10
10
  import classNames from 'classnames';
11
11
  import getProp from 'lodash/get';
12
- import AsyncLoad from '../../common/async-load';
12
+ import AsyncLoad from '../../common/async-load'; // $FlowFixMe typescript component
13
+
14
+ import ContentAnswers from '../../../features/content-answers';
13
15
  import FileInfo from './FileInfo';
14
16
  import IconClose from '../../../icons/general/IconClose';
15
17
  import IconDownload from '../../../icons/general/IconDownloadSolid';
@@ -32,6 +34,7 @@ const PreviewHeader = (_ref) => {
32
34
  canAnnotate,
33
35
  canDownload,
34
36
  canPrint,
37
+ contentAnswersProps = {},
35
38
  contentOpenWithProps = {},
36
39
  file,
37
40
  intl,
@@ -43,6 +46,7 @@ const PreviewHeader = (_ref) => {
43
46
  token
44
47
  } = _ref;
45
48
  const fileId = file && file.id;
49
+ const shouldRenderAnswers = fileId && contentAnswersProps.show;
46
50
  const shouldRenderOpenWith = fileId && contentOpenWithProps.show;
47
51
  const currentVersionId = getProp(file, 'file_version.id');
48
52
  const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);
@@ -70,7 +74,9 @@ const PreviewHeader = (_ref) => {
70
74
  className: "bcpr-bcow-btn",
71
75
  fileId: fileId,
72
76
  token: token
73
- }, contentOpenWithProps)), canAnnotate && React.createElement(React.Fragment, null, React.createElement(PlainButton, {
77
+ }, contentOpenWithProps)), shouldRenderAnswers && React.createElement(ContentAnswers, {
78
+ file: file
79
+ }), canAnnotate && React.createElement(React.Fragment, null, React.createElement(PlainButton, {
74
80
  "aria-label": drawMsg,
75
81
  className: "bcpr-PreviewHeader-button bp-btn-annotate-draw bp-is-hidden",
76
82
  title: drawMsg,
@@ -10,6 +10,8 @@ import type { InjectIntlProvidedProps } from 'react-intl';
10
10
  import classNames from 'classnames';
11
11
  import getProp from 'lodash/get';
12
12
  import AsyncLoad from '../../common/async-load';
13
+ // $FlowFixMe typescript component
14
+ import ContentAnswers from '../../../features/content-answers';
13
15
  import FileInfo from './FileInfo';
14
16
  import IconClose from '../../../icons/general/IconClose';
15
17
  import IconDownload from '../../../icons/general/IconDownloadSolid';
@@ -28,6 +30,7 @@ type Props = {
28
30
  canAnnotate: boolean,
29
31
  canDownload: boolean,
30
32
  canPrint?: boolean,
33
+ contentAnswersProps?: ContentAnswersProps,
31
34
  contentOpenWithProps?: ContentOpenWithProps,
32
35
  file?: BoxItem,
33
36
  logoUrl?: string,
@@ -46,6 +49,7 @@ const PreviewHeader = ({
46
49
  canAnnotate,
47
50
  canDownload,
48
51
  canPrint,
52
+ contentAnswersProps = {},
49
53
  contentOpenWithProps = {},
50
54
  file,
51
55
  intl,
@@ -57,6 +61,7 @@ const PreviewHeader = ({
57
61
  token,
58
62
  }: Props) => {
59
63
  const fileId = file && file.id;
64
+ const shouldRenderAnswers = fileId && contentAnswersProps.show;
60
65
  const shouldRenderOpenWith = fileId && contentOpenWithProps.show;
61
66
  const currentVersionId = getProp(file, 'file_version.id');
62
67
  const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);
@@ -95,6 +100,7 @@ const PreviewHeader = ({
95
100
  {...contentOpenWithProps}
96
101
  />
97
102
  )}
103
+ {shouldRenderAnswers && <ContentAnswers file={file} />}
98
104
  {canAnnotate && (
99
105
  <>
100
106
  <PlainButton
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/elements/content-preview/preview-header/PreviewHeader.js"],"names":["React","injectIntl","classNames","getProp","AsyncLoad","FileInfo","IconClose","IconDownload","IconDrawAnnotationMode","IconPointAnnotation","IconPrint","Logo","messages","PlainButton","bdlGray50","LoadableContentOpenWith","loader","PreviewHeader","canAnnotate","canDownload","canPrint","contentOpenWithProps","file","intl","logoUrl","onClose","onDownload","onPrint","selectedVersion","token","fileId","id","shouldRenderOpenWith","show","currentVersionId","selectedVersionId","isPreviewingCurrentVersion","closeMsg","formatMessage","close","back","printMsg","print","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JT,KAMKW,0BAA0B,GACvB,oBAAC,SAAD;AAAW,IAAA,KAAK,EAAEtB,SAAlB;AAA6B,IAAA,MAAM,EAAE,EAArC;AAAyC,IAAA,KAAK,EAAE;AAAhD,IADuB,GAGvBuB,QATR,CAzDR,CAHJ,CATJ,CADJ;AAuFH,CApHD;;AAsHA,eAAepC,UAAU,CAACgB,aAAD,CAAzB","sourcesContent":["/**\n * @flow\n * @file Preview header component\n * @author Box\n */\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\nimport type { InjectIntlProvidedProps } from 'react-intl';\nimport classNames from 'classnames';\nimport getProp from 'lodash/get';\nimport AsyncLoad from '../../common/async-load';\nimport FileInfo from './FileInfo';\nimport IconClose from '../../../icons/general/IconClose';\nimport IconDownload from '../../../icons/general/IconDownloadSolid';\nimport IconDrawAnnotationMode from '../../../icons/annotations/IconDrawAnnotation';\nimport IconPointAnnotation from '../../../icons/annotations/IconPointAnnotation';\nimport IconPrint from '../../../icons/general/IconPrint';\nimport Logo from '../../common/header/Logo';\nimport messages from '../../common/messages';\nimport PlainButton from '../../../components/plain-button/PlainButton';\nimport { bdlGray50 } from '../../../styles/variables';\nimport type { BoxItem, BoxItemVersion } from '../../../common/types/core';\n\nimport './PreviewHeader.scss';\n\ntype Props = {\n canAnnotate: boolean,\n canDownload: boolean,\n canPrint?: boolean,\n contentOpenWithProps?: ContentOpenWithProps,\n file?: BoxItem,\n logoUrl?: string,\n onClose?: Function,\n onDownload: Function,\n onPrint: Function,\n selectedVersion: ?BoxItemVersion,\n token: ?string,\n} & InjectIntlProvidedProps;\n\nconst LoadableContentOpenWith = AsyncLoad({\n loader: () => import(/* webpackMode: \"lazy\", webpackChunkName: \"content-open-with\" */ '../../content-open-with'),\n});\n\nconst PreviewHeader = ({\n canAnnotate,\n canDownload,\n canPrint,\n contentOpenWithProps = {},\n file,\n intl,\n logoUrl,\n onClose,\n onDownload,\n onPrint,\n selectedVersion,\n token,\n}: Props) => {\n const fileId = file && file.id;\n const shouldRenderOpenWith = fileId && contentOpenWithProps.show;\n const currentVersionId = getProp(file, 'file_version.id');\n const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);\n const isPreviewingCurrentVersion = currentVersionId === selectedVersionId;\n\n // When previewing an older version the close button returns the user to the current version\n const closeMsg = isPreviewingCurrentVersion\n ? intl.formatMessage(messages.close)\n : intl.formatMessage(messages.back);\n const printMsg = intl.formatMessage(messages.print);\n const downloadMsg = intl.formatMessage(messages.download);\n const drawMsg = intl.formatMessage(messages.drawAnnotation);\n const pointMsg = intl.formatMessage(messages.pointAnnotation);\n\n return (\n <header\n className={classNames('bcpr-PreviewHeader', {\n 'bcpr-PreviewHeader--basic': !isPreviewingCurrentVersion,\n })}\n >\n {/*\n bp-header and bp-base-header are used by box-annotations,\n and must be put one level under bcpr-PreviewHeader\n */}\n <div className=\"bcpr-PreviewHeader-content bp-header bp-base-header\">\n {logoUrl ? <Logo url={logoUrl} /> : <FileInfo file={file} version={selectedVersion} />}\n\n <div className=\"bcpr-PreviewHeader-controls\">\n {isPreviewingCurrentVersion && (\n <>\n {shouldRenderOpenWith && (\n <LoadableContentOpenWith\n className=\"bcpr-bcow-btn\"\n fileId={fileId}\n token={token}\n {...contentOpenWithProps}\n />\n )}\n {canAnnotate && (\n <>\n <PlainButton\n aria-label={drawMsg}\n className=\"bcpr-PreviewHeader-button bp-btn-annotate-draw bp-is-hidden\"\n title={drawMsg}\n type=\"button\"\n >\n <IconDrawAnnotationMode color={bdlGray50} height={18} width={18} />\n </PlainButton>\n <PlainButton\n aria-label={pointMsg}\n className=\"bcpr-PreviewHeader-button bp-btn-annotate-point bp-is-hidden\"\n title={pointMsg}\n type=\"button\"\n >\n <IconPointAnnotation color={bdlGray50} height={18} width={18} />\n </PlainButton>\n </>\n )}\n {canPrint && (\n <PlainButton\n aria-label={printMsg}\n className=\"bcpr-PreviewHeader-button\"\n onClick={onPrint}\n title={printMsg}\n type=\"button\"\n >\n <IconPrint color={bdlGray50} height={22} width={22} />\n </PlainButton>\n )}\n {canDownload && (\n <PlainButton\n aria-label={downloadMsg}\n className=\"bcpr-PreviewHeader-button\"\n onClick={onDownload}\n title={downloadMsg}\n type=\"button\"\n >\n <IconDownload color={bdlGray50} height={18} width={18} />\n </PlainButton>\n )}\n </>\n )}\n\n {onClose && (\n <PlainButton\n aria-label={isPreviewingCurrentVersion && closeMsg}\n className=\"bcpr-PreviewHeader-button bcpr-PreviewHeader-button-close\"\n onClick={onClose}\n type=\"button\"\n >\n {isPreviewingCurrentVersion ? (\n <IconClose color={bdlGray50} height={24} width={24} />\n ) : (\n closeMsg\n )}\n </PlainButton>\n )}\n </div>\n </div>\n </header>\n );\n};\n\nexport default injectIntl(PreviewHeader);\n"],"file":"PreviewHeader.js"}
1
+ {"version":3,"sources":["../../../../src/elements/content-preview/preview-header/PreviewHeader.js"],"names":["React","injectIntl","classNames","getProp","AsyncLoad","ContentAnswers","FileInfo","IconClose","IconDownload","IconDrawAnnotationMode","IconPointAnnotation","IconPrint","Logo","messages","PlainButton","bdlGray50","LoadableContentOpenWith","loader","PreviewHeader","canAnnotate","canDownload","canPrint","contentAnswersProps","contentOpenWithProps","file","intl","logoUrl","onClose","onDownload","onPrint","selectedVersion","token","fileId","id","shouldRenderAnswers","show","shouldRenderOpenWith","currentVersionId","selectedVersionId","isPreviewingCurrentVersion","closeMsg","formatMessage","close","back","printMsg","print","downloadMsg","download","drawMsg","drawAnnotation","pointMsg","pointAnnotation"],"mappings":";;AAAA;;;;;AAMA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAA2B,YAA3B;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,OAAP,MAAoB,YAApB;AACA,OAAOC,SAAP,MAAsB,yBAAtB,C,CACA;;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,SAAP,MAAsB,kCAAtB;AACA,OAAOC,YAAP,MAAyB,0CAAzB;AACA,OAA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DR,CAHJ,CATJ,CADJ;AAwFH,CAvHD;;AAyHA,eAAevC,UAAU,CAACiB,aAAD,CAAzB","sourcesContent":["/**\n * @flow\n * @file Preview header component\n * @author Box\n */\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\nimport type { InjectIntlProvidedProps } from 'react-intl';\nimport classNames from 'classnames';\nimport getProp from 'lodash/get';\nimport AsyncLoad from '../../common/async-load';\n// $FlowFixMe typescript component\nimport ContentAnswers from '../../../features/content-answers';\nimport FileInfo from './FileInfo';\nimport IconClose from '../../../icons/general/IconClose';\nimport IconDownload from '../../../icons/general/IconDownloadSolid';\nimport IconDrawAnnotationMode from '../../../icons/annotations/IconDrawAnnotation';\nimport IconPointAnnotation from '../../../icons/annotations/IconPointAnnotation';\nimport IconPrint from '../../../icons/general/IconPrint';\nimport Logo from '../../common/header/Logo';\nimport messages from '../../common/messages';\nimport PlainButton from '../../../components/plain-button/PlainButton';\nimport { bdlGray50 } from '../../../styles/variables';\nimport type { BoxItem, BoxItemVersion } from '../../../common/types/core';\n\nimport './PreviewHeader.scss';\n\ntype Props = {\n canAnnotate: boolean,\n canDownload: boolean,\n canPrint?: boolean,\n contentAnswersProps?: ContentAnswersProps,\n contentOpenWithProps?: ContentOpenWithProps,\n file?: BoxItem,\n logoUrl?: string,\n onClose?: Function,\n onDownload: Function,\n onPrint: Function,\n selectedVersion: ?BoxItemVersion,\n token: ?string,\n} & InjectIntlProvidedProps;\n\nconst LoadableContentOpenWith = AsyncLoad({\n loader: () => import(/* webpackMode: \"lazy\", webpackChunkName: \"content-open-with\" */ '../../content-open-with'),\n});\n\nconst PreviewHeader = ({\n canAnnotate,\n canDownload,\n canPrint,\n contentAnswersProps = {},\n contentOpenWithProps = {},\n file,\n intl,\n logoUrl,\n onClose,\n onDownload,\n onPrint,\n selectedVersion,\n token,\n}: Props) => {\n const fileId = file && file.id;\n const shouldRenderAnswers = fileId && contentAnswersProps.show;\n const shouldRenderOpenWith = fileId && contentOpenWithProps.show;\n const currentVersionId = getProp(file, 'file_version.id');\n const selectedVersionId = getProp(selectedVersion, 'id', currentVersionId);\n const isPreviewingCurrentVersion = currentVersionId === selectedVersionId;\n\n // When previewing an older version the close button returns the user to the current version\n const closeMsg = isPreviewingCurrentVersion\n ? intl.formatMessage(messages.close)\n : intl.formatMessage(messages.back);\n const printMsg = intl.formatMessage(messages.print);\n const downloadMsg = intl.formatMessage(messages.download);\n const drawMsg = intl.formatMessage(messages.drawAnnotation);\n const pointMsg = intl.formatMessage(messages.pointAnnotation);\n\n return (\n <header\n className={classNames('bcpr-PreviewHeader', {\n 'bcpr-PreviewHeader--basic': !isPreviewingCurrentVersion,\n })}\n >\n {/*\n bp-header and bp-base-header are used by box-annotations,\n and must be put one level under bcpr-PreviewHeader\n */}\n <div className=\"bcpr-PreviewHeader-content bp-header bp-base-header\">\n {logoUrl ? <Logo url={logoUrl} /> : <FileInfo file={file} version={selectedVersion} />}\n\n <div className=\"bcpr-PreviewHeader-controls\">\n {isPreviewingCurrentVersion && (\n <>\n {shouldRenderOpenWith && (\n <LoadableContentOpenWith\n className=\"bcpr-bcow-btn\"\n fileId={fileId}\n token={token}\n {...contentOpenWithProps}\n />\n )}\n {shouldRenderAnswers && <ContentAnswers file={file} />}\n {canAnnotate && (\n <>\n <PlainButton\n aria-label={drawMsg}\n className=\"bcpr-PreviewHeader-button bp-btn-annotate-draw bp-is-hidden\"\n title={drawMsg}\n type=\"button\"\n >\n <IconDrawAnnotationMode color={bdlGray50} height={18} width={18} />\n </PlainButton>\n <PlainButton\n aria-label={pointMsg}\n className=\"bcpr-PreviewHeader-button bp-btn-annotate-point bp-is-hidden\"\n title={pointMsg}\n type=\"button\"\n >\n <IconPointAnnotation color={bdlGray50} height={18} width={18} />\n </PlainButton>\n </>\n )}\n {canPrint && (\n <PlainButton\n aria-label={printMsg}\n className=\"bcpr-PreviewHeader-button\"\n onClick={onPrint}\n title={printMsg}\n type=\"button\"\n >\n <IconPrint color={bdlGray50} height={22} width={22} />\n </PlainButton>\n )}\n {canDownload && (\n <PlainButton\n aria-label={downloadMsg}\n className=\"bcpr-PreviewHeader-button\"\n onClick={onDownload}\n title={downloadMsg}\n type=\"button\"\n >\n <IconDownload color={bdlGray50} height={18} width={18} />\n </PlainButton>\n )}\n </>\n )}\n\n {onClose && (\n <PlainButton\n aria-label={isPreviewingCurrentVersion && closeMsg}\n className=\"bcpr-PreviewHeader-button bcpr-PreviewHeader-button-close\"\n onClick={onClose}\n type=\"button\"\n >\n {isPreviewingCurrentVersion ? (\n <IconClose color={bdlGray50} height={24} width={24} />\n ) : (\n closeMsg\n )}\n </PlainButton>\n )}\n </div>\n </div>\n </header>\n );\n};\n\nexport default injectIntl(PreviewHeader);\n"],"file":"PreviewHeader.js"}