synapse-react-client 4.0.3 → 4.0.4

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 (305) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js +1 -1
  3. package/dist/components/AccessRequirementList/AccessRequirementList.js +4 -4
  4. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.d.ts.map +1 -1
  5. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.js +8 -7
  6. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.js.map +1 -1
  7. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js +4 -4
  8. package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItem.js +11 -11
  9. package/dist/components/AccessRequirementList/RequirementItem/RequirementItem.js +1 -1
  10. package/dist/components/AccessRequirementList/RequirementItem/SelfSignAccessRequirementItem.js +9 -9
  11. package/dist/components/AccessRequirementList/RequirementItem/UnmanagedACTAccessRequirementItem.js +5 -5
  12. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.d.ts.map +1 -1
  13. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +33 -32
  14. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
  15. package/dist/components/AclEditor/AclEditor.js +8 -8
  16. package/dist/components/AclEditor/AclEditor.js.map +1 -1
  17. package/dist/components/AclEditor/AclEditor.test-utils.js +34 -34
  18. package/dist/components/AclEditor/AclEditor.test-utils.js.map +1 -1
  19. package/dist/components/Authentication/AuthenticationMethodSelection.js +1 -1
  20. package/dist/components/Authentication/TwoFactorEnrollmentForm.d.ts.map +1 -1
  21. package/dist/components/Authentication/TwoFactorEnrollmentForm.js +6 -5
  22. package/dist/components/Authentication/TwoFactorEnrollmentForm.js.map +1 -1
  23. package/dist/components/BasePortalCard/BasePortalCard.css +1 -1
  24. package/dist/components/BasePortalCard/BasePortalCard.module.scss +6 -0
  25. package/dist/components/BasePortalCard/BasePortalCard.module.scss.js +1 -1
  26. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.css +1 -1
  27. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js +7 -7
  28. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.module.scss +13 -5
  29. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.module.scss.js +5 -5
  30. package/dist/components/CardContainer/CardLink.d.ts +12 -0
  31. package/dist/components/CardContainer/CardLink.d.ts.map +1 -1
  32. package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js +12 -12
  33. package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.d.ts.map +1 -1
  34. package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js +7 -7
  35. package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js.map +1 -1
  36. package/dist/components/CitationPopover/CitationPopoverContent.d.ts.map +1 -1
  37. package/dist/components/CitationPopover/CitationPopoverContent.js +13 -12
  38. package/dist/components/CitationPopover/CitationPopoverContent.js.map +1 -1
  39. package/dist/components/CookiesNotification/CookiesNotification.js +1 -1
  40. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +3 -4
  41. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
  42. package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +2 -2
  43. package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
  44. package/dist/components/DataGrid/SynapseGrid.js +35 -35
  45. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  46. package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +2 -2
  47. package/dist/components/DataGrid/hooks/useExportDataGridToCsv.d.ts.map +1 -1
  48. package/dist/components/DataGrid/hooks/useExportDataGridToCsv.js +9 -7
  49. package/dist/components/DataGrid/hooks/useExportDataGridToCsv.js.map +1 -1
  50. package/dist/components/DownloadCart/ActionRequiredCard/ActionRequiredCard.js +1 -1
  51. package/dist/components/DownloadCart/RequestDownloadCard.js +1 -1
  52. package/dist/components/Ecosystem/EcosystemSkeleton.js +2 -2
  53. package/dist/components/Ecosystem/TableQueryEcosystem.js +1 -1
  54. package/dist/components/EntityAclEditor/EntityAclEditorModal.js +1 -1
  55. package/dist/components/EntityAclEditor/OpenData.js +1 -1
  56. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.d.ts.map +1 -1
  57. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js +113 -127
  58. package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js.map +1 -1
  59. package/dist/components/EntityCitation/EntityCitation.js +1 -1
  60. package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +1 -1
  61. package/dist/components/EntityFinder/details/view/table/CreatedOnCell.js +1 -1
  62. package/dist/components/EntityFinder/details/view/table/EntityNameCell.js +1 -1
  63. package/dist/components/EntityFinder/details/view/table/FileEntityMD5Cell.js +1 -1
  64. package/dist/components/EntityFinder/details/view/table/FileEntitySizeCell.js +1 -1
  65. package/dist/components/EntityFinder/details/view/table/ModifiedByCell.js +1 -1
  66. package/dist/components/EntityFinder/details/view/table/ModifiedOnCell.js +1 -1
  67. package/dist/components/EntityFinder/details/view/table/ParentProjectCell.js +1 -1
  68. package/dist/components/EntityFinder/tree/EntityTree.js +1 -1
  69. package/dist/components/EntityHeaderTable/EntityHeaderTable.d.ts.map +1 -1
  70. package/dist/components/EntityHeaderTable/EntityHeaderTable.js +39 -39
  71. package/dist/components/EntityHeaderTable/EntityHeaderTable.js.map +1 -1
  72. package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.d.ts +8 -0
  73. package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.d.ts.map +1 -0
  74. package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.js +46 -0
  75. package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.js.map +1 -0
  76. package/dist/components/Evaluation/EvaluationCard.d.ts.map +1 -1
  77. package/dist/components/Evaluation/EvaluationCard.js +35 -41
  78. package/dist/components/Evaluation/EvaluationCard.js.map +1 -1
  79. package/dist/components/Evaluation/EvaluationEditor.d.ts.map +1 -1
  80. package/dist/components/Evaluation/EvaluationEditor.js +95 -90
  81. package/dist/components/Evaluation/EvaluationEditor.js.map +1 -1
  82. package/dist/components/Evaluation/EvaluationRoundEditor.d.ts.map +1 -1
  83. package/dist/components/Evaluation/EvaluationRoundEditor.js +133 -124
  84. package/dist/components/Evaluation/EvaluationRoundEditor.js.map +1 -1
  85. package/dist/components/FilePreview/EntityPreview.js +1 -1
  86. package/dist/components/Forum/DiscussionReply.js +10 -10
  87. package/dist/components/Forum/DiscussionThread.js +21 -21
  88. package/dist/components/GenericCard/CardUtils.d.ts.map +1 -1
  89. package/dist/components/GenericCard/CardUtils.js +36 -36
  90. package/dist/components/GenericCard/CardUtils.js.map +1 -1
  91. package/dist/components/GenericCard/CollapsibleDescription.js +25 -25
  92. package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
  93. package/dist/components/GenericCard/SynapseCardLabel.js +72 -67
  94. package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
  95. package/dist/components/GenericCard/TableRowGenericCard.d.ts +4 -1
  96. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  97. package/dist/components/GenericCard/TableRowGenericCard.js +98 -96
  98. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  99. package/dist/components/GoalsV2/GoalsV2.Desktop.d.ts.map +1 -1
  100. package/dist/components/GoalsV2/GoalsV2.Desktop.js +14 -15
  101. package/dist/components/GoalsV2/GoalsV2.Desktop.js.map +1 -1
  102. package/dist/components/GoogleAnalytics/GoogleAnalytics.js +1 -1
  103. package/dist/components/HasAccess/HasAccessV2.js +1 -1
  104. package/dist/components/HasAccess/useHasAccess.js +1 -1
  105. package/dist/components/IDUReport/IDUReportSubmissionInfo.js +23 -23
  106. package/dist/components/IDUReport/IDUReportSubmissionInfo.js.map +1 -1
  107. package/dist/components/JSONArrayEditor/useParseCsv.d.ts +1 -1
  108. package/dist/components/JSONArrayEditor/useParseCsv.d.ts.map +1 -1
  109. package/dist/components/JSONArrayEditor/useParseCsv.js +9 -9
  110. package/dist/components/JSONArrayEditor/useParseCsv.js.map +1 -1
  111. package/dist/components/Markdown/MarkdownCollapse.js +7 -7
  112. package/dist/components/Markdown/MarkdownEditor.js +11 -11
  113. package/dist/components/Markdown/MarkdownGithub.js +1 -1
  114. package/dist/components/Markdown/MarkdownPopover.js +6 -6
  115. package/dist/components/Markdown/MarkdownPopover.js.map +1 -1
  116. package/dist/components/Markdown/MarkdownSynapse.d.ts.map +1 -1
  117. package/dist/components/Markdown/MarkdownSynapse.js +139 -135
  118. package/dist/components/Markdown/MarkdownSynapse.js.map +1 -1
  119. package/dist/components/Markdown/MarkdownUtils.d.ts +8 -0
  120. package/dist/components/Markdown/MarkdownUtils.d.ts.map +1 -1
  121. package/dist/components/Markdown/MarkdownUtils.js +139 -65
  122. package/dist/components/Markdown/MarkdownUtils.js.map +1 -1
  123. package/dist/components/Markdown/UserMentionModal.js +18 -18
  124. package/dist/components/Markdown/UserMentionModal.js.map +1 -1
  125. package/dist/components/Markdown/widget/MarkdownButton.js +3 -3
  126. package/dist/components/Markdown/widget/MarkdownButton.js.map +1 -1
  127. package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.d.ts.map +1 -1
  128. package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js +9 -8
  129. package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js.map +1 -1
  130. package/dist/components/Plot/SynapsePlot.css +1 -0
  131. package/dist/components/Plot/SynapsePlot.d.ts +2 -0
  132. package/dist/components/Plot/SynapsePlot.d.ts.map +1 -1
  133. package/dist/components/Plot/SynapsePlot.js +43 -39
  134. package/dist/components/Plot/SynapsePlot.js.map +1 -1
  135. package/dist/components/Plot/SynapsePlot.scss +8 -0
  136. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +1 -1
  137. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  138. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +114 -113
  139. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  140. package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.d.ts +1 -1
  141. package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.d.ts.map +1 -1
  142. package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.js.map +1 -1
  143. package/dist/components/Resources/Resources.Desktop.js +7 -7
  144. package/dist/components/Resources/Resources.Mobile.js +6 -6
  145. package/dist/components/SubsectionRowRenderer/SubsectionRowRenderer.js +3 -3
  146. package/dist/components/SustainabilityScorecard/SustainabilityScorecardSummary.js +10 -10
  147. package/dist/components/SynapseChat/SynapseChatInteraction.js +5 -5
  148. package/dist/components/SynapseForm/WarningDialog.d.ts +1 -0
  149. package/dist/components/SynapseForm/WarningDialog.d.ts.map +1 -1
  150. package/dist/components/SynapseForm/WarningDialog.js +18 -16
  151. package/dist/components/SynapseForm/WarningDialog.js.map +1 -1
  152. package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js +1 -1
  153. package/dist/components/SynapseSearchPageResults/HasAccessChip.js +1 -1
  154. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.d.ts.map +1 -1
  155. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +12 -13
  156. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
  157. package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +5 -5
  158. package/dist/components/SynapseTable/ExpandableTableDataCell.d.ts.map +1 -1
  159. package/dist/components/SynapseTable/ExpandableTableDataCell.js +3 -1
  160. package/dist/components/SynapseTable/ExpandableTableDataCell.js.map +1 -1
  161. package/dist/components/SynapseTable/SynapseTable.js +4 -4
  162. package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.d.ts.map +1 -1
  163. package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.js +122 -122
  164. package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.js.map +1 -1
  165. package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +5 -5
  166. package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js +1 -1
  167. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditor.js +1 -1
  168. package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js +1 -1
  169. package/dist/components/TableFeedCards/TableFeedCards.js +9 -9
  170. package/dist/components/TermsAndConditions/TermsAndConditionsItem.js +10 -10
  171. package/dist/components/TimelinePlot/TimelinePlotSpeciesSelector.js +9 -9
  172. package/dist/components/UserSearchBox/UserSearchBox.d.ts +23 -0
  173. package/dist/components/UserSearchBox/UserSearchBox.d.ts.map +1 -0
  174. package/dist/components/UserSearchBox/UserSearchBox.js +146 -0
  175. package/dist/components/UserSearchBox/UserSearchBox.js.map +1 -0
  176. package/dist/components/WikiMarkdownEditorButton/WikiMarkdownEditorButton.js +13 -13
  177. package/dist/components/WizardChoiceButton/WizardChoiceButton.js +3 -3
  178. package/dist/components/dataaccess/AccessHistoryDashboard.js +5 -5
  179. package/dist/components/dataaccess/AccessHistoryDashboard.js.map +1 -1
  180. package/dist/components/dataaccess/AccessRequirementDashboard.js +4 -4
  181. package/dist/components/dataaccess/AccessRequirementDashboard.js.map +1 -1
  182. package/dist/components/dataaccess/AccessSubmissionDashboard.js +1 -1
  183. package/dist/components/dataaccess/AccessSubmissionDashboard.js.map +1 -1
  184. package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +5 -5
  185. package/dist/components/dataaccess/UseAccessRequirementTable.js +3 -3
  186. package/dist/components/dataaccess/UseAccessRequirementTable.js.map +1 -1
  187. package/dist/components/doi/CreateOrUpdateDoiModal.js +1 -1
  188. package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +2 -2
  189. package/dist/components/entity/metadata/EntityModal.js +1 -1
  190. package/dist/components/entity/metadata/MetadataTable.js +1 -1
  191. package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +1 -1
  192. package/dist/components/entity/page/title_bar/EntityTitleBarVersionInfo.js +1 -1
  193. package/dist/components/entity/page/title_bar/TitleBarProperties.js +1 -1
  194. package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.d.ts.map +1 -1
  195. package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +27 -26
  196. package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
  197. package/dist/components/index.js +109 -107
  198. package/dist/components/index.js.map +1 -1
  199. package/dist/components/layout/InfiniteTableLayout.js +1 -1
  200. package/dist/components/styled/HoverPopover.css +1 -0
  201. package/dist/components/styled/HoverPopover.d.ts +28 -0
  202. package/dist/components/styled/HoverPopover.d.ts.map +1 -0
  203. package/dist/components/styled/HoverPopover.js +103 -0
  204. package/dist/components/styled/HoverPopover.js.map +1 -0
  205. package/dist/components/styled/HoverPopover.module.scss +9 -0
  206. package/dist/components/styled/HoverPopover.module.scss.js +10 -0
  207. package/dist/components/styled/HoverPopover.module.scss.js.map +1 -0
  208. package/dist/components/styled/index.d.ts +2 -0
  209. package/dist/components/styled/index.d.ts.map +1 -1
  210. package/dist/components/styled/index.js +11 -9
  211. package/dist/components/styled/index.js.map +1 -1
  212. package/dist/components/table/CsvPreview/CsvPreview.js +2 -2
  213. package/dist/components/table/CsvPreview/CsvPreviewDialog.js +2 -2
  214. package/dist/components/widgets/Range.js +1 -1
  215. package/dist/components/widgets/facet-nav/FacetNavPanel.d.ts.map +1 -1
  216. package/dist/components/widgets/facet-nav/FacetNavPanel.js +35 -32
  217. package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
  218. package/dist/components/widgets/facet-nav/PlotsContainer.d.ts +1 -1
  219. package/dist/components/widgets/facet-nav/PlotsContainer.d.ts.map +1 -1
  220. package/dist/components/widgets/facet-nav/PlotsContainer.js +69 -68
  221. package/dist/components/widgets/facet-nav/PlotsContainer.js.map +1 -1
  222. package/dist/components/widgets/facet-nav/useFacetPlots.d.ts.map +1 -1
  223. package/dist/components/widgets/facet-nav/useFacetPlots.js +24 -21
  224. package/dist/components/widgets/facet-nav/useFacetPlots.js.map +1 -1
  225. package/dist/components/widgets/query-filter/FacetFilterControls.js +3 -3
  226. package/dist/features/curator/GridPage/GridPage.js +2 -2
  227. package/dist/features/curator/GridPage/components/GridPageTitle.js +2 -2
  228. package/dist/features/entity/metadata-task/hooks/useMetadataTaskTable.js +1 -1
  229. package/dist/index.js +157 -155
  230. package/dist/index.js.map +1 -1
  231. package/dist/mocks/msw/handlers/accessRequirementHandlers.js +5 -5
  232. package/dist/mocks/msw/handlers/projectStorageHandlers.js +5 -5
  233. package/dist/mocks/msw/handlers/wikiHandlers.js +1 -1
  234. package/dist/mocks/msw/handlers.d.ts.map +1 -1
  235. package/dist/mocks/msw/handlers.js +67 -59
  236. package/dist/mocks/msw/handlers.js.map +1 -1
  237. package/dist/style/base/_core.scss +0 -1
  238. package/dist/style/components/_all.scss +0 -1
  239. package/dist/style/components/_entity-badge.scss +0 -2
  240. package/dist/style/components/_expandable_table_data.scss +3 -3
  241. package/dist/style/components/facet_nav/_facet-nav-panel.scss +3 -0
  242. package/dist/style/components/facet_nav/_facet-nav.scss +4 -0
  243. package/dist/style/main.css +1 -1
  244. package/dist/synapse-client/SynapseClient.js +118 -118
  245. package/dist/synapse-client/SynapseClient.js.map +1 -1
  246. package/dist/synapse-queries/auth/useOIDC.js +1 -1
  247. package/dist/synapse-queries/auth/useTwoFactorEnrollment.js +1 -1
  248. package/dist/synapse-queries/entity/index.js +6 -6
  249. package/dist/synapse-queries/grid/useEstablishWebsocketConnection.js +1 -1
  250. package/dist/synapse-queries/index.js +1 -1
  251. package/dist/synapse-queries/user/usePersonalAccessToken.js +1 -1
  252. package/dist/testutils/vitest.setup.js +10 -11
  253. package/dist/testutils/vitest.setup.js.map +1 -1
  254. package/dist/theme/DefaultTheme.js +1 -1
  255. package/dist/theme/ThemeProvider.d.ts +2 -1
  256. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  257. package/dist/theme/ThemeProvider.js +11 -10
  258. package/dist/theme/ThemeProvider.js.map +1 -1
  259. package/dist/theme/index.js +1 -1
  260. package/dist/theme/mergeTheme.js +1 -1
  261. package/dist/tsconfig.build.tsbuildinfo +1 -1
  262. package/dist/utils/AppUtils/AppUtils.js +1 -1
  263. package/dist/utils/functions/SanitizeHtmlUtils.d.ts.map +1 -1
  264. package/dist/utils/functions/SanitizeHtmlUtils.js +34 -40
  265. package/dist/utils/functions/SanitizeHtmlUtils.js.map +1 -1
  266. package/dist/utils/functions/deepLinkingUtils.js +10 -10
  267. package/dist/utils/functions/deepLinkingUtils.js.map +1 -1
  268. package/dist/utils/hooks/index.js +6 -6
  269. package/dist/utils/hooks/useDetectSSOCode.js +3 -3
  270. package/dist/utils/hooks/useGetEntityMetadata.js +1 -1
  271. package/dist/utils/hooks/useNativeSearchParams.d.ts.map +1 -1
  272. package/dist/utils/hooks/useNativeSearchParams.js +1 -1
  273. package/dist/utils/hooks/useNativeSearchParams.js.map +1 -1
  274. package/dist/utils/hooks/useOneSageURL.d.ts.map +1 -1
  275. package/dist/utils/hooks/useOneSageURL.js +15 -15
  276. package/dist/utils/hooks/useOneSageURL.js.map +1 -1
  277. package/dist/utils/hooks/useSourceAppConfigs.d.ts +1 -0
  278. package/dist/utils/hooks/useSourceAppConfigs.d.ts.map +1 -1
  279. package/dist/utils/hooks/useSourceAppConfigs.js +79 -77
  280. package/dist/utils/hooks/useSourceAppConfigs.js.map +1 -1
  281. package/dist/utils/index.js +4 -4
  282. package/package.json +14 -15
  283. package/dist/_virtual/index.js +0 -6
  284. package/dist/_virtual/index.js.map +0 -1
  285. package/dist/_virtual/index2.js +0 -5
  286. package/dist/_virtual/index2.js.map +0 -1
  287. package/dist/_virtual/index3.js +0 -5
  288. package/dist/_virtual/index3.js.map +0 -1
  289. package/dist/_virtual/index4.js +0 -5
  290. package/dist/_virtual/index4.js.map +0 -1
  291. package/dist/_virtual/index5.js +0 -5
  292. package/dist/_virtual/index5.js.map +0 -1
  293. package/dist/components/UserSearchBox/UserSearchBoxV2.d.ts +0 -21
  294. package/dist/components/UserSearchBox/UserSearchBoxV2.d.ts.map +0 -1
  295. package/dist/components/UserSearchBox/UserSearchBoxV2.js +0 -144
  296. package/dist/components/UserSearchBox/UserSearchBoxV2.js.map +0 -1
  297. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -53
  298. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js.map +0 -1
  299. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +0 -948
  300. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js.map +0 -1
  301. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -30
  302. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js.map +0 -1
  303. package/dist/node_modules/.pnpm/vite-plugin-node-polyfills@0.17.0_rollup@4.55.1_vite@7.3.1_@types_node@22.19.13_sass@1._2da6e8f78437c36f3eb7db51bdd4d89e/node_modules/vite-plugin-node-polyfills/shims/dist/index.js +0 -15
  304. package/dist/node_modules/.pnpm/vite-plugin-node-polyfills@0.17.0_rollup@4.55.1_vite@7.3.1_@types_node@22.19.13_sass@1._2da6e8f78437c36f3eb7db51bdd4d89e/node_modules/vite-plugin-node-polyfills/shims/dist/index.js.map +0 -1
  305. package/dist/style/components/_user-search-box.scss +0 -30
@@ -14,14 +14,14 @@ import "react";
14
14
  import "../../utils/context/SynapseContext.js";
15
15
  import "use-deep-compare-effect";
16
16
  import "@sage-bionetworks/synapse-types";
17
- import { Skeleton as N } from "@mui/material";
17
+ import { Skeleton as Q } from "@mui/material";
18
18
  import "../../utils/hooks/useCookiePreferences.js";
19
19
  import "../../utils/hooks/useSourceAppConfigs.js";
20
20
  import "universal-cookie";
21
21
  import "../../utils/AppUtils/session/ApplicationSessionContext.js";
22
22
  import "../../utils/context/FullContextProvider.js";
23
23
  import "../../utils/context/DocumentMetadataContext.js";
24
- import '../../style/components/_spinner.css';/* empty css */
24
+ import './SynapsePlot.css';import '../../style/components/_spinner.css';/* empty css */
25
25
  import "@tanstack/query-core";
26
26
  import "lodash-es/isEmpty";
27
27
  import "lodash-es/isEqual";
@@ -29,39 +29,41 @@ import "lodash-es/xorWith";
29
29
  import "react-router";
30
30
  import "@sage-bionetworks/synapse-client";
31
31
  import "../../utils/types/IsType.js";
32
- import { useGetFullTableQueryResults as Q } from "../../synapse-queries/entity/useGetQueryResultBundle.js";
33
- import { Plot as T } from "./Plot.js";
34
- const xt = (a) => {
35
- const { query: p } = a.synapsePlotWidgetParams, { selectedFacets: q, additionalFilters: w, onCustomPlotClick: u, queryContext: c } = a.customPlotParams ?? {}, P = {
32
+ import { useGetFullTableQueryResults as T } from "../../synapse-queries/entity/useGetQueryResultBundle.js";
33
+ import { Plot as U } from "./Plot.js";
34
+ /* empty css */
35
+ const qt = (a) => {
36
+ const { query: u } = a.synapsePlotWidgetParams, { selectedFacets: q, additionalFilters: P, onCustomPlotClick: c, queryContext: w } = a.customPlotParams ?? {}, R = {
36
37
  concreteType: "org.sagebionetworks.repo.model.table.QueryBundleRequest",
37
38
  partMask: M,
38
- entityId: L(p),
39
+ entityId: L(u),
39
40
  query: {
40
- sql: p,
41
+ sql: u,
41
42
  selectedFacets: q,
42
- additionalFilters: w
43
+ additionalFilters: P
43
44
  }
44
- }, { data: m, isLoading: R } = Q(P);
45
- if (R)
46
- return /* @__PURE__ */ s(N, { width: "100%", height: "200px" });
45
+ }, { data: m, isLoading: S } = T(R);
46
+ if (S)
47
+ return /* @__PURE__ */ s(Q, { width: "100%", height: "200px" });
47
48
  if (!m)
48
49
  return /* @__PURE__ */ s(g, {});
49
50
  const {
50
- title: S,
51
+ title: k,
51
52
  xtitle: y,
52
53
  ytitle: d,
53
- type: k,
54
+ type: v,
54
55
  xaxistype: f,
55
- showlegend: C,
56
- barmode: F,
57
- horizontal: n,
58
- displayModeBar: b
56
+ showlegend: b,
57
+ barmode: C,
58
+ horizontal: l,
59
+ displayModeBar: F,
60
+ hoverinfo: h
59
61
  } = a.synapsePlotWidgetParams, E = {
60
- displayModeBar: b
62
+ displayModeBar: F
61
63
  }, e = {
62
- showlegend: C,
63
- title: S,
64
- barmode: F
64
+ showlegend: b,
65
+ title: k,
66
+ barmode: C
65
67
  };
66
68
  y && (e.xaxis = {
67
69
  title: y
@@ -71,45 +73,47 @@ const xt = (a) => {
71
73
  }), d && (e.yaxis = {
72
74
  title: d
73
75
  });
74
- const r = [], v = n ? "h" : "v", l = m.queryResult?.queryResults.headers ?? [], h = m.queryResult?.queryResults.rows ?? [];
75
- if (l.length == 0 || h.length == 0)
76
+ const r = [], N = l ? "h" : "v", n = m.queryResult?.queryResults.headers ?? [], x = m.queryResult?.queryResults.rows ?? [];
77
+ if (n.length == 0 || x.length == 0)
76
78
  return /* @__PURE__ */ s(g, {});
77
- for (let t = 0; t < l.length - 1; t += 1)
79
+ for (let t = 0; t < n.length - 1; t += 1)
78
80
  r[t] = {
79
- orientation: v,
80
- name: l[t + 1].name,
81
- type: k,
81
+ orientation: N,
82
+ name: n[t + 1].name,
83
+ type: v,
82
84
  x: [],
83
85
  y: [],
84
- customdata: []
86
+ customdata: [],
87
+ ...h !== void 0 && { hoverinfo: h }
85
88
  };
86
- for (const t of h)
89
+ for (const t of x)
87
90
  for (let o = 1; o < t.values.length; o += 1) {
88
91
  const i = t.values, A = r[o - 1].x, B = r[o - 1].y, D = r[o - 1].customdata;
89
- A.push(n ? i[o] : i[0]), B.push(n ? i[0] : i[o]), D.push(JSON.stringify(t));
92
+ A.push(l ? i[o] : i[0]), B.push(l ? i[0] : i[o]), D.push(JSON.stringify(t));
90
93
  }
91
- let x;
92
- return u && c && (x = (t) => {
94
+ let p;
95
+ return c && (p = (t) => {
93
96
  const o = JSON.parse(
94
97
  t.points[0].customdata
95
98
  );
96
- u({
99
+ c({
97
100
  row: o,
98
- queryContext: c
101
+ queryContext: w
99
102
  });
100
103
  }), /* @__PURE__ */ s(
101
- T,
104
+ U,
102
105
  {
103
106
  style: { width: "100%", height: "450px" },
107
+ className: p ? "SynapsePlot--clickable" : void 0,
104
108
  layout: e,
105
109
  data: r,
106
110
  config: E,
107
- onClick: x
111
+ onClick: p
108
112
  }
109
113
  );
110
114
  };
111
115
  export {
112
- xt as SynapsePlot,
113
- xt as default
116
+ qt as SynapsePlot,
117
+ qt as default
114
118
  };
115
119
  //# sourceMappingURL=SynapsePlot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SynapsePlot.js","sources":["../../../src/components/Plot/SynapsePlot.tsx"],"sourcesContent":["import React from 'react'\nimport { useGetFullTableQueryResults } from '@/synapse-queries'\nimport { SynapseConstants } from '@/utils'\nimport { parseEntityIdFromSqlStatement } from '@/utils/functions/SqlFunctions'\nimport { Skeleton } from '@mui/material'\nimport {\n FacetColumnRequest,\n QueryBundleRequest,\n QueryFilter,\n Row,\n} from '@sage-bionetworks/synapse-types'\nimport Plotly, { AxisType, PlotType } from 'plotly.js-basic-dist'\nimport { QueryContextType } from '../QueryContext'\nimport { QueryWrapperSynapsePlotRowClickEvent } from '../QueryWrapperPlotNav/QueryWrapperSynapsePlot'\nimport Plot from './Plot'\n\nexport type SynapsePlotWidgetParams = {\n query: string //sql string\n title?: string //plot title\n xtitle?: Plotly.LayoutAxis['title'] // x-axis title\n ytitle?: Plotly.LayoutAxis['title'] // y-axis title\n type: PlotType\n xaxistype?: AxisType\n showlegend?: Plotly.Layout['showlegend'] // sets the legend visibility\n horizontal?: boolean // sets the if a bar chart should be horizontal or vertical\n barmode?: Plotly.Layout['barmode'] // Plotly barmode\n displayModeBar?: Plotly.Config['displayModeBar'] // sets the modebar visibility\n}\n\n// QueryWrapperPlotNav customPlot parameters, undefined otherwise\nexport type QueryWrapperPlotNavCustomPlotParams = {\n selectedFacets: FacetColumnRequest[]\n additionalFilters: QueryFilter[]\n onCustomPlotClick?: (event: QueryWrapperSynapsePlotRowClickEvent) => void\n queryContext?: QueryContextType\n}\nexport type SynapsePlotProps = {\n synapsePlotWidgetParams: SynapsePlotWidgetParams\n customPlotParams?: QueryWrapperPlotNavCustomPlotParams\n}\n\nexport const SynapsePlot = (props: SynapsePlotProps): React.ReactNode => {\n const { query } = props.synapsePlotWidgetParams\n const { selectedFacets, additionalFilters, onCustomPlotClick, queryContext } =\n props.customPlotParams ?? {}\n const queryRequest: QueryBundleRequest = {\n concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest',\n partMask: SynapseConstants.BUNDLE_MASK_QUERY_RESULTS,\n entityId: parseEntityIdFromSqlStatement(query),\n query: {\n sql: query,\n selectedFacets,\n additionalFilters,\n },\n }\n const { data: queryData, isLoading } =\n useGetFullTableQueryResults(queryRequest)\n if (isLoading) {\n return <Skeleton width={'100%'} height={'200px'} />\n }\n if (!queryData) {\n return <></>\n }\n\n const {\n title,\n xtitle,\n ytitle,\n type,\n xaxistype,\n showlegend,\n barmode,\n horizontal,\n displayModeBar,\n } = props.synapsePlotWidgetParams\n\n const config: Partial<Plotly.Config> = {\n displayModeBar,\n }\n const layout: Partial<Plotly.Layout> = {\n showlegend: showlegend,\n title,\n barmode: barmode,\n }\n if (xtitle) {\n layout.xaxis = {\n title: xtitle,\n }\n }\n if (xaxistype) {\n layout.xaxis = {\n ...layout.xaxis,\n type: xaxistype,\n }\n }\n if (ytitle) {\n layout.yaxis = {\n title: ytitle,\n }\n }\n // init plot_data\n const plotData: Partial<Plotly.PlotData>[] = []\n const orientation = horizontal ? 'h' : 'v'\n const headers = queryData.queryResult?.queryResults.headers ?? []\n const rows = queryData.queryResult?.queryResults.rows ?? []\n if (headers.length == 0 || rows.length == 0) {\n return <></>\n }\n for (let i = 0; i < headers.length - 1; i += 1) {\n // make an entry for each set of data points\n plotData[i] = {\n orientation,\n name: headers[i + 1].name,\n type: type,\n x: [],\n y: [],\n customdata: [],\n }\n }\n // grab all the data\n for (const row of rows) {\n for (let j = 1; j < row.values.length; j += 1) {\n // create pairs of data\n const rowValues = row.values\n const xArray = plotData[j - 1].x as Plotly.Datum[]\n const yArray = plotData[j - 1].y as Plotly.Datum[]\n const customdata = plotData[j - 1].customdata as Plotly.Datum[]\n\n xArray.push(horizontal ? rowValues[j] : rowValues[0])\n yArray.push(horizontal ? rowValues[0] : rowValues[j])\n customdata.push(JSON.stringify(row))\n }\n }\n let onPlotClick:\n | ((event: Readonly<Plotly.PlotMouseEvent>) => void)\n | undefined\n if (onCustomPlotClick && queryContext) {\n onPlotClick = eventData => {\n const selectedRow = JSON.parse(\n eventData.points[0].customdata as string,\n ) as Row\n onCustomPlotClick({\n row: selectedRow,\n queryContext,\n })\n }\n }\n\n return (\n <Plot\n style={{ width: '100%', height: '450px' }}\n layout={layout}\n data={plotData}\n config={config}\n onClick={onPlotClick}\n // TODO: if we want to change the cursor to pointer on hovering over a point,\n // we could add a handler for onHover (if there's an onClick handler), and add/remove a class to the plot\n />\n )\n}\n\nexport default SynapsePlot\n"],"names":["SynapsePlot","props","query","selectedFacets","additionalFilters","onCustomPlotClick","queryContext","queryRequest","SynapseConstants.BUNDLE_MASK_QUERY_RESULTS","parseEntityIdFromSqlStatement","queryData","isLoading","useGetFullTableQueryResults","jsx","Skeleton","Fragment","title","xtitle","ytitle","type","xaxistype","showlegend","barmode","horizontal","displayModeBar","config","layout","plotData","orientation","headers","rows","i","row","j","rowValues","xArray","yArray","customdata","onPlotClick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AAAA,EAAA;AAKf;"}
1
+ {"version":3,"file":"SynapsePlot.js","sources":["../../../src/components/Plot/SynapsePlot.tsx"],"sourcesContent":["import React from 'react'\nimport { useGetFullTableQueryResults } from '@/synapse-queries'\nimport { SynapseConstants } from '@/utils'\nimport { parseEntityIdFromSqlStatement } from '@/utils/functions/SqlFunctions'\nimport { Skeleton } from '@mui/material'\nimport {\n FacetColumnRequest,\n QueryBundleRequest,\n QueryFilter,\n Row,\n} from '@sage-bionetworks/synapse-types'\nimport Plotly, { AxisType, PlotType } from 'plotly.js-basic-dist'\nimport { QueryContextType } from '../QueryContext'\nimport { QueryWrapperSynapsePlotRowClickEvent } from '../QueryWrapperPlotNav/QueryWrapperSynapsePlot'\nimport Plot from './Plot'\nimport './SynapsePlot.scss'\n\nexport type SynapsePlotWidgetParams = {\n query: string //sql string\n title?: string //plot title\n xtitle?: Plotly.LayoutAxis['title'] // x-axis title\n ytitle?: Plotly.LayoutAxis['title'] // y-axis title\n type: PlotType\n xaxistype?: AxisType\n showlegend?: Plotly.Layout['showlegend'] // sets the legend visibility\n horizontal?: boolean // sets the if a bar chart should be horizontal or vertical\n barmode?: Plotly.Layout['barmode'] // Plotly barmode\n displayModeBar?: Plotly.Config['displayModeBar'] // sets the modebar visibility\n hoverinfo?: Plotly.PlotData['hoverinfo'] // sets the hover info\n}\n\n// QueryWrapperPlotNav customPlot parameters, undefined otherwise\nexport type QueryWrapperPlotNavCustomPlotParams = {\n selectedFacets: FacetColumnRequest[]\n additionalFilters: QueryFilter[]\n onCustomPlotClick?: (event: QueryWrapperSynapsePlotRowClickEvent) => void\n queryContext?: QueryContextType\n}\nexport type SynapsePlotProps = {\n synapsePlotWidgetParams: SynapsePlotWidgetParams\n customPlotParams?: QueryWrapperPlotNavCustomPlotParams\n}\n\nexport const SynapsePlot = (props: SynapsePlotProps): React.ReactNode => {\n const { query } = props.synapsePlotWidgetParams\n const { selectedFacets, additionalFilters, onCustomPlotClick, queryContext } =\n props.customPlotParams ?? {}\n const queryRequest: QueryBundleRequest = {\n concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest',\n partMask: SynapseConstants.BUNDLE_MASK_QUERY_RESULTS,\n entityId: parseEntityIdFromSqlStatement(query),\n query: {\n sql: query,\n selectedFacets,\n additionalFilters,\n },\n }\n const { data: queryData, isLoading } =\n useGetFullTableQueryResults(queryRequest)\n if (isLoading) {\n return <Skeleton width={'100%'} height={'200px'} />\n }\n if (!queryData) {\n return <></>\n }\n\n const {\n title,\n xtitle,\n ytitle,\n type,\n xaxistype,\n showlegend,\n barmode,\n horizontal,\n displayModeBar,\n hoverinfo,\n } = props.synapsePlotWidgetParams\n\n const config: Partial<Plotly.Config> = {\n displayModeBar,\n }\n const layout: Partial<Plotly.Layout> = {\n showlegend: showlegend,\n title,\n barmode: barmode,\n }\n if (xtitle) {\n layout.xaxis = {\n title: xtitle,\n }\n }\n if (xaxistype) {\n layout.xaxis = {\n ...layout.xaxis,\n type: xaxistype,\n }\n }\n if (ytitle) {\n layout.yaxis = {\n title: ytitle,\n }\n }\n // init plot_data\n const plotData: Partial<Plotly.PlotData>[] = []\n const orientation = horizontal ? 'h' : 'v'\n const headers = queryData.queryResult?.queryResults.headers ?? []\n const rows = queryData.queryResult?.queryResults.rows ?? []\n if (headers.length == 0 || rows.length == 0) {\n return <></>\n }\n for (let i = 0; i < headers.length - 1; i += 1) {\n // make an entry for each set of data points\n plotData[i] = {\n orientation,\n name: headers[i + 1].name,\n type: type,\n x: [],\n y: [],\n customdata: [],\n ...(hoverinfo !== undefined && { hoverinfo }),\n }\n }\n // grab all the data\n for (const row of rows) {\n for (let j = 1; j < row.values.length; j += 1) {\n // create pairs of data\n const rowValues = row.values\n const xArray = plotData[j - 1].x as Plotly.Datum[]\n const yArray = plotData[j - 1].y as Plotly.Datum[]\n const customdata = plotData[j - 1].customdata as Plotly.Datum[]\n\n xArray.push(horizontal ? rowValues[j] : rowValues[0])\n yArray.push(horizontal ? rowValues[0] : rowValues[j])\n customdata.push(JSON.stringify(row))\n }\n }\n let onPlotClick:\n | ((event: Readonly<Plotly.PlotMouseEvent>) => void)\n | undefined\n if (onCustomPlotClick) {\n onPlotClick = eventData => {\n const selectedRow = JSON.parse(\n eventData.points[0].customdata as string,\n ) as Row\n onCustomPlotClick({\n row: selectedRow,\n queryContext,\n })\n }\n }\n\n return (\n <Plot\n style={{ width: '100%', height: '450px' }}\n className={onPlotClick ? 'SynapsePlot--clickable' : undefined}\n layout={layout}\n data={plotData}\n config={config}\n onClick={onPlotClick}\n />\n )\n}\n\nexport default SynapsePlot\n"],"names":["SynapsePlot","props","query","selectedFacets","additionalFilters","onCustomPlotClick","queryContext","queryRequest","SynapseConstants.BUNDLE_MASK_QUERY_RESULTS","parseEntityIdFromSqlStatement","queryData","isLoading","useGetFullTableQueryResults","jsx","Skeleton","Fragment","title","xtitle","ytitle","type","xaxistype","showlegend","barmode","horizontal","displayModeBar","hoverinfo","config","layout","plotData","orientation","headers","rows","i","row","j","rowValues","xArray","yArray","customdata","onPlotClick","eventData","selectedRow","Plot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CO,MAAMA,KAAc,CAACC,MAA6C;AACvE,QAAM,EAAE,OAAAC,MAAUD,EAAM,yBAClB,EAAE,gBAAAE,GAAgB,mBAAAC,GAAmB,mBAAAC,GAAmB,cAAAC,MAC5DL,EAAM,oBAAoB,CAAA,GACtBM,IAAmC;AAAA,IACvC,cAAc;AAAA,IACd,UAAUC;AAAAA,IACV,UAAUC,EAA8BP,CAAK;AAAA,IAC7C,OAAO;AAAA,MACL,KAAKA;AAAA,MACL,gBAAAC;AAAA,MACA,mBAAAC;AAAA,IAAA;AAAA,EACF,GAEI,EAAE,MAAMM,GAAW,WAAAC,EAAA,IACvBC,EAA4BL,CAAY;AAC1C,MAAII;AACF,WAAO,gBAAAE,EAACC,GAAA,EAAS,OAAO,QAAQ,QAAQ,SAAS;AAEnD,MAAI,CAACJ;AACH,WAAO,gBAAAG,EAA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,EAASM,IAAI,CAAC,EAAE,GACzBG,IAAST,EAASM,IAAI,CAAC,EAAE,GACzBI,IAAaV,EAASM,IAAI,CAAC,EAAE;AAEnC,MAAAE,EAAO,KAAKb,IAAaY,EAAUD,CAAC,IAAIC,EAAU,CAAC,CAAC,GACpDE,EAAO,KAAKd,IAAaY,EAAU,CAAC,IAAIA,EAAUD,CAAC,CAAC,GACpDI,EAAW,KAAK,KAAK,UAAUL,CAAG,CAAC;AAAA,IACrC;AAEF,MAAIM;AAGJ,SAAIlC,MACFkC,IAAc,CAAAC,MAAa;AACzB,UAAMC,IAAc,KAAK;AAAA,MACvBD,EAAU,OAAO,CAAC,EAAE;AAAA,IAAA;AAEtB,IAAAnC,EAAkB;AAAA,MAChB,KAAKoC;AAAA,MACL,cAAAnC;AAAA,IAAA,CACD;AAAA,EACH,IAIA,gBAAAO;AAAA,IAAC6B;AAAA,IAAA;AAAA,MACC,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAA;AAAA,MAChC,WAAWH,IAAc,2BAA2B;AAAA,MACpD,QAAAZ;AAAA,MACA,MAAMC;AAAA,MACN,QAAAF;AAAA,MACA,SAASa;AAAA,IAAA;AAAA,EAAA;AAGf;"}
@@ -0,0 +1,8 @@
1
+ .SynapsePlot--clickable {
2
+ .main-svg {
3
+ overflow: visible !important;
4
+ .draglayer {
5
+ cursor: pointer !important;
6
+ }
7
+ }
8
+ }
@@ -1,7 +1,7 @@
1
1
  import { jsx as O } from "react/jsx-runtime";
2
2
  import { getDisplayValue as Z } from "../../utils/functions/getDataFromFromStorage.js";
3
3
  import { unCamelCase as ee } from "../../utils/functions/unCamelCase.js";
4
- import { useMutuallyExclusiveState as oe } from "../../utils/hooks/useMutuallyExclusiveState.js";
4
+ import oe from "../../utils/hooks/useMutuallyExclusiveState.js";
5
5
  import { useQuery as te } from "@tanstack/react-query";
6
6
  import { useMemo as u, useState as t, useEffect as se, useCallback as c } from "react";
7
7
  import { useDeepCompareMemoize as le } from "use-deep-compare-effect";
@@ -1 +1 @@
1
- {"version":3,"file":"QueryWrapperPlotNav.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapperPlotNav/QueryWrapperPlotNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAA;AAiBlG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAItE,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAmB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAGL,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAgB,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAGjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAiB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAElE,OAAyB,EACvB,qBAAqB,EACrB,aAAa,EACd,MAAM,mDAAmD,CAAA;AAG1D,OAAuB,EACrB,mBAAmB,EACpB,MAAM,qCAAqC,CAAA;AAC5C,OAA4B,EAC1B,wBAAwB,EACzB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAGxE,eAAO,MAAM,0BAA0B,EAAE,MAAgC,CAAA;AACzE,eAAO,MAAM,2BAA2B,EAAE,MAA+B,CAAA;AAEzE,eAAO,MAAM,qBAAqB,EAAE,MAA0B,CAAA;AAE9D,KAAK,2BAA2B,GAAG;IACjC,2HAA2H;IAC3H,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iLAAiL;IACjL,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,mFAAmF;IACnF,aAAa,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,2GAA2G;IAC3G,yBAAyB,CAAC,EAAE,CAAC,wBAAwB,EAAE,MAAM,KAAK,IAAI,CAAA;IAC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pC,mBAAmB,GACnB,qBAAqB,GACrB,sBAAsB,GACtB,2BAA2B,GAC3B,kCAAkC,CACrC,GACD,IAAI,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAA;AAEnD,MAAM,MAAM,wBAAwB,GAAG,6BAA6B,GAClE,mBAAmB,GACnB,2BAA2B,CAAA;AAkL7B,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAmH1E"}
@@ -1,23 +1,23 @@
1
- import { jsx as e, jsxs as P, Fragment as b } from "react/jsx-runtime";
2
- import { useMemo as M, useState as R, createElement as x } from "react";
3
- import B from "../download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js";
4
- import { useGetAddToDownloadListRequestForCurrentQuery as v } from "../QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.js";
5
- import { NoContentPlaceholderType as O } from "../SynapseTable/NoContentPlaceholderType.js";
1
+ import { jsx as t, jsxs as P, Fragment as b } from "react/jsx-runtime";
2
+ import { useMemo as M, useState as R, createElement as B, Suspense as x } from "react";
3
+ import v from "../download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js";
4
+ import { useGetAddToDownloadListRequestForCurrentQuery as O } from "../QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.js";
5
+ import { NoContentPlaceholderType as I } from "../SynapseTable/NoContentPlaceholderType.js";
6
6
  import "../../synapse-client/SynapseClient.js";
7
7
  import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
8
8
  import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
9
9
  import "@sage-bionetworks/synapse-client/util/SynapseClientError";
10
- import { parseEntityIdAndVersionFromSqlStatement as I, getAdditionalFilters as K } from "../../utils/functions/SqlFunctions.js";
11
- import { isTable as W } from "../../utils/functions/EntityTypeUtils.js";
12
- import { DEFAULT_PAGE_SIZE as Y, BUNDLE_MASK_QUERY_RESULTS as V, BUNDLE_MASK_QUERY_COUNT as J, BUNDLE_MASK_QUERY_SELECT_COLUMNS as $, BUNDLE_MASK_QUERY_MAX_ROWS_PER_PAGE as G, BUNDLE_MASK_QUERY_COLUMN_MODELS as k, BUNDLE_MASK_QUERY_FACETS as H, BUNDLE_MASK_SUM_FILES_SIZE_BYTES as j, BUNDLE_MASK_LAST_UPDATED_ON as z } from "../../utils/SynapseConstants.js";
10
+ import { parseEntityIdAndVersionFromSqlStatement as W, getAdditionalFilters as K } from "../../utils/functions/SqlFunctions.js";
11
+ import { isTable as Y } from "../../utils/functions/EntityTypeUtils.js";
12
+ import { DEFAULT_PAGE_SIZE as V, BUNDLE_MASK_QUERY_RESULTS as J, BUNDLE_MASK_QUERY_COUNT as $, BUNDLE_MASK_QUERY_SELECT_COLUMNS as k, BUNDLE_MASK_QUERY_MAX_ROWS_PER_PAGE as G, BUNDLE_MASK_QUERY_COLUMN_MODELS as H, BUNDLE_MASK_QUERY_FACETS as j, BUNDLE_MASK_SUM_FILES_SIZE_BYTES as z, BUNDLE_MASK_LAST_UPDATED_ON as X } from "../../utils/SynapseConstants.js";
13
13
  import "lodash-es";
14
14
  import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
15
- import { useQuery as X } from "@tanstack/react-query";
15
+ import { useQuery as Z } from "@tanstack/react-query";
16
16
  import "../../utils/PermissionLevelToAccessType.js";
17
17
  import "../../utils/context/SynapseContext.js";
18
18
  import "use-deep-compare-effect";
19
19
  import "@sage-bionetworks/synapse-types";
20
- import { Box as Z } from "@mui/material";
20
+ import { Box as ee } from "@mui/material";
21
21
  import "../../utils/hooks/useCookiePreferences.js";
22
22
  import "../../utils/hooks/useSourceAppConfigs.js";
23
23
  import "universal-cookie";
@@ -32,31 +32,32 @@ import "lodash-es/xorWith";
32
32
  import "react-router";
33
33
  import "@sage-bionetworks/synapse-client";
34
34
  import "../../utils/types/IsType.js";
35
- import { useGetEntity as tt } from "../../synapse-queries/entity/useEntity.js";
36
- import { useAtomValue as et } from "jotai";
37
- import { SynapseErrorBoundary as ot } from "../error/ErrorBanner.js";
38
- import { FullTextSearch as rt } from "../FullTextSearch/FullTextSearch.js";
39
- import { ModalDownload as it } from "../ModalDownload/ModalDownload.js";
40
- import { useQueryContext as nt } from "../QueryContext/QueryContext.js";
41
- import { QueryVisualizationWrapper as at } from "../QueryVisualizationWrapper/QueryVisualizationWrapper.js";
42
- import { QueryVisualizationContextConsumer as st } from "../QueryVisualizationWrapper/QueryVisualizationContext.js";
43
- import { QueryWrapper as lt } from "../QueryWrapper/QueryWrapper.js";
44
- import { isRowSelectionVisibleAtom as mt } from "../QueryWrapper/TableRowSelectionState.js";
45
- import { QueryWrapperErrorBoundary as ut } from "../QueryWrapperErrorBoundary.js";
46
- import dt from "../SynapseTable/SearchV2.js";
47
- import { SqlEditor as ct } from "../SynapseTable/SqlEditor.js";
48
- import St from "../SynapseTable/TopLevelControls/TopLevelControls.js";
49
- import { CustomControls as ft } from "../SynapseTable/CustomControls/CustomControls.js";
50
- import Ct from "../TotalQueryResults.js";
51
- import ht from "../widgets/facet-nav/PlotsContainer.js";
52
- import pt from "../widgets/query-filter/FacetFilterControls.js";
53
- import { RowSetView as yt } from "./RowSetView.js";
54
- const Et = "isShowingFacetFilters", _t = "isHidingFacetFilters", Ft = "hasSelectedRows";
55
- function Lt(t) {
35
+ import { useGetEntity as te } from "../../synapse-queries/entity/useEntity.js";
36
+ import { useAtomValue as oe } from "jotai";
37
+ import { SynapseErrorBoundary as re } from "../error/ErrorBanner.js";
38
+ import { FullTextSearch as ie } from "../FullTextSearch/FullTextSearch.js";
39
+ import { ModalDownload as ne } from "../ModalDownload/ModalDownload.js";
40
+ import { useQueryContext as ae } from "../QueryContext/QueryContext.js";
41
+ import { QueryVisualizationWrapper as se } from "../QueryVisualizationWrapper/QueryVisualizationWrapper.js";
42
+ import { QueryVisualizationContextConsumer as le } from "../QueryVisualizationWrapper/QueryVisualizationContext.js";
43
+ import { QueryWrapper as me } from "../QueryWrapper/QueryWrapper.js";
44
+ import { isRowSelectionVisibleAtom as ue } from "../QueryWrapper/TableRowSelectionState.js";
45
+ import { QueryWrapperErrorBoundary as de } from "../QueryWrapperErrorBoundary.js";
46
+ import ce from "../SynapseTable/SearchV2.js";
47
+ import { SqlEditor as Se } from "../SynapseTable/SqlEditor.js";
48
+ import fe from "../SynapseTable/TopLevelControls/TopLevelControls.js";
49
+ import { CustomControls as Ce } from "../SynapseTable/CustomControls/CustomControls.js";
50
+ import pe from "../TotalQueryResults.js";
51
+ import he from "../widgets/facet-nav/PlotsContainer.js";
52
+ import ye from "../widgets/query-filter/FacetFilterControls.js";
53
+ import { RowSetView as Ee } from "./RowSetView.js";
54
+ import _e from "../QueryWrapper/QueryWrapperLoadingScreen.js";
55
+ const Fe = "isShowingFacetFilters", Le = "isHidingFacetFilters", Qe = "hasSelectedRows";
56
+ function Te(e) {
56
57
  const {
57
58
  tableConfiguration: r,
58
- name: h,
59
- cardConfiguration: p,
59
+ name: p,
60
+ cardConfiguration: h,
60
61
  facetsToPlot: l,
61
62
  availableFacets: y,
62
63
  initialExpandedFacetControls: E,
@@ -70,48 +71,48 @@ function Lt(t) {
70
71
  remount: S,
71
72
  isFullTextSearchEnabled: f,
72
73
  customPlots: L,
73
- initialLimit: T,
74
- initialPlotType: n,
74
+ initialLimit: Q,
75
+ initialPlotTypeByFacetColumnName: n,
75
76
  hideTopLevelControls: a
76
- } = t, o = nt(), [A, Q] = R(!1), { hasFacetedSelectColumn: w, queryMetadataQueryOptions: q } = o, { isLoading: g } = X(
77
- q
78
- ), U = et(mt), C = o.currentQueryRequest, D = C?.query.selectedFacets !== void 0 && C.query.selectedFacets.length > 0 || C?.query.additionalFilters !== void 0 && C?.query.additionalFilters.length > 0, N = v();
79
- return /* @__PURE__ */ e(st, { children: (s) => {
77
+ } = e, o = ae(), [T, A] = R(!1), { hasFacetedSelectColumn: w, queryMetadataQueryOptions: g } = o, { isLoading: q } = Z(
78
+ g
79
+ ), U = oe(ue), C = o.currentQueryRequest, D = C?.query.selectedFacets !== void 0 && C.query.selectedFacets.length > 0 || C?.query.additionalFilters !== void 0 && C?.query.additionalFilters.length > 0, N = O();
80
+ return /* @__PURE__ */ t(le, { children: (s) => {
80
81
  if (s === void 0)
81
82
  throw new Error(
82
83
  "No queryVisualizationContext found when using QueryVisualizationContextConsumer"
83
84
  );
84
- return /* @__PURE__ */ e(
85
- Z,
85
+ return /* @__PURE__ */ t(
86
+ ee,
86
87
  {
87
- className: `QueryWrapperPlotNav ${s.showFacetFilter ? Et : _t} ${U ? Ft : ""} ${a ? "isHidingTopLevelControls" : ""}`,
88
+ className: `QueryWrapperPlotNav ${s.showFacetFilter ? Fe : Le} ${U ? Qe : ""} ${a ? "isHidingTopLevelControls" : ""}`,
88
89
  sx: {
89
90
  "*": {
90
- cursor: g ? "wait" : void 0
91
+ cursor: q ? "wait" : void 0
91
92
  }
92
93
  },
93
- children: /* @__PURE__ */ P(ut, { children: [
94
- f ? /* @__PURE__ */ e(rt, { ftsConfig: u?.ftsConfig }) : /* @__PURE__ */ e(
95
- dt,
94
+ children: /* @__PURE__ */ P(de, { children: [
95
+ f ? /* @__PURE__ */ t(ie, { ftsConfig: u?.ftsConfig }) : /* @__PURE__ */ t(
96
+ ce,
96
97
  {
97
98
  ...u,
98
99
  queryContext: o,
99
100
  queryVisualizationContext: s
100
101
  }
101
102
  ),
102
- /* @__PURE__ */ e(ct, {}),
103
- s.showDownloadConfirmation && /* @__PURE__ */ e(
104
- B,
103
+ /* @__PURE__ */ t(Se, {}),
104
+ s.showDownloadConfirmation && /* @__PURE__ */ t(
105
+ v,
105
106
  {
106
107
  addToDownloadListRequest: N,
107
108
  onClose: () => s.setShowDownloadConfirmation(!1)
108
109
  }
109
110
  ),
110
- !a && /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(
111
- St,
111
+ !a && /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
112
+ fe,
112
113
  {
113
114
  showColumnSelection: r !== void 0,
114
- name: h,
115
+ name: p,
115
116
  hideDownload: i,
116
117
  hideQueryCount: _,
117
118
  hideFacetFilterControl: !w,
@@ -122,50 +123,50 @@ function Lt(t) {
122
123
  customControls: c
123
124
  }
124
125
  ) }),
125
- w && /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
126
- pt,
126
+ w && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
127
+ ye,
127
128
  {
128
129
  availableFacets: y,
129
130
  initialExpandedFacetControls: E
130
131
  }
131
132
  ) }),
132
- /* @__PURE__ */ e(
133
- Ct,
133
+ /* @__PURE__ */ t(
134
+ pe,
134
135
  {
135
136
  frontText: "",
136
137
  endText: D ? "filtered by" : "",
137
138
  hideIfUnfiltered: !0
138
139
  }
139
140
  ),
140
- /* @__PURE__ */ e(
141
- ft,
141
+ /* @__PURE__ */ t(
142
+ Ce,
142
143
  {
143
144
  customControls: c,
144
145
  remount: S
145
146
  }
146
147
  ),
147
- /* @__PURE__ */ e(
148
- ht,
148
+ /* @__PURE__ */ t(
149
+ he,
149
150
  {
150
151
  facetsToPlot: l,
151
152
  customPlots: L,
152
- initialPlotType: n
153
+ initialPlotTypeByFacetColumnName: n
153
154
  }
154
155
  ),
155
- /* @__PURE__ */ e(
156
- yt,
156
+ /* @__PURE__ */ t(
157
+ Ee,
157
158
  {
158
159
  tableConfiguration: r,
159
160
  hideDownload: i,
160
- cardConfiguration: p,
161
- initialLimit: T
161
+ cardConfiguration: h,
162
+ initialLimit: Q
162
163
  }
163
164
  ),
164
- A && /* @__PURE__ */ e(
165
- it,
165
+ T && /* @__PURE__ */ t(
166
+ ne,
166
167
  {
167
168
  getLastQueryRequest: o?.getCurrentQueryRequest,
168
- onClose: () => Q(!1)
169
+ onClose: () => A(!1)
169
170
  }
170
171
  )
171
172
  ] })
@@ -173,92 +174,92 @@ function Lt(t) {
173
174
  );
174
175
  } });
175
176
  }
176
- function Le(t) {
177
+ function At(e) {
177
178
  const {
178
179
  sql: r,
179
- tableConfiguration: h,
180
- isInfinite: p = !h,
181
- limit: l = Y,
180
+ tableConfiguration: p,
181
+ isInfinite: h = !p,
182
+ limit: l = V,
182
183
  showLastUpdatedOn: y,
183
184
  unitDescription: E,
184
185
  additionalFiltersSessionStorageKey: i,
185
186
  helpConfiguration: _,
186
187
  customPlots: m,
187
188
  enabledExternalAnalysisPlatforms: F
188
- } = t, u = t.query?.sql ?? r ?? "", { entityId: d, versionNumber: c } = I(u), S = M(() => {
189
- if (t.query)
190
- return t.query;
191
- if (t.initQueryJson)
192
- return JSON.parse(t.initQueryJson);
189
+ } = e, u = e.query?.sql ?? r ?? "", { entityId: d, versionNumber: c } = W(u), S = M(() => {
190
+ if (e.query)
191
+ return e.query;
192
+ if (e.initQueryJson)
193
+ return JSON.parse(e.initQueryJson);
193
194
  {
194
- const Q = K(
195
- t.searchParams,
196
- t.sqlOperator,
195
+ const A = K(
196
+ e.searchParams,
197
+ e.sqlOperator,
197
198
  i
198
199
  );
199
200
  return {
200
201
  sql: r,
201
- additionalFilters: Q,
202
+ additionalFilters: A,
202
203
  limit: l,
203
204
  offset: 0
204
205
  };
205
206
  }
206
207
  }, [
207
- t.query,
208
- t.initQueryJson,
209
- t.searchParams,
210
- t.sqlOperator,
208
+ e.query,
209
+ e.initQueryJson,
210
+ e.searchParams,
211
+ e.sqlOperator,
211
212
  i,
212
213
  r,
213
214
  l
214
- ]), [f, L] = R(1), T = () => {
215
+ ]), [f, L] = R(1), Q = () => {
215
216
  L(f + 1);
216
- }, { data: n } = tt(d, c), a = {
217
+ }, { data: n } = te(d, c), a = {
217
218
  entityId: d ?? "",
218
219
  concreteType: "org.sagebionetworks.repo.model.table.QueryBundleRequest",
219
- partMask: V | J | $ | G | k | H | j | z,
220
+ partMask: J | $ | k | G | H | j | z | X,
220
221
  query: S
221
- }, o = (n && W(n) && n.isSearchEnabled) ?? !1, A = `${JSON.stringify(a)}-${f}`;
222
- return /* @__PURE__ */ x(
223
- lt,
222
+ }, o = (n && Y(n) && n.isSearchEnabled) ?? !1, T = `${JSON.stringify(a)}-${f}`;
223
+ return /* @__PURE__ */ B(
224
+ me,
224
225
  {
225
- ...t,
226
+ ...e,
226
227
  initQueryRequest: a,
227
- key: A,
228
- isInfinite: p
228
+ key: T,
229
+ isInfinite: h
229
230
  },
230
- /* @__PURE__ */ e(
231
- at,
231
+ /* @__PURE__ */ t(x, { fallback: /* @__PURE__ */ t(_e, {}), children: /* @__PURE__ */ t(
232
+ se,
232
233
  {
233
234
  unitDescription: E,
234
- rgbIndex: t.rgbIndex,
235
- columnAliases: t.columnAliases,
235
+ rgbIndex: e.rgbIndex,
236
+ columnAliases: e.columnAliases,
236
237
  helpConfiguration: _,
237
- visibleColumnCount: t.visibleColumnCount,
238
- defaultShowPlots: t.defaultShowPlots,
239
- hideCopyToClipboard: t.hideCopyToClipboard,
240
- defaultShowSearchBar: (t.defaultShowSearchBox || o) && !t.hideSearchBarControl,
241
- hideSearchBarControl: t.hideSearchBarControl,
238
+ visibleColumnCount: e.visibleColumnCount,
239
+ defaultShowPlots: e.defaultShowPlots,
240
+ hideCopyToClipboard: e.hideCopyToClipboard,
241
+ defaultShowSearchBar: (e.defaultShowSearchBox || o) && !e.hideSearchBarControl,
242
+ hideSearchBarControl: e.hideSearchBarControl,
242
243
  showLastUpdatedOn: y,
243
- noContentPlaceholderType: O.INTERACTIVE,
244
+ noContentPlaceholderType: I.INTERACTIVE,
244
245
  hasCustomPlots: Array.isArray(m) && m.length > 0,
245
246
  enabledExternalAnalysisPlatforms: F,
246
- children: /* @__PURE__ */ e(
247
- Lt,
247
+ children: /* @__PURE__ */ t(
248
+ Te,
248
249
  {
249
- ...t,
250
+ ...e,
250
251
  isFullTextSearchEnabled: o,
251
- remount: T
252
+ remount: Q
252
253
  }
253
254
  )
254
255
  }
255
- )
256
+ ) })
256
257
  );
257
258
  }
258
259
  export {
259
- Ft as HAS_SELECTED_ROWS_CSS,
260
- _t as QUERY_FILTERS_COLLAPSED_CSS,
261
- Et as QUERY_FILTERS_EXPANDED_CSS,
262
- Le as default
260
+ Qe as HAS_SELECTED_ROWS_CSS,
261
+ Le as QUERY_FILTERS_COLLAPSED_CSS,
262
+ Fe as QUERY_FILTERS_EXPANDED_CSS,
263
+ At as default
263
264
  };
264
265
  //# sourceMappingURL=QueryWrapperPlotNav.js.map