synapse-react-client 4.0.1 → 4.0.3

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 (274) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/assets/icons/AwardScroll.d.ts +5 -0
  3. package/dist/assets/icons/AwardScroll.d.ts.map +1 -0
  4. package/dist/assets/icons/AwardScroll.js +78 -0
  5. package/dist/assets/icons/AwardScroll.js.map +1 -0
  6. package/dist/assets/icons/Baseline.d.ts +5 -0
  7. package/dist/assets/icons/Baseline.d.ts.map +1 -0
  8. package/dist/assets/icons/Baseline.js +43 -0
  9. package/dist/assets/icons/Baseline.js.map +1 -0
  10. package/dist/assets/icons/Challenge.svg +13 -0
  11. package/dist/assets/icons/Challenge.svg.js +7 -0
  12. package/dist/assets/icons/Challenge.svg.js.map +1 -0
  13. package/dist/assets/icons/ClappingHands.d.ts +5 -0
  14. package/dist/assets/icons/ClappingHands.d.ts.map +1 -0
  15. package/dist/assets/icons/ClappingHands.js +106 -0
  16. package/dist/assets/icons/ClappingHands.js.map +1 -0
  17. package/dist/assets/icons/HandWithMoney.d.ts +5 -0
  18. package/dist/assets/icons/HandWithMoney.d.ts.map +1 -0
  19. package/dist/assets/icons/HandWithMoney.js +15 -0
  20. package/dist/assets/icons/HandWithMoney.js.map +1 -0
  21. package/dist/assets/icons/MultiFile.d.ts +5 -0
  22. package/dist/assets/icons/MultiFile.d.ts.map +1 -0
  23. package/dist/assets/icons/MultiFile.js +8 -0
  24. package/dist/assets/icons/MultiFile.js.map +1 -0
  25. package/dist/assets/icons/MultiFile.svg +4 -0
  26. package/dist/assets/icons/MultiFile.svg.js +7 -0
  27. package/dist/assets/icons/MultiFile.svg.js.map +1 -0
  28. package/dist/assets/icons/OpenBook.d.ts +5 -0
  29. package/dist/assets/icons/OpenBook.d.ts.map +1 -0
  30. package/dist/assets/icons/OpenBook.js +99 -0
  31. package/dist/assets/icons/OpenBook.js.map +1 -0
  32. package/dist/assets/icons/Podium.d.ts +5 -0
  33. package/dist/assets/icons/Podium.d.ts.map +1 -0
  34. package/dist/assets/icons/Podium.js +36 -0
  35. package/dist/assets/icons/Podium.js.map +1 -0
  36. package/dist/assets/icons/RosetteRibbon.d.ts +5 -0
  37. package/dist/assets/icons/RosetteRibbon.d.ts.map +1 -0
  38. package/dist/assets/icons/RosetteRibbon.js +36 -0
  39. package/dist/assets/icons/RosetteRibbon.js.map +1 -0
  40. package/dist/assets/icons/StarTrophy.d.ts +5 -0
  41. package/dist/assets/icons/StarTrophy.d.ts.map +1 -0
  42. package/dist/assets/icons/StarTrophy.js +99 -0
  43. package/dist/assets/icons/StarTrophy.js.map +1 -0
  44. package/dist/assets/icons/ThreeStars.d.ts +5 -0
  45. package/dist/assets/icons/ThreeStars.d.ts.map +1 -0
  46. package/dist/assets/icons/ThreeStars.js +71 -0
  47. package/dist/assets/icons/ThreeStars.js.map +1 -0
  48. package/dist/assets/icons/UnpackagableFile.d.ts +5 -0
  49. package/dist/assets/icons/UnpackagableFile.d.ts.map +1 -0
  50. package/dist/assets/icons/UnpackagableFile.js +8 -0
  51. package/dist/assets/icons/UnpackagableFile.js.map +1 -0
  52. package/dist/assets/icons/UnpackagableFile.svg +4 -0
  53. package/dist/assets/icons/UnpackagableFile.svg.js +7 -0
  54. package/dist/assets/icons/UnpackagableFile.svg.js.map +1 -0
  55. package/dist/assets/mui_components/PackagableFile.d.ts.map +1 -1
  56. package/dist/assets/mui_components/PackagableFile.js +5 -4
  57. package/dist/assets/mui_components/PackagableFile.js.map +1 -1
  58. package/dist/assets/mui_components/PackagableFile.svg +3 -0
  59. package/dist/assets/mui_components/PackagableFile.svg.js +7 -0
  60. package/dist/assets/mui_components/PackagableFile.svg.js.map +1 -0
  61. package/dist/assets/themed_icons/index.d.ts +1 -2
  62. package/dist/assets/themed_icons/index.d.ts.map +1 -1
  63. package/dist/assets/themed_icons/index.js +8 -10
  64. package/dist/assets/themed_icons/index.js.map +1 -1
  65. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +4 -4
  66. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
  67. package/dist/components/AddToDownloadListV2.js +10 -10
  68. package/dist/components/AddToDownloadListV2.js.map +1 -1
  69. package/dist/components/BasePortalCard/BasePortalCard.css +1 -1
  70. package/dist/components/BasePortalCard/BasePortalCard.d.ts +1 -2
  71. package/dist/components/BasePortalCard/BasePortalCard.d.ts.map +1 -1
  72. package/dist/components/BasePortalCard/BasePortalCard.js +21 -28
  73. package/dist/components/BasePortalCard/BasePortalCard.js.map +1 -1
  74. package/dist/components/BasePortalCard/BasePortalCard.module.scss +7 -1
  75. package/dist/components/BasePortalCard/BasePortalCard.module.scss.js +11 -11
  76. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.d.ts.map +1 -1
  77. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js +24 -24
  78. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js.map +1 -1
  79. package/dist/components/CardContainerLogic/CardContainerLogic.d.ts +5 -1
  80. package/dist/components/CardContainerLogic/CardContainerLogic.d.ts.map +1 -1
  81. package/dist/components/CardContainerLogic/CardContainerLogic.js.map +1 -1
  82. package/dist/components/CardContainerLogic/index.d.ts +1 -1
  83. package/dist/components/CardContainerLogic/index.d.ts.map +1 -1
  84. package/dist/components/CardDeck/TableQueryCardDeck.js +12 -9
  85. package/dist/components/CardDeck/TableQueryCardDeck.js.map +1 -1
  86. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js +33 -33
  87. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js.map +1 -1
  88. package/dist/components/ChangePassword/useChangePasswordFormState.js +5 -2
  89. package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
  90. package/dist/components/ComponentCollapse.d.ts +6 -10
  91. package/dist/components/ComponentCollapse.d.ts.map +1 -1
  92. package/dist/components/ComponentCollapse.js +31 -35
  93. package/dist/components/ComponentCollapse.js.map +1 -1
  94. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +12 -9
  95. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
  96. package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +8 -3
  97. package/dist/components/DataGrid/MergeGridWithSourceTableButton.js.map +1 -1
  98. package/dist/components/DataGrid/SynapseGrid.js +8 -3
  99. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  100. package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +8 -3
  101. package/dist/components/DataGrid/components/UploadCsvToGridDialog.js.map +1 -1
  102. package/dist/components/DirectDownload/DirectDownload.d.ts.map +1 -1
  103. package/dist/components/DirectDownload/DirectDownload.js +23 -23
  104. package/dist/components/DirectDownload/DirectDownload.js.map +1 -1
  105. package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts +6 -2
  106. package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts.map +1 -1
  107. package/dist/components/DownloadCart/AvailableForDownloadTable.js +10 -8
  108. package/dist/components/DownloadCart/AvailableForDownloadTable.js.map +1 -1
  109. package/dist/components/DownloadCart/CreatePackageV2.css +1 -0
  110. package/dist/components/DownloadCart/CreatePackageV2.d.ts.map +1 -1
  111. package/dist/components/DownloadCart/CreatePackageV2.js +50 -46
  112. package/dist/components/DownloadCart/CreatePackageV2.js.map +1 -1
  113. package/dist/components/DownloadCart/CreatePackageV2.module.scss +38 -0
  114. package/dist/components/DownloadCart/CreatePackageV2.module.scss.js +14 -0
  115. package/dist/components/DownloadCart/CreatePackageV2.module.scss.js.map +1 -0
  116. package/dist/components/DownloadCart/DownloadCartPage.css +1 -0
  117. package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
  118. package/dist/components/DownloadCart/DownloadCartPage.js +316 -186
  119. package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
  120. package/dist/components/DownloadCart/DownloadCartPage.module.scss +217 -0
  121. package/dist/components/DownloadCart/DownloadCartPage.module.scss.js +48 -0
  122. package/dist/components/DownloadCart/DownloadCartPage.module.scss.js.map +1 -0
  123. package/dist/components/DownloadCart/DownloadDetails.js +1 -1
  124. package/dist/components/DownloadCart/DownloadDetails.js.map +1 -1
  125. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +33 -33
  126. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
  127. package/dist/components/DownloadCart/DownloadListTable.d.ts +4 -1
  128. package/dist/components/DownloadCart/DownloadListTable.d.ts.map +1 -1
  129. package/dist/components/DownloadCart/DownloadListTable.js +156 -236
  130. package/dist/components/DownloadCart/DownloadListTable.js.map +1 -1
  131. package/dist/components/DownloadCart/ShowDownloadV2.js +5 -5
  132. package/dist/components/DownloadCart/ShowDownloadV2.js.map +1 -1
  133. package/dist/components/Ecosystem/EcosystemSkeleton.js +8 -3
  134. package/dist/components/Ecosystem/EcosystemSkeleton.js.map +1 -1
  135. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts +3 -0
  136. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
  137. package/dist/components/EntityDownloadButton/EntityDownloadButton.js +113 -119
  138. package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
  139. package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +3 -3
  140. package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js.map +1 -1
  141. package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +6 -2
  142. package/dist/components/FeaturedDataTabs/FacetPlotsCard.js.map +1 -1
  143. package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js +11 -8
  144. package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js.map +1 -1
  145. package/dist/components/FullWidthAlert/FullWidthAlert.d.ts +2 -2
  146. package/dist/components/FullWidthAlert/FullWidthAlert.js.map +1 -1
  147. package/dist/components/GenericCard/GenericCard.d.ts +5 -5
  148. package/dist/components/GenericCard/GenericCard.d.ts.map +1 -1
  149. package/dist/components/GenericCard/GenericCard.js +117 -103
  150. package/dist/components/GenericCard/GenericCard.js.map +1 -1
  151. package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts +10 -0
  152. package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts.map +1 -0
  153. package/dist/components/GenericCard/LabelMaybeWithIcon.js +33 -0
  154. package/dist/components/GenericCard/LabelMaybeWithIcon.js.map +1 -0
  155. package/dist/components/GenericCard/SynapseCardLabel.d.ts +2 -1
  156. package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
  157. package/dist/components/GenericCard/SynapseCardLabel.js +86 -81
  158. package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
  159. package/dist/components/GenericCard/TableRowGenericCard.d.ts +7 -1
  160. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  161. package/dist/components/GenericCard/TableRowGenericCard.js +239 -202
  162. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  163. package/dist/components/HeaderCard.js +17 -13
  164. package/dist/components/HeaderCard.js.map +1 -1
  165. package/dist/components/Icon/Icon.js +52 -52
  166. package/dist/components/Icon/Icon.js.map +1 -1
  167. package/dist/components/IconSvg/IconSvg.d.ts +1 -1
  168. package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
  169. package/dist/components/IconSvg/IconSvg.js +215 -171
  170. package/dist/components/IconSvg/IconSvg.js.map +1 -1
  171. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -0
  172. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  173. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +103 -102
  174. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  175. package/dist/components/StorybookComponentWrapper.js +6 -3
  176. package/dist/components/StorybookComponentWrapper.js.map +1 -1
  177. package/dist/components/SynapseChat/SynapseChat.d.ts +7 -1
  178. package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
  179. package/dist/components/SynapseChat/SynapseChat.js +76 -67
  180. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  181. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts +2 -1
  182. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
  183. package/dist/components/SynapseChat/SynapseChatInteraction.js +83 -58
  184. package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
  185. package/dist/components/SynapseChat/SynapseChatMessage.d.ts +1 -0
  186. package/dist/components/SynapseChat/SynapseChatMessage.d.ts.map +1 -1
  187. package/dist/components/SynapseChat/SynapseChatMessage.js +16 -15
  188. package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
  189. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts +12 -0
  190. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts.map +1 -0
  191. package/dist/components/SynapseChat/SynapsePortalChatDialog.js +30 -0
  192. package/dist/components/SynapseChat/SynapsePortalChatDialog.js.map +1 -0
  193. package/dist/components/SynapseChat/extractMessageFromTraceEvent.d.ts.map +1 -1
  194. package/dist/components/SynapseChat/extractMessageFromTraceEvent.js +22 -16
  195. package/dist/components/SynapseChat/extractMessageFromTraceEvent.js.map +1 -1
  196. package/dist/components/SynapseChat/index.d.ts +2 -0
  197. package/dist/components/SynapseChat/index.d.ts.map +1 -1
  198. package/dist/components/SynapseChat/index.js +5 -3
  199. package/dist/components/SynapseChat/index.js.map +1 -1
  200. package/dist/components/SynapseChat/useChatState.d.ts +1 -1
  201. package/dist/components/SynapseChat/useChatState.d.ts.map +1 -1
  202. package/dist/components/SynapseChat/useChatState.js +10 -7
  203. package/dist/components/SynapseChat/useChatState.js.map +1 -1
  204. package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.d.ts.map +1 -1
  205. package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js +30 -32
  206. package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js.map +1 -1
  207. package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.d.ts.map +1 -1
  208. package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.js +27 -30
  209. package/dist/components/SynapseHomepageV2/SynapseHomepageSearch.js.map +1 -1
  210. package/dist/components/SynapseHomepageV2/SynapseSearchChips.d.ts.map +1 -1
  211. package/dist/components/SynapseHomepageV2/SynapseSearchChips.js +14 -17
  212. package/dist/components/SynapseHomepageV2/SynapseSearchChips.js.map +1 -1
  213. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.d.ts.map +1 -1
  214. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js +114 -115
  215. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js.map +1 -1
  216. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.d.ts.map +1 -1
  217. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +66 -64
  218. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js.map +1 -1
  219. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +13 -13
  220. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
  221. package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js +9 -9
  222. package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js.map +1 -1
  223. package/dist/components/TextToComponentCollapse.d.ts +16 -0
  224. package/dist/components/TextToComponentCollapse.d.ts.map +1 -0
  225. package/dist/components/TextToComponentCollapse.js +29 -0
  226. package/dist/components/TextToComponentCollapse.js.map +1 -0
  227. package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +8 -3
  228. package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js.map +1 -1
  229. package/dist/components/download_list/DownloadConfirmationUI.d.ts +1 -1
  230. package/dist/components/download_list/DownloadConfirmationUI.js +22 -22
  231. package/dist/components/download_list/DownloadConfirmationUI.js.map +1 -1
  232. package/dist/components/download_list/DownloadConfirmationUtils.js +4 -4
  233. package/dist/components/download_list/DownloadConfirmationUtils.js.map +1 -1
  234. package/dist/components/index.js +85 -83
  235. package/dist/components/index.js.map +1 -1
  236. package/dist/components/row_renderers/ObservationCard.js +12 -11
  237. package/dist/components/row_renderers/ObservationCard.js.map +1 -1
  238. package/dist/components/row_renderers/utils/CardFooter.d.ts +1 -3
  239. package/dist/components/row_renderers/utils/CardFooter.d.ts.map +1 -1
  240. package/dist/components/row_renderers/utils/CardFooter.js +31 -45
  241. package/dist/components/row_renderers/utils/CardFooter.js.map +1 -1
  242. package/dist/components/table/CsvPreview/CsvPreview.js +8 -3
  243. package/dist/components/table/CsvPreview/CsvPreview.js.map +1 -1
  244. package/dist/components/table/CsvPreview/CsvPreviewDialog.js +8 -3
  245. package/dist/components/table/CsvPreview/CsvPreviewDialog.js.map +1 -1
  246. package/dist/features/curator/GridPage/GridPage.js +8 -3
  247. package/dist/features/curator/GridPage/GridPage.js.map +1 -1
  248. package/dist/features/curator/GridPage/components/GridPageTitle.js +8 -3
  249. package/dist/features/curator/GridPage/components/GridPageTitle.js.map +1 -1
  250. package/dist/index.js +137 -135
  251. package/dist/index.js.map +1 -1
  252. package/dist/style/components/_all.scss +0 -1
  253. package/dist/style/components/_cards.scss +22 -0
  254. package/dist/style/components/_download-list-v2.scss +1 -1
  255. package/dist/style/components/_query-wrapper-plot-nav.scss +13 -0
  256. package/dist/style/main.css +1 -1
  257. package/dist/tsconfig.build.tsbuildinfo +1 -1
  258. package/dist/utils/AppUtils/session/ApplicationSessionManager.d.ts.map +1 -1
  259. package/dist/utils/AppUtils/session/ApplicationSessionManager.js.map +1 -1
  260. package/dist/utils/context/FullContextProvider.js +9 -9
  261. package/dist/utils/context/FullContextProvider.js.map +1 -1
  262. package/dist/utils/context/SynapseContext.d.ts.map +1 -1
  263. package/dist/utils/context/SynapseContext.js +1 -0
  264. package/dist/utils/context/SynapseContext.js.map +1 -1
  265. package/dist/utils/functions/SqlFunctions.d.ts +4 -0
  266. package/dist/utils/functions/SqlFunctions.d.ts.map +1 -1
  267. package/dist/utils/functions/SqlFunctions.js +25 -23
  268. package/dist/utils/functions/SqlFunctions.js.map +1 -1
  269. package/package.json +6 -6
  270. package/dist/assets/themed_icons/Challenge.d.ts +0 -3
  271. package/dist/assets/themed_icons/Challenge.d.ts.map +0 -1
  272. package/dist/assets/themed_icons/Challenge.js +0 -25
  273. package/dist/assets/themed_icons/Challenge.js.map +0 -1
  274. package/dist/style/components/_download-cart-page.scss +0 -204
@@ -1,28 +1,28 @@
1
- import { jsxs as s, jsx as i, Fragment as O } from "react/jsx-runtime";
1
+ import { jsxs as u, jsx as o, Fragment as C } from "react/jsx-runtime";
2
2
  import "../../synapse-client/SynapseClient.js";
3
3
  import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
4
4
  import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
5
5
  import "@sage-bionetworks/synapse-client/util/SynapseClientError";
6
6
  import "@sage-bionetworks/synapse-types";
7
7
  import "../../utils/functions/EntityTypeUtils.js";
8
- import { copyStringToClipboard as H } from "../../utils/functions/StringUtils.js";
9
- import { PRODUCTION_ENDPOINT_CONFIG as M } from "../../utils/functions/getEndpoint.js";
8
+ import { copyStringToClipboard as _ } from "../../utils/functions/StringUtils.js";
9
+ import { PRODUCTION_ENDPOINT_CONFIG as j } from "../../utils/functions/getEndpoint.js";
10
10
  import "lodash-es";
11
11
  import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
12
12
  import "@tanstack/react-query";
13
13
  import "../../utils/PermissionLevelToAccessType.js";
14
14
  import "../../utils/SynapseConstants.js";
15
- import { useState as S, useEffect as R, useCallback as G, useMemo as k } from "react";
15
+ import { useState as T, useEffect as F, useCallback as V, useMemo as D } from "react";
16
16
  import "../../utils/context/SynapseContext.js";
17
17
  import "use-deep-compare-effect";
18
- import { Box as c, Select as W, Button as U, Tooltip as I } from "@mui/material";
18
+ import { Box as $, Button as H, Typography as E, Tooltip as R } from "@mui/material";
19
19
  import "../../utils/hooks/useCookiePreferences.js";
20
20
  import "../../utils/hooks/useSourceAppConfigs.js";
21
21
  import "universal-cookie";
22
22
  import "../../utils/AppUtils/session/ApplicationSessionContext.js";
23
23
  import "../../utils/context/FullContextProvider.js";
24
24
  import "../../utils/context/DocumentMetadataContext.js";
25
- import { BlockingLoader as q, SynapseSpinner as B } from "../LoadingScreen/LoadingScreen.js";
25
+ import { BlockingLoader as M, SynapseSpinner as A } from "../LoadingScreen/LoadingScreen.js";
26
26
  import "@tanstack/query-core";
27
27
  import "lodash-es/isEmpty";
28
28
  import "lodash-es/isEqual";
@@ -30,159 +30,144 @@ import "lodash-es/xorWith";
30
30
  import "react-router";
31
31
  import "@sage-bionetworks/synapse-client";
32
32
  import "../../utils/types/IsType.js";
33
- import { useGetAvailableFilesToDownloadInfinite as Y, useRemoveFilesFromDownloadList as L } from "../../synapse-queries/download/useDownloadList.js";
34
- import { calculateFriendlyFileSize as J } from "../../utils/functions/calculateFriendlyFileSize.js";
35
- import { formatDate as x } from "../../utils/functions/DateFormatter.js";
36
- import { useReactTable as K, getCoreRowModel as Q, createColumnHelper as X } from "@tanstack/react-table";
37
- import P from "dayjs";
38
- import { useErrorHandler as Z } from "react-error-boundary";
39
- import ee from "../DirectDownload/FileEntityDirectDownload.js";
40
- import v from "../IconSvg/IconSvg.js";
41
- import { InteractiveCopyIdsIcon as ie } from "../InteractiveCopyIdsIcon.js";
33
+ import { useGetAvailableFilesToDownloadInfinite as x, useRemoveFilesFromDownloadList as k } from "../../synapse-queries/download/useDownloadList.js";
34
+ import { calculateFriendlyFileSize as G } from "../../utils/functions/calculateFriendlyFileSize.js";
35
+ import { formatDate as U } from "../../utils/functions/DateFormatter.js";
36
+ import { useReactTable as W, getCoreRowModel as Y, createColumnHelper as q } from "@tanstack/react-table";
37
+ import Z from "dayjs";
38
+ import { useErrorHandler as J } from "react-error-boundary";
39
+ import K from "../DirectDownload/FileEntityDirectDownload.js";
40
+ import z from "../IconSvg/IconSvg.js";
41
+ import { InteractiveCopyIdsIcon as Q } from "../InteractiveCopyIdsIcon.js";
42
42
  import "@mui/material/Skeleton";
43
- import { SkeletonTable as oe } from "../Skeleton/SkeletonTable.js";
44
- import { TOOLTIP_DELAY_SHOW as C } from "../SynapseTable/SynapseTableConstants.js";
43
+ import { SkeletonTable as X } from "../Skeleton/SkeletonTable.js";
44
+ import { TOOLTIP_DELAY_SHOW as L } from "../SynapseTable/SynapseTableConstants.js";
45
45
  import a from "../TanStackTable/ColumnHeader.js";
46
- import te from "../TanStackTable/StyledTanStackTable.js";
47
- import { displayToast as w } from "../ToastMessage/ToastMessage.js";
48
- import { UserBadge as re } from "../UserCard/UserBadge.js";
49
- import le from "./DirectProgrammaticDownload.js";
50
- import ne from "./DownloadListStats.js";
51
- const ae = "TESTING_TRASH_BTN_CLASS";
52
- function se(l, o) {
53
- w(`${o} has been removed from your list.`, "success", {
54
- title: l
46
+ import ee from "../TanStackTable/StyledTanStackTable.js";
47
+ import { displayToast as h } from "../ToastMessage/ToastMessage.js";
48
+ import oe from "./DirectProgrammaticDownload.js";
49
+ const ie = "TESTING_TRASH_BTN_CLASS";
50
+ function te(r, i) {
51
+ h(`${i} has been removed from your list.`, "success", {
52
+ title: r
55
53
  });
56
54
  }
57
- function me(l) {
58
- const { ctx: o } = l, { mutateAsync: t, isPending: e } = L({
59
- onSuccess: () => w(
60
- `${o.row.original.fileName} has been removed from your list.`,
55
+ function re(r) {
56
+ const { ctx: i } = r, { mutateAsync: t, isPending: e } = k({
57
+ onSuccess: () => h(
58
+ `${i.row.original.fileName} has been removed from your list.`,
61
59
  "success",
62
60
  {
63
61
  title: "File Removed"
64
62
  }
65
63
  )
66
64
  });
67
- return /* @__PURE__ */ i(
68
- I,
65
+ return /* @__PURE__ */ o(
66
+ R,
69
67
  {
70
- title: "Remove from Download Cart",
68
+ title: "Remove from Download List",
71
69
  placement: "left",
72
- enterNextDelay: C,
73
- children: /* @__PURE__ */ i("span", { className: "removeItem", children: /* @__PURE__ */ i(
70
+ enterNextDelay: L,
71
+ children: /* @__PURE__ */ o("span", { className: "removeItem", children: /* @__PURE__ */ o(
74
72
  "button",
75
73
  {
76
- className: ae,
74
+ className: ie,
77
75
  onClick: () => {
78
76
  t({
79
77
  batchToRemove: [
80
78
  {
81
- fileEntityId: o.row.original.fileEntityId,
82
- versionNumber: o.row.original.versionNumber
79
+ fileEntityId: i.row.original.fileEntityId,
80
+ versionNumber: i.row.original.versionNumber
83
81
  }
84
82
  ]
85
83
  });
86
84
  },
87
- children: e ? /* @__PURE__ */ i(B, {}) : /* @__PURE__ */ i(v, { icon: "removeCircle" })
85
+ children: e ? /* @__PURE__ */ o(A, {}) : /* @__PURE__ */ o(z, { icon: "removeCircle" })
88
86
  }
89
87
  ) })
90
88
  }
91
89
  );
92
90
  }
93
- const n = X(), ce = (l) => {
94
- const { onCopySynIds: o, removeItem: t } = l;
91
+ const l = q(), ne = (r) => {
92
+ const { onCopySynIds: i, removeItem: t } = r;
95
93
  return [
96
- n.accessor("isEligibleForPackaging", {
97
- header: () => /* @__PURE__ */ i(O, {}),
98
- cell: (e) => /* @__PURE__ */ s("div", { children: [
99
- e.getValue() && /* @__PURE__ */ i(
100
- I,
101
- {
102
- title: "Eligible for packaging",
103
- enterNextDelay: C,
104
- placement: "right",
105
- children: /* @__PURE__ */ i("span", { className: "eligibileIcon", children: /* @__PURE__ */ i(v, { wrap: !1, icon: "packagableFile" }) })
106
- }
107
- ),
108
- !e.getValue() && /* @__PURE__ */ i(
109
- I,
110
- {
111
- title: "This file is ineligible for Web packaging because it is >100MB, or it is an external link, or it is not stored on Synapse native storage",
112
- enterNextDelay: C,
113
- placement: "right",
114
- children: /* @__PURE__ */ i("span", { className: "ineligibileIcon", children: /* @__PURE__ */ i(v, { wrap: !1, icon: "warningOutlined" }) })
115
- }
116
- )
117
- ] }),
94
+ l.accessor("isEligibleForPackaging", {
95
+ header: () => /* @__PURE__ */ o(C, {}),
96
+ cell: (e) => /* @__PURE__ */ o("div", { children: !e.getValue() && /* @__PURE__ */ o(
97
+ R,
98
+ {
99
+ title: /* @__PURE__ */ u(C, { children: [
100
+ "This file can’t be packaged as a ZIP because it is ",
101
+ ">",
102
+ "100MB, or it is an external link, or it is not stored on Synapse native storage.",
103
+ /* @__PURE__ */ o("br", {}),
104
+ "Try clicking the “download” icon at the end of the row, or download programmatically."
105
+ ] }),
106
+ enterNextDelay: L,
107
+ placement: "right",
108
+ children: /* @__PURE__ */ o("span", { className: "ineligibileIcon", children: /* @__PURE__ */ o(z, { wrap: !1, icon: "unpackagableFile" }) })
109
+ }
110
+ ) }),
118
111
  enableResizing: !1,
119
112
  enableColumnFilter: !1,
120
113
  size: 50
121
114
  }),
122
- n.accessor("fileName", {
123
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Name" }),
124
- cell: (e) => /* @__PURE__ */ i(
115
+ l.accessor("fileName", {
116
+ header: (e) => /* @__PURE__ */ o(a, { ...e, title: "Name" }),
117
+ cell: (e) => /* @__PURE__ */ o(
125
118
  "a",
126
119
  {
127
120
  target: "_blank",
128
121
  rel: "noopener noreferrer",
129
- href: `${M.PORTAL}Synapse:${e.row.original.fileEntityId}.${e.row.original.versionNumber}`,
122
+ href: `${j.PORTAL}Synapse:${e.row.original.fileEntityId}.${e.row.original.versionNumber}`,
130
123
  children: e.getValue()
131
124
  }
132
125
  ),
133
126
  enableColumnFilter: !1,
134
- size: 160
127
+ size: 360
135
128
  }),
136
- n.accessor("fileSizeBytes", {
137
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Size" }),
138
- cell: (e) => e.getValue() != null ? J(e.getValue()) : /* @__PURE__ */ i(O, {}),
129
+ l.accessor("fileSizeBytes", {
130
+ header: (e) => /* @__PURE__ */ o(a, { ...e, title: "Size" }),
131
+ cell: (e) => e.getValue() != null && e.getValue() > 0 ? G(e.getValue()) : /* @__PURE__ */ o(E, { variant: "smallText1", sx: { color: "grey.600" }, children: "Unknown" }),
139
132
  enableColumnFilter: !1,
140
- size: 100
133
+ size: 117
141
134
  }),
142
- n.accessor("fileEntityId", {
143
- header: (e) => /* @__PURE__ */ i(
135
+ l.accessor("fileEntityId", {
136
+ header: (e) => /* @__PURE__ */ o(
144
137
  a,
145
138
  {
146
139
  ...e,
147
140
  title: "SynID",
148
- additionalButtons: /* @__PURE__ */ i(ie, { size: "small", onCopy: o })
141
+ additionalButtons: /* @__PURE__ */ o(Q, { size: "small", onCopy: i })
149
142
  }
150
143
  ),
151
144
  cell: (e) => `${e.getValue()}.${e.row.original.versionNumber}`,
152
145
  enableColumnFilter: !1,
153
- size: 100
154
- }),
155
- n.accessor("projectName", {
156
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Project" }),
157
- enableColumnFilter: !1
158
- }),
159
- n.accessor("addedOn", {
160
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Added On" }),
161
- cell: (e) => x(P(e.getValue())),
162
- enableColumnFilter: !1
146
+ size: 143
163
147
  }),
164
- n.accessor("createdBy", {
165
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Created By" }),
166
- cell: (e) => /* @__PURE__ */ i(re, { userId: e.getValue() }),
167
- enableColumnFilter: !1
148
+ l.accessor("addedOn", {
149
+ header: (e) => /* @__PURE__ */ o(a, { ...e, title: "Added On" }),
150
+ cell: (e) => U(Z(e.getValue())),
151
+ enableColumnFilter: !1,
152
+ size: 150
168
153
  }),
169
- n.accessor("createdOn", {
170
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Created On" }),
171
- cell: (e) => x(P(e.getValue())),
172
- enableColumnFilter: !1
154
+ l.accessor("projectName", {
155
+ header: (e) => /* @__PURE__ */ o(a, { ...e, title: "Project" }),
156
+ enableColumnFilter: !1,
157
+ size: 170
173
158
  }),
174
- n.display({
159
+ l.display({
175
160
  id: "actions",
176
- header: (e) => /* @__PURE__ */ i(a, { ...e, title: "Actions" }),
177
- cell: (e) => /* @__PURE__ */ s("div", { className: "actionsContainer", children: [
178
- /* @__PURE__ */ i("span", { className: "downloadItem", children: /* @__PURE__ */ i(
179
- ee,
161
+ header: (e) => /* @__PURE__ */ o(a, { ...e, title: "Actions" }),
162
+ cell: (e) => /* @__PURE__ */ u("div", { className: "actionsContainer", children: [
163
+ /* @__PURE__ */ o("span", { className: "downloadItem", children: /* @__PURE__ */ o(
164
+ K,
180
165
  {
181
166
  entityId: e.row.original.fileEntityId,
182
167
  entityVersionNumber: e.row.original.versionNumber,
183
168
  displayFileName: !1,
184
- onClickCallback: (u) => {
185
- u || t(
169
+ onClickCallback: (d) => {
170
+ d || t(
186
171
  {
187
172
  fileEntityId: e.row.original.fileEntityId,
188
173
  versionNumber: e.row.original.versionNumber
@@ -193,14 +178,14 @@ const n = X(), ce = (l) => {
193
178
  }
194
179
  }
195
180
  ) }),
196
- /* @__PURE__ */ i("span", { className: "programmaticAccessItem", children: /* @__PURE__ */ i(
197
- le,
181
+ /* @__PURE__ */ o("span", { className: "programmaticAccessItem", children: /* @__PURE__ */ o(
182
+ oe,
198
183
  {
199
184
  entityId: e.row.original.fileEntityId,
200
185
  version: e.row.original.versionNumber
201
186
  }
202
187
  ) }),
203
- /* @__PURE__ */ i(me, { ctx: e })
188
+ /* @__PURE__ */ o(re, { ctx: e })
204
189
  ] }),
205
190
  enableResizing: !1,
206
191
  enableColumnFilter: !1,
@@ -211,181 +196,116 @@ const n = X(), ce = (l) => {
211
196
  })
212
197
  ];
213
198
  };
214
- function de(l) {
215
- if (l.length === 0)
199
+ function le(r) {
200
+ if (r.length === 0)
216
201
  return;
217
- const o = l[0];
202
+ const i = r[0];
218
203
  let t = "addedOn";
219
- return o.id === "fileName" ? t = "fileName" : o.id === "fileSizeBytes" ? t = "fileSize" : o.id === "fileEntityId" ? t = "synId" : o.id === "projectName" ? t = "projectName" : o.id === "addedOn" ? t = "addedOn" : o.id === "createdBy" ? t = "createdBy" : o.id === "createdOn" && (t = "createdOn"), {
204
+ return i.id === "fileName" ? t = "fileName" : i.id === "fileSizeBytes" ? t = "fileSize" : i.id === "fileEntityId" ? t = "synId" : i.id === "projectName" ? t = "projectName" : i.id === "addedOn" ? t = "addedOn" : i.id === "createdBy" ? t = "createdBy" : i.id === "createdOn" && (t = "createdOn"), {
220
205
  field: t,
221
- direction: o.desc ? "DESC" : "ASC"
206
+ direction: i.desc ? "DESC" : "ASC"
222
207
  };
223
208
  }
224
- function si() {
225
- const l = Z(), [o, t] = S(!1), [e, u] = S([
209
+ function oo({
210
+ filter: r
211
+ }) {
212
+ const i = J(), [t, e] = T(!1), [d, O] = T([
226
213
  {
227
214
  desc: !0,
228
215
  id: "addedOn"
229
216
  }
230
- ]), [N, z] = S(void 0), {
231
- data: F,
232
- status: D,
233
- isFetchingNextPage: m,
234
- isLoading: j,
235
- hasNextPage: d,
217
+ ]), {
218
+ data: b,
219
+ status: v,
220
+ isFetchingNextPage: s,
221
+ isLoading: S,
222
+ hasNextPage: c,
236
223
  fetchNextPage: p,
237
- isError: T,
238
- error: y
239
- } = Y(
240
- de(e),
241
- N
224
+ isError: I,
225
+ error: g
226
+ } = x(
227
+ le(d),
228
+ r
242
229
  );
243
- R(() => {
244
- T && y && l(y);
245
- }, [T, y, l]);
246
- const { mutateAsync: E } = L(), A = G(
247
- async (r, h, g) => {
248
- await E({ batchToRemove: [r] }), se(g, h);
230
+ F(() => {
231
+ I && g && i(g);
232
+ }, [I, g, i]);
233
+ const { mutateAsync: w } = k(), N = V(
234
+ async (n, y, f) => {
235
+ await w({ batchToRemove: [n] }), te(f, y);
249
236
  },
250
- [E]
251
- ), f = k(
252
- () => F?.pages.flatMap((r) => r.page) ?? [],
253
- [F?.pages]
254
- ), V = k(
255
- () => ce({
256
- removeItem: (...r) => {
257
- A(...r);
237
+ [w]
238
+ ), m = D(
239
+ () => b?.pages.flatMap((n) => n.page) ?? [],
240
+ [b?.pages]
241
+ ), P = D(
242
+ () => ne({
243
+ removeItem: (...n) => {
244
+ N(...n);
258
245
  },
259
246
  onCopySynIds: () => {
260
- t(!0);
247
+ e(!0);
261
248
  }
262
249
  }),
263
- [A]
264
- ), _ = K({
265
- data: f,
266
- columns: V,
267
- getCoreRowModel: Q(),
250
+ [N]
251
+ ), B = W({
252
+ data: m,
253
+ columns: P,
254
+ getCoreRowModel: Y(),
268
255
  manualSorting: !0,
269
- onSortingChange: u,
256
+ onSortingChange: O,
270
257
  state: {
271
258
  columnPinning: {
272
259
  right: ["actions"]
273
260
  },
274
- sorting: e
261
+ sorting: d
275
262
  },
276
263
  columnResizeMode: "onChange",
277
264
  meta: {
278
- getRowClassNames(r) {
279
- return r.original.isEligibleForPackaging ? "" : "ineligibleForPackaging";
265
+ getRowClassNames(n) {
266
+ return n.original.isEligibleForPackaging ? "" : "ineligibleForPackaging";
280
267
  }
281
268
  }
282
269
  });
283
- R(() => {
284
- D === "success" && !m && d && p && o ? p() : !d && o && (() => {
285
- const h = f.map((g) => `${g.fileEntityId}.${g.versionNumber}`).join(`
270
+ return F(() => {
271
+ v === "success" && !s && c && p && t ? p() : !c && t && (() => {
272
+ const y = m.map((f) => `${f.fileEntityId}.${f.versionNumber}`).join(`
286
273
  `);
287
- H(h).then(() => {
288
- w("Successfully copied to clipboard");
289
- }), t(!1);
274
+ _(y).then(() => {
275
+ h("Successfully copied to clipboard");
276
+ }), e(!1);
290
277
  })();
291
278
  }, [
292
- D,
293
- m,
294
- d,
279
+ v,
280
+ s,
281
+ c,
295
282
  p,
296
- o,
297
- f
298
- ]);
299
- const b = (r) => r ? r == "eligibleForPackaging" ? "Only Eligible" : "Only Ineligible" : "All", $ = [
300
- void 0,
301
- "eligibleForPackaging",
302
- "ineligibleForPackaging"
303
- ];
304
- return /* @__PURE__ */ s("div", { children: [
305
- /* @__PURE__ */ i(q, { show: o }),
306
- /* @__PURE__ */ s(
307
- c,
308
- {
309
- sx: {
310
- display: "flex",
311
- flexDirection: {
312
- xs: "column",
313
- md: "row"
314
- },
315
- justifyContent: "space-between",
316
- alignItems: "center",
317
- py: "15px",
318
- rowGap: "15px"
319
- },
320
- children: [
321
- /* @__PURE__ */ i(ne, {}),
322
- /* @__PURE__ */ s(
323
- c,
324
- {
325
- sx: {
326
- display: "flex",
327
- gap: "10px",
328
- alignItems: "inherit",
329
- justifyContent: "end"
330
- },
331
- children: [
332
- /* @__PURE__ */ i(
333
- c,
334
- {
335
- sx: {
336
- fontWeight: "700",
337
- fontSize: "14px"
338
- },
339
- children: "Filter Files By"
340
- }
341
- ),
342
- /* @__PURE__ */ i(
343
- c,
344
- {
345
- sx: {
346
- button: {
347
- width: "144px"
348
- }
349
- },
350
- children: /* @__PURE__ */ i(W, { native: !0, fullWidth: !0, value: b(N), children: $.map((r) => /* @__PURE__ */ i(
351
- "option",
352
- {
353
- onClick: () => {
354
- z(r);
355
- },
356
- children: b(r)
357
- },
358
- `${b(r)}-filter-option`
359
- )) })
360
- }
361
- )
362
- ]
363
- }
364
- )
365
- ]
366
- }
367
- ),
368
- f.length > 0 && /* @__PURE__ */ s("div", { className: "DownloadListTableV2", children: [
369
- /* @__PURE__ */ i(te, { table: _, fullWidth: !1 }),
370
- d && /* @__PURE__ */ i(c, { sx: { display: "flex", justifyContent: "right" }, children: /* @__PURE__ */ i(
371
- U,
283
+ t,
284
+ m
285
+ ]), /* @__PURE__ */ u("div", { children: [
286
+ /* @__PURE__ */ o(M, { show: t }),
287
+ m.length > 0 && /* @__PURE__ */ u("div", { className: "DownloadListTableV2", children: [
288
+ /* @__PURE__ */ o(ee, { table: B, fullWidth: !1 }),
289
+ c && /* @__PURE__ */ o($, { sx: { display: "flex", justifyContent: "right" }, children: /* @__PURE__ */ o(
290
+ H,
372
291
  {
373
292
  variant: "contained",
374
293
  sx: { my: 2, ml: "auto" },
375
294
  onClick: () => {
376
295
  p();
377
296
  },
378
- disabled: m,
379
- startIcon: m ? /* @__PURE__ */ i(B, {}) : void 0,
380
- children: m ? "Loading..." : "Show More"
297
+ disabled: s,
298
+ startIcon: s ? /* @__PURE__ */ o(A, {}) : void 0,
299
+ children: s ? "Loading..." : "Show More"
381
300
  }
382
301
  ) })
383
302
  ] }),
384
- j && /* @__PURE__ */ i(oe, { numCols: 5, numRows: 3 })
303
+ m.length === 0 && !S && /* @__PURE__ */ o(E, { variant: "body1Italic", children: "You have no matching files in your download list." }),
304
+ S && /* @__PURE__ */ o(X, { numCols: 5, numRows: 3 })
385
305
  ] });
386
306
  }
387
307
  export {
388
- ae as TESTING_TRASH_BTN_CLASS,
389
- si as default
308
+ ie as TESTING_TRASH_BTN_CLASS,
309
+ oo as default
390
310
  };
391
311
  //# sourceMappingURL=DownloadListTable.js.map