@gen3/frontend 0.10.80 → 0.10.82
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/cjs/index.js +3865 -3188
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/api/auth/credentialsLogin.d.ts.map +1 -1
- package/dist/dts/api/auth/credentialsLogin.js +36 -11
- package/dist/dts/api/auth/credentialsLogin.js.map +1 -1
- package/dist/dts/api/auth/credentialsLogout.d.ts.map +1 -1
- package/dist/dts/api/auth/credentialsLogout.js.map +1 -1
- package/dist/dts/api/auth/errorHandler.d.ts +19 -0
- package/dist/dts/api/auth/errorHandler.d.ts.map +1 -0
- package/dist/dts/api/auth/errorHandler.js +71 -0
- package/dist/dts/api/auth/errorHandler.js.map +1 -0
- package/dist/dts/api/auth/index.d.ts +3 -0
- package/dist/dts/api/auth/index.d.ts.map +1 -0
- package/dist/dts/api/auth/index.js +3 -0
- package/dist/dts/api/auth/index.js.map +1 -0
- package/dist/dts/api/auth/sessionLogout.d.ts.map +1 -1
- package/dist/dts/api/auth/sessionLogout.js +1 -1
- package/dist/dts/api/auth/sessionLogout.js.map +1 -1
- package/dist/dts/api/auth/sessionToken.d.ts +1 -1
- package/dist/dts/api/auth/sessionToken.d.ts.map +1 -1
- package/dist/dts/api/auth/sessionToken.js +42 -17
- package/dist/dts/api/auth/sessionToken.js.map +1 -1
- package/dist/dts/api/auth/utils.d.ts +13 -0
- package/dist/dts/api/auth/utils.d.ts.map +1 -0
- package/dist/dts/api/auth/utils.js +70 -0
- package/dist/dts/api/auth/utils.js.map +1 -0
- package/dist/dts/components/Buttons/ActionButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/ActionButton.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.d.ts +2 -2
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/DownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +1 -0
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.d.ts +1 -1
- package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.js.map +1 -1
- package/dist/dts/components/Buttons/index.d.ts +6 -0
- package/dist/dts/components/Buttons/index.d.ts.map +1 -0
- package/dist/dts/components/Buttons/index.js +8 -0
- package/dist/dts/components/Buttons/index.js.map +1 -0
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.d.ts +1 -0
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.d.ts.map +1 -1
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.js.map +1 -1
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.d.ts +7 -0
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.d.ts.map +1 -0
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.js +15 -0
- package/dist/dts/components/CollapsableSidebar/CollapsableSidebar.stories.js.map +1 -0
- package/dist/dts/components/Content/ContactWithEmailContent.d.ts.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/LandingPageContent.js +1 -1
- package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
- package/dist/dts/components/Content/ResearchPageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/ResourcePageContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.d.ts +14 -0
- package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.d.ts.map +1 -0
- package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.js +19 -0
- package/dist/dts/components/DataItems/TruncatedStringWithTooltip.stories.js.map +1 -0
- package/dist/dts/components/Details/DefaultDetailsPanel.d.ts.map +1 -1
- package/dist/dts/components/Details/DefaultDetailsPanel.js.map +1 -1
- package/dist/dts/components/Details/DetailsDrawer.d.ts.map +1 -1
- package/dist/dts/components/Details/DetailsDrawer.js +1 -1
- package/dist/dts/components/Details/DetailsDrawer.js.map +1 -1
- package/dist/dts/components/Details/DetailsModal.d.ts.map +1 -1
- package/dist/dts/components/Details/DetailsModal.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/Layout/CardGrid.d.ts.map +1 -1
- package/dist/dts/components/Layout/TexturedSidePanel.d.ts.map +1 -1
- package/dist/dts/components/Layout/TexturedSidePanel.js.map +1 -1
- package/dist/dts/components/Login/CredentialsLogin.d.ts.map +1 -1
- package/dist/dts/components/Login/CredentialsLogin.js +59 -55
- package/dist/dts/components/Login/CredentialsLogin.js.map +1 -1
- package/dist/dts/components/Login/LoginAccountButton.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginButton.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/MessagePanel.d.ts.map +1 -1
- package/dist/dts/components/Modals/BaseModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/BaseModal.js.map +1 -1
- package/dist/dts/components/Modals/CreateCredentialsAPIKeyModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/CreateCredentialsAPIKeyModal.js.map +1 -1
- package/dist/dts/components/Modals/FirstTimeModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/FirstTimeModal.js.map +1 -1
- package/dist/dts/components/Modals/Gen3ModalsProvider.d.ts.map +1 -1
- package/dist/dts/components/Modals/GeneralErrorModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/GeneralErrorModal.js.map +1 -1
- package/dist/dts/components/Modals/NoAccessModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/NoAccessModal.js.map +1 -1
- package/dist/dts/components/Modals/SessionExpiredModal.d.ts +2 -2
- package/dist/dts/components/Modals/SessionExpiredModal.d.ts.map +1 -1
- package/dist/dts/components/Modals/SessionExpiredModal.js.map +1 -1
- package/dist/dts/components/OverflowTooltippedLabel.d.ts.map +1 -1
- package/dist/dts/components/OverflowTooltippedLabel.js.map +1 -1
- package/dist/dts/components/Profile/ExternalProvidersPanel.js +1 -1
- package/dist/dts/components/Profile/ExternalProvidersPanel.js.map +1 -1
- package/dist/dts/components/Profile/ProfileProvider.d.ts.map +1 -1
- package/dist/dts/components/Profile/ResourcesFilters.d.ts.map +1 -1
- package/dist/dts/components/Profile/ResourcesPanel.js.map +1 -1
- package/dist/dts/components/Profile/ResourcesProvider.d.ts.map +1 -1
- package/dist/dts/components/Profile/ResourcesTable.d.ts.map +1 -1
- package/dist/dts/components/Profile/utils.d.ts.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +26 -20
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.js +6 -4
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/Tables/CellRenderFactory.d.ts.map +1 -1
- package/dist/dts/components/Tables/TableIcons.d.ts.map +1 -1
- package/dist/dts/components/Tables/TableIcons.js.map +1 -1
- package/dist/dts/components/Tables/utils.d.ts.map +1 -1
- package/dist/dts/components/Text/MultiPartText.d.ts.map +1 -1
- package/dist/dts/components/charts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/ChartTitleBar.d.ts +1 -1
- package/dist/dts/components/charts/ChartTitleBar.d.ts.map +1 -1
- package/dist/dts/components/charts/ChartTitleBar.js +1 -1
- package/dist/dts/components/charts/ChartTitleBar.js.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +4 -2
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/EnumFacetChart.d.ts.map +1 -1
- package/dist/dts/components/charts/PieChart.d.ts.map +1 -1
- package/dist/dts/components/charts/createChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/DonutChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/PieChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/ReactECharts.js +4 -2
- package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
- package/dist/dts/components/charts/echarts/VerticalBarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/utils.d.ts.map +1 -1
- package/dist/dts/components/counts/CountsValue.d.ts.map +1 -1
- package/dist/dts/components/counts/CountsValue.js.map +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts +1 -1
- package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js +15 -7
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.d.ts +1 -0
- package/dist/dts/components/facets/ExactValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.js +20 -11
- package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts +7 -2
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +15 -4
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.d.ts +3 -0
- package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetEnumList.js +36 -17
- package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.d.ts +1 -0
- package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.js +17 -10
- package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
- package/dist/dts/components/facets/RangeFacet.d.ts +1 -1
- package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/RangeFacet.js +12 -15
- package/dist/dts/components/facets/RangeFacet.js.map +1 -1
- package/dist/dts/components/facets/components.js +1 -1
- package/dist/dts/components/facets/components.js.map +1 -1
- package/dist/dts/components/facets/createFacetCard.d.ts.map +1 -1
- package/dist/dts/components/facets/createFacetCard.js +4 -4
- package/dist/dts/components/facets/createFacetCard.js.map +1 -1
- package/dist/dts/components/facets/hooks.d.ts +1 -0
- package/dist/dts/components/facets/hooks.d.ts.map +1 -1
- package/dist/dts/components/facets/hooks.js +13 -2
- package/dist/dts/components/facets/hooks.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +12 -2
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/components/facets/utils.d.ts +55 -4
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +142 -21
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisPanel.d.ts +1 -0
- package/dist/dts/features/Analysis/AnalysisPanel.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisPanel.js.map +1 -1
- package/dist/dts/features/Analysis/TextDescription.d.ts.map +1 -1
- package/dist/dts/features/Analysis/TextDescription.js +1 -1
- package/dist/dts/features/Analysis/TextDescription.js.map +1 -1
- package/dist/dts/features/Authz/Gen3Authz.d.ts.map +1 -1
- package/dist/dts/features/Authz/Gen3Authz.js.map +1 -1
- package/dist/dts/features/Authz/Policies/PoliciesPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Policies/PoliciesPanel.js +1 -1
- package/dist/dts/features/Authz/Policies/PoliciesPanel.js.map +1 -1
- package/dist/dts/features/Authz/Policies/PoliciesTable.d.ts.map +1 -1
- package/dist/dts/features/Authz/Provider.d.ts +2 -1
- package/dist/dts/features/Authz/Provider.d.ts.map +1 -1
- package/dist/dts/features/Authz/Provider.js.map +1 -1
- package/dist/dts/features/Authz/Resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Resources/ResourcesPanel.js +1 -1
- package/dist/dts/features/Authz/Resources/ResourcesPanel.js.map +1 -1
- package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.d.ts +3 -3
- package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.d.ts.map +1 -1
- package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.js.map +1 -1
- package/dist/dts/features/Authz/Roles/RolesPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Roles/RolesPanel.js.map +1 -1
- package/dist/dts/features/Authz/Users/Cards/UserDetails.d.ts.map +1 -1
- package/dist/dts/features/Authz/Users/Cards/UserDetails.js +6 -2
- package/dist/dts/features/Authz/Users/Cards/UserDetails.js.map +1 -1
- package/dist/dts/features/Authz/Users/Inputs.d.ts +4 -4
- package/dist/dts/features/Authz/Users/Inputs.d.ts.map +1 -1
- package/dist/dts/features/Authz/Users/Inputs.js +1 -1
- package/dist/dts/features/Authz/Users/Inputs.js.map +1 -1
- package/dist/dts/features/Authz/Users/NewUserPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Users/NewUserPanel.js +1 -1
- package/dist/dts/features/Authz/Users/NewUserPanel.js.map +1 -1
- package/dist/dts/features/Authz/Users/UserDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Users/UserDetailsPanel.js +1 -1
- package/dist/dts/features/Authz/Users/UserDetailsPanel.js.map +1 -1
- package/dist/dts/features/Authz/Users/UserPanel.d.ts.map +1 -1
- package/dist/dts/features/Authz/Users/UserPanel.js +3 -3
- package/dist/dts/features/Authz/Users/UserPanel.js.map +1 -1
- package/dist/dts/features/Authz/Users/UserTable.d.ts.map +1 -1
- package/dist/dts/features/Authz/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +2 -2
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +26 -8
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager.js +2 -11
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +42 -37
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/DownloadsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/CellRenderers.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +4 -4
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTableCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js +8 -2
- package/dist/dts/features/CohortBuilder/FiltersPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +34 -7
- package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +27 -7
- package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +106 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +16 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +43 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.d.ts → QueryExpression/QueryExpressionSection.d.ts} +1 -4
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.js → QueryExpression/QueryExpressionSection.js} +30 -29
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.d.ts → QueryExpression/QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.js → QueryExpression/QueryRepresentation.js} +22 -30
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/index.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/index.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/index.js +4 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/index.js.map +1 -0
- package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.js +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js +1 -1
- package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.js.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadManifest.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/downloadToFile.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/registeredActions.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/actions/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.js.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.d.ts +6 -1
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +28 -1
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/index.d.ts +3 -3
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +1 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +24 -12
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/charts/cohortSimilarityChartsFactory.js.map +1 -1
- package/dist/dts/features/CohortSimilarity/charts/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts.map +1 -1
- package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DataLibrary.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/DataLibrary.js.map +1 -1
- package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
- package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
- package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.js +0 -2
- package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.js.map +1 -1
- package/dist/dts/features/DataLibrary/selection/SelectionContext.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/selection/registeredActions.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/selection/selectedItemActions.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/selection/selection.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/selection/utils.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/AdditionalDataTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/DatasetContentsTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/FilesTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/QueriesTable.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/tables/QueriesTable.js.map +1 -1
- package/dist/dts/features/DataLibrary/tables/tableSettings.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryAccordionLabel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/CategoryAccordionLabel.js +1 -1
- package/dist/dts/features/Dictionary/CategoryAccordionLabel.js.map +1 -1
- package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Cell.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Cell.js.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryProvider.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/ResultCard.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/ResultCard.js +1 -1
- package/dist/dts/features/Dictionary/ResultCard.js.map +1 -1
- package/dist/dts/features/Dictionary/ResultList.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/ResultList.js.map +1 -1
- package/dist/dts/features/Dictionary/TableSearch.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/ViewSelector.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/DownloadAsZipButton.d.ts.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/DownloadAsZipButton.js.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.d.ts.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.js.map +1 -1
- package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/AggMDSServer/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByAdvSearch.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/searchFilterSort.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/registeredDataLoaders.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Discovery.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
- package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/AdvancedSearch.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/AdvancedSearchPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/AiSearch.d.ts +1 -1
- package/dist/dts/features/Discovery/Search/AiSearch.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/AiSearch.js +19 -12
- package/dist/dts/features/Discovery/Search/AiSearch.js.map +1 -1
- package/dist/dts/features/Discovery/Search/SearchFilters.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/SearchInput.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/SearchInputWithSuggestions.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Search/utils.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Statistics/StatisticsRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Statistics/StatisticsRendererFactory.js.map +1 -1
- package/dist/dts/features/Discovery/Statistics/SummaryStatisticPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.d.ts +1 -1
- package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.js +3 -3
- package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.js.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/RendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyDetailsPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyGroup.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyGroupPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyPage/DownloadLinksPanel.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyPage/StudyPage.d.ts.map +1 -1
- package/dist/dts/features/Discovery/StudyPage/StudyPageGroup.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/CellRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils/processDataAccess.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils/processDownloadData.d.ts.map +1 -1
- package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
- package/dist/dts/features/Navigation/ActionMenu.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Banner.d.ts +1 -0
- package/dist/dts/features/Navigation/Banner.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Banner.js +5 -5
- package/dist/dts/features/Navigation/Banner.js.map +1 -1
- package/dist/dts/features/Navigation/Footer/Footer.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Footer/Footer.stories.d.ts +14 -0
- package/dist/dts/features/Navigation/Footer/Footer.stories.d.ts.map +1 -0
- package/dist/dts/features/Navigation/Footer/Footer.stories.js +46 -0
- package/dist/dts/features/Navigation/Footer/Footer.stories.js.map +1 -0
- package/dist/dts/features/Navigation/Footer/types.d.ts +2 -2
- package/dist/dts/features/Navigation/Footer/types.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Gen3Link.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Header.d.ts.map +1 -1
- package/dist/dts/features/Navigation/HorizontalClean/HorizontalNavigationBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/HoverLink.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationBarButton.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationButton.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavigationLogo.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Vertical/LeftSidePanel.d.ts.map +1 -1
- package/dist/dts/features/Navigation/Vertical/VerticalTopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/utils.d.ts.map +1 -1
- package/dist/dts/features/Profile/Profile.d.ts.map +1 -1
- package/dist/dts/features/Profile/Profile.js.map +1 -1
- package/dist/dts/features/Query/GqlQueryEditor.d.ts.map +1 -1
- package/dist/dts/features/Query/QueryPanel.d.ts.map +1 -1
- package/dist/dts/features/Submission/SubmissionPanel.d.ts.map +1 -1
- package/dist/dts/features/Submission/Tables/ProjectTable.d.ts.map +1 -1
- package/dist/dts/features/Submission/utils.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
- package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/admin/WorkspaceEditorContext.d.ts.map +1 -1
- package/dist/dts/features/Workspace/calculateLaunchSteps.d.ts.map +1 -1
- package/dist/dts/features/Workspace/utils.d.ts.map +1 -1
- package/dist/dts/features/authorization/utils.d.ts.map +1 -1
- package/dist/dts/index.d.ts +4 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +8 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/hooks.d.ts +21 -13
- package/dist/dts/lib/session/hooks.d.ts.map +1 -1
- package/dist/dts/lib/session/hooks.js +41 -8
- package/dist/dts/lib/session/hooks.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +15 -7
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/lib/session/types.d.ts +4 -1
- package/dist/dts/lib/session/types.d.ts.map +1 -1
- package/dist/dts/lib/session/utils.d.ts.map +1 -1
- package/dist/dts/pages/404/Custom404Page.stories.d.ts +9 -0
- package/dist/dts/pages/404/Custom404Page.stories.d.ts.map +1 -0
- package/dist/dts/pages/404/Custom404Page.stories.js +12 -0
- package/dist/dts/pages/404/Custom404Page.stories.js.map +1 -0
- package/dist/dts/pages/AiSearch/AiSearch.d.ts.map +1 -1
- package/dist/dts/pages/Analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/DataLibrary/DataLibrary.d.ts.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
- package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +2 -2
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts +3 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +125 -17
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Explorer/index.d.ts +1 -1
- package/dist/dts/pages/Explorer/index.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/index.js +1 -1
- package/dist/dts/pages/Explorer/index.js.map +1 -1
- package/dist/dts/pages/Explorer/types.d.ts +2 -2
- package/dist/dts/pages/Explorer/types.d.ts.map +1 -1
- package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
- package/dist/dts/pages/Landing/about-us.d.ts.map +1 -1
- package/dist/dts/pages/Landing/about-us.js +1 -1
- package/dist/dts/pages/Landing/about-us.js.map +1 -1
- package/dist/dts/pages/Landing/contact.d.ts.map +1 -1
- package/dist/dts/pages/Landing/resource.d.ts.map +1 -1
- package/dist/dts/pages/Login/Login.d.ts.map +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.d.ts.map +1 -1
- package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
- package/dist/dts/pages/Query/Query.d.ts.map +1 -1
- package/dist/dts/pages/Submission/Submission.d.ts.map +1 -1
- package/dist/dts/pages/Theme/Colors.d.ts.map +1 -1
- package/dist/dts/pages/Theme/Colors.js.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/WorkspaceNoAccess.d.ts.map +1 -1
- package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.d.ts.map +1 -1
- package/dist/dts/pages/admin/Workspace/data.d.ts.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
- package/dist/dts/pages/admin/authz/Authz.d.ts.map +1 -1
- package/dist/dts/pages/external/footer.d.ts.map +1 -1
- package/dist/dts/pages/index.d.ts.map +1 -1
- package/dist/dts/types/common.d.ts +4 -0
- package/dist/dts/types/common.d.ts.map +1 -1
- package/dist/dts/utils/RendererFactory.d.ts.map +1 -1
- package/dist/dts/utils/authMapping.d.ts.map +1 -1
- package/dist/dts/utils/colors.d.ts.map +1 -1
- package/dist/dts/utils/download.d.ts.map +1 -1
- package/dist/dts/utils/download.js.map +1 -1
- package/dist/dts/utils/isType.d.ts.map +1 -1
- package/dist/dts/utils/labels.d.ts.map +1 -1
- package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts.map +1 -1
- package/dist/dts/utils/strings.d.ts.map +1 -1
- package/dist/dts/utils/tailwindConfig.d.ts.map +1 -1
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/useTraceUpdate.d.ts.map +1 -1
- package/dist/dts/utils/values.d.ts.map +1 -1
- package/dist/esm/index.js +3868 -3198
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +84 -22
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/LICENSE +0 -201
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts +0 -4
- package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/CohortDistanceApp.js +0 -54
- package/dist/dts/features/CohortDistance/CohortDistanceApp.js.map +0 -1
- package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts +0 -15
- package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/ComnparisonCard.js +0 -32
- package/dist/dts/features/CohortDistance/ComnparisonCard.js.map +0 -1
- package/dist/dts/features/CohortDistance/ComparisonCards.d.ts +0 -15
- package/dist/dts/features/CohortDistance/ComparisonCards.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/ComparisonCards.js +0 -14
- package/dist/dts/features/CohortDistance/ComparisonCards.js.map +0 -1
- package/dist/dts/features/CohortDistance/appApi.d.ts +0 -8
- package/dist/dts/features/CohortDistance/appApi.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/appApi.js +0 -4
- package/dist/dts/features/CohortDistance/appApi.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts +0 -5
- package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/BarComparison.js +0 -70
- package/dist/dts/features/CohortDistance/charts/BarComparison.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts +0 -16
- package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/ChartCard.js +0 -45
- package/dist/dts/features/CohortDistance/charts/ChartCard.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts +0 -13
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js +0 -18
- package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts +0 -5
- package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/RadarComparison.js +0 -90
- package/dist/dts/features/CohortDistance/charts/RadarComparison.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts +0 -6
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js +0 -24
- package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/types.d.ts +0 -12
- package/dist/dts/features/CohortDistance/charts/types.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/types.js +0 -2
- package/dist/dts/features/CohortDistance/charts/types.js.map +0 -1
- package/dist/dts/features/CohortDistance/charts/utils.d.ts +0 -2
- package/dist/dts/features/CohortDistance/charts/utils.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/charts/utils.js +0 -4
- package/dist/dts/features/CohortDistance/charts/utils.js.map +0 -1
- package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts +0 -141
- package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/cohortDistanceApi.js +0 -14
- package/dist/dts/features/CohortDistance/cohortDistanceApi.js.map +0 -1
- package/dist/dts/features/CohortDistance/registerApp.d.ts +0 -3
- package/dist/dts/features/CohortDistance/registerApp.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/registerApp.js +0 -19
- package/dist/dts/features/CohortDistance/registerApp.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts +0 -9
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js +0 -68
- package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts +0 -13
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js +0 -16
- package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/data.d.ts +0 -2
- package/dist/dts/features/CohortDistance/statistics/data/data.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/data.js +0 -50
- package/dist/dts/features/CohortDistance/statistics/data/data.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/tests/distanceResponse.json +0 -228
- package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.d.ts +0 -2
- package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js +0 -365
- package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts +0 -49
- package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/data/utils.js +0 -146
- package/dist/dts/features/CohortDistance/statistics/data/utils.js.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/queries.d.ts +0 -6
- package/dist/dts/features/CohortDistance/statistics/queries.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/statistics/queries.js +0 -24
- package/dist/dts/features/CohortDistance/statistics/queries.js.map +0 -1
- package/dist/dts/features/CohortDistance/types.d.ts +0 -26
- package/dist/dts/features/CohortDistance/types.d.ts.map +0 -1
- package/dist/dts/features/CohortDistance/types.js +0 -2
- package/dist/dts/features/CohortDistance/types.js.map +0 -1
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.d.ts +0 -1
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.d.ts.map +0 -1
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js +0 -130
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js.map +0 -1
- package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts +0 -1
- package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts.map +0 -1
- package/dist/dts/features/Discovery/ActionBar/registeredActions.js +0 -46
- package/dist/dts/features/Discovery/ActionBar/registeredActions.js.map +0 -1
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.d.ts → QueryExpression/QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.js → QueryExpression/QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.d.ts → QueryExpression/QueryRepresentationLabel.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.js → QueryExpression/QueryRepresentationLabel.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialsLogin.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"credentialsLogin.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAO5D;;;;;;GAMG;AACH,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,iBAmEvE"}
|
|
@@ -35,8 +35,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { deleteCookie, setCookie } from 'cookies-next';
|
|
38
|
-
import { decodeJwt } from 'jose';
|
|
39
|
-
import {
|
|
38
|
+
import { decodeJwt, jwtVerify, importSPKI } from 'jose';
|
|
39
|
+
import { fetchFence } from '@gen3/core';
|
|
40
|
+
import { getWebTokenErrorResponse } from './errorHandler';
|
|
41
|
+
import { fetchJWTKey } from './utils';
|
|
40
42
|
/**
|
|
41
43
|
* Credentials login set up a access_token cookie. This is used to authenticate the user
|
|
42
44
|
* Note that in development mode, the access token is stored in a cookie but in production
|
|
@@ -46,22 +48,26 @@ import { GEN3_FENCE_API } from '@gen3/core';
|
|
|
46
48
|
*/
|
|
47
49
|
export default function (req, res) {
|
|
48
50
|
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
var params, response, json, access_token, payload;
|
|
51
|
+
var params, response, json, access_token, jwtKey, publicKey, payload, error_1;
|
|
50
52
|
return __generator(this, function (_a) {
|
|
51
53
|
switch (_a.label) {
|
|
52
54
|
case 0:
|
|
53
55
|
params = req.body;
|
|
54
|
-
|
|
56
|
+
_a.label = 1;
|
|
57
|
+
case 1:
|
|
58
|
+
_a.trys.push([1, 6, , 7]);
|
|
59
|
+
return [4 /*yield*/, fetchFence({
|
|
60
|
+
endpoint: '/credentials/api/access_token',
|
|
55
61
|
method: 'POST',
|
|
56
62
|
headers: {
|
|
57
63
|
'Content-Type': 'application/json',
|
|
58
64
|
},
|
|
59
|
-
body:
|
|
65
|
+
body: {
|
|
60
66
|
api_key: params.api_key,
|
|
61
67
|
key_id: params.key_id,
|
|
62
|
-
}
|
|
68
|
+
},
|
|
63
69
|
})];
|
|
64
|
-
case
|
|
70
|
+
case 2:
|
|
65
71
|
response = _a.sent();
|
|
66
72
|
if (response.status !== 200) {
|
|
67
73
|
deleteCookie('credentials_token', {
|
|
@@ -73,10 +79,22 @@ export default function (req, res) {
|
|
|
73
79
|
});
|
|
74
80
|
return [2 /*return*/, res.status(response.status).json({ message: 'Invalid token' })];
|
|
75
81
|
}
|
|
76
|
-
|
|
77
|
-
case 2:
|
|
78
|
-
json = _a.sent();
|
|
82
|
+
json = response.data;
|
|
79
83
|
access_token = json.access_token;
|
|
84
|
+
return [4 /*yield*/, fetchJWTKey()];
|
|
85
|
+
case 3:
|
|
86
|
+
jwtKey = _a.sent();
|
|
87
|
+
if (!jwtKey) {
|
|
88
|
+
return [2 /*return*/, res
|
|
89
|
+
.status(response.status)
|
|
90
|
+
.json({ message: 'No JWT Key to verify token' })];
|
|
91
|
+
}
|
|
92
|
+
return [4 /*yield*/, importSPKI(jwtKey, 'RS256')];
|
|
93
|
+
case 4:
|
|
94
|
+
publicKey = _a.sent();
|
|
95
|
+
return [4 /*yield*/, jwtVerify(access_token, publicKey)];
|
|
96
|
+
case 5:
|
|
97
|
+
_a.sent();
|
|
80
98
|
payload = decodeJwt(access_token);
|
|
81
99
|
if (!payload) {
|
|
82
100
|
deleteCookie('credentials_token', {
|
|
@@ -91,12 +109,19 @@ export default function (req, res) {
|
|
|
91
109
|
setCookie('credentials_token', access_token, {
|
|
92
110
|
req: req,
|
|
93
111
|
res: res,
|
|
94
|
-
maxAge: payload && payload.exp && payload.iat
|
|
112
|
+
maxAge: payload && payload.exp && payload.iat
|
|
113
|
+
? payload.exp - payload.iat
|
|
114
|
+
: 60 * 60 * 20,
|
|
95
115
|
sameSite: 'lax',
|
|
96
116
|
httpOnly: process.env.NODE_ENV === 'production',
|
|
97
117
|
secure: process.env.NODE_ENV === 'production',
|
|
98
118
|
});
|
|
99
119
|
return [2 /*return*/, res.status(200).json({ message: 'Session token set' })];
|
|
120
|
+
case 6:
|
|
121
|
+
error_1 = _a.sent();
|
|
122
|
+
getWebTokenErrorResponse(error_1, res); // will update res with error
|
|
123
|
+
return [3 /*break*/, 7];
|
|
124
|
+
case 7: return [2 /*return*/];
|
|
100
125
|
}
|
|
101
126
|
});
|
|
102
127
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialsLogin.js","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"credentialsLogin.js","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAc,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,WAAiB,GAAmB,EAAE,GAAoB;;;;;;oBAChE,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC;;;;oBAGL,qBAAM,UAAU,CAAyB;4BACxD,QAAQ,EAAE,+BAA+B;4BACzC,MAAM,EAAE,MAAM;4BACd,OAAO,EAAE;gCACP,cAAc,EAAE,kBAAkB;6BACnC;4BACD,IAAI,EAAE;gCACJ,OAAO,EAAE,MAAM,CAAC,OAAO;gCACvB,MAAM,EAAE,MAAM,CAAC,MAAM;6BACtB;yBACF,CAAC,EAAA;;oBAVI,QAAQ,GAAG,SAUf;oBAEF,IAAI,QAAQ,CAAC,MAAM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AO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,EAAC;oBAC5D,CAAC;oBACD,SAAS,CAAC,mBAAmB,EAAE,YAAY,EAAE;wBAC3C,GAAG,KAAA;wBACH,GAAG,KAAA;wBACH,MAAM,EACJ,OAAO,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;4BACnC,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG;4BAC3B,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE;wBAClB,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;wBAC/C,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;qBAC9C,CAAC,CAAC;oBAEH,sBAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAC;;;oBAE9D,wBAAwB,CAAC,OAAK,EAAE,GAAG,CAAC,CAAC,CAAC,6BAA6B;;;;;;CAEtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialsLogout.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAG5D,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"credentialsLogout.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAG5D,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,iBASvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialsLogout.js","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAC,OAAO,WAAiB,GAAmB,EAAE,GAAoB;;;YACtE,YAAY,
|
|
1
|
+
{"version":3,"file":"credentialsLogout.js","sourceRoot":"","sources":["../../../../src/api/auth/credentialsLogout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAC,OAAO,WAAiB,GAAmB,EAAE,GAAoB;;;YACtE,YAAY,CAAC,mBAAmB,EAAE;gBAChC,GAAG,KAAA;gBACH,GAAG,KAAA;gBACH,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;gBAC/C,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;aAC9C,CAAC,CAAC;YACH,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;;;;CACxB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NextApiResponse } from 'next';
|
|
2
|
+
/**
|
|
3
|
+
* Handles and returns an appropriate error response based on the provided error.
|
|
4
|
+
*
|
|
5
|
+
* @param {unknown} error - The error object which could be of various types such as fetch errors, JWT errors, or generic errors.
|
|
6
|
+
* @param {NextApiResponse} res - The API response object used to send the error response.
|
|
7
|
+
* @returns {NextApiResponse} - The response object containing the appropriate error status and message.
|
|
8
|
+
*
|
|
9
|
+
* This function evaluates the type of error passed to it and maps these errors to suitable
|
|
10
|
+
* HTTP status codes and human-readable messages. It supports specific cases such as:
|
|
11
|
+
* - Fetch errors.
|
|
12
|
+
* - JSON Web Token (JWT) related errors (expired tokens, invalid tokens, signature issues, missing matching keys).
|
|
13
|
+
* - Standard JavaScript errors.
|
|
14
|
+
* - Unknown errors where it defaults to a generic unknown error message.
|
|
15
|
+
*
|
|
16
|
+
* The response will always include the error status and a message describing the error.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getWebTokenErrorResponse: (error: unknown, res: NextApiResponse) => NextApiResponse;
|
|
19
|
+
//# sourceMappingURL=errorHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/errorHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAyB5C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,OAAO,EACd,KAAK,eAAe,KACnB,eAkCF,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { errors as joseErrors } from 'jose';
|
|
2
|
+
import { isFetchError } from '@gen3/core';
|
|
3
|
+
var HTTP_INTERNAL_ERROR = 500;
|
|
4
|
+
/**
|
|
5
|
+
* An object that contains predefined error messages for handling JWT-related issues.
|
|
6
|
+
*
|
|
7
|
+
* Properties:
|
|
8
|
+
* - TOKEN_EXPIRED: Error message indicating that the JSON Web Token (JWT) has expired.
|
|
9
|
+
* - TOKEN_INVALID: Error message specifying that the JWT is invalid.
|
|
10
|
+
* - TOKEN_SIGNATURE_INVALID: Error message for when the JWT signature cannot be verified.
|
|
11
|
+
* - JWKS_NO_MATCHING_KEY: Error message indicating that no matching key was found in JWKS
|
|
12
|
+
* (JSON Web Key Set) for JWT verification.
|
|
13
|
+
* - UNKNOWN: General error message for unspecified or unknown errors.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
var ERRORS = {
|
|
17
|
+
TOKEN_EXPIRED: 'The JWT has expired.',
|
|
18
|
+
TOKEN_INVALID: 'The JWT is invalid.',
|
|
19
|
+
TOKEN_SIGNATURE_INVALID: 'The JWT signature is invalid.',
|
|
20
|
+
JWKS_NO_MATCHING_KEY: 'No matching key found in JWKS for JWT verification.',
|
|
21
|
+
UNKNOWN: 'Unknown error',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Handles and returns an appropriate error response based on the provided error.
|
|
25
|
+
*
|
|
26
|
+
* @param {unknown} error - The error object which could be of various types such as fetch errors, JWT errors, or generic errors.
|
|
27
|
+
* @param {NextApiResponse} res - The API response object used to send the error response.
|
|
28
|
+
* @returns {NextApiResponse} - The response object containing the appropriate error status and message.
|
|
29
|
+
*
|
|
30
|
+
* This function evaluates the type of error passed to it and maps these errors to suitable
|
|
31
|
+
* HTTP status codes and human-readable messages. It supports specific cases such as:
|
|
32
|
+
* - Fetch errors.
|
|
33
|
+
* - JSON Web Token (JWT) related errors (expired tokens, invalid tokens, signature issues, missing matching keys).
|
|
34
|
+
* - Standard JavaScript errors.
|
|
35
|
+
* - Unknown errors where it defaults to a generic unknown error message.
|
|
36
|
+
*
|
|
37
|
+
* The response will always include the error status and a message describing the error.
|
|
38
|
+
*/
|
|
39
|
+
export var getWebTokenErrorResponse = function (error, res) {
|
|
40
|
+
if (isFetchError(error)) {
|
|
41
|
+
res.status(error.status).json({ message: error.statusText });
|
|
42
|
+
return res;
|
|
43
|
+
}
|
|
44
|
+
if (error instanceof joseErrors.JWTExpired) {
|
|
45
|
+
res.status(HTTP_INTERNAL_ERROR).json({ message: ERRORS.TOKEN_EXPIRED });
|
|
46
|
+
return res;
|
|
47
|
+
}
|
|
48
|
+
if (error instanceof joseErrors.JWTInvalid) {
|
|
49
|
+
res.status(HTTP_INTERNAL_ERROR).json({ message: ERRORS.TOKEN_INVALID });
|
|
50
|
+
return res;
|
|
51
|
+
}
|
|
52
|
+
if (error instanceof joseErrors.JWSInvalid) {
|
|
53
|
+
res
|
|
54
|
+
.status(HTTP_INTERNAL_ERROR)
|
|
55
|
+
.json({ message: ERRORS.TOKEN_SIGNATURE_INVALID });
|
|
56
|
+
return res;
|
|
57
|
+
}
|
|
58
|
+
if (error instanceof joseErrors.JWKSNoMatchingKey) {
|
|
59
|
+
res
|
|
60
|
+
.status(HTTP_INTERNAL_ERROR)
|
|
61
|
+
.json({ message: ERRORS.JWKS_NO_MATCHING_KEY });
|
|
62
|
+
return res;
|
|
63
|
+
}
|
|
64
|
+
if (error instanceof Error) {
|
|
65
|
+
res.status(HTTP_INTERNAL_ERROR).json({ message: error.message });
|
|
66
|
+
return res;
|
|
67
|
+
}
|
|
68
|
+
res.status(HTTP_INTERNAL_ERROR).json({ message: ERRORS.UNKNOWN });
|
|
69
|
+
return res;
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=errorHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorHandler.js","sourceRoot":"","sources":["../../../../src/api/auth/errorHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,IAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC;;;;;;;;;;;GAWG;AACH,IAAM,MAAM,GAAG;IACb,aAAa,EAAE,sBAAsB;IACrC,aAAa,EAAE,qBAAqB;IACpC,uBAAuB,EAAE,+BAA+B;IACxD,oBAAoB,EAAE,qDAAqD;IAC3E,OAAO,EAAE,eAAe;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,IAAM,wBAAwB,GAAG,UACtC,KAAc,EACd,GAAoB;IAEpB,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QACxB,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;QAC7D,OAAO,GAAG,CAAC;IACb,CAAC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.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionLogout.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/sessionLogout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAM5D,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"sessionLogout.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/sessionLogout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAM5D,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,iBAwCvE"}
|
|
@@ -41,7 +41,7 @@ export default function (req, res) {
|
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
return __generator(this, function (_a) {
|
|
43
43
|
switch (_a.label) {
|
|
44
|
-
case 0: return [4 /*yield*/, fetch("".concat(GEN3_FENCE_API, "/
|
|
44
|
+
case 0: return [4 /*yield*/, fetch("".concat(GEN3_FENCE_API, "/logout"), {
|
|
45
45
|
method: 'GET',
|
|
46
46
|
headers: {
|
|
47
47
|
'Content-Type': 'application/json',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionLogout.js","sourceRoot":"","sources":["../../../../src/api/auth/sessionLogout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,cAAc,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,KAAK;4BACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;4BAC/C,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;4BAC7C,IAAI,EAAE,GAAG;4BACT,OAAO,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;yBACrB,CAAC;qBACH,CAAC,CAAC;oBACH,YAAY,CAAC,mBAAmB,EAAE;wBAChC,GAAG,KAAA;wBACH,GAAG,KAAA;wBACH,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;wBAC/C,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;qBAC9C,CAAC,CAAC;oBACH,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;;;;;CAC9C"}
|
|
@@ -9,5 +9,5 @@ export interface JWTPayloadAndUser extends JWTPayload {
|
|
|
9
9
|
* @param req
|
|
10
10
|
* @param res
|
|
11
11
|
*/
|
|
12
|
-
export default function (req: NextApiRequest, res: NextApiResponse): Promise<void>;
|
|
12
|
+
export default function (req: NextApiRequest, res: NextApiResponse): Promise<void | NextApiResponse>;
|
|
13
13
|
//# sourceMappingURL=sessionToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionToken.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/sessionToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"sessionToken.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/sessionToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAyB,UAAU,EAAa,MAAM,MAAM,CAAC;AAIpE,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,YAA2B,CAAC;AAEnE,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,mCAiCvE"}
|
|
@@ -35,7 +35,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { getCookie } from 'cookies-next';
|
|
38
|
-
import { decodeJwt } from 'jose';
|
|
38
|
+
import { decodeJwt, importSPKI, jwtVerify } from 'jose';
|
|
39
|
+
import { fetchJWTKey } from './utils';
|
|
40
|
+
import { getWebTokenErrorResponse } from './errorHandler';
|
|
39
41
|
export var isExpired = function (value) { return value - Date.now() > 0; };
|
|
40
42
|
/**
|
|
41
43
|
* returns the access_token expiration, user, and status
|
|
@@ -44,25 +46,48 @@ export var isExpired = function (value) { return value - Date.now() > 0; };
|
|
|
44
46
|
*/
|
|
45
47
|
export default function (req, res) {
|
|
46
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
var access_token, decodedAccessToken;
|
|
49
|
+
var access_token, jwtKey, publicKey, decodedAccessToken, error_1;
|
|
48
50
|
return __generator(this, function (_a) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
switch (_a.label) {
|
|
52
|
+
case 0:
|
|
53
|
+
_a.trys.push([0, 5, , 6]);
|
|
54
|
+
access_token = getCookie('access_token', { req: req, res: res });
|
|
55
|
+
if (!access_token) return [3 /*break*/, 4];
|
|
56
|
+
return [4 /*yield*/, fetchJWTKey()];
|
|
57
|
+
case 1:
|
|
58
|
+
jwtKey = _a.sent();
|
|
59
|
+
if (!jwtKey) {
|
|
60
|
+
res.status(500).json({
|
|
61
|
+
message: 'No JWT Key to verify token',
|
|
62
|
+
});
|
|
63
|
+
return [2 /*return*/, res];
|
|
64
|
+
}
|
|
65
|
+
return [4 /*yield*/, importSPKI(jwtKey, 'RS256')];
|
|
66
|
+
case 2:
|
|
67
|
+
publicKey = _a.sent();
|
|
68
|
+
return [4 /*yield*/, jwtVerify(access_token, publicKey)];
|
|
69
|
+
case 3:
|
|
70
|
+
_a.sent();
|
|
71
|
+
decodedAccessToken = decodeJwt(access_token);
|
|
72
|
+
return [2 /*return*/, res.status(200).json({
|
|
73
|
+
issued: decodedAccessToken.iat,
|
|
74
|
+
expires: decodedAccessToken.exp,
|
|
75
|
+
userContext: decodedAccessToken.context.user,
|
|
76
|
+
status: decodedAccessToken.exp
|
|
77
|
+
? isExpired(decodedAccessToken.exp)
|
|
78
|
+
? 'expired'
|
|
79
|
+
: 'issued'
|
|
80
|
+
: 'invalid',
|
|
81
|
+
})];
|
|
82
|
+
case 4: return [2 /*return*/, res.status(200).json({
|
|
83
|
+
status: 'not present',
|
|
61
84
|
})];
|
|
85
|
+
case 5:
|
|
86
|
+
error_1 = _a.sent();
|
|
87
|
+
getWebTokenErrorResponse(error_1, res); // will update the res object with error
|
|
88
|
+
return [3 /*break*/, 6];
|
|
89
|
+
case 6: return [2 /*return*/];
|
|
62
90
|
}
|
|
63
|
-
return [2 /*return*/, res.status(200).json({
|
|
64
|
-
status: 'not present',
|
|
65
|
-
})];
|
|
66
91
|
});
|
|
67
92
|
});
|
|
68
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionToken.js","sourceRoot":"","sources":["../../../../src/api/auth/sessionToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EA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C;4BAC1B,MAAM,EAAE,kBAAkB,CAAC,GAAG;4BAC9B,OAAO,EAAE,kBAAkB,CAAC,GAAG;4BAC/B,WAAW,EAAE,kBAAkB,CAAC,OAAO,CAAC,IAAI;4BAC5C,MAAM,EAAE,kBAAkB,CAAC,GAAG;gCAC5B,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,GAAG,CAAC;oCACjC,CAAC,CAAC,SAAS;oCACX,CAAC,CAAC,QAAQ;gCACZ,CAAC,CAAC,SAAS;yBACd,CAAC,EAAC;wBAGL,sBAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;wBAC1B,MAAM,EAAE,aAAa;qBACtB,CAAC,EAAC;;;oBAEH,wBAAwB,CAAC,OAAK,EAAE,GAAG,CAAC,CAAC,CAAC,wCAAwC;;;;;;CAEjF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetches a JSON Web Token (JWT) key from the specified endpoint.
|
|
3
|
+
*
|
|
4
|
+
* This asynchronous function interacts with the Gen3 Fence API to retrieve JWT keys.
|
|
5
|
+
* If the response status is not 200 or the expected key format is not found, the function
|
|
6
|
+
* will return null. Otherwise, it returns the first available key.
|
|
7
|
+
*
|
|
8
|
+
* @function
|
|
9
|
+
* @async
|
|
10
|
+
* @returns {Promise<string|null>} A Promise resolving to the JWT key as a string if available, or null if not.
|
|
11
|
+
*/
|
|
12
|
+
export declare const fetchJWTKey: () => Promise<string | null>;
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/utils.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,8BAavB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { fetchFence } from '@gen3/core';
|
|
38
|
+
/**
|
|
39
|
+
* Fetches a JSON Web Token (JWT) key from the specified endpoint.
|
|
40
|
+
*
|
|
41
|
+
* This asynchronous function interacts with the Gen3 Fence API to retrieve JWT keys.
|
|
42
|
+
* If the response status is not 200 or the expected key format is not found, the function
|
|
43
|
+
* will return null. Otherwise, it returns the first available key.
|
|
44
|
+
*
|
|
45
|
+
* @function
|
|
46
|
+
* @async
|
|
47
|
+
* @returns {Promise<string|null>} A Promise resolving to the JWT key as a string if available, or null if not.
|
|
48
|
+
*/
|
|
49
|
+
export var fetchJWTKey = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
+
var response;
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return __generator(this, function (_c) {
|
|
53
|
+
switch (_c.label) {
|
|
54
|
+
case 0: return [4 /*yield*/, fetchFence({
|
|
55
|
+
endpoint: '/jwt/keys',
|
|
56
|
+
isJSON: true,
|
|
57
|
+
})];
|
|
58
|
+
case 1:
|
|
59
|
+
response = _c.sent();
|
|
60
|
+
if (response.status !== 200) {
|
|
61
|
+
return [2 /*return*/, null];
|
|
62
|
+
}
|
|
63
|
+
if (((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.keys.length) && ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.keys[0].length) > 1) {
|
|
64
|
+
return [2 /*return*/, response.data.keys[0][1]];
|
|
65
|
+
}
|
|
66
|
+
return [2 /*return*/, null];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}); };
|
|
70
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/api/auth/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMxC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,IAAM,WAAW,GAAG;;;;;oBACR,qBAAM,UAAU,CAAc;oBAC7C,QAAQ,EAAE,WAAW;oBACrB,MAAM,EAAE,IAAI;iBACb,CAAC,EAAA;;gBAHI,QAAQ,GAAG,SAGf;gBACF,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC5B,sBAAO,IAAI,EAAC;gBACd,CAAC;gBAED,IAAI,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,CAAC,MAAM,KAAI,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,CAAC,CAAC,EAAE,MAAM,IAAG,CAAC,EAAE,CAAC;oBACtE,sBAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC;gBAClC,CAAC;gBACD,sBAAO,IAAI,EAAC;;;KACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/ActionButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Buttons/ActionButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxD,QAAA,MAAM,YAAY,GAAI,6DAOnB,mBAAmB,4CAmBrB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.js","sourceRoot":"","sources":["../../../../src/components/Buttons/ActionButton.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ActionButton.js","sourceRoot":"","sources":["../../../../src/components/Buttons/ActionButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,IAAM,YAAY,GAAG,UAAC,EAOA;QANpB,KAAK,WAAA,EACL,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,WAAW,iBAAA;IAEX,OAAO,CACL,KAAC,OAAO,IACN,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAC,QAAQ,EACjB,SAAS,QACT,SAAS,QACT,QAAQ,EAAE,WAAW,KAAK,SAAS,YAEnC,KAAC,MAAM,IACL,KAAK,EAAC,WAAW,EACjB,QAAQ,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EACjD,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EACvD,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,YAEzD,KAAK,GACC,GACD,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
1
2
|
import { ButtonProps } from '@mantine/core';
|
|
2
3
|
import { Modals } from '@gen3/core';
|
|
3
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
4
4
|
/**
|
|
5
5
|
* Properties for the DownloadButton component.
|
|
6
6
|
* @category Buttons
|
|
@@ -71,6 +71,6 @@ interface DownloadButtonProps {
|
|
|
71
71
|
* @param toolTip - The tooltip to display.
|
|
72
72
|
* @category Buttons
|
|
73
73
|
*/
|
|
74
|
-
export declare const DownloadButton:
|
|
74
|
+
export declare const DownloadButton: React.ForwardRefExoticComponent<DownloadButtonProps & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
75
75
|
export {};
|
|
76
76
|
//# sourceMappingURL=DownloadButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/DownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/DownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACpE,OAAO,EAAU,WAAW,EAAmB,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAa,MAAM,EAAmB,MAAM,YAAY,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,eAAO,MAAM,cAAc,6GAyE1B,CAAC"}
|
|
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { forwardRef } from 'react';
|
|
24
25
|
import { Button, Loader, Tooltip } from '@mantine/core';
|
|
25
26
|
import { FiDownload } from 'react-icons/fi';
|
|
26
27
|
import download from '../../../utils/download';
|
|
27
28
|
import { hideModal, Modals, useCoreDispatch } from '@gen3/core';
|
|
28
|
-
import { forwardRef } from 'react';
|
|
29
29
|
/**
|
|
30
30
|
* A Button component that downloads data from a given endpoint.
|
|
31
31
|
* The component will handle all download logic including fetching
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/DownloadButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"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":"JSONObjectDownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"JSONObjectDownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqD1D,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -39,8 +39,8 @@ import { useState } from 'react';
|
|
|
39
39
|
import { Button, Tooltip } from '@mantine/core';
|
|
40
40
|
import { Icon } from '@iconify/react';
|
|
41
41
|
var JSONObjectDownloadButton = function (_a) {
|
|
42
|
-
var getData = _a.getData, _b = _a.filename, filename = _b === void 0 ? 'data.json' : _b, _c = _a.icon, icon = _c === void 0 ? 'gen3:download' : _c, tooltip = _a.tooltip;
|
|
43
|
-
var
|
|
42
|
+
var getData = _a.getData, _b = _a.filename, filename = _b === void 0 ? 'data.json' : _b, _c = _a.icon, icon = _c === void 0 ? 'gen3:download' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, tooltip = _a.tooltip;
|
|
43
|
+
var _e = useState(false), isDownloading = _e[0], setIsDownloading = _e[1];
|
|
44
44
|
var saveToJSONFile = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
45
|
var data, blob, url, link;
|
|
46
46
|
return __generator(this, function (_a) {
|
|
@@ -69,7 +69,7 @@ var JSONObjectDownloadButton = function (_a) {
|
|
|
69
69
|
return [2 /*return*/];
|
|
70
70
|
});
|
|
71
71
|
}); };
|
|
72
|
-
return (_jsx(Tooltip, { label: tooltip, disabled: !tooltip, children: _jsx(Button, { variant: "outline", onClick: saveToJSONFile, disabled: isDownloading, loading: isDownloading, classNames: { root: 'bg-base-max' }, className: "flex items-center gap-2", children: _jsx(Icon, { icon: icon, height: "1.5rem" }) }) }));
|
|
72
|
+
return (_jsx(Tooltip, { label: tooltip, disabled: !tooltip, children: _jsx(Button, { variant: "outline", onClick: saveToJSONFile, disabled: isDownloading || disabled, loading: isDownloading, classNames: { root: 'bg-base-max' }, className: "flex items-center gap-2", children: _jsx(Icon, { icon: icon, height: "1.5rem" }) }) }));
|
|
73
73
|
};
|
|
74
74
|
export default JSONObjectDownloadButton;
|
|
75
75
|
//# sourceMappingURL=JSONObjectDownloadButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONObjectDownloadButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObjectDownloadButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"JSONObjectDownloadButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DownloadButtons/JSONObject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AC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC3B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;YAC7C,CAAC;oBAAS,CAAC;gBACT,gBAAgB,CAAC,KAAK,CAAC,CAAC;YAC1B,CAAC;;;SACF,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,YACzC,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,IAAI,QAAQ,EACnC,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EACnC,SAAS,EAAC,yBAAyB,YAEnC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,GAAQ,GAClC,GACD,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DropdownButtonProps } from './types';
|
|
2
|
-
declare const DropdownButton: ({ title, dropdownItems }: DropdownButtonProps) => JSX.Element;
|
|
2
|
+
declare const DropdownButton: ({ title, dropdownItems, }: DropdownButtonProps) => JSX.Element;
|
|
3
3
|
export default DropdownButton;
|
|
4
4
|
//# sourceMappingURL=DropdownButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DropdownButtons/DropdownButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/DropdownButtons/DropdownButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,QAAA,MAAM,cAAc,GAAI,2BAGrB,mBAAmB,KAAG,GAAG,CAAC,OA0B5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DropdownButtons/DropdownButton.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../../../src/components/Buttons/DropdownButtons/DropdownButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,IAAM,cAAc,GAAG,UAAC,EAGF;QAFpB,KAAK,WAAA,EACL,aAAa,mBAAA;IAEb,OAAO,CACL,MAAC,IAAI,IAAC,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAlB,CAAkB,aAC3C,KAAC,IAAI,CAAC,MAAM,cACV,KAAC,MAAM,IAAC,KAAK,EAAC,WAAW,YAAE,KAAK,GAAU,GAC9B,EACd,KAAC,IAAI,CAAC,QAAQ,cACX,aAAa,CAAC,GAAG,CAAC,UAAC,MAAM;oBACxB,OAAO,CACL,KAAC,IAAI,CAAC,IAAI,IAER,QAAQ,EAAE,MAAM,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAC/D,WAAW,EACT,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EAE3D,YAAY,EACV,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,EAAC,CAAC,CAAC,KAAC,IAAI,IAAC,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