synapse-react-client 4.0.3 → 4.0.5-b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SWC.index.js +1 -1
- package/dist/assets/DefaultColorfulPortalCardBackground.svg +14 -0
- package/dist/assets/DefaultColorfulPortalCardBackground.svg.js +7 -0
- package/dist/assets/DefaultColorfulPortalCardBackground.svg.js.map +1 -0
- package/dist/assets/homepage/nih-aging.svg +27 -27
- package/dist/assets/homepage/nih-aging.svg.js +1 -1
- package/dist/assets/homepage/nih-aging.svg.js.map +1 -1
- package/dist/assets/homepage/nih-heart.svg +39 -46
- package/dist/assets/homepage/nih-heart.svg.js +3 -3
- package/dist/assets/homepage/nih-heart.svg.js.map +1 -1
- package/dist/assets/homepage/nih-nci.svg +6 -0
- package/dist/assets/homepage/nih-nci.svg.js +7 -0
- package/dist/assets/homepage/nih-nci.svg.js.map +1 -0
- package/dist/assets/homepage/nih-nimh.svg +14 -0
- package/dist/assets/homepage/nih-nimh.svg.js +7 -0
- package/dist/assets/homepage/nih-nimh.svg.js.map +1 -0
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.js +4 -4
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.js +8 -7
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsEditor.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js +4 -4
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItem.js +11 -11
- package/dist/components/AccessRequirementList/RequirementItem/RequirementItem.js +1 -1
- package/dist/components/AccessRequirementList/RequirementItem/SelfSignAccessRequirementItem.js +9 -9
- package/dist/components/AccessRequirementList/RequirementItem/UnmanagedACTAccessRequirementItem.js +5 -5
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.d.ts.map +1 -1
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +33 -32
- package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
- package/dist/components/AclEditor/AclEditor.js +8 -8
- package/dist/components/AclEditor/AclEditor.js.map +1 -1
- package/dist/components/AclEditor/AclEditor.test-utils.js +34 -34
- package/dist/components/AclEditor/AclEditor.test-utils.js.map +1 -1
- package/dist/components/Authentication/AuthenticationMethodSelection.js +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.d.ts.map +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js +6 -5
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.css +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.d.ts +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.d.ts.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.js +12 -12
- package/dist/components/BasePortalCard/BasePortalCard.js.map +1 -1
- package/dist/components/BasePortalCard/BasePortalCard.module.scss +6 -0
- package/dist/components/BasePortalCard/BasePortalCard.module.scss.js +1 -1
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.css +1 -1
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.d.ts.map +1 -1
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js +24 -23
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js.map +1 -1
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.module.scss +15 -5
- package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.module.scss.js +1 -1
- package/dist/components/CardContainer/CardLink.d.ts +12 -0
- package/dist/components/CardContainer/CardLink.d.ts.map +1 -1
- package/dist/components/ChallengeSubmission/AvailableEvaluationQueueList.js +12 -12
- package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.d.ts.map +1 -1
- package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js +7 -7
- package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js.map +1 -1
- package/dist/components/CitationPopover/CitationPopoverContent.d.ts.map +1 -1
- package/dist/components/CitationPopover/CitationPopoverContent.js +13 -12
- package/dist/components/CitationPopover/CitationPopoverContent.js.map +1 -1
- package/dist/components/CookiesNotification/CookiesNotification.js +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +3 -4
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +2 -2
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +35 -35
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +2 -2
- package/dist/components/DataGrid/hooks/useExportDataGridToCsv.d.ts.map +1 -1
- package/dist/components/DataGrid/hooks/useExportDataGridToCsv.js +9 -7
- package/dist/components/DataGrid/hooks/useExportDataGridToCsv.js.map +1 -1
- package/dist/components/DownloadCart/ActionRequiredCard/ActionRequiredCard.js +1 -1
- package/dist/components/DownloadCart/RequestDownloadCard.js +1 -1
- package/dist/components/Ecosystem/EcosystemSkeleton.js +2 -2
- package/dist/components/Ecosystem/TableQueryEcosystem.js +1 -1
- package/dist/components/EntityAclEditor/EntityAclEditorModal.js +1 -1
- package/dist/components/EntityAclEditor/OpenData.js +1 -1
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.d.ts.map +1 -1
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js +113 -127
- package/dist/components/EntityBadgeIcons/EntityBadgeIcons.js.map +1 -1
- package/dist/components/EntityCitation/EntityCitation.js +1 -1
- package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/CreatedOnCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/EntityNameCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/FileEntityMD5Cell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/FileEntitySizeCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/ModifiedByCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/ModifiedOnCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/ParentProjectCell.js +1 -1
- package/dist/components/EntityFinder/tree/EntityTree.js +1 -1
- package/dist/components/EntityHeaderTable/EntityHeaderTable.d.ts.map +1 -1
- package/dist/components/EntityHeaderTable/EntityHeaderTable.js +39 -39
- package/dist/components/EntityHeaderTable/EntityHeaderTable.js.map +1 -1
- package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.d.ts +8 -0
- package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.d.ts.map +1 -0
- package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.js +46 -0
- package/dist/components/Evaluation/DeleteEvaluationQueueConfirmationDialog.js.map +1 -0
- package/dist/components/Evaluation/EvaluationCard.d.ts.map +1 -1
- package/dist/components/Evaluation/EvaluationCard.js +35 -41
- package/dist/components/Evaluation/EvaluationCard.js.map +1 -1
- package/dist/components/Evaluation/EvaluationEditor.d.ts.map +1 -1
- package/dist/components/Evaluation/EvaluationEditor.js +95 -90
- package/dist/components/Evaluation/EvaluationEditor.js.map +1 -1
- package/dist/components/Evaluation/EvaluationRoundEditor.d.ts.map +1 -1
- package/dist/components/Evaluation/EvaluationRoundEditor.js +133 -124
- package/dist/components/Evaluation/EvaluationRoundEditor.js.map +1 -1
- package/dist/components/FilePreview/EntityPreview.js +1 -1
- package/dist/components/Forum/DiscussionReply.js +10 -10
- package/dist/components/Forum/DiscussionThread.js +21 -21
- package/dist/components/GenericCard/CardUtils.d.ts.map +1 -1
- package/dist/components/GenericCard/CardUtils.js +36 -36
- package/dist/components/GenericCard/CardUtils.js.map +1 -1
- package/dist/components/GenericCard/CollapsibleDescription.js +25 -25
- package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
- package/dist/components/GenericCard/SynapseCardLabel.js +72 -67
- package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts +4 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +98 -96
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/GoalsV2/GoalsV2.Desktop.d.ts.map +1 -1
- package/dist/components/GoalsV2/GoalsV2.Desktop.js +14 -15
- package/dist/components/GoalsV2/GoalsV2.Desktop.js.map +1 -1
- package/dist/components/GoogleAnalytics/GoogleAnalytics.js +1 -1
- package/dist/components/HasAccess/HasAccessV2.js +1 -1
- package/dist/components/HasAccess/useHasAccess.js +1 -1
- package/dist/components/IDUReport/IDUReportSubmissionInfo.js +23 -23
- package/dist/components/IDUReport/IDUReportSubmissionInfo.js.map +1 -1
- package/dist/components/JSONArrayEditor/useParseCsv.d.ts +1 -1
- package/dist/components/JSONArrayEditor/useParseCsv.d.ts.map +1 -1
- package/dist/components/JSONArrayEditor/useParseCsv.js +9 -9
- package/dist/components/JSONArrayEditor/useParseCsv.js.map +1 -1
- package/dist/components/Markdown/MarkdownCollapse.js +7 -7
- package/dist/components/Markdown/MarkdownEditor.js +11 -11
- package/dist/components/Markdown/MarkdownGithub.js +1 -1
- package/dist/components/Markdown/MarkdownPopover.js +6 -6
- package/dist/components/Markdown/MarkdownPopover.js.map +1 -1
- package/dist/components/Markdown/MarkdownSynapse.d.ts.map +1 -1
- package/dist/components/Markdown/MarkdownSynapse.js +139 -135
- package/dist/components/Markdown/MarkdownSynapse.js.map +1 -1
- package/dist/components/Markdown/MarkdownUtils.d.ts +8 -0
- package/dist/components/Markdown/MarkdownUtils.d.ts.map +1 -1
- package/dist/components/Markdown/MarkdownUtils.js +139 -65
- package/dist/components/Markdown/MarkdownUtils.js.map +1 -1
- package/dist/components/Markdown/UserMentionModal.js +18 -18
- package/dist/components/Markdown/UserMentionModal.js.map +1 -1
- package/dist/components/Markdown/widget/MarkdownButton.js +3 -3
- package/dist/components/Markdown/widget/MarkdownButton.js.map +1 -1
- package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.d.ts.map +1 -1
- package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js +9 -8
- package/dist/components/MissingQueryResultsWarning/MissingQueryResultsWarning.js.map +1 -1
- package/dist/components/Plot/SynapsePlot.css +1 -0
- package/dist/components/Plot/SynapsePlot.d.ts +2 -0
- package/dist/components/Plot/SynapsePlot.d.ts.map +1 -1
- package/dist/components/Plot/SynapsePlot.js +43 -39
- package/dist/components/Plot/SynapsePlot.js.map +1 -1
- package/dist/components/Plot/SynapsePlot.scss +8 -0
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +114 -113
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.d.ts +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.js.map +1 -1
- package/dist/components/Resources/Resources.Desktop.js +7 -7
- package/dist/components/Resources/Resources.Mobile.js +6 -6
- package/dist/components/SubsectionRowRenderer/SubsectionRowRenderer.js +3 -3
- package/dist/components/SustainabilityScorecard/SustainabilityScorecardSummary.js +10 -10
- package/dist/components/SynapseChat/SynapseChatInteraction.js +5 -5
- package/dist/components/SynapseForm/WarningDialog.d.ts +1 -0
- package/dist/components/SynapseForm/WarningDialog.d.ts.map +1 -1
- package/dist/components/SynapseForm/WarningDialog.js +18 -16
- package/dist/components/SynapseForm/WarningDialog.js.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageNavBar.js +1 -1
- package/dist/components/SynapseHomepageV2/SynapsePartners.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/SynapsePartners.js +17 -12
- package/dist/components/SynapseHomepageV2/SynapsePartners.js.map +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.d.ts.map +1 -1
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js +39 -39
- package/dist/components/SynapsePortalBanners/SynapsePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/HasAccessChip.js +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +21 -22
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchResultsCard.js +5 -5
- package/dist/components/SynapseTable/ExpandableTableDataCell.d.ts.map +1 -1
- package/dist/components/SynapseTable/ExpandableTableDataCell.js +3 -1
- package/dist/components/SynapseTable/ExpandableTableDataCell.js.map +1 -1
- package/dist/components/SynapseTable/SynapseTable.js +4 -4
- package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.d.ts.map +1 -1
- package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.js +122 -122
- package/dist/components/SynapseTable/SynapseTableCell/SynapseTableCell.js.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +5 -5
- package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditor.js +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js +1 -1
- package/dist/components/TableFeedCards/TableFeedCards.js +9 -9
- package/dist/components/TermsAndConditions/TermsAndConditionsItem.js +10 -10
- package/dist/components/TimelinePlot/TimelinePlotSpeciesSelector.js +9 -9
- package/dist/components/UserSearchBox/UserSearchBox.d.ts +23 -0
- package/dist/components/UserSearchBox/UserSearchBox.d.ts.map +1 -0
- package/dist/components/UserSearchBox/UserSearchBox.js +146 -0
- package/dist/components/UserSearchBox/UserSearchBox.js.map +1 -0
- package/dist/components/WikiMarkdownEditorButton/WikiMarkdownEditorButton.js +13 -13
- package/dist/components/WizardChoiceButton/WizardChoiceButton.js +3 -3
- package/dist/components/dataaccess/AccessHistoryDashboard.js +5 -5
- package/dist/components/dataaccess/AccessHistoryDashboard.js.map +1 -1
- package/dist/components/dataaccess/AccessRequirementDashboard.js +4 -4
- package/dist/components/dataaccess/AccessRequirementDashboard.js.map +1 -1
- package/dist/components/dataaccess/AccessSubmissionDashboard.js +1 -1
- package/dist/components/dataaccess/AccessSubmissionDashboard.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +5 -5
- package/dist/components/dataaccess/UseAccessRequirementTable.js +3 -3
- package/dist/components/dataaccess/UseAccessRequirementTable.js.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.js +1 -1
- package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +2 -2
- package/dist/components/entity/metadata/EntityModal.js +1 -1
- package/dist/components/entity/metadata/MetadataTable.js +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +1 -1
- package/dist/components/entity/page/title_bar/EntityTitleBarVersionInfo.js +1 -1
- package/dist/components/entity/page/title_bar/TitleBarProperties.js +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +27 -26
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
- package/dist/components/index.js +109 -107
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/InfiniteTableLayout.js +1 -1
- package/dist/components/styled/HoverPopover.css +1 -0
- package/dist/components/styled/HoverPopover.d.ts +28 -0
- package/dist/components/styled/HoverPopover.d.ts.map +1 -0
- package/dist/components/styled/HoverPopover.js +104 -0
- package/dist/components/styled/HoverPopover.js.map +1 -0
- package/dist/components/styled/HoverPopover.module.scss +10 -0
- package/dist/components/styled/HoverPopover.module.scss.js +10 -0
- package/dist/components/styled/HoverPopover.module.scss.js.map +1 -0
- package/dist/components/styled/index.d.ts +2 -0
- package/dist/components/styled/index.d.ts.map +1 -1
- package/dist/components/styled/index.js +11 -9
- package/dist/components/styled/index.js.map +1 -1
- package/dist/components/table/CsvPreview/CsvPreview.js +2 -2
- package/dist/components/table/CsvPreview/CsvPreviewDialog.js +2 -2
- package/dist/components/widgets/Range.js +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js +35 -32
- package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.d.ts +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.js +69 -68
- package/dist/components/widgets/facet-nav/PlotsContainer.js.map +1 -1
- package/dist/components/widgets/facet-nav/useFacetPlots.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/useFacetPlots.js +24 -21
- package/dist/components/widgets/facet-nav/useFacetPlots.js.map +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.js +3 -3
- package/dist/features/curator/GridPage/GridPage.js +2 -2
- package/dist/features/curator/GridPage/components/GridPageTitle.js +2 -2
- package/dist/features/entity/metadata-task/hooks/useMetadataTaskTable.js +1 -1
- package/dist/index.js +157 -155
- package/dist/index.js.map +1 -1
- package/dist/mocks/msw/handlers/accessRequirementHandlers.js +5 -5
- package/dist/mocks/msw/handlers/projectStorageHandlers.js +5 -5
- package/dist/mocks/msw/handlers/wikiHandlers.js +1 -1
- package/dist/mocks/msw/handlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers.js +67 -59
- package/dist/mocks/msw/handlers.js.map +1 -1
- package/dist/style/base/_core.scss +0 -1
- package/dist/style/components/_all.scss +0 -1
- package/dist/style/components/_entity-badge.scss +0 -2
- package/dist/style/components/_expandable_table_data.scss +3 -3
- package/dist/style/components/facet_nav/_facet-nav-panel.scss +3 -0
- package/dist/style/components/facet_nav/_facet-nav.scss +4 -0
- package/dist/style/main.css +1 -1
- package/dist/synapse-client/SynapseClient.js +118 -118
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-queries/auth/useOIDC.js +1 -1
- package/dist/synapse-queries/auth/useTwoFactorEnrollment.js +1 -1
- package/dist/synapse-queries/entity/index.js +6 -6
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.js +1 -1
- package/dist/synapse-queries/index.js +1 -1
- package/dist/synapse-queries/user/usePersonalAccessToken.js +1 -1
- package/dist/testutils/vitest.setup.js +10 -11
- package/dist/testutils/vitest.setup.js.map +1 -1
- package/dist/theme/DefaultTheme.js +1 -1
- package/dist/theme/ThemeProvider.d.ts +2 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +11 -10
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/mergeTheme.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/AppUtils/AppUtils.js +1 -1
- package/dist/utils/functions/SanitizeHtmlUtils.d.ts.map +1 -1
- package/dist/utils/functions/SanitizeHtmlUtils.js +34 -40
- package/dist/utils/functions/SanitizeHtmlUtils.js.map +1 -1
- package/dist/utils/functions/deepLinkingUtils.js +10 -10
- package/dist/utils/functions/deepLinkingUtils.js.map +1 -1
- package/dist/utils/hooks/index.js +6 -6
- package/dist/utils/hooks/useDetectSSOCode.js +3 -3
- package/dist/utils/hooks/useGetEntityMetadata.js +1 -1
- package/dist/utils/hooks/useNativeSearchParams.d.ts.map +1 -1
- package/dist/utils/hooks/useNativeSearchParams.js +1 -1
- package/dist/utils/hooks/useNativeSearchParams.js.map +1 -1
- package/dist/utils/hooks/useOneSageURL.d.ts.map +1 -1
- package/dist/utils/hooks/useOneSageURL.js +15 -15
- package/dist/utils/hooks/useOneSageURL.js.map +1 -1
- package/dist/utils/hooks/useSourceAppConfigs.d.ts +1 -0
- package/dist/utils/hooks/useSourceAppConfigs.d.ts.map +1 -1
- package/dist/utils/hooks/useSourceAppConfigs.js +79 -77
- package/dist/utils/hooks/useSourceAppConfigs.js.map +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +17 -18
- package/dist/_virtual/index.js +0 -6
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -5
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -5
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/assets/homepage/nci.svg +0 -6
- package/dist/assets/homepage/nci.svg.js +0 -7
- package/dist/assets/homepage/nci.svg.js.map +0 -1
- package/dist/assets/homepage/nih-mental.svg +0 -9
- package/dist/assets/homepage/nih-mental.svg.js +0 -7
- package/dist/assets/homepage/nih-mental.svg.js.map +0 -1
- package/dist/components/UserSearchBox/UserSearchBoxV2.d.ts +0 -21
- package/dist/components/UserSearchBox/UserSearchBoxV2.d.ts.map +0 -1
- package/dist/components/UserSearchBox/UserSearchBoxV2.js +0 -144
- package/dist/components/UserSearchBox/UserSearchBoxV2.js.map +0 -1
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -53
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js.map +0 -1
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +0 -948
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js.map +0 -1
- package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -30
- package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js.map +0 -1
- 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
- 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
- package/dist/style/components/_user-search-box.scss +0 -30
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
1
|
+
import { jsx as t, Fragment as S, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../synapse-client/SynapseClient.js";
|
|
3
3
|
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
|
|
4
4
|
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
|
|
5
5
|
import "@sage-bionetworks/synapse-client/util/SynapseClientError";
|
|
6
|
-
import { ColumnSingleValueFilterOperator as
|
|
6
|
+
import { ColumnSingleValueFilterOperator as u } from "@sage-bionetworks/synapse-types";
|
|
7
7
|
import "../../utils/functions/EntityTypeUtils.js";
|
|
8
|
-
import { BUNDLE_MASK_QUERY_RESULTS as
|
|
8
|
+
import { BUNDLE_MASK_QUERY_RESULTS as A } from "../../utils/SynapseConstants.js";
|
|
9
9
|
import "lodash-es";
|
|
10
10
|
import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
|
|
11
11
|
import "@tanstack/react-query";
|
|
@@ -13,7 +13,7 @@ import "../../utils/PermissionLevelToAccessType.js";
|
|
|
13
13
|
import "react";
|
|
14
14
|
import "../../utils/context/SynapseContext.js";
|
|
15
15
|
import "use-deep-compare-effect";
|
|
16
|
-
import { Box as o, Typography as
|
|
16
|
+
import { Box as o, Typography as d } from "@mui/material";
|
|
17
17
|
import "../../utils/hooks/useCookiePreferences.js";
|
|
18
18
|
import { useSourceAppConfigs as v } from "../../utils/hooks/useSourceAppConfigs.js";
|
|
19
19
|
import "universal-cookie";
|
|
@@ -28,46 +28,46 @@ import "lodash-es/xorWith";
|
|
|
28
28
|
import "react-router";
|
|
29
29
|
import "@sage-bionetworks/synapse-client";
|
|
30
30
|
import "../../utils/types/IsType.js";
|
|
31
|
-
import { useGetEntityPath as
|
|
32
|
-
import { useGetQueryResultBundleWithAsyncStatus as
|
|
33
|
-
import { ChevronRightTwoTone as
|
|
34
|
-
function
|
|
35
|
-
entityId:
|
|
36
|
-
dataCatalogEntityId:
|
|
37
|
-
sourceAppConfigTableID:
|
|
31
|
+
import { useGetEntityPath as T } from "../../synapse-queries/entity/useEntity.js";
|
|
32
|
+
import { useGetQueryResultBundleWithAsyncStatus as k } from "../../synapse-queries/entity/useGetQueryResultBundle.js";
|
|
33
|
+
import { ChevronRightTwoTone as F } from "@mui/icons-material";
|
|
34
|
+
function le({
|
|
35
|
+
entityId: s,
|
|
36
|
+
dataCatalogEntityId: l = "syn61609402",
|
|
37
|
+
sourceAppConfigTableID: f = "syn45291362"
|
|
38
38
|
}) {
|
|
39
|
-
const { data:
|
|
39
|
+
const { data: a } = T(s), m = a ? a.path.map((e) => e.id).slice(1) : [s], x = m ? [
|
|
40
40
|
{
|
|
41
41
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
42
42
|
columnName: "id",
|
|
43
|
-
operator:
|
|
44
|
-
values:
|
|
43
|
+
operator: u.IN,
|
|
44
|
+
values: m
|
|
45
45
|
}
|
|
46
|
-
] : [], { data:
|
|
46
|
+
] : [], { data: g } = k(
|
|
47
47
|
{
|
|
48
|
-
entityId:
|
|
48
|
+
entityId: l,
|
|
49
49
|
query: {
|
|
50
|
-
sql: `SELECT appId, link FROM ${
|
|
51
|
-
additionalFilters:
|
|
50
|
+
sql: `SELECT appId, link FROM ${l}`,
|
|
51
|
+
additionalFilters: x
|
|
52
52
|
},
|
|
53
|
-
partMask:
|
|
53
|
+
partMask: A,
|
|
54
54
|
concreteType: "org.sagebionetworks.repo.model.table.QueryBundleRequest"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
enabled: !!
|
|
57
|
+
enabled: !!a
|
|
58
58
|
}
|
|
59
|
-
),
|
|
59
|
+
), r = g?.responseBody?.queryResult?.queryResults, h = !!r && r?.rows.length > 0, i = r?.rows.map((e) => e.values[0]), c = i && i.length > 0, y = c ? [
|
|
60
60
|
{
|
|
61
61
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
62
62
|
columnName: "appId",
|
|
63
|
-
operator:
|
|
64
|
-
values:
|
|
63
|
+
operator: u.EQUAL,
|
|
64
|
+
values: i
|
|
65
65
|
}
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
),
|
|
70
|
-
return !
|
|
66
|
+
] : [], p = v(
|
|
67
|
+
f,
|
|
68
|
+
y
|
|
69
|
+
), w = !!p && p.length > 0;
|
|
70
|
+
return !c || !h || !w ? /* @__PURE__ */ t(S, {}) : /* @__PURE__ */ t(
|
|
71
71
|
o,
|
|
72
72
|
{
|
|
73
73
|
sx: {
|
|
@@ -77,13 +77,13 @@ function se({
|
|
|
77
77
|
width: "100%",
|
|
78
78
|
alignItems: "center"
|
|
79
79
|
},
|
|
80
|
-
children:
|
|
81
|
-
const
|
|
82
|
-
return /* @__PURE__ */
|
|
80
|
+
children: p.map((e, b) => {
|
|
81
|
+
const C = r.rows.find((R) => R.values[0] === e.appId)?.values[1] || e.appURL;
|
|
82
|
+
return /* @__PURE__ */ n(
|
|
83
83
|
o,
|
|
84
84
|
{
|
|
85
85
|
component: "a",
|
|
86
|
-
href:
|
|
86
|
+
href: C,
|
|
87
87
|
target: "_blank",
|
|
88
88
|
rel: "noopener noreferrer",
|
|
89
89
|
flex: 1,
|
|
@@ -106,7 +106,7 @@ function se({
|
|
|
106
106
|
mb: "10px"
|
|
107
107
|
},
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ n(
|
|
110
110
|
o,
|
|
111
111
|
{
|
|
112
112
|
flex: 1,
|
|
@@ -128,7 +128,7 @@ function se({
|
|
|
128
128
|
children: e?.logo
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ n(
|
|
132
132
|
o,
|
|
133
133
|
{
|
|
134
134
|
sx: {
|
|
@@ -138,8 +138,8 @@ function se({
|
|
|
138
138
|
mr: "10px"
|
|
139
139
|
},
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */ t(
|
|
142
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ t(d, { variant: "body1", sx: { fontWeight: 700 }, children: "This resource is part of a Portal" }),
|
|
142
|
+
/* @__PURE__ */ n(d, { variant: "body1", children: [
|
|
143
143
|
" ",
|
|
144
144
|
"Access it on the ",
|
|
145
145
|
e.friendlyName
|
|
@@ -150,16 +150,16 @@ function se({
|
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
),
|
|
153
|
-
/* @__PURE__ */ t(
|
|
153
|
+
/* @__PURE__ */ t(F, {})
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
b
|
|
157
157
|
);
|
|
158
158
|
})
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
export {
|
|
163
|
-
|
|
163
|
+
le as default
|
|
164
164
|
};
|
|
165
165
|
//# sourceMappingURL=SynapsePortalBanners.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SynapsePortalBanners.js","sources":["../../../src/components/SynapsePortalBanners/SynapsePortalBanners.tsx"],"sourcesContent":["import {\n useGetEntityPath,\n useGetQueryResultBundleWithAsyncStatus,\n} from '@/synapse-queries'\nimport { useSourceAppConfigs } from '@/utils/hooks'\nimport { BUNDLE_MASK_QUERY_RESULTS } from '@/utils/SynapseConstants'\nimport { ChevronRightTwoTone } from '@mui/icons-material'\nimport { Box, Typography } from '@mui/material'\nimport {\n ColumnSingleValueQueryFilter,\n ColumnSingleValueFilterOperator,\n} from '@sage-bionetworks/synapse-types'\n\nexport type SynapsePortalBannersProps = {\n entityId: string\n dataCatalogEntityId?: string\n sourceAppConfigTableID?: string\n}\n\n/**\n *\n * @param props\n */\nexport default function SynapsePortalBanners({\n entityId,\n dataCatalogEntityId = 'syn61609402',\n sourceAppConfigTableID = 'syn45291362',\n}: SynapsePortalBannersProps) {\n const { data: entityPathData } = useGetEntityPath(entityId)\n // get all EntityHeader ids in the entity path data in a string array\n // Note: we remove the first item from entityPathData.path as it is always the root Synapse folder which we don't want to include\n const entityIdValues: string[] = entityPathData\n ? entityPathData.path.map(header => header.id).slice(1)\n : [entityId]\n\n const dataCatalogAdditionalFilters: ColumnSingleValueQueryFilter[] =\n
|
|
1
|
+
{"version":3,"file":"SynapsePortalBanners.js","sources":["../../../src/components/SynapsePortalBanners/SynapsePortalBanners.tsx"],"sourcesContent":["import {\n useGetEntityPath,\n useGetQueryResultBundleWithAsyncStatus,\n} from '@/synapse-queries'\nimport { useSourceAppConfigs } from '@/utils/hooks'\nimport { BUNDLE_MASK_QUERY_RESULTS } from '@/utils/SynapseConstants'\nimport { ChevronRightTwoTone } from '@mui/icons-material'\nimport { Box, Typography } from '@mui/material'\nimport {\n ColumnSingleValueQueryFilter,\n ColumnSingleValueFilterOperator,\n} from '@sage-bionetworks/synapse-types'\n\nexport type SynapsePortalBannersProps = {\n entityId: string\n dataCatalogEntityId?: string\n sourceAppConfigTableID?: string\n}\n\n/**\n *\n * @param props\n */\nexport default function SynapsePortalBanners({\n entityId,\n dataCatalogEntityId = 'syn61609402',\n sourceAppConfigTableID = 'syn45291362',\n}: SynapsePortalBannersProps) {\n const { data: entityPathData } = useGetEntityPath(entityId)\n // get all EntityHeader ids in the entity path data in a string array\n // Note: we remove the first item from entityPathData.path as it is always the root Synapse folder which we don't want to include\n const entityIdValues: string[] = entityPathData\n ? entityPathData.path.map(header => header.id).slice(1)\n : [entityId]\n\n const dataCatalogAdditionalFilters: ColumnSingleValueQueryFilter[] =\n entityIdValues\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'id',\n operator: ColumnSingleValueFilterOperator.IN,\n values: entityIdValues,\n },\n ]\n : []\n const { data: dataCatalogData } = useGetQueryResultBundleWithAsyncStatus(\n {\n entityId: dataCatalogEntityId,\n query: {\n sql: `SELECT appId, link FROM ${dataCatalogEntityId}`,\n additionalFilters: dataCatalogAdditionalFilters,\n },\n partMask: BUNDLE_MASK_QUERY_RESULTS,\n concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest',\n },\n {\n enabled: !!entityPathData,\n },\n )\n\n const rowSet = dataCatalogData?.responseBody?.queryResult?.queryResults\n const hasPortalBanners = !!rowSet && rowSet?.rows.length > 0\n\n const appIds = rowSet?.rows.map(row => row.values[0]) as string[]\n const hasAppIds = appIds && appIds.length > 0\n\n const sourceAppConfigFilters: ColumnSingleValueQueryFilter[] = hasAppIds\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'appId',\n operator: ColumnSingleValueFilterOperator.EQUAL,\n values: appIds,\n },\n ]\n : []\n const sourceAppConfigs = useSourceAppConfigs(\n sourceAppConfigTableID,\n sourceAppConfigFilters,\n )\n const hasSourceAppConfigs = !!sourceAppConfigs && sourceAppConfigs.length > 0\n\n if (!hasAppIds || !hasPortalBanners || !hasSourceAppConfigs) {\n return <></>\n }\n\n // we have source app configs associated to this entity, let's render the banners\n return (\n <Box\n sx={{\n display: 'flex',\n flexWrap: 'wrap',\n gap: '20px',\n width: '100%',\n alignItems: 'center',\n }}\n >\n {sourceAppConfigs.map((appConfig, index) => {\n const dataCatalogRow = rowSet.rows.find(row => {\n return row.values[0] === appConfig.appId\n })\n const link = dataCatalogRow?.values[1] || appConfig.appURL\n return (\n <Box\n key={index}\n component=\"a\"\n href={link}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n flex={1}\n sx={{\n display: 'flex',\n flexWrap: 'nowrap',\n padding: '16px',\n justifyContent: 'space-between',\n border: '1px solid #ccc',\n borderRadius: '8px',\n backgroundColor: '#f9f9f9',\n textDecoration: 'none',\n pointer: 'cursor',\n '&:hover': {\n textDecoration: 'none !important',\n },\n width: '100%',\n alignItems: 'center',\n mt: '10px',\n mb: '10px',\n }}\n >\n <Box\n flex={1}\n sx={{\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n gap: '10px',\n }}\n >\n <Box\n sx={{\n '> *': {\n height: '60px',\n },\n }}\n >\n {appConfig?.logo}\n </Box>\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n mr: '10px',\n }}\n >\n <Typography variant=\"body1\" sx={{ fontWeight: 700 }}>\n This resource is part of a Portal\n </Typography>\n <Typography variant=\"body1\">\n {' '}\n Access it on the {appConfig.friendlyName}\n </Typography>\n </Box>\n </Box>\n <ChevronRightTwoTone />\n </Box>\n )\n })}\n </Box>\n )\n}\n"],"names":["SynapsePortalBanners","entityId","dataCatalogEntityId","sourceAppConfigTableID","entityPathData","useGetEntityPath","entityIdValues","header","dataCatalogAdditionalFilters","ColumnSingleValueFilterOperator","dataCatalogData","useGetQueryResultBundleWithAsyncStatus","BUNDLE_MASK_QUERY_RESULTS","rowSet","hasPortalBanners","appIds","row","hasAppIds","sourceAppConfigFilters","sourceAppConfigs","useSourceAppConfigs","hasSourceAppConfigs","jsx","Fragment","Box","appConfig","index","link","jsxs","Typography","ChevronRightTwoTone"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as o, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import m from "../HasAccess/useHasAccess.js";
|
|
3
3
|
import { Chip as n } from "@mui/material";
|
|
4
4
|
import { searchResultsCardChipStyles as l } from "./chipStyles.js";
|
|
5
5
|
function x({ entityId: s }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchPagePortalBanners.d.ts","sourceRoot":"","sources":["../../../src/components/SynapseSearchPageResults/SearchPagePortalBanners.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,SAAS,EACT,mBAAmC,EACnC,sBAAsC,GACvC,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"SearchPagePortalBanners.d.ts","sourceRoot":"","sources":["../../../src/components/SynapseSearchPageResults/SearchPagePortalBanners.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,SAAS,EACT,mBAAmC,EACnC,sBAAsC,GACvC,EAAE,4BAA4B,kDAqH9B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as p, Fragment as
|
|
1
|
+
import { jsx as p, Fragment as f, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../synapse-client/SynapseClient.js";
|
|
3
3
|
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
|
|
4
4
|
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
|
|
5
5
|
import "@sage-bionetworks/synapse-client/util/SynapseClientError";
|
|
6
6
|
import { ColumnSingleValueFilterOperator as m } from "@sage-bionetworks/synapse-types";
|
|
7
7
|
import "../../utils/functions/EntityTypeUtils.js";
|
|
8
|
-
import { BUNDLE_MASK_QUERY_RESULTS as
|
|
8
|
+
import { BUNDLE_MASK_QUERY_RESULTS as b } from "../../utils/SynapseConstants.js";
|
|
9
9
|
import "lodash-es";
|
|
10
10
|
import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
|
|
11
11
|
import "@tanstack/react-query";
|
|
@@ -28,44 +28,44 @@ import "lodash-es/xorWith";
|
|
|
28
28
|
import "react-router";
|
|
29
29
|
import "@sage-bionetworks/synapse-client";
|
|
30
30
|
import "../../utils/types/IsType.js";
|
|
31
|
-
import { useGetQueryResultBundleWithAsyncStatus as
|
|
32
|
-
function
|
|
33
|
-
entityIds:
|
|
31
|
+
import { useGetQueryResultBundleWithAsyncStatus as A } from "../../synapse-queries/entity/useGetQueryResultBundle.js";
|
|
32
|
+
function or({
|
|
33
|
+
entityIds: o,
|
|
34
34
|
dataCatalogEntityId: s = "syn61609402",
|
|
35
35
|
sourceAppConfigTableID: u = "syn45291362"
|
|
36
36
|
}) {
|
|
37
|
-
const c =
|
|
37
|
+
const c = o.length > 0 ? [
|
|
38
38
|
{
|
|
39
39
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
40
40
|
columnName: "id",
|
|
41
41
|
operator: m.IN,
|
|
42
|
-
values:
|
|
42
|
+
values: o
|
|
43
43
|
}
|
|
44
|
-
] : [], { data: d } =
|
|
44
|
+
] : [], { data: d } = A(
|
|
45
45
|
{
|
|
46
46
|
entityId: s,
|
|
47
47
|
query: {
|
|
48
48
|
sql: `SELECT appId, link FROM ${s}`,
|
|
49
49
|
additionalFilters: c
|
|
50
50
|
},
|
|
51
|
-
partMask:
|
|
51
|
+
partMask: b,
|
|
52
52
|
concreteType: "org.sagebionetworks.repo.model.table.QueryBundleRequest"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
enabled:
|
|
55
|
+
enabled: o.length > 0
|
|
56
56
|
}
|
|
57
|
-
),
|
|
57
|
+
), t = d?.responseBody?.queryResult?.queryResults, g = !!t && t?.rows.length > 0, e = t?.rows.map((r) => r.values[0]), h = e && e.length > 0 ? [
|
|
58
58
|
{
|
|
59
59
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
60
60
|
columnName: "appId",
|
|
61
61
|
operator: m.IN,
|
|
62
|
-
values:
|
|
62
|
+
values: e
|
|
63
63
|
}
|
|
64
|
-
] : [],
|
|
64
|
+
] : [], n = w(
|
|
65
65
|
u,
|
|
66
66
|
h
|
|
67
|
-
), x = !!
|
|
68
|
-
return !g || !x ? null : /* @__PURE__ */ p(
|
|
67
|
+
), x = !!n && n.length > 0;
|
|
68
|
+
return !(e && e.length > 0) || !g || !x ? null : /* @__PURE__ */ p(f, { children: n.map((r, y) => /* @__PURE__ */ a(
|
|
69
69
|
l,
|
|
70
70
|
{
|
|
71
71
|
sx: {
|
|
@@ -89,8 +89,8 @@ function er({
|
|
|
89
89
|
children: [
|
|
90
90
|
"Looks like you’re searching for information about",
|
|
91
91
|
" ",
|
|
92
|
-
r.
|
|
93
|
-
" ",
|
|
92
|
+
r.area,
|
|
93
|
+
". ",
|
|
94
94
|
/* @__PURE__ */ a(
|
|
95
95
|
k,
|
|
96
96
|
{
|
|
@@ -99,8 +99,8 @@ function er({
|
|
|
99
99
|
target: "_blank",
|
|
100
100
|
rel: "noopener noreferrer",
|
|
101
101
|
sx: {
|
|
102
|
-
color: (
|
|
103
|
-
textDecorationColor: (
|
|
102
|
+
color: (i) => `${i.palette.grey[900]} !important`,
|
|
103
|
+
textDecorationColor: (i) => `${i.palette.grey[900]} !important`
|
|
104
104
|
},
|
|
105
105
|
children: [
|
|
106
106
|
"Visit the ",
|
|
@@ -108,8 +108,7 @@ function er({
|
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
".
|
|
112
|
-
r.description
|
|
111
|
+
"."
|
|
113
112
|
]
|
|
114
113
|
}
|
|
115
114
|
) }),
|
|
@@ -131,6 +130,6 @@ function er({
|
|
|
131
130
|
)) });
|
|
132
131
|
}
|
|
133
132
|
export {
|
|
134
|
-
|
|
133
|
+
or as default
|
|
135
134
|
};
|
|
136
135
|
//# sourceMappingURL=SearchPagePortalBanners.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchPagePortalBanners.js","sources":["../../../src/components/SynapseSearchPageResults/SearchPagePortalBanners.tsx"],"sourcesContent":["import { useGetQueryResultBundleWithAsyncStatus } from '@/synapse-queries'\nimport { useSourceAppConfigs } from '@/utils/hooks'\nimport { BUNDLE_MASK_QUERY_RESULTS } from '@/utils/SynapseConstants'\nimport { Box, Link, Typography } from '@mui/material'\nimport {\n ColumnSingleValueQueryFilter,\n ColumnSingleValueFilterOperator,\n} from '@sage-bionetworks/synapse-types'\n\nexport type SearchPagePortalBannersProps = {\n entityIds: string[]\n dataCatalogEntityId?: string\n sourceAppConfigTableID?: string\n}\n\n/**\n * Portal banner based on entities found in the first page of search results.\n */\nexport default function SearchPagePortalBanners({\n entityIds,\n dataCatalogEntityId = 'syn61609402',\n sourceAppConfigTableID = 'syn45291362',\n}: SearchPagePortalBannersProps) {\n // Query data catalog to find portal mappings for the entity IDs\n const dataCatalogAdditionalFilters: ColumnSingleValueQueryFilter[] =\n entityIds.length > 0\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'id',\n operator: ColumnSingleValueFilterOperator.IN,\n values: entityIds,\n },\n ]\n : []\n\n const { data: dataCatalogData } = useGetQueryResultBundleWithAsyncStatus(\n {\n entityId: dataCatalogEntityId,\n query: {\n sql: `SELECT appId, link FROM ${dataCatalogEntityId}`,\n additionalFilters: dataCatalogAdditionalFilters,\n },\n partMask: BUNDLE_MASK_QUERY_RESULTS,\n concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest',\n },\n {\n enabled: entityIds.length > 0,\n },\n )\n\n const rowSet = dataCatalogData?.responseBody?.queryResult?.queryResults\n const hasPortalBanners = !!rowSet && rowSet?.rows.length > 0\n const appIds = rowSet?.rows.map(row => row.values[0]) as string[]\n\n // Get source app configurations for the found portal app IDs\n const sourceAppConfigFilters: ColumnSingleValueQueryFilter[] =\n appIds && appIds.length > 0\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'appId',\n operator: ColumnSingleValueFilterOperator.IN,\n values: appIds,\n },\n ]\n : []\n\n const sourceAppConfigs = useSourceAppConfigs(\n sourceAppConfigTableID,\n sourceAppConfigFilters,\n )\n const hasSourceAppConfigs = !!sourceAppConfigs && sourceAppConfigs.length > 0\n\n if (!hasPortalBanners || !hasSourceAppConfigs) {\n return null\n }\n\n return (\n <>\n {sourceAppConfigs.map((appConfig, index) => {\n return (\n <Box\n key={index}\n sx={{\n display: 'flex',\n padding: '32px',\n backgroundColor: 'secondary.100',\n borderRadius: '8px',\n width: '100%',\n transition: 'background-color 0.3s',\n justifyContent: 'space-between',\n alignItems: 'center',\n gap: '50px',\n boxShadow:\n '0 4px 10px 0 rgba(0, 0, 0, 0.10), 0 1px 1px 0 rgba(0, 0, 0, 0.05)',\n }}\n >\n <Box>\n <Typography\n variant=\"smallText1\"\n sx={{ color: 'grey.900', mt: '4px', lineHeight: '20px' }}\n >\n Looks like you’re searching for information about{' '}\n {appConfig.
|
|
1
|
+
{"version":3,"file":"SearchPagePortalBanners.js","sources":["../../../src/components/SynapseSearchPageResults/SearchPagePortalBanners.tsx"],"sourcesContent":["import { useGetQueryResultBundleWithAsyncStatus } from '@/synapse-queries'\nimport { useSourceAppConfigs } from '@/utils/hooks'\nimport { BUNDLE_MASK_QUERY_RESULTS } from '@/utils/SynapseConstants'\nimport { Box, Link, Typography } from '@mui/material'\nimport {\n ColumnSingleValueQueryFilter,\n ColumnSingleValueFilterOperator,\n} from '@sage-bionetworks/synapse-types'\n\nexport type SearchPagePortalBannersProps = {\n entityIds: string[]\n dataCatalogEntityId?: string\n sourceAppConfigTableID?: string\n}\n\n/**\n * Portal banner based on entities found in the first page of search results.\n */\nexport default function SearchPagePortalBanners({\n entityIds,\n dataCatalogEntityId = 'syn61609402',\n sourceAppConfigTableID = 'syn45291362',\n}: SearchPagePortalBannersProps) {\n // Query data catalog to find portal mappings for the entity IDs\n const dataCatalogAdditionalFilters: ColumnSingleValueQueryFilter[] =\n entityIds.length > 0\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'id',\n operator: ColumnSingleValueFilterOperator.IN,\n values: entityIds,\n },\n ]\n : []\n\n const { data: dataCatalogData } = useGetQueryResultBundleWithAsyncStatus(\n {\n entityId: dataCatalogEntityId,\n query: {\n sql: `SELECT appId, link FROM ${dataCatalogEntityId}`,\n additionalFilters: dataCatalogAdditionalFilters,\n },\n partMask: BUNDLE_MASK_QUERY_RESULTS,\n concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest',\n },\n {\n enabled: entityIds.length > 0,\n },\n )\n\n const rowSet = dataCatalogData?.responseBody?.queryResult?.queryResults\n const hasPortalBanners = !!rowSet && rowSet?.rows.length > 0\n const appIds = rowSet?.rows.map(row => row.values[0]) as string[]\n\n // Get source app configurations for the found portal app IDs\n const sourceAppConfigFilters: ColumnSingleValueQueryFilter[] =\n appIds && appIds.length > 0\n ? [\n {\n concreteType:\n 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter',\n columnName: 'appId',\n operator: ColumnSingleValueFilterOperator.IN,\n values: appIds,\n },\n ]\n : []\n\n const sourceAppConfigs = useSourceAppConfigs(\n sourceAppConfigTableID,\n sourceAppConfigFilters,\n )\n const hasSourceAppConfigs = !!sourceAppConfigs && sourceAppConfigs.length > 0\n const hasAppIds = appIds && appIds.length > 0\n if (!hasAppIds || !hasPortalBanners || !hasSourceAppConfigs) {\n return null\n }\n\n return (\n <>\n {sourceAppConfigs.map((appConfig, index) => {\n return (\n <Box\n key={index}\n sx={{\n display: 'flex',\n padding: '32px',\n backgroundColor: 'secondary.100',\n borderRadius: '8px',\n width: '100%',\n transition: 'background-color 0.3s',\n justifyContent: 'space-between',\n alignItems: 'center',\n gap: '50px',\n boxShadow:\n '0 4px 10px 0 rgba(0, 0, 0, 0.10), 0 1px 1px 0 rgba(0, 0, 0, 0.05)',\n }}\n >\n <Box>\n <Typography\n variant=\"smallText1\"\n sx={{ color: 'grey.900', mt: '4px', lineHeight: '20px' }}\n >\n Looks like you’re searching for information about{' '}\n {appConfig.area}\n {'. '}\n <Link\n component={'a'}\n href={appConfig.appURL}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n sx={{\n color: theme => `${theme.palette.grey[900]} !important`,\n textDecorationColor: theme =>\n `${theme.palette.grey[900]} !important`,\n }}\n >\n Visit the {appConfig.friendlyName}\n </Link>\n .\n </Typography>\n </Box>\n <Box\n sx={{\n '> *': {\n height: '48px',\n width: 'auto',\n },\n }}\n >\n {appConfig?.logo}\n </Box>\n </Box>\n )\n })}\n </>\n )\n}\n"],"names":["SearchPagePortalBanners","entityIds","dataCatalogEntityId","sourceAppConfigTableID","dataCatalogAdditionalFilters","ColumnSingleValueFilterOperator","dataCatalogData","useGetQueryResultBundleWithAsyncStatus","BUNDLE_MASK_QUERY_RESULTS","rowSet","hasPortalBanners","appIds","row","sourceAppConfigFilters","sourceAppConfigs","useSourceAppConfigs","hasSourceAppConfigs","jsx","Fragment","appConfig","index","jsxs","Box","Typography","Link","theme"],"mappings":"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"}
|
|
@@ -14,7 +14,7 @@ import "../../utils/SynapseConstants.js";
|
|
|
14
14
|
import { useRef as I } from "react";
|
|
15
15
|
import "../../utils/context/SynapseContext.js";
|
|
16
16
|
import "use-deep-compare-effect";
|
|
17
|
-
import {
|
|
17
|
+
import { Box as n, Link as p, Chip as T, Stack as g, Typography as r, styled as w, Paper as D } from "@mui/material";
|
|
18
18
|
import "../../utils/hooks/useCookiePreferences.js";
|
|
19
19
|
import "../../utils/hooks/useSourceAppConfigs.js";
|
|
20
20
|
import "universal-cookie";
|
|
@@ -29,7 +29,7 @@ import "lodash-es/xorWith";
|
|
|
29
29
|
import "react-router";
|
|
30
30
|
import { EntityType as N } from "@sage-bionetworks/synapse-client";
|
|
31
31
|
import "../../utils/types/IsType.js";
|
|
32
|
-
import
|
|
32
|
+
import S from "../../synapse-queries/entity/useEntityBundle.js";
|
|
33
33
|
import { calculateFriendlyFileSize as C } from "../../utils/functions/calculateFriendlyFileSize.js";
|
|
34
34
|
import { formatDate as M } from "../../utils/functions/DateFormatter.js";
|
|
35
35
|
import { Update as R, ArticleOutlined as O, InfoOutline as E, DashboardTwoTone as b } from "@mui/icons-material";
|
|
@@ -43,7 +43,7 @@ import { searchResultsCardChipStyles as z } from "./chipStyles.js";
|
|
|
43
43
|
import { HasAccessChip as F } from "./HasAccessChip.js";
|
|
44
44
|
import { HighlightedTypography as y } from "./HighlightedTypography.js";
|
|
45
45
|
import a from "./SynapseSearchResultsCard.module.scss.js";
|
|
46
|
-
const H =
|
|
46
|
+
const H = w(
|
|
47
47
|
D,
|
|
48
48
|
{
|
|
49
49
|
label: "SynapseSearchResultsCardContainer"
|
|
@@ -136,7 +136,7 @@ function Le(e) {
|
|
|
136
136
|
},
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ t(
|
|
139
|
-
|
|
139
|
+
T,
|
|
140
140
|
{
|
|
141
141
|
icon: /* @__PURE__ */ t(
|
|
142
142
|
$,
|
|
@@ -162,7 +162,7 @@ function Le(e) {
|
|
|
162
162
|
flexDirection: "row",
|
|
163
163
|
gap: "8px"
|
|
164
164
|
},
|
|
165
|
-
children: /* @__PURE__ */ i(
|
|
165
|
+
children: /* @__PURE__ */ i(g, { sx: { gap: "20px", minWidth: 0, width: "100%" }, children: [
|
|
166
166
|
/* @__PURE__ */ i(n, { sx: { display: "flex" }, children: [
|
|
167
167
|
/* @__PURE__ */ t(R, { className: a.cardMetadataIcon }),
|
|
168
168
|
/* @__PURE__ */ i(r, { className: a.cardMetadataTypographyWithIcon, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableTableDataCell.d.ts","sourceRoot":"","sources":["../../../src/components/SynapseTable/ExpandableTableDataCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAoB,MAAM,OAAO,CAAA;AAIxD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,KAAK,EAAE,cAAc,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"ExpandableTableDataCell.d.ts","sourceRoot":"","sources":["../../../src/components/SynapseTable/ExpandableTableDataCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAoB,MAAM,OAAO,CAAA;AAIxD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,KAAK,EAAE,cAAc,CAAC,oBAAoB,CAAC,2CAkD5C"}
|
|
@@ -6,7 +6,9 @@ function N(t) {
|
|
|
6
6
|
const [a, o] = s(!1), [d, i] = s(!1), l = f(null);
|
|
7
7
|
return m(l, ({ target: n }) => {
|
|
8
8
|
if (!a && n) {
|
|
9
|
-
const e = n.
|
|
9
|
+
const e = n.getElementsByClassName(
|
|
10
|
+
"SynapseTableCellContent"
|
|
11
|
+
)[0];
|
|
10
12
|
e && i(
|
|
11
13
|
e.scrollHeight > e.clientHeight + 2 || e.scrollWidth > e.clientWidth + 2
|
|
12
14
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableTableDataCell.js","sources":["../../../src/components/SynapseTable/ExpandableTableDataCell.tsx"],"sourcesContent":["import { HTMLAttributes, useRef, useState } from 'react'\nimport { useResizeObserver } from '@react-hookz/web'\nimport ExpandCollapseButton from './ExpandCollapseButton'\n\nexport default function ExpandableTableDataCell(\n props: HTMLAttributes<HTMLTableCellElement>,\n) {\n const [isExpanded, setIsExpanded] = useState(false)\n const [isOverflowingWhenNotExpanded, setIsOverflowingWhenNotExpanded] =\n useState(false)\n const tdRef = useRef<HTMLTableCellElement | null>(null)\n\n /**\n * When the cell is resized, check if it is overflowing.\n */\n useResizeObserver(tdRef, ({ target }) => {\n // Don't check overflow if the cell has been expanded by the user!\n if (!isExpanded) {\n if (target) {\n
|
|
1
|
+
{"version":3,"file":"ExpandableTableDataCell.js","sources":["../../../src/components/SynapseTable/ExpandableTableDataCell.tsx"],"sourcesContent":["import { HTMLAttributes, useRef, useState } from 'react'\nimport { useResizeObserver } from '@react-hookz/web'\nimport ExpandCollapseButton from './ExpandCollapseButton'\n\nexport default function ExpandableTableDataCell(\n props: HTMLAttributes<HTMLTableCellElement>,\n) {\n const [isExpanded, setIsExpanded] = useState(false)\n const [isOverflowingWhenNotExpanded, setIsOverflowingWhenNotExpanded] =\n useState(false)\n const tdRef = useRef<HTMLTableCellElement | null>(null)\n\n /**\n * When the cell is resized, check if it is overflowing.\n */\n useResizeObserver(tdRef, ({ target }) => {\n // Don't check overflow if the cell has been expanded by the user!\n if (!isExpanded) {\n if (target) {\n const contentElement = target.getElementsByClassName(\n 'SynapseTableCellContent',\n )[0]\n if (contentElement) {\n // Add 2px threshold to account for sub-pixel rounding errors\n const threshold = 2\n setIsOverflowingWhenNotExpanded(\n contentElement.scrollHeight >\n contentElement.clientHeight + threshold ||\n contentElement.scrollWidth >\n contentElement.clientWidth + threshold,\n )\n }\n }\n }\n })\n\n return (\n <td\n {...props}\n className={`ExpandableTableData ${\n props.className ? props.className : ''\n }`}\n aria-expanded={isExpanded}\n ref={tdRef}\n >\n {isOverflowingWhenNotExpanded && (\n <ExpandCollapseButton\n isExpanded={isExpanded}\n className=\"ExpandableTableData__expandButton\"\n onClick={() => setIsExpanded(!isExpanded)}\n />\n )}\n {props.children}\n </td>\n )\n}\n"],"names":["ExpandableTableDataCell","props","isExpanded","setIsExpanded","useState","isOverflowingWhenNotExpanded","setIsOverflowingWhenNotExpanded","tdRef","useRef","useResizeObserver","target","contentElement","jsxs","jsx","ExpandCollapseButton"],"mappings":";;;;AAIA,SAAwBA,EACtBC,GACA;AACA,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAC5C,CAACC,GAA8BC,CAA+B,IAClEF,EAAS,EAAK,GACVG,IAAQC,EAAoC,IAAI;AAKtD,SAAAC,EAAkBF,GAAO,CAAC,EAAE,QAAAG,QAAa;AAEvC,QAAI,CAACR,KACCQ,GAAQ;AACV,YAAMC,IAAiBD,EAAO;AAAA,QAC5B;AAAA,MAAA,EACA,CAAC;AACH,MAAIC,KAGFL;AAAA,QACEK,EAAe,eACbA,EAAe,eAAe,KAC9BA,EAAe,cACbA,EAAe,cAAc;AAAA,MAAA;AAAA,IAGvC;AAAA,EAEJ,CAAC,GAGC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGX;AAAA,MACJ,WAAW,uBACTA,EAAM,YAAYA,EAAM,YAAY,EACtC;AAAA,MACA,iBAAeC;AAAA,MACf,KAAKK;AAAA,MAEJ,UAAA;AAAA,QAAAF,KACC,gBAAAQ;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,YAAAZ;AAAA,YACA,WAAU;AAAA,YACV,SAAS,MAAMC,EAAc,CAACD,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3CD,EAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -29,7 +29,7 @@ import "react-router";
|
|
|
29
29
|
import "@sage-bionetworks/synapse-client";
|
|
30
30
|
import "../../utils/types/IsType.js";
|
|
31
31
|
import { useGetEntity as to } from "../../synapse-queries/entity/useEntity.js";
|
|
32
|
-
import {
|
|
32
|
+
import { useReactTable as no, getCoreRowModel as ro, createColumnHelper as so } from "@tanstack/react-table";
|
|
33
33
|
import { useAtomValue as io } from "jotai";
|
|
34
34
|
import { ModalDownload as lo } from "../ModalDownload/ModalDownload.js";
|
|
35
35
|
import { useQueryContext as ao } from "../QueryContext/QueryContext.js";
|
|
@@ -41,7 +41,7 @@ import { rowSelectionColumn as R, addToDownloadListColumn as A, directDownloadCo
|
|
|
41
41
|
import { isEntityViewOrDatasetOrCollection as fo, isFileViewOrDataset as ho, isSortableColumn as bo } from "./SynapseTableUtils.js";
|
|
42
42
|
import { usePrefetchResourcesInTable as yo } from "./usePrefetchTableData.js";
|
|
43
43
|
import { useTableSort as So } from "./useTableSort.js";
|
|
44
|
-
const To = [], Do =
|
|
44
|
+
const To = [], Do = so();
|
|
45
45
|
function pe(i) {
|
|
46
46
|
const { showDownloadColumn: m, hideDownload: M } = i, {
|
|
47
47
|
rowSet: o,
|
|
@@ -106,10 +106,10 @@ function pe(i) {
|
|
|
106
106
|
[t.name]: S.includes(t.name)
|
|
107
107
|
}), I),
|
|
108
108
|
[S, n, I]
|
|
109
|
-
), { dataHasBeenPrefetched: J } = yo(o), K = N || !J, X =
|
|
109
|
+
), { dataHasBeenPrefetched: J } = yo(o), K = N || !J, X = no({
|
|
110
110
|
data: o.rows,
|
|
111
111
|
columns: _,
|
|
112
|
-
getCoreRowModel:
|
|
112
|
+
getCoreRowModel: ro(),
|
|
113
113
|
manualSorting: !0,
|
|
114
114
|
manualFiltering: !0,
|
|
115
115
|
onSortingChange: j,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SynapseTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAA;AAS9D,OAAO,EACL,WAAW,EACX,UAAU,EAGV,GAAG,EACH,YAAY,EAEb,MAAM,iCAAiC,CAAA;AAGxC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EACL,WAAW,EACX,8BAA8B,EAC/B,MAAM,6CAA6C,CAAA;AAcpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EACb,QAAQ,GACR,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,8BAA8B,CAAA;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAaD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"SynapseTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/SynapseTable/SynapseTableCell/SynapseTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAA;AAS9D,OAAO,EACL,WAAW,EACX,UAAU,EAGV,GAAG,EACH,YAAY,EAEb,MAAM,iCAAiC,CAAA;AAGxC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EACL,WAAW,EACX,8BAA8B,EAC/B,MAAM,6CAA6C,CAAA;AAcpD,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EACb,QAAQ,GACR,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,8BAA8B,CAAA;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAaD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAwQrD;;AAED,wBAAqC"}
|