synapse-react-client 4.0.30 → 4.0.31

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 (214) hide show
  1. package/dist/SWC.index.d.ts +4 -0
  2. package/dist/SWC.index.d.ts.map +1 -1
  3. package/dist/SWC.index.js +2 -1
  4. package/dist/SWC.index.js.map +1 -1
  5. package/dist/assets/illustrations/curie_avatar.svg +52 -0
  6. package/dist/assets/illustrations/curie_avatar_head.js +91 -0
  7. package/dist/assets/illustrations/curie_avatar_head.js.map +1 -0
  8. package/dist/assets/illustrations/curie_avatar_head.svg +21 -0
  9. package/dist/assets/illustrations/discussions_illustration2.js +96 -0
  10. package/dist/assets/illustrations/discussions_illustration2.js.map +1 -0
  11. package/dist/assets/illustrations/discussions_illustration2.svg +17 -0
  12. package/dist/assets/illustrations/index.d.ts +3 -0
  13. package/dist/assets/illustrations/index.d.ts.map +1 -1
  14. package/dist/assets/illustrations/index.js +34 -32
  15. package/dist/assets/illustrations/index.js.map +1 -1
  16. package/dist/assets/mui_components/CurieAvatarHead.d.ts +5 -0
  17. package/dist/assets/mui_components/CurieAvatarHead.d.ts.map +1 -0
  18. package/dist/assets/mui_components/CurieAvatarHead.js +17 -0
  19. package/dist/assets/mui_components/CurieAvatarHead.js.map +1 -0
  20. package/dist/assets/themed_icons/Model.d.ts +3 -0
  21. package/dist/assets/themed_icons/Model.d.ts.map +1 -0
  22. package/dist/assets/themed_icons/Model.js +31 -0
  23. package/dist/assets/themed_icons/Model.js.map +1 -0
  24. package/dist/assets/themed_icons/index.d.ts +2 -1
  25. package/dist/assets/themed_icons/index.d.ts.map +1 -1
  26. package/dist/assets/themed_icons/index.js +19 -18
  27. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.d.ts.map +1 -1
  28. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js +49 -39
  29. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js.map +1 -1
  30. package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
  31. package/dist/components/DataGrid/SynapseGrid.js +46 -45
  32. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  33. package/dist/components/DataGrid/utils/DataGridUtils.js +1 -1
  34. package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
  35. package/dist/components/EntityFinder/EntityFinder.js +127 -127
  36. package/dist/components/EntityFinder/EntityFinder.js.map +1 -1
  37. package/dist/components/EntityFinder/details/view/DetailsView.js +53 -53
  38. package/dist/components/EntitySidebar/EntitySidebar.css +1 -1
  39. package/dist/components/EntitySidebar/EntitySidebar.module.js +11 -11
  40. package/dist/components/EntitySidebar/EntitySidebar.module.js.map +1 -1
  41. package/dist/components/EntitySidebar/EntitySidebar.module.scss +2 -2
  42. package/dist/components/EntityTreeTable/EntityTreeTable.d.ts +7 -0
  43. package/dist/components/EntityTreeTable/EntityTreeTable.d.ts.map +1 -1
  44. package/dist/components/EntityTreeTable/EntityTreeTable.js +24 -20
  45. package/dist/components/EntityTreeTable/EntityTreeTable.js.map +1 -1
  46. package/dist/components/EntityTreeTable/components/CheckboxCell.d.ts +4 -0
  47. package/dist/components/EntityTreeTable/components/CheckboxCell.d.ts.map +1 -0
  48. package/dist/components/EntityTreeTable/components/CheckboxCell.js +43 -0
  49. package/dist/components/EntityTreeTable/components/CheckboxCell.js.map +1 -0
  50. package/dist/components/EntityTreeTable/components/EntityNameCell.d.ts.map +1 -1
  51. package/dist/components/EntityTreeTable/components/EntityNameCell.js +10 -9
  52. package/dist/components/EntityTreeTable/components/EntityNameCell.js.map +1 -1
  53. package/dist/components/EntityTreeTable/components/EntityTreeTableContext.d.ts +6 -0
  54. package/dist/components/EntityTreeTable/components/EntityTreeTableContext.d.ts.map +1 -1
  55. package/dist/components/EntityTreeTable/components/EntityTreeTableContext.js.map +1 -1
  56. package/dist/components/EntityTreeTable/hooks/useTableColumns.d.ts +1 -1
  57. package/dist/components/EntityTreeTable/hooks/useTableColumns.d.ts.map +1 -1
  58. package/dist/components/EntityTreeTable/hooks/useTableColumns.js +49 -39
  59. package/dist/components/EntityTreeTable/hooks/useTableColumns.js.map +1 -1
  60. package/dist/components/EntityUpload/EntityUpload.js +6 -6
  61. package/dist/components/Forum/DiscussionEmpty.css +1 -0
  62. package/dist/components/Forum/DiscussionEmpty.d.ts +6 -0
  63. package/dist/components/Forum/DiscussionEmpty.d.ts.map +1 -0
  64. package/dist/components/Forum/DiscussionEmpty.js +30 -0
  65. package/dist/components/Forum/DiscussionEmpty.js.map +1 -0
  66. package/dist/components/Forum/DiscussionEmpty.module.js +10 -0
  67. package/dist/components/Forum/DiscussionEmpty.module.js.map +1 -0
  68. package/dist/components/Forum/DiscussionEmpty.module.scss +37 -0
  69. package/dist/components/Icon/Icon.d.ts.map +1 -1
  70. package/dist/components/Icon/Icon.js +82 -80
  71. package/dist/components/Icon/Icon.js.map +1 -1
  72. package/dist/components/ProvenanceGraph/ProvenanceGraph.d.ts.map +1 -1
  73. package/dist/components/ProvenanceGraph/ProvenanceGraph.js +39 -41
  74. package/dist/components/ProvenanceGraph/ProvenanceGraph.js.map +1 -1
  75. package/dist/components/SynapseChat/AccessLevelMenu.d.ts.map +1 -1
  76. package/dist/components/SynapseChat/AccessLevelMenu.js +1 -0
  77. package/dist/components/SynapseChat/AccessLevelMenu.js.map +1 -1
  78. package/dist/components/SynapseChat/GridAgentChat.d.ts.map +1 -1
  79. package/dist/components/SynapseChat/GridAgentChat.js +34 -25
  80. package/dist/components/SynapseChat/GridAgentChat.js.map +1 -1
  81. package/dist/components/SynapseChat/SynapseChat.d.ts +10 -12
  82. package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
  83. package/dist/components/SynapseChat/SynapseChat.js +106 -103
  84. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  85. package/dist/components/SynapseChat/SynapseChatInteraction.css +1 -0
  86. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts +22 -1
  87. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
  88. package/dist/components/SynapseChat/SynapseChatInteraction.js +123 -94
  89. package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
  90. package/dist/components/SynapseChat/SynapseChatInteraction.module.js +8 -0
  91. package/dist/components/SynapseChat/SynapseChatInteraction.module.js.map +1 -0
  92. package/dist/components/SynapseChat/SynapseChatInteraction.module.scss +25 -0
  93. package/dist/components/SynapseChat/SynapseChatMessage.d.ts +16 -1
  94. package/dist/components/SynapseChat/SynapseChatMessage.d.ts.map +1 -1
  95. package/dist/components/SynapseChat/SynapseChatMessage.js +25 -11
  96. package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
  97. package/dist/components/SynapseChat/components/AddFilesDialog/AddFilesDialog.d.ts +27 -0
  98. package/dist/components/SynapseChat/components/AddFilesDialog/AddFilesDialog.d.ts.map +1 -0
  99. package/dist/components/SynapseChat/components/AddFilesDialog/AddFilesDialog.js +79 -0
  100. package/dist/components/SynapseChat/components/AddFilesDialog/AddFilesDialog.js.map +1 -0
  101. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.css +1 -0
  102. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.d.ts +33 -0
  103. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.d.ts.map +1 -0
  104. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.js +77 -0
  105. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.js.map +1 -0
  106. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.module.js +8 -0
  107. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.module.js.map +1 -0
  108. package/dist/components/SynapseChat/components/AttachmentChip/AttachmentChip.module.scss +16 -0
  109. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.css +1 -0
  110. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.d.ts +23 -0
  111. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.d.ts.map +1 -0
  112. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.js +24 -0
  113. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.js.map +1 -0
  114. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.module.js +9 -0
  115. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.module.js.map +1 -0
  116. package/dist/components/SynapseChat/components/ChatAttachmentStrip/ChatAttachmentStrip.module.scss +19 -0
  117. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.css +1 -0
  118. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.d.ts +22 -0
  119. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.d.ts.map +1 -0
  120. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js +80 -0
  121. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.js.map +1 -0
  122. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.module.js +9 -0
  123. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.module.js.map +1 -0
  124. package/dist/components/SynapseChat/components/ChatInputArea/ChatInputArea.module.scss +39 -0
  125. package/dist/components/SynapseChat/useChatState.d.ts +12 -4
  126. package/dist/components/SynapseChat/useChatState.d.ts.map +1 -1
  127. package/dist/components/SynapseChat/useChatState.js +38 -20
  128. package/dist/components/SynapseChat/useChatState.js.map +1 -1
  129. package/dist/components/SynapseChat/utils/constants.d.ts +8 -0
  130. package/dist/components/SynapseChat/utils/constants.d.ts.map +1 -0
  131. package/dist/components/SynapseChat/utils/constants.js +12 -0
  132. package/dist/components/SynapseChat/utils/constants.js.map +1 -0
  133. package/dist/components/SynapseChat/utils/types.d.ts +13 -0
  134. package/dist/components/SynapseChat/utils/types.d.ts.map +1 -0
  135. package/dist/components/SynapseChat/utils/types.js +0 -0
  136. package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +101 -101
  137. package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js.map +1 -1
  138. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts +1 -0
  139. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
  140. package/dist/components/entity/page/action_menu/EntityActionMenu.js +8 -0
  141. package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
  142. package/dist/components/entity/page/breadcrumbs/EntityPageBreadcrumbs.js +1 -1
  143. package/dist/components/entity/page/breadcrumbs/EntityPageBreadcrumbs.js.map +1 -1
  144. package/dist/components/file/upload/BasicFileHandleUpload.d.ts +35 -4
  145. package/dist/components/file/upload/BasicFileHandleUpload.d.ts.map +1 -1
  146. package/dist/components/file/upload/BasicFileHandleUpload.js +22 -16
  147. package/dist/components/file/upload/BasicFileHandleUpload.js.map +1 -1
  148. package/dist/components/file/upload/MultiFileUploadProgress.js +6 -6
  149. package/dist/components/file/upload/UploadFilePanel.d.ts +32 -0
  150. package/dist/components/file/upload/UploadFilePanel.d.ts.map +1 -1
  151. package/dist/components/file/upload/UploadFilePanel.js +58 -42
  152. package/dist/components/file/upload/UploadFilePanel.js.map +1 -1
  153. package/dist/components/file/upload/validateFileSelection.d.ts +25 -0
  154. package/dist/components/file/upload/validateFileSelection.d.ts.map +1 -0
  155. package/dist/components/file/upload/validateFileSelection.js +18 -0
  156. package/dist/components/file/upload/validateFileSelection.js.map +1 -0
  157. package/dist/components/menu/DropdownMenu.d.ts +3 -0
  158. package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
  159. package/dist/components/menu/DropdownMenu.js +108 -83
  160. package/dist/components/menu/DropdownMenu.js.map +1 -1
  161. package/dist/features/curator/dashboard/components/CurationTaskCard.css +1 -1
  162. package/dist/features/curator/dashboard/components/CurationTaskCard.module.js +13 -13
  163. package/dist/features/curator/dashboard/components/CurationTaskCard.module.js.map +1 -1
  164. package/dist/features/curator/dashboard/components/CurationTaskCard.module.scss +2 -1
  165. package/dist/features/curator/dashboard/components/CurationTaskCardLayout.d.ts.map +1 -1
  166. package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js +35 -27
  167. package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js.map +1 -1
  168. package/dist/mocks/chat/mockChat.d.ts +13 -1
  169. package/dist/mocks/chat/mockChat.d.ts.map +1 -1
  170. package/dist/mocks/chat/mockChat.js +34 -9
  171. package/dist/mocks/chat/mockChat.js.map +1 -1
  172. package/dist/mocks/msw/handlers/chatHandlers.d.ts +1 -1
  173. package/dist/mocks/msw/handlers/chatHandlers.d.ts.map +1 -1
  174. package/dist/mocks/msw/handlers/chatHandlers.js +21 -7
  175. package/dist/mocks/msw/handlers/chatHandlers.js.map +1 -1
  176. package/dist/synapse-client/SynapseClient.d.ts +2 -2
  177. package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
  178. package/dist/synapse-client/SynapseClient.js.map +1 -1
  179. package/dist/synapse-queries/KeyFactory.d.ts +10 -1
  180. package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
  181. package/dist/synapse-queries/KeyFactory.js +29 -2
  182. package/dist/synapse-queries/KeyFactory.js.map +1 -1
  183. package/dist/synapse-queries/asynchronous/usePollAsynchronousJob.d.ts +2 -2
  184. package/dist/synapse-queries/asynchronous/usePollAsynchronousJob.d.ts.map +1 -1
  185. package/dist/synapse-queries/asynchronous/usePollAsynchronousJob.js +2 -1
  186. package/dist/synapse-queries/asynchronous/usePollAsynchronousJob.js.map +1 -1
  187. package/dist/synapse-queries/chat/useChat.d.ts +3 -2
  188. package/dist/synapse-queries/chat/useChat.d.ts.map +1 -1
  189. package/dist/synapse-queries/chat/useChat.js +7 -6
  190. package/dist/synapse-queries/chat/useChat.js.map +1 -1
  191. package/dist/synapse-queries/dataaccess/index.d.ts +1 -0
  192. package/dist/synapse-queries/dataaccess/index.d.ts.map +1 -1
  193. package/dist/synapse-queries/dataaccess/index.js +4 -3
  194. package/dist/synapse-queries/dataaccess/useEDuc.d.ts +44 -0
  195. package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -0
  196. package/dist/synapse-queries/dataaccess/useEDuc.js +75 -0
  197. package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -0
  198. package/dist/synapse-queries/featureflags/useGetFeatureFlag.d.ts.map +1 -1
  199. package/dist/synapse-queries/featureflags/useGetFeatureFlag.js +1 -1
  200. package/dist/synapse-queries/featureflags/useGetFeatureFlag.js.map +1 -1
  201. package/dist/synapse-queries/file/useDirectUploadToS3.js +6 -6
  202. package/dist/synapse-queries/index.js +181 -172
  203. package/dist/tsconfig.build.tsbuildinfo +1 -1
  204. package/dist/utils/SynapseConstants.d.ts +2 -0
  205. package/dist/utils/SynapseConstants.d.ts.map +1 -1
  206. package/dist/utils/SynapseConstants.js +122 -120
  207. package/dist/utils/SynapseConstants.js.map +1 -1
  208. package/dist/utils/featureflag/FeatureFlags.d.ts +3 -1
  209. package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
  210. package/dist/utils/featureflag/FeatureFlags.js +1 -1
  211. package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
  212. package/dist/utils/hooks/useUploadFileEntity/useUploadFileEntities.js +5 -5
  213. package/dist/utils/hooks/useUploadFileEntity/useUploadFiles.js +14 -14
  214. package/package.json +4 -4
@@ -3,45 +3,47 @@ import { ForwardRef as t } from "./cohort_builder_illustration.js";
3
3
  import { ForwardRef as n } from "./data_access_management_illustration.js";
4
4
  import { ForwardRef as r } from "./datasets_illustration.js";
5
5
  import { ForwardRef as i } from "./discussions_illustration.js";
6
- import { ForwardRef as a } from "./docker_illustration.js";
7
- import { ForwardRef as o } from "./favorites_illustration.js";
8
- import { ForwardRef as s } from "./files_illustration.js";
9
- import { ForwardRef as c } from "./following_illustration.js";
10
- import { ForwardRef as l } from "./projects_illustration.js";
11
- import { ForwardRef as u } from "./tables_illustration.js";
12
- import { ForwardRef as d } from "./teams_illustration.js";
13
- import { ForwardRef as f } from "./trash_can_illustration.js";
14
- import { ForwardRef as p } from "./wikis_illustration.js";
15
- import { ForwardRef as m } from "./donation_illustration.js";
16
- import { ForwardRef as h } from "./left_dot_blob_illustration.js";
17
- import { ForwardRef as g } from "./right_dot_blob_illustration.js";
18
- import { ForwardRef as _ } from "./left_dot_blob_dark_illustration.js";
19
- import { ForwardRef as v } from "./right_dot_blob_dark_illustration.js";
20
- import { ForwardRef as y } from "./underconstruction_illustration.js";
6
+ import { ForwardRef as a } from "./discussions_illustration2.js";
7
+ import { ForwardRef as o } from "./docker_illustration.js";
8
+ import { ForwardRef as s } from "./favorites_illustration.js";
9
+ import { ForwardRef as c } from "./files_illustration.js";
10
+ import { ForwardRef as l } from "./following_illustration.js";
11
+ import { ForwardRef as u } from "./projects_illustration.js";
12
+ import { ForwardRef as d } from "./tables_illustration.js";
13
+ import { ForwardRef as f } from "./teams_illustration.js";
14
+ import { ForwardRef as p } from "./trash_can_illustration.js";
15
+ import { ForwardRef as m } from "./wikis_illustration.js";
16
+ import { ForwardRef as h } from "./donation_illustration.js";
17
+ import { ForwardRef as g } from "./left_dot_blob_illustration.js";
18
+ import { ForwardRef as _ } from "./right_dot_blob_illustration.js";
19
+ import { ForwardRef as v } from "./left_dot_blob_dark_illustration.js";
20
+ import { ForwardRef as y } from "./right_dot_blob_dark_illustration.js";
21
+ import { ForwardRef as b } from "./underconstruction_illustration.js";
21
22
  //#region src/assets/illustrations/index.ts
22
- var b = {
23
+ var x = {
23
24
  Challenges: e,
24
25
  CohortBuilder: t,
25
26
  DataAccessManagement: n,
26
27
  Datasets: r,
27
28
  Discussions: i,
28
- Docker: a,
29
- Favorites: o,
30
- Files: s,
31
- Following: c,
32
- Projects: l,
33
- Tables: u,
34
- Teams: d,
35
- TrashCan: f,
36
- Wikis: p,
37
- Donate: m,
38
- LeftDotBlob: h,
39
- RightDotBlob: g,
40
- LeftDotBlobDark: _,
41
- RightDotBlobDark: v,
42
- UnderConstruction: y
29
+ Discussions2: a,
30
+ Docker: o,
31
+ Favorites: s,
32
+ Files: c,
33
+ Following: l,
34
+ Projects: u,
35
+ Tables: d,
36
+ Teams: f,
37
+ TrashCan: p,
38
+ Wikis: m,
39
+ Donate: h,
40
+ LeftDotBlob: g,
41
+ RightDotBlob: _,
42
+ LeftDotBlobDark: v,
43
+ RightDotBlobDark: y,
44
+ UnderConstruction: b
43
45
  };
44
46
  //#endregion
45
- export { b as default };
47
+ export { x as default };
46
48
 
47
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/assets/illustrations/index.ts"],"sourcesContent":["import { ReactComponent as Challenges } from './challenges_illustration.svg'\nimport { ReactComponent as CohortBuilder } from './cohort_builder_illustration.svg'\nimport { ReactComponent as DataAccessManagement } from './data_access_management_illustration.svg'\nimport { ReactComponent as Datasets } from './datasets_illustration.svg'\nimport { ReactComponent as Discussions } from './discussions_illustration.svg'\nimport { ReactComponent as Docker } from './docker_illustration.svg'\nimport { ReactComponent as Favorites } from './favorites_illustration.svg'\nimport { ReactComponent as Files } from './files_illustration.svg'\nimport { ReactComponent as Following } from './following_illustration.svg'\nimport { ReactComponent as Projects } from './projects_illustration.svg'\nimport { ReactComponent as Tables } from './tables_illustration.svg'\nimport { ReactComponent as Teams } from './teams_illustration.svg'\nimport { ReactComponent as TrashCan } from './trash_can_illustration.svg'\nimport { ReactComponent as Wikis } from './wikis_illustration.svg'\nimport { ReactComponent as Donate } from './donation_illustration.svg'\nimport { ReactComponent as LeftDotBlob } from './left_dot_blob_illustration.svg'\nimport { ReactComponent as RightDotBlob } from './right_dot_blob_illustration.svg'\nimport { ReactComponent as LeftDotBlobDark } from './left_dot_blob_dark_illustration.svg'\nimport { ReactComponent as RightDotBlobDark } from './right_dot_blob_dark_illustration.svg'\nimport { ReactComponent as UnderConstruction } from './underconstruction_illustration.svg'\nconst Illustrations = {\n Challenges,\n CohortBuilder,\n DataAccessManagement,\n Datasets,\n Discussions,\n Docker,\n Favorites,\n Files,\n Following,\n Projects,\n Tables,\n Teams,\n TrashCan,\n Wikis,\n Donate,\n LeftDotBlob,\n RightDotBlob,\n LeftDotBlobDark,\n RightDotBlobDark,\n UnderConstruction,\n}\nexport default Illustrations\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,IAAM,IAAgB;CACpB,YAAA;CACA,eAAA;CACA,sBAAA;CACA,UAAA;CACA,aAAA;CACA,QAAA;CACA,WAAA;CACA,OAAA;CACA,WAAA;CACA,UAAA;CACA,QAAA;CACA,OAAA;CACA,UAAA;CACA,OAAA;CACA,QAAA;CACA,aAAA;CACA,cAAA;CACA,iBAAA;CACA,kBAAA;CACA,mBAAA;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/assets/illustrations/index.ts"],"sourcesContent":["import { ReactComponent as Challenges } from './challenges_illustration.svg'\nimport { ReactComponent as CohortBuilder } from './cohort_builder_illustration.svg'\nimport { ReactComponent as DataAccessManagement } from './data_access_management_illustration.svg'\nimport { ReactComponent as Datasets } from './datasets_illustration.svg'\nimport { ReactComponent as Discussions } from './discussions_illustration.svg'\nimport { ReactComponent as Discussions2 } from './discussions_illustration2.svg'\nimport { ReactComponent as Docker } from './docker_illustration.svg'\nimport { ReactComponent as Favorites } from './favorites_illustration.svg'\nimport { ReactComponent as Files } from './files_illustration.svg'\nimport { ReactComponent as Following } from './following_illustration.svg'\nimport { ReactComponent as Projects } from './projects_illustration.svg'\nimport { ReactComponent as Tables } from './tables_illustration.svg'\nimport { ReactComponent as Teams } from './teams_illustration.svg'\nimport { ReactComponent as TrashCan } from './trash_can_illustration.svg'\nimport { ReactComponent as Wikis } from './wikis_illustration.svg'\nimport { ReactComponent as Donate } from './donation_illustration.svg'\nimport { ReactComponent as LeftDotBlob } from './left_dot_blob_illustration.svg'\nimport { ReactComponent as RightDotBlob } from './right_dot_blob_illustration.svg'\nimport { ReactComponent as LeftDotBlobDark } from './left_dot_blob_dark_illustration.svg'\nimport { ReactComponent as RightDotBlobDark } from './right_dot_blob_dark_illustration.svg'\nimport { ReactComponent as UnderConstruction } from './underconstruction_illustration.svg'\nconst Illustrations = {\n Challenges,\n CohortBuilder,\n DataAccessManagement,\n Datasets,\n Discussions,\n Discussions2,\n Docker,\n Favorites,\n Files,\n Following,\n Projects,\n Tables,\n Teams,\n TrashCan,\n Wikis,\n Donate,\n LeftDotBlob,\n RightDotBlob,\n LeftDotBlobDark,\n RightDotBlobDark,\n UnderConstruction,\n}\nexport default Illustrations\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAM,IAAgB;CACpB,YAAA;CACA,eAAA;CACA,sBAAA;CACA,UAAA;CACA,aAAA;CACA,cAAA;CACA,QAAA;CACA,WAAA;CACA,OAAA;CACA,WAAA;CACA,UAAA;CACA,QAAA;CACA,OAAA;CACA,UAAA;CACA,OAAA;CACA,QAAA;CACA,aAAA;CACA,cAAA;CACA,iBAAA;CACA,kBAAA;CACA,mBAAA;AACF"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@mui/material/SvgIcon';
3
+ declare const CurieAvatarHead: (props: SvgIconProps) => React.ReactNode;
4
+ export default CurieAvatarHead;
5
+ //# sourceMappingURL=CurieAvatarHead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurieAvatarHead.d.ts","sourceRoot":"","sources":["../../../src/assets/mui_components/CurieAvatarHead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAG7D,QAAA,MAAM,eAAe,GAAI,OAAO,YAAY,KAAG,KAAK,CAAC,SAYpD,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { ForwardRef as e } from "../illustrations/curie_avatar_head.js";
2
+ import "react";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import n from "@mui/material/SvgIcon";
5
+ //#region src/assets/mui_components/CurieAvatarHead.tsx
6
+ var r = (r) => /* @__PURE__ */ t(n, {
7
+ height: "32",
8
+ width: "40",
9
+ viewBox: "0 0 40 32",
10
+ overflow: "visible",
11
+ ...r,
12
+ children: /* @__PURE__ */ t(e, {})
13
+ });
14
+ //#endregion
15
+ export { r as default };
16
+
17
+ //# sourceMappingURL=CurieAvatarHead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurieAvatarHead.js","names":[],"sources":["../../../src/assets/mui_components/CurieAvatarHead.tsx"],"sourcesContent":["import React from 'react'\nimport SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'\nimport { ReactComponent as CurieAvatarHeadSvg } from '../illustrations/curie_avatar_head.svg'\n\nconst CurieAvatarHead = (props: SvgIconProps): React.ReactNode => {\n return (\n <SvgIcon\n height=\"32\"\n width=\"40\"\n viewBox=\"0 0 40 32\"\n overflow=\"visible\"\n {...props}\n >\n <CurieAvatarHeadSvg />\n </SvgIcon>\n )\n}\n\nexport default CurieAvatarHead\n"],"mappings":";;;;;AAIA,IAAM,KAAmB,MAErB,kBAAC,GAAD;CACE,QAAO;CACP,OAAM;CACN,SAAQ;CACR,UAAS;CACT,GAAI;WAEJ,kBAAC,GAAD,CAAqB,CAAA;AACd,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Model: () => React.ReactNode;
3
+ //# sourceMappingURL=Model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../../src/assets/themed_icons/Model.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,SAwB9B,CAAA"}
@@ -0,0 +1,31 @@
1
+ import "react";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ //#region src/assets/themed_icons/Model.tsx
4
+ var n = () => /* @__PURE__ */ t("svg", {
5
+ width: "58",
6
+ height: "58",
7
+ viewBox: "0 0 58 58",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ e("path", {
12
+ d: "M26.5 2.59766C28.0469 1.70463 29.9531 1.70463 31.5 2.59766L50.6143 13.6338C52.1612 14.5269 53.1142 16.1776 53.1143 17.9639V40.0361C53.1142 41.8224 52.1612 43.4731 50.6143 44.3662L31.5 55.4023C29.9531 56.2954 28.0469 56.2954 26.5 55.4023L7.38574 44.3662C5.8388 43.4731 4.88582 41.8224 4.88574 40.0361V17.9639C4.88583 16.1776 5.8388 14.5269 7.38574 13.6338L26.5 2.59766Z",
13
+ stroke: "#DFE2E6",
14
+ strokeWidth: "2"
15
+ }),
16
+ /* @__PURE__ */ e("path", {
17
+ d: "M32.218 13.889H32.2219C32.505 13.889 32.7372 14.0756 32.801 14.3373V14.3363C34.0846 19.6599 38.1454 23.7857 43.4241 25.1556L43.4319 25.1625L43.6643 25.2191C43.9239 25.2822 44.1097 25.5123 44.1106 25.7924C44.1113 26.0763 43.9259 26.3081 43.6653 26.3715V26.3724H43.6643C43.6588 26.3738 43.6532 26.375 43.6477 26.3763C43.637 26.3791 43.6262 26.3819 43.6155 26.3851C38.3215 27.6831 34.0827 31.9279 32.7991 37.2211V37.224C32.7379 37.4798 32.5097 37.6664 32.2239 37.6664H32.2219C31.9361 37.6663 31.7057 37.4792 31.6428 37.223H31.6418C30.3559 31.9094 26.0957 27.6581 20.7834 26.3734H20.7844C20.5155 26.3067 20.3326 26.0744 20.3333 25.7924C20.3341 25.512 20.5222 25.2807 20.7795 25.2191L20.7815 25.2181C26.176 23.9124 30.34 19.7403 31.6428 14.3353L31.6438 14.3344C31.7054 14.0772 31.9353 13.8892 32.218 13.889Z",
18
+ stroke: "#DFE2E6",
19
+ strokeWidth: "2"
20
+ }),
21
+ /* @__PURE__ */ e("path", {
22
+ d: "M20.9443 32.9069C21.7026 35.0998 23.3268 36.8356 25.4316 37.6022C23.3515 38.3667 21.7035 40.1229 20.9434 42.2887C20.1832 40.1213 18.5355 38.3662 16.4561 37.6022C18.5612 36.8359 20.1859 35.1004 20.9443 32.9069Z",
23
+ stroke: "#DFE2E6",
24
+ strokeWidth: "2"
25
+ })
26
+ ]
27
+ });
28
+ //#endregion
29
+ export { n as Model };
30
+
31
+ //# sourceMappingURL=Model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Model.js","names":[],"sources":["../../../src/assets/themed_icons/Model.tsx"],"sourcesContent":["import React from 'react'\nexport const Model = (): React.ReactNode => (\n <svg\n width=\"58\"\n height=\"58\"\n viewBox=\"0 0 58 58\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.5 2.59766C28.0469 1.70463 29.9531 1.70463 31.5 2.59766L50.6143 13.6338C52.1612 14.5269 53.1142 16.1776 53.1143 17.9639V40.0361C53.1142 41.8224 52.1612 43.4731 50.6143 44.3662L31.5 55.4023C29.9531 56.2954 28.0469 56.2954 26.5 55.4023L7.38574 44.3662C5.8388 43.4731 4.88582 41.8224 4.88574 40.0361V17.9639C4.88583 16.1776 5.8388 14.5269 7.38574 13.6338L26.5 2.59766Z\"\n stroke=\"#DFE2E6\"\n strokeWidth=\"2\"\n />\n <path\n d=\"M32.218 13.889H32.2219C32.505 13.889 32.7372 14.0756 32.801 14.3373V14.3363C34.0846 19.6599 38.1454 23.7857 43.4241 25.1556L43.4319 25.1625L43.6643 25.2191C43.9239 25.2822 44.1097 25.5123 44.1106 25.7924C44.1113 26.0763 43.9259 26.3081 43.6653 26.3715V26.3724H43.6643C43.6588 26.3738 43.6532 26.375 43.6477 26.3763C43.637 26.3791 43.6262 26.3819 43.6155 26.3851C38.3215 27.6831 34.0827 31.9279 32.7991 37.2211V37.224C32.7379 37.4798 32.5097 37.6664 32.2239 37.6664H32.2219C31.9361 37.6663 31.7057 37.4792 31.6428 37.223H31.6418C30.3559 31.9094 26.0957 27.6581 20.7834 26.3734H20.7844C20.5155 26.3067 20.3326 26.0744 20.3333 25.7924C20.3341 25.512 20.5222 25.2807 20.7795 25.2191L20.7815 25.2181C26.176 23.9124 30.34 19.7403 31.6428 14.3353L31.6438 14.3344C31.7054 14.0772 31.9353 13.8892 32.218 13.889Z\"\n stroke=\"#DFE2E6\"\n strokeWidth=\"2\"\n />\n <path\n d=\"M20.9443 32.9069C21.7026 35.0998 23.3268 36.8356 25.4316 37.6022C23.3515 38.3667 21.7035 40.1229 20.9434 42.2887C20.1832 40.1213 18.5355 38.3662 16.4561 37.6022C18.5612 36.8359 20.1859 35.1004 20.9443 32.9069Z\"\n stroke=\"#DFE2E6\"\n strokeWidth=\"2\"\n />\n </svg>\n)\n"],"mappings":";;;AACA,IAAa,UACX,kBAAC,OAAD;CACE,OAAM;CACN,QAAO;CACP,SAAQ;CACR,MAAK;CACL,OAAM;WALR;EAOE,kBAAC,QAAD;GACE,GAAE;GACF,QAAO;GACP,aAAY;EACb,CAAA;EACD,kBAAC,QAAD;GACE,GAAE;GACF,QAAO;GACP,aAAY;EACb,CAAA;EACD,kBAAC,QAAD;GACE,GAAE;GACF,QAAO;GACP,aAAY;EACb,CAAA;CACE"}
@@ -5,6 +5,7 @@ import { Study } from './Study';
5
5
  import { ToolClinical } from './ToolClinical';
6
6
  import { ToolComputational } from './ToolComputational';
7
7
  import { ToolExperimental } from './ToolExperimental';
8
+ import { Model } from './Model';
8
9
  import { Database } from './Database';
9
10
  import { Explore } from './Explore';
10
11
  import { Search } from './Search';
@@ -22,5 +23,5 @@ import { Columns } from './Columns';
22
23
  import { ColumnsDark } from './ColumnsDark';
23
24
  import { VerticalDots } from './VerticalDots';
24
25
  import { ExternalLink } from './ExternalLink';
25
- export { Project, Program, Publication, Study, ToolClinical, ToolComputational, ToolExperimental, Database, Explore, Search, Chart, Filter, Download, Expand, Collapse, Close, SortUp, SortDown, Settings, Columns, ColumnsDark, VerticalDots, ExternalLink, SqlEditorIcon, };
26
+ export { Project, Program, Publication, Study, ToolClinical, ToolComputational, ToolExperimental, Model, Database, Explore, Search, Chart, Filter, Download, Expand, Collapse, Close, SortUp, SortDown, Settings, Columns, ColumnsDark, VerticalDots, ExternalLink, SqlEditorIcon, };
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/themed_icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/themed_icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,CAAA"}
@@ -5,21 +5,22 @@ import { Study as r } from "./Study.js";
5
5
  import { ToolClinical as i } from "./ToolClinical.js";
6
6
  import { ToolComputational as a } from "./ToolComputational.js";
7
7
  import { ToolExperimental as o } from "./ToolExperimental.js";
8
- import { Database as s } from "./Database.js";
9
- import { Explore as c } from "./Explore.js";
10
- import { Search as l } from "./Search.js";
11
- import { Chart as u } from "./Chart.js";
12
- import { Filter as d } from "./Filter.js";
13
- import { SqlEditorIcon as f } from "./SqlEditorIcon.js";
14
- import { Download as p } from "./Download.js";
15
- import { Expand as m } from "./Expand.js";
16
- import { Collapse as h } from "./Collapse.js";
17
- import { Close as g } from "./Close.js";
18
- import { SortUp as _ } from "./SortUp.js";
19
- import { SortDown as v } from "./SortDown.js";
20
- import { Settings as y } from "./Settings.js";
21
- import { Columns as b } from "./Columns.js";
22
- import { ColumnsDark as x } from "./ColumnsDark.js";
23
- import { VerticalDots as S } from "./VerticalDots.js";
24
- import { ExternalLink as C } from "./ExternalLink.js";
25
- export { u as Chart, g as Close, h as Collapse, b as Columns, x as ColumnsDark, s as Database, p as Download, m as Expand, c as Explore, C as ExternalLink, d as Filter, t as Program, e as Project, n as Publication, l as Search, y as Settings, v as SortDown, _ as SortUp, f as SqlEditorIcon, r as Study, i as ToolClinical, a as ToolComputational, o as ToolExperimental, S as VerticalDots };
8
+ import { Model as s } from "./Model.js";
9
+ import { Database as c } from "./Database.js";
10
+ import { Explore as l } from "./Explore.js";
11
+ import { Search as u } from "./Search.js";
12
+ import { Chart as d } from "./Chart.js";
13
+ import { Filter as f } from "./Filter.js";
14
+ import { SqlEditorIcon as p } from "./SqlEditorIcon.js";
15
+ import { Download as m } from "./Download.js";
16
+ import { Expand as h } from "./Expand.js";
17
+ import { Collapse as g } from "./Collapse.js";
18
+ import { Close as _ } from "./Close.js";
19
+ import { SortUp as v } from "./SortUp.js";
20
+ import { SortDown as y } from "./SortDown.js";
21
+ import { Settings as b } from "./Settings.js";
22
+ import { Columns as x } from "./Columns.js";
23
+ import { ColumnsDark as S } from "./ColumnsDark.js";
24
+ import { VerticalDots as C } from "./VerticalDots.js";
25
+ import { ExternalLink as w } from "./ExternalLink.js";
26
+ export { d as Chart, _ as Close, g as Collapse, x as Columns, S as ColumnsDark, c as Database, m as Download, h as Expand, l as Explore, w as ExternalLink, f as Filter, s as Model, t as Program, e as Project, n as Publication, u as Search, b as Settings, y as SortDown, v as SortUp, p as SqlEditorIcon, r as Study, i as ToolClinical, a as ToolComputational, o as ToolExperimental, C as VerticalDots };
@@ -1 +1 @@
1
- {"version":3,"file":"ChallengeDataDownload.d.ts","sourceRoot":"","sources":["../../../src/components/ChallengeDataDownload/ChallengeDataDownload.tsx"],"names":[],"mappings":"AAcA,MAAM,MAAM,0BAA0B,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,iBAAiB,GAClB,EAAE,0BAA0B,2CAwF5B"}
1
+ {"version":3,"file":"ChallengeDataDownload.d.ts","sourceRoot":"","sources":["../../../src/components/ChallengeDataDownload/ChallengeDataDownload.tsx"],"names":[],"mappings":"AAeA,MAAM,MAAM,0BAA0B,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,iBAAiB,GAClB,EAAE,0BAA0B,2CAiH5B"}
@@ -2,54 +2,62 @@ import { displayToast as e } from "../ToastMessage/ToastMessage.js";
2
2
  import { useSynapseContext as t } from "../../utils/context/SynapseContext.js";
3
3
  import "../ToastMessage/index.js";
4
4
  import "../../utils/index.js";
5
- import { useAddFileBatchToDownloadList as n } from "../../synapse-queries/download/useDownloadList.js";
5
+ import { useAddFileBatchToDownloadList as n, useAddToDownloadList as r } from "../../synapse-queries/download/useDownloadList.js";
6
6
  import "../../synapse-queries/index.js";
7
- import { VersionSelectionType as r } from "../EntityFinder/VersionSelectionType.js";
8
- import { DetailsViewColumn as i } from "../EntityFinder/details/view/DetailsView.js";
9
- import { EntityChildrenDetails as a } from "../EntityFinder/details/configurations/EntityChildrenDetails.js";
10
- import { useEntitySelection as o } from "../EntityFinder/useEntitySelection.js";
11
- import { useCallback as s } from "react";
7
+ import { EntityTreeTable as i } from "../EntityTreeTable/EntityTreeTable.js";
8
+ import { useCallback as a, useRef as o, useState as s } from "react";
12
9
  import { Box as c, Button as l } from "@mui/material";
13
10
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
14
11
  import { EntityType as p } from "@sage-bionetworks/synapse-client";
15
12
  import m from "@mui/icons-material/AddCircleTwoTone";
16
13
  //#region src/components/ChallengeDataDownload/ChallengeDataDownload.tsx
17
14
  function h({ parentContainerId: h }) {
18
- let { downloadCartPageUrl: g } = t(), { selectedEntities: _, toggleSelection: v, setInitialVersion: y } = o(!0), { mutate: b } = n({
19
- onSuccess: () => {
20
- e("File(s) were successfully added to your Download List.", "success", { primaryButtonConfig: {
15
+ let { downloadCartPageUrl: g } = t(), [_, v] = s(/* @__PURE__ */ new Set()), y = o(/* @__PURE__ */ new Map()), { mutateAsync: b } = n(), { mutateAsync: x } = r(), S = a((e, t, n) => {
16
+ y.current.set(e, {
17
+ entityType: t,
18
+ versionNumber: n
19
+ }), v((t) => {
20
+ let n = new Set(t);
21
+ return n.has(e) ? n.delete(e) : n.add(e), n;
22
+ });
23
+ }, []), C = a(async () => {
24
+ let t = [], n = [];
25
+ for (let e of _) {
26
+ let r = y.current.get(e);
27
+ r?.entityType === p.folder ? n.push({
28
+ concreteType: "org.sagebionetworks.repo.model.download.AddToDownloadListRequest",
29
+ parentId: e,
30
+ recursive: !0
31
+ }) : t.push({
32
+ fileEntityId: e,
33
+ versionNumber: r?.versionNumber
34
+ });
35
+ }
36
+ try {
37
+ let r = [];
38
+ t.length > 0 && r.push(b(t));
39
+ for (let e of n) r.push(x(e));
40
+ await Promise.all(r), e("File(s) were successfully added to your Download List.", "success", { primaryButtonConfig: {
21
41
  text: "View Download List",
22
42
  onClick: () => window.location.href = g
23
43
  } });
24
- },
25
- onError: (t) => {
26
- e(`Unable to add the file to your Download List. ${t.reason}`, "danger");
44
+ } catch (t) {
45
+ let n = t;
46
+ e(`Unable to add the file(s) to your Download List.${n.reason ? ` ${n.reason}` : ""}`, "danger");
27
47
  }
28
- }), x = s((e) => _.has(e.id), [_]), S = s(() => {
29
- b(Array.from(_.values()).map((e) => ({
30
- fileEntityId: e.targetId,
31
- versionNumber: e.targetVersionNumber
32
- })));
33
- }, [_, b]);
34
- return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, { children: /* @__PURE__ */ d(a, {
35
- parentContainerId: h,
36
- versionSelection: r.REQUIRED,
37
- selectColumnType: "checkbox",
38
- enableSelectAll: !0,
39
- visibleTypes: [p.file],
40
- selected: _,
41
- selectableTypes: [p.file],
42
- isIdSelected: x,
43
- isSelectable: () => !0,
44
- toggleSelection: v,
45
- setInitialVersion: y,
46
- hiddenColumns: [
47
- i.BADGES,
48
- i.ADD_TO_DOWNLOAD_CART,
49
- i.CREATED_ON,
50
- i.VERSION,
51
- i.MODIFIED_BY
52
- ]
48
+ }, [
49
+ _,
50
+ b,
51
+ x,
52
+ g
53
+ ]);
54
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, { children: /* @__PURE__ */ d(i, {
55
+ rootId: h,
56
+ showRootNode: !1,
57
+ expandRootByDefault: !0,
58
+ disableEntityLinks: !0,
59
+ selectedIds: _,
60
+ onToggleSelection: S
53
61
  }) }), /* @__PURE__ */ d(c, {
54
62
  sx: { mt: 4 },
55
63
  children: /* @__PURE__ */ d(l, {
@@ -59,8 +67,10 @@ function h({ parentContainerId: h }) {
59
67
  alignSelf: "flex-end",
60
68
  height: "47px"
61
69
  },
62
- onClick: S,
63
- disabled: !_.toArray().length,
70
+ onClick: () => {
71
+ C();
72
+ },
73
+ disabled: _.size === 0,
64
74
  children: "Add to Download List"
65
75
  })
66
76
  })] });
@@ -1 +1 @@
1
- {"version":3,"file":"ChallengeDataDownload.js","names":[],"sources":["../../../src/components/ChallengeDataDownload/ChallengeDataDownload.tsx"],"sourcesContent":["import { useAddFileBatchToDownloadList } from '@/synapse-queries'\nimport { useSynapseContext } from '@/utils'\nimport AddCircleTwoToneIcon from '@mui/icons-material/AddCircleTwoTone'\nimport { Box, Button } from '@mui/material'\nimport { EntityType } from '@sage-bionetworks/synapse-client'\nimport { useCallback } from 'react'\nimport { EntityChildrenDetails } from '../EntityFinder/details/configurations/EntityChildrenDetails'\nimport { EntityDetailsListSharedProps } from '../EntityFinder/details/EntityDetailsList'\nimport { DetailsViewColumn } from '../EntityFinder/details/view/DetailsView'\nimport { EntityFinderHeader } from '../EntityFinder/EntityFinderHeader'\nimport { useEntitySelection } from '../EntityFinder/useEntitySelection'\nimport { VersionSelectionType } from '../EntityFinder/VersionSelectionType'\nimport { displayToast } from '../ToastMessage'\n\nexport type ChallengeDataDownloadProps = {\n parentContainerId: string\n}\n\nexport function ChallengeDataDownload({\n parentContainerId,\n}: ChallengeDataDownloadProps) {\n const { downloadCartPageUrl } = useSynapseContext()\n const selectMultiple = true\n const { selectedEntities, toggleSelection, setInitialVersion } =\n useEntitySelection(selectMultiple)\n\n const { mutate: addBatchToDownloadList } = useAddFileBatchToDownloadList({\n onSuccess: () => {\n displayToast(\n 'File(s) were successfully added to your Download List.',\n 'success',\n {\n primaryButtonConfig: {\n text: 'View Download List',\n onClick: () => (window.location.href = downloadCartPageUrl),\n },\n },\n )\n },\n onError: e => {\n displayToast(\n `Unable to add the file to your Download List. ${e.reason}`,\n 'danger',\n )\n },\n })\n\n const isIdSelected = useCallback(\n (entity: EntityFinderHeader) => {\n return selectedEntities.has(entity.id)\n },\n [selectedEntities],\n )\n\n const onAddClick = useCallback(() => {\n const entities = Array.from(selectedEntities.values()).map(reference => {\n return {\n fileEntityId: reference.targetId,\n versionNumber: reference.targetVersionNumber,\n }\n })\n addBatchToDownloadList(entities)\n }, [selectedEntities, addBatchToDownloadList])\n\n const sharedProps: EntityDetailsListSharedProps = {\n versionSelection: VersionSelectionType.REQUIRED,\n selectColumnType: 'checkbox',\n enableSelectAll: true,\n visibleTypes: [EntityType.file],\n selected: selectedEntities,\n selectableTypes: [EntityType.file],\n isIdSelected,\n isSelectable: () => true,\n toggleSelection,\n setInitialVersion,\n hiddenColumns: [\n DetailsViewColumn.BADGES,\n DetailsViewColumn.ADD_TO_DOWNLOAD_CART,\n DetailsViewColumn.CREATED_ON,\n DetailsViewColumn.VERSION,\n DetailsViewColumn.MODIFIED_BY,\n ],\n }\n return (\n <>\n <Box>\n <EntityChildrenDetails\n parentContainerId={parentContainerId}\n {...sharedProps}\n />\n </Box>\n <Box\n sx={{\n mt: 4,\n }}\n >\n <Button\n endIcon={<AddCircleTwoToneIcon />}\n variant={'outlined'}\n sx={{ alignSelf: 'flex-end', height: '47px' }}\n onClick={onAddClick}\n disabled={!selectedEntities.toArray().length}\n >\n Add to Download List\n </Button>\n </Box>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkBA,SAAgB,EAAsB,EACpC,wBAC6B;CAC7B,IAAM,EAAE,2BAAwB,EAAkB,GAE5C,EAAE,qBAAkB,oBAAiB,yBACzC,EAAmB,EAAc,GAE7B,EAAE,QAAQ,MAA2B,EAA8B;EACvE,iBAAiB;GACf,EACE,0DACA,WACA,EACE,qBAAqB;IACnB,MAAM;IACN,eAAgB,OAAO,SAAS,OAAO;GACzC,EACF,CACF;EACF;EACA,UAAS,MAAK;GACZ,EACE,iDAAiD,EAAE,UACnD,QACF;EACF;CACF,CAAC,GAEK,IAAe,GAClB,MACQ,EAAiB,IAAI,EAAO,EAAE,GAEvC,CAAC,CAAgB,CACnB,GAEM,IAAa,QAAkB;EAOnC,EANiB,MAAM,KAAK,EAAiB,OAAO,CAAC,EAAE,KAAI,OAClD;GACL,cAAc,EAAU;GACxB,eAAe,EAAU;EAC3B,EAEqB,CAAQ;CACjC,GAAG,CAAC,GAAkB,CAAsB,CAAC;CAqB7C,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACqB;EAtBzB,kBAAkB,EAAqB;EACvC,kBAAkB;EAClB,iBAAiB;EACjB,cAAc,CAAC,EAAW,IAAI;EAC9B,UAAU;EACV,iBAAiB,CAAC,EAAW,IAAI;EACjC;EACA,oBAAoB;EACpB;EACA;EACA,eAAe;GACb,EAAkB;GAClB,EAAkB;GAClB,EAAkB;GAClB,EAAkB;GAClB,EAAkB;EACpB;CAQK,CAAA,EACE,CAAA,GACL,kBAAC,GAAD;EACE,IAAI,EACF,IAAI,EACN;YAEA,kBAAC,GAAD;GACE,SAAS,kBAAC,GAAD,CAAuB,CAAA;GAChC,SAAS;GACT,IAAI;IAAE,WAAW;IAAY,QAAQ;GAAO;GAC5C,SAAS;GACT,UAAU,CAAC,EAAiB,QAAQ,EAAE;aACvC;EAEO,CAAA;CACL,CAAA,CACL,EAAA,CAAA;AAEN"}
1
+ {"version":3,"file":"ChallengeDataDownload.js","names":[],"sources":["../../../src/components/ChallengeDataDownload/ChallengeDataDownload.tsx"],"sourcesContent":["import {\n useAddFileBatchToDownloadList,\n useAddToDownloadList,\n} from '@/synapse-queries'\nimport { useSynapseContext } from '@/utils'\nimport AddCircleTwoToneIcon from '@mui/icons-material/AddCircleTwoTone'\nimport { Box, Button } from '@mui/material'\nimport {\n AddToDownloadListRequest,\n EntityType,\n} from '@sage-bionetworks/synapse-client'\nimport { useCallback, useRef, useState } from 'react'\nimport EntityTreeTable from '../EntityTreeTable/EntityTreeTable'\nimport { displayToast } from '../ToastMessage'\n\nexport type ChallengeDataDownloadProps = {\n parentContainerId: string\n}\n\nexport function ChallengeDataDownload({\n parentContainerId,\n}: ChallengeDataDownloadProps) {\n const { downloadCartPageUrl } = useSynapseContext()\n\n const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set())\n const selectionMetaRef = useRef<\n Map<string, { entityType: EntityType; versionNumber: number | undefined }>\n >(new Map())\n\n const { mutateAsync: addBatchToDownloadListAsync } =\n useAddFileBatchToDownloadList()\n const { mutateAsync: addFolderToDownloadListAsync } = useAddToDownloadList()\n\n const onToggleSelection = useCallback(\n (\n entityId: string,\n entityType: EntityType,\n versionNumber: number | undefined,\n ) => {\n selectionMetaRef.current.set(entityId, { entityType, versionNumber })\n setSelectedIds(prev => {\n const next = new Set(prev)\n if (next.has(entityId)) {\n next.delete(entityId)\n } else {\n next.add(entityId)\n }\n return next\n })\n },\n [],\n )\n\n const onAddClick = useCallback(async () => {\n const fileEntities: { fileEntityId: string; versionNumber?: number }[] = []\n const folderRequests: AddToDownloadListRequest[] = []\n\n for (const entityId of selectedIds) {\n const meta = selectionMetaRef.current.get(entityId)\n if (meta?.entityType === EntityType.folder) {\n folderRequests.push({\n concreteType:\n 'org.sagebionetworks.repo.model.download.AddToDownloadListRequest',\n parentId: entityId,\n recursive: true,\n })\n } else {\n fileEntities.push({\n fileEntityId: entityId,\n versionNumber: meta?.versionNumber,\n })\n }\n }\n\n try {\n const promises: Promise<unknown>[] = []\n if (fileEntities.length > 0) {\n promises.push(addBatchToDownloadListAsync(fileEntities))\n }\n for (const request of folderRequests) {\n promises.push(addFolderToDownloadListAsync(request))\n }\n await Promise.all(promises)\n displayToast(\n 'File(s) were successfully added to your Download List.',\n 'success',\n {\n primaryButtonConfig: {\n text: 'View Download List',\n onClick: () => (window.location.href = downloadCartPageUrl),\n },\n },\n )\n } catch (e) {\n const err = e as { reason?: string }\n displayToast(\n `Unable to add the file(s) to your Download List.${err.reason ? ` ${err.reason}` : ''}`,\n 'danger',\n )\n }\n }, [\n selectedIds,\n addBatchToDownloadListAsync,\n addFolderToDownloadListAsync,\n downloadCartPageUrl,\n ])\n\n return (\n <>\n <Box>\n <EntityTreeTable\n rootId={parentContainerId}\n showRootNode={false}\n expandRootByDefault={true}\n disableEntityLinks={true}\n selectedIds={selectedIds}\n onToggleSelection={onToggleSelection}\n />\n </Box>\n <Box sx={{ mt: 4 }}>\n <Button\n endIcon={<AddCircleTwoToneIcon />}\n variant={'outlined'}\n sx={{ alignSelf: 'flex-end', height: '47px' }}\n onClick={() => {\n void onAddClick()\n }}\n disabled={selectedIds.size === 0}\n >\n Add to Download List\n </Button>\n </Box>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAmBA,SAAgB,EAAsB,EACpC,wBAC6B;CAC7B,IAAM,EAAE,2BAAwB,EAAkB,GAE5C,CAAC,GAAa,KAAkB,kBAAsB,IAAI,IAAI,CAAC,GAC/D,IAAmB,kBAEvB,IAAI,IAAI,CAAC,GAEL,EAAE,aAAa,MACnB,EAA8B,GAC1B,EAAE,aAAa,MAAiC,EAAqB,GAErE,IAAoB,GAEtB,GACA,GACA,MACG;EAEH,AADA,EAAiB,QAAQ,IAAI,GAAU;GAAE;GAAY;EAAc,CAAC,GACpE,GAAe,MAAQ;GACrB,IAAM,IAAO,IAAI,IAAI,CAAI;GAMzB,OALI,EAAK,IAAI,CAAQ,IACnB,EAAK,OAAO,CAAQ,IAEpB,EAAK,IAAI,CAAQ,GAEZ;EACT,CAAC;CACH,GACA,CAAC,CACH,GAEM,IAAa,EAAY,YAAY;EACzC,IAAM,IAAmE,CAAC,GACpE,IAA6C,CAAC;EAEpD,KAAK,IAAM,KAAY,GAAa;GAClC,IAAM,IAAO,EAAiB,QAAQ,IAAI,CAAQ;GAClD,AAAI,GAAM,eAAe,EAAW,SAClC,EAAe,KAAK;IAClB,cACE;IACF,UAAU;IACV,WAAW;GACb,CAAC,IAED,EAAa,KAAK;IAChB,cAAc;IACd,eAAe,GAAM;GACvB,CAAC;EAEL;EAEA,IAAI;GACF,IAAM,IAA+B,CAAC;GACtC,AAAI,EAAa,SAAS,KACxB,EAAS,KAAK,EAA4B,CAAY,CAAC;GAEzD,KAAK,IAAM,KAAW,GACpB,EAAS,KAAK,EAA6B,CAAO,CAAC;GAGrD,AADA,MAAM,QAAQ,IAAI,CAAQ,GAC1B,EACE,0DACA,WACA,EACE,qBAAqB;IACnB,MAAM;IACN,eAAgB,OAAO,SAAS,OAAO;GACzC,EACF,CACF;EACF,SAAS,GAAG;GACV,IAAM,IAAM;GACZ,EACE,mDAAmD,EAAI,SAAS,IAAI,EAAI,WAAW,MACnF,QACF;EACF;CACF,GAAG;EACD;EACA;EACA;EACA;CACF,CAAC;CAED,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACE,QAAQ;EACR,cAAc;EACd,qBAAqB;EACrB,oBAAoB;EACP;EACM;CACpB,CAAA,EACE,CAAA,GACL,kBAAC,GAAD;EAAK,IAAI,EAAE,IAAI,EAAE;YACf,kBAAC,GAAD;GACE,SAAS,kBAAC,GAAD,CAAuB,CAAA;GAChC,SAAS;GACT,IAAI;IAAE,WAAW;IAAY,QAAQ;GAAO;GAC5C,eAAe;IACb,EAAgB;GAClB;GACA,UAAU,EAAY,SAAS;aAChC;EAEO,CAAA;CACL,CAAA,CACL,EAAA,CAAA;AAEN"}
@@ -1 +1 @@
1
- {"version":3,"file":"SynapseGrid.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/SynapseGrid.tsx"],"names":[],"mappings":"AAcA,OAAO,EACL,iBAAiB,EAElB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACL,GAAG,EAOJ,MAAM,OAAO,CAAA;AAsBd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACpD,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD,CAAA;AA2fD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAM3C;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"SynapseGrid.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/SynapseGrid.tsx"],"names":[],"mappings":"AAqBA,OAAO,EACL,iBAAiB,EAElB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACL,GAAG,EAOJ,MAAM,OAAO,CAAA;AAkBd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACpD,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD,CAAA;AA2fD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAM3C;AAED,eAAe,WAAW,CAAA"}