@gen3/frontend 0.10.97 → 0.10.99
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 +9307 -8667
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/api/staticNotebook/index.d.ts +4 -0
- package/dist/dts/api/staticNotebook/index.d.ts.map +1 -0
- package/dist/dts/api/staticNotebook/index.js +118 -0
- package/dist/dts/api/staticNotebook/index.js.map +1 -0
- package/dist/dts/api/staticNotebooks/index.d.ts +4 -0
- package/dist/dts/api/staticNotebooks/index.d.ts.map +1 -0
- package/dist/dts/api/staticNotebooks/index.js +118 -0
- package/dist/dts/api/staticNotebooks/index.js.map +1 -0
- package/dist/dts/components/Login/LoginPanel.js +0 -1
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
- package/dist/dts/components/Protected/ProtectedContent.js +9 -4
- package/dist/dts/components/Protected/ProtectedContent.js.map +1 -1
- package/dist/dts/components/SegmentedControl.d.ts +8 -0
- package/dist/dts/components/SegmentedControl.d.ts.map +1 -0
- package/dist/dts/components/SegmentedControl.js +23 -0
- package/dist/dts/components/SegmentedControl.js.map +1 -0
- package/dist/dts/components/charts/CollapsableCharts.d.ts +12 -0
- package/dist/dts/components/charts/CollapsableCharts.d.ts.map +1 -0
- package/dist/dts/components/charts/CollapsableCharts.js +24 -0
- package/dist/dts/components/charts/CollapsableCharts.js.map +1 -0
- package/dist/dts/components/charts/index.d.ts +2 -1
- package/dist/dts/components/charts/index.d.ts.map +1 -1
- package/dist/dts/components/charts/index.js +2 -1
- package/dist/dts/components/charts/index.js.map +1 -1
- package/dist/dts/components/charts/types.d.ts +9 -0
- package/dist/dts/components/charts/types.d.ts.map +1 -1
- package/dist/dts/components/facets/EnumFacet.js +2 -2
- package/dist/dts/components/facets/EnumFacet.js.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/ExactValueFacet.js +3 -3
- package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
- package/dist/dts/components/facets/FacetSelectionModal.d.ts +22 -0
- package/dist/dts/components/facets/FacetSelectionModal.d.ts.map +1 -0
- package/dist/dts/components/facets/FacetSelectionModal.js +77 -0
- package/dist/dts/components/facets/FacetSelectionModal.js.map +1 -0
- package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetSelector.js +7 -4
- package/dist/dts/components/facets/FacetSelector.js.map +1 -1
- package/dist/dts/components/facets/FacetTabs.d.ts +38 -0
- package/dist/dts/components/facets/FacetTabs.d.ts.map +1 -0
- package/dist/dts/components/facets/FacetTabs.js +166 -0
- package/dist/dts/components/facets/FacetTabs.js.map +1 -0
- package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/MultiSelectValueFacet.js +3 -3
- package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js +29 -0
- package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts +32 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.js +168 -0
- package/dist/dts/components/facets/NumericRangeFacet/FromTo.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js +30 -0
- package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js +11 -0
- package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts +12 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js +113 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts +26 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js +63 -0
- package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.js +23 -0
- package/dist/dts/components/facets/NumericRangeFacet/Year.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts +5 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.js +24 -0
- package/dist/dts/components/facets/NumericRangeFacet/Years.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.d.ts +19 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.js +65 -0
- package/dist/dts/components/facets/NumericRangeFacet/index.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.d.ts +27 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.js +2 -0
- package/dist/dts/components/facets/NumericRangeFacet/types.js.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts +52 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts.map +1 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.js +288 -0
- package/dist/dts/components/facets/NumericRangeFacet/utils.js.map +1 -0
- package/dist/dts/components/facets/RangeFacet.d.ts +1 -6
- package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/RangeFacet.js +3 -3
- package/dist/dts/components/facets/RangeFacet.js.map +1 -1
- package/dist/dts/components/facets/constants.d.ts +1 -0
- package/dist/dts/components/facets/constants.d.ts.map +1 -1
- package/dist/dts/components/facets/constants.js +1 -0
- package/dist/dts/components/facets/constants.js.map +1 -1
- package/dist/dts/components/facets/createFacetCard.d.ts +16 -2
- package/dist/dts/components/facets/createFacetCard.d.ts.map +1 -1
- package/dist/dts/components/facets/createFacetCard.js +13 -10
- package/dist/dts/components/facets/createFacetCard.js.map +1 -1
- package/dist/dts/components/facets/createFacetCards.d.ts +10 -0
- package/dist/dts/components/facets/createFacetCards.d.ts.map +1 -0
- package/dist/dts/components/facets/createFacetCards.js +19 -0
- package/dist/dts/components/facets/createFacetCards.js.map +1 -0
- 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 +10 -1
- package/dist/dts/components/facets/hooks.js.map +1 -1
- package/dist/dts/components/facets/index.d.ts +11 -1
- package/dist/dts/components/facets/index.d.ts.map +1 -1
- package/dist/dts/components/facets/index.js +11 -1
- package/dist/dts/components/facets/index.js.map +1 -1
- package/dist/dts/components/facets/types.d.ts +97 -3
- package/dist/dts/components/facets/types.d.ts.map +1 -1
- package/dist/dts/components/facets/types.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts +11 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js +20 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts +3 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js +78 -0
- package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.js +6 -4
- package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts +34 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.js +25 -0
- package/dist/dts/features/Analysis/AnalysisCard.stories.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +22 -10
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts +22 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.js +28 -0
- package/dist/dts/features/Analysis/AnalysisPanel.stories.js.map +1 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts +29 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts.map +1 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.js +37 -0
- package/dist/dts/features/Analysis/AnalysisWorkspace.js.map +1 -0
- package/dist/dts/features/Analysis/TextDescription.js +1 -1
- package/dist/dts/features/Analysis/context.d.ts +29 -0
- package/dist/dts/features/Analysis/context.d.ts.map +1 -0
- package/dist/dts/features/Analysis/context.js +34 -0
- package/dist/dts/features/Analysis/context.js.map +1 -0
- package/dist/dts/features/Analysis/types.d.ts +6 -0
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +22 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +53 -19
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +0 -4
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js +9 -1
- package/dist/dts/features/CohortBuilder/FiltersPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts +16 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js +185 -0
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js.map +1 -0
- package/dist/dts/features/CohortBuilder/index.d.ts +3 -2
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +3 -2
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +2 -1
- 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/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +5 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +10 -9
- package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +5 -4
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +1 -2
- package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +1 -0
- package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/queryApi.js +0 -380
- package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
- package/dist/dts/features/Dictionary/types.d.ts +3 -3
- package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts +9 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts.map +1 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js +24 -0
- package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js.map +1 -0
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +2 -2
- package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
- package/dist/dts/features/Discovery/types.d.ts +4 -16
- package/dist/dts/features/Discovery/types.d.ts.map +1 -1
- package/dist/dts/features/Discovery/types.js.map +1 -1
- package/dist/dts/features/Navigation/Header.js +1 -1
- package/dist/dts/features/Navigation/Header.js.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.d.ts +3 -3
- package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
- package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
- package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
- package/dist/dts/features/Navigation/TopBar/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar/TopBar.js +3 -2
- package/dist/dts/features/Navigation/TopBar/TopBar.js.map +1 -1
- package/dist/dts/features/Navigation/index.d.ts +2 -2
- package/dist/dts/features/Navigation/index.d.ts.map +1 -1
- package/dist/dts/features/Navigation/index.js +2 -1
- package/dist/dts/features/Navigation/index.js.map +1 -1
- package/dist/dts/features/Navigation/types.d.ts +7 -1
- package/dist/dts/features/Navigation/types.d.ts.map +1 -1
- package/dist/dts/features/Navigation/types.js +19 -1
- package/dist/dts/features/Navigation/types.js.map +1 -1
- package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.js +79 -0
- package/dist/dts/features/StaticNotebook/StaticNotebook.js.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts +6 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js +10 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts +6 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js +91 -0
- package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js.map +1 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js +129 -0
- package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js.map +1 -0
- package/dist/dts/features/StaticNotebook/constants.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/constants.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/constants.js +5 -0
- package/dist/dts/features/StaticNotebook/constants.js.map +1 -0
- package/dist/dts/features/StaticNotebook/index.d.ts +4 -0
- package/dist/dts/features/StaticNotebook/index.d.ts.map +1 -0
- package/dist/dts/features/StaticNotebook/index.js +4 -0
- package/dist/dts/features/StaticNotebook/index.js.map +1 -0
- package/dist/dts/index.d.ts +8 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +8 -3
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
- package/dist/dts/lib/common/staticProps.js +28 -8
- package/dist/dts/lib/common/staticProps.js.map +1 -1
- package/dist/dts/lib/content/types.d.ts +2 -2
- package/dist/dts/lib/content/types.d.ts.map +1 -1
- package/dist/dts/lib/notebooks/index.d.ts +3 -0
- package/dist/dts/lib/notebooks/index.d.ts.map +1 -0
- package/dist/dts/lib/notebooks/index.js +96 -0
- package/dist/dts/lib/notebooks/index.js.map +1 -0
- package/dist/dts/pages/AiSearch/AiSearch.js +1 -1
- package/dist/dts/pages/AiSearch/AiSearch.js.map +1 -1
- package/dist/dts/pages/AiSearch/data.js +1 -1
- package/dist/dts/pages/AiSearch/data.js.map +1 -1
- package/dist/dts/pages/Analysis/Analysis.js +1 -1
- package/dist/dts/pages/Analysis/Analysis.js.map +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -1
- package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js +1 -1
- package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
- package/dist/dts/pages/DataLibrary/DataLibrary.js +1 -1
- package/dist/dts/pages/DataLibrary/DataLibrary.js.map +1 -1
- package/dist/dts/pages/Discovery/Discovery.js +1 -1
- package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
- package/dist/dts/pages/Explorer/Explorer.js +1 -1
- package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +17 -4
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/Landing.js +1 -1
- package/dist/dts/pages/Landing/Landing.js.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.js +1 -1
- package/dist/dts/pages/Landing/contact.js.map +1 -1
- package/dist/dts/pages/Landing/resource.js +1 -1
- package/dist/dts/pages/Landing/resource.js.map +1 -1
- package/dist/dts/pages/Login/Login.js +1 -1
- package/dist/dts/pages/Login/Login.js.map +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js +1 -1
- package/dist/dts/pages/NotebookLite/NotebookLite.js.map +1 -1
- package/dist/dts/pages/Profile/Profile.js +1 -1
- package/dist/dts/pages/Profile/Profile.js.map +1 -1
- package/dist/dts/pages/Query/Query.js +1 -1
- package/dist/dts/pages/Query/Query.js.map +1 -1
- package/dist/dts/pages/Submission/Submission.js +1 -1
- package/dist/dts/pages/Submission/Submission.js.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts +4 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +24 -0
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.d.ts +4 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.js +81 -0
- package/dist/dts/pages/TabbedCohortBuilder/data.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.d.ts +3 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.js +3 -0
- package/dist/dts/pages/TabbedCohortBuilder/index.js.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.d.ts +6 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.d.ts.map +1 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.js +2 -0
- package/dist/dts/pages/TabbedCohortBuilder/types.js.map +1 -0
- package/dist/dts/pages/Theme/Colors.js +1 -1
- package/dist/dts/pages/Theme/Colors.js.map +1 -1
- package/dist/dts/pages/Workspace/Workspace.js +1 -1
- package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
- package/dist/dts/pages/Workspace/WorkspaceNoAccess.js +1 -1
- package/dist/dts/pages/Workspace/WorkspaceNoAccess.js.map +1 -1
- package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js +1 -1
- package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js.map +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
- package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
- package/dist/dts/pages/admin/analysis/data.d.ts +1 -1
- package/dist/dts/pages/admin/authz/Authz.js +1 -1
- package/dist/dts/pages/admin/authz/Authz.js.map +1 -1
- package/dist/dts/pages/admin/authz/data.d.ts +1 -1
- package/dist/dts/types/icons.d.ts +5 -3
- package/dist/dts/types/icons.d.ts.map +1 -1
- package/dist/dts/types/icons.js +5 -3
- package/dist/dts/types/icons.js.map +1 -1
- package/dist/dts/utils/useScrollToHash.d.ts +8 -0
- package/dist/dts/utils/useScrollToHash.d.ts.map +1 -0
- package/dist/dts/utils/useScrollToHash.js +25 -0
- package/dist/dts/utils/useScrollToHash.js.map +1 -0
- package/dist/esm/index.js +9267 -8671
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +738 -254
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,129 @@
|
|
|
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 path from 'path';
|
|
38
|
+
import fs from 'fs';
|
|
39
|
+
import DOMPurify from 'isomorphic-dompurify';
|
|
40
|
+
import { isArray } from 'lodash';
|
|
41
|
+
import { GEN3_STATIC_NOTEBOOK_DIR, GEN3_STATIC_NOTEBOOK_PATH, } from '../constants';
|
|
42
|
+
export var staticNotebookAPI = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
+
var notebook, filePath, sanitizedPath, fullPath, dataDir, rawContent, sanitizedContent;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
if (req.method === 'OPTIONS') {
|
|
46
|
+
res.status(200).json({
|
|
47
|
+
success: true,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
if (req.method === 'GET') {
|
|
51
|
+
try {
|
|
52
|
+
notebook = req.query.notebook;
|
|
53
|
+
if (!notebook) {
|
|
54
|
+
return [2 /*return*/, res
|
|
55
|
+
.status(400)
|
|
56
|
+
.json({ error: 'notebook parameter is required' })];
|
|
57
|
+
}
|
|
58
|
+
filePath = '';
|
|
59
|
+
if (isArray(notebook)) {
|
|
60
|
+
filePath = notebook[0];
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
filePath = notebook;
|
|
64
|
+
}
|
|
65
|
+
sanitizedPath = path
|
|
66
|
+
.normalize(filePath)
|
|
67
|
+
.replace(/^(\.\.[/\\])+/, '');
|
|
68
|
+
// Ensure the file is within the allowed directory and has .html extension
|
|
69
|
+
if (!sanitizedPath.endsWith('.html')) {
|
|
70
|
+
return [2 /*return*/, Response.json({
|
|
71
|
+
error: 'Only HTML files are allowed',
|
|
72
|
+
success: false,
|
|
73
|
+
}, { status: 400 })];
|
|
74
|
+
}
|
|
75
|
+
fullPath = path.join(process.cwd(), GEN3_STATIC_NOTEBOOK_DIR, sanitizedPath);
|
|
76
|
+
dataDir = path.join(process.cwd(), "".concat(GEN3_STATIC_NOTEBOOK_PATH, "/").concat(GEN3_STATIC_NOTEBOOK_DIR));
|
|
77
|
+
if (!fullPath.startsWith(dataDir)) {
|
|
78
|
+
return [2 /*return*/, res.status(403).json({
|
|
79
|
+
error: 'File access denied',
|
|
80
|
+
success: false,
|
|
81
|
+
})];
|
|
82
|
+
}
|
|
83
|
+
rawContent = fs.readFileSync(fullPath, 'utf8');
|
|
84
|
+
sanitizedContent = DOMPurify.sanitize(rawContent, {
|
|
85
|
+
ALLOWED_TAGS: [
|
|
86
|
+
'p',
|
|
87
|
+
'br',
|
|
88
|
+
'strong',
|
|
89
|
+
'em',
|
|
90
|
+
'h1',
|
|
91
|
+
'h2',
|
|
92
|
+
'h3',
|
|
93
|
+
'ul',
|
|
94
|
+
'ol',
|
|
95
|
+
'li',
|
|
96
|
+
'a',
|
|
97
|
+
'img',
|
|
98
|
+
],
|
|
99
|
+
ALLOWED_ATTR: ['href', 'title', 'src', 'alt', 'target'],
|
|
100
|
+
});
|
|
101
|
+
res.status(200).json({
|
|
102
|
+
content: sanitizedContent,
|
|
103
|
+
success: true,
|
|
104
|
+
filePath: sanitizedPath,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
if (error.code === 'ENOENT') {
|
|
109
|
+
res.status(404).json({
|
|
110
|
+
error: 'Notebook not found. Please check the notebook name and try again.',
|
|
111
|
+
success: false,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
console.error('Error reading or sanitizing HTML file:', error);
|
|
116
|
+
res.status(500).json({
|
|
117
|
+
error: 'Error reading or sanitizing HTML file',
|
|
118
|
+
success: false,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return [2 /*return*/, res
|
|
124
|
+
.status(405)
|
|
125
|
+
.json({ error: 'Only GET|OPTION requests are allowed' })];
|
|
126
|
+
});
|
|
127
|
+
}); };
|
|
128
|
+
export default staticNotebookAPI;
|
|
129
|
+
//# sourceMappingURL=staticNotebookAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staticNotebookAPI.js","sourceRoot":"","sources":["../../../../../src/features/StaticNotebook/api/staticNotebookAPI.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,GAAmB,EACnB,GAAoB;;;QAEpB,IAAI,GAAG,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC7B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACnB,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;QACL,CAAC;QAED,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;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 -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/StaticNotebook/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,QACqC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,QACoB,CAAC;AAC1D,eAAO,MAAM,yBAAyB,QACc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GEN3_API } from '@gen3/core';
|
|
2
|
+
export var GEN3_STATIC_NOTEBOOK_API = process.env.GEN3_STATIC_NOTEBOOK_API || "".concat(GEN3_API, "/api/staticNotebook");
|
|
3
|
+
export var GEN3_STATIC_NOTEBOOK_DIR = process.env.GEN3_STATIC_NOTEBOOK_DIR || 'htmlNotebooks';
|
|
4
|
+
export var GEN3_STATIC_NOTEBOOK_PATH = process.env.GEN3_STATIC_NOTEBOOK_PATH || '/public';
|
|
5
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/features/StaticNotebook/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,IAAM,wBAAwB,GACnC,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,UAAG,QAAQ,wBAAqB,CAAC;AAC3E,MAAM,CAAC,IAAM,wBAAwB,GACnC,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,eAAe,CAAC;AAC1D,MAAM,CAAC,IAAM,yBAAyB,GACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/StaticNotebook/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/StaticNotebook/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './components/Profile';
|
|
|
2
2
|
export * from './components/Login';
|
|
3
3
|
export * from './components/Modals';
|
|
4
4
|
export * from './components/charts';
|
|
5
|
+
export * from './components/facets';
|
|
5
6
|
export * from './components/Protected';
|
|
6
7
|
export * from './features/Navigation';
|
|
7
8
|
export * from './features/Discovery';
|
|
@@ -10,6 +11,7 @@ export * from './features/CohortBuilder';
|
|
|
10
11
|
export * from './features/Query';
|
|
11
12
|
export * from './features/Workspace';
|
|
12
13
|
export * from './features/Analysis';
|
|
14
|
+
export * from './features/StaticNotebook';
|
|
13
15
|
export * from './utils/';
|
|
14
16
|
import { getNavPageLayoutPropsFromConfig } from './lib/common/staticProps';
|
|
15
17
|
import ContentSource from './lib/content';
|
|
@@ -31,7 +33,7 @@ import { QueryPageGetServerSideProps } from './pages/Query/data';
|
|
|
31
33
|
import LandingPage from './pages/Landing/Landing';
|
|
32
34
|
import { LandingPageGetServerSideProps } from './pages/Landing/data';
|
|
33
35
|
import ExplorerPage from './pages/Explorer/Explorer';
|
|
34
|
-
import {
|
|
36
|
+
import { ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, type ExplorerPageProps } from './pages/Explorer';
|
|
35
37
|
import ColorThemePage from './pages/Theme/Colors';
|
|
36
38
|
import { ColorThemePageGetServerSideProps } from './pages/Theme';
|
|
37
39
|
import ProfilePage, { ProfilePageGetServerSideProps } from './pages/Profile';
|
|
@@ -44,7 +46,7 @@ import SubmissionPage from './pages/Submission/Submission';
|
|
|
44
46
|
import { SubmissionPageGetServerSideProps } from './pages/Submission/data';
|
|
45
47
|
import WorkspacePage from './pages/Workspace/Workspace';
|
|
46
48
|
import { WorkspaceNoAccessPage } from './pages/Workspace/index';
|
|
47
|
-
import {
|
|
49
|
+
import { WorkspaceNoAccessPageServerSideProps, WorkspacePageGetServerSideProps } from './pages/Workspace/data';
|
|
48
50
|
import AnalysisPage from './pages/Analysis/Analysis';
|
|
49
51
|
import { AnalysisPageGetServerSideProps, type AnalysisPageLayoutProps } from './pages/Analysis';
|
|
50
52
|
import AnalysisEditorPage from './pages/admin/analysis/Analysis';
|
|
@@ -56,11 +58,14 @@ import { NotebookLitePageGetStaticProps } from './pages/NotebookLite';
|
|
|
56
58
|
import DataLibraryPage, { DataLibraryPageGetServerSideProps } from './pages/DataLibrary';
|
|
57
59
|
import CrosswalkPage from './pages/Crosswalk';
|
|
58
60
|
import { CrosswalkPageGetServerSideProps } from './pages/Crosswalk/data';
|
|
61
|
+
import TabbedCohortBuilderPage from './pages/TabbedCohortBuilder';
|
|
62
|
+
import { TabbedCohortBuilderPageGetServerSideProps } from './pages/TabbedCohortBuilder/data';
|
|
59
63
|
import { TailwindConfig } from './utils/tailwindConfig';
|
|
60
64
|
import sessionToken from './api/auth/sessionToken';
|
|
61
65
|
import sessionLogout from './api/auth/sessionLogout';
|
|
62
66
|
import credentialsLogin from './api/auth/credentialsLogin';
|
|
63
67
|
import credentialsLogout from './api/auth/credentialsLogout';
|
|
64
68
|
import analysisApiCohortDiscovery from './features/CohortDiscovery/api/analysisApiCohortDiscovery';
|
|
65
|
-
|
|
69
|
+
import staticNotebookAPI from './features/StaticNotebook/api/staticNotebookAPI';
|
|
70
|
+
export { ContentSource, type Fonts, type RegisteredIcons, type SessionConfiguration, type ExplorerPageProps, type AnalysisPageLayoutProps, CollapsableSidebar, DropdownButton, Gen3Button, Gen3ButtonReverse, UploadJSONButton, ActionButton, ErrorCard, TopBar, DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetServerSideProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, createMantineTheme, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerMetadataSchemaApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, TabbedCohortBuilderPage, TabbedCohortBuilderPageGetServerSideProps, registerCohortDiscoveryApp, registerCohortSimilarityApp, analysisApiCohortDiscovery, staticNotebookAPI, };
|
|
66
71
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CA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,EACb,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,8BAA8B,EAC9B,aAAa,EACb,+BAA+B,EAC/B,cAAc,EACd,gCAAgC,EAChC,eAAe,EACf,iCAAiC,EACjC,gBAAgB,EAChB,8BAA8B,EAC9B,yBAAyB,EACzB,kBAAkB,EAClB,oCAAoC,EACpC,uBAAuB,EACvB,yCAAyC,EAEzC,0BAA0B,EAC1B,2BAA2B,EAE3B,0BAA0B,EAC1B,iBAAiB,GAClB,CAAC"}
|
package/dist/dts/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './components/Profile';
|
|
|
2
2
|
export * from './components/Login';
|
|
3
3
|
export * from './components/Modals';
|
|
4
4
|
export * from './components/charts';
|
|
5
|
+
export * from './components/facets';
|
|
5
6
|
export * from './components/Protected';
|
|
6
7
|
// features
|
|
7
8
|
export * from './features/Navigation';
|
|
@@ -11,6 +12,7 @@ export * from './features/CohortBuilder';
|
|
|
11
12
|
export * from './features/Query';
|
|
12
13
|
export * from './features/Workspace';
|
|
13
14
|
export * from './features/Analysis';
|
|
15
|
+
export * from './features/StaticNotebook';
|
|
14
16
|
export * from './utils/';
|
|
15
17
|
import { getNavPageLayoutPropsFromConfig } from './lib/common/staticProps';
|
|
16
18
|
import ContentSource from './lib/content';
|
|
@@ -44,7 +46,7 @@ import SubmissionPage from './pages/Submission/Submission';
|
|
|
44
46
|
import { SubmissionPageGetServerSideProps } from './pages/Submission/data';
|
|
45
47
|
import WorkspacePage from './pages/Workspace/Workspace';
|
|
46
48
|
import { WorkspaceNoAccessPage } from './pages/Workspace/index';
|
|
47
|
-
import {
|
|
49
|
+
import { WorkspaceNoAccessPageServerSideProps, WorkspacePageGetServerSideProps, } from './pages/Workspace/data';
|
|
48
50
|
import AnalysisPage from './pages/Analysis/Analysis';
|
|
49
51
|
import { AnalysisPageGetServerSideProps, } from './pages/Analysis';
|
|
50
52
|
import AnalysisEditorPage from './pages/admin/analysis/Analysis';
|
|
@@ -57,19 +59,22 @@ import DataLibraryPage, { DataLibraryPageGetServerSideProps, } from './pages/Dat
|
|
|
57
59
|
// TODO Replace with AppTool plugin
|
|
58
60
|
import CrosswalkPage from './pages/Crosswalk';
|
|
59
61
|
import { CrosswalkPageGetServerSideProps } from './pages/Crosswalk/data';
|
|
62
|
+
import TabbedCohortBuilderPage from './pages/TabbedCohortBuilder';
|
|
63
|
+
import { TabbedCohortBuilderPageGetServerSideProps } from './pages/TabbedCohortBuilder/data';
|
|
60
64
|
import { TailwindConfig } from './utils/tailwindConfig';
|
|
61
65
|
import sessionToken from './api/auth/sessionToken';
|
|
62
66
|
import sessionLogout from './api/auth/sessionLogout';
|
|
63
67
|
import credentialsLogin from './api/auth/credentialsLogin';
|
|
64
68
|
import credentialsLogout from './api/auth/credentialsLogout';
|
|
65
69
|
import analysisApiCohortDiscovery from './features/CohortDiscovery/api/analysisApiCohortDiscovery';
|
|
70
|
+
import staticNotebookAPI from './features/StaticNotebook/api/staticNotebookAPI';
|
|
66
71
|
export { ContentSource,
|
|
67
72
|
// components
|
|
68
73
|
CollapsableSidebar, DropdownButton, Gen3Button, Gen3ButtonReverse, UploadJSONButton, ActionButton, ErrorCard, TopBar,
|
|
69
74
|
// Pages
|
|
70
|
-
DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetServerSideProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, createMantineTheme, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerMetadataSchemaApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps,
|
|
75
|
+
DiscoveryPage, DiscoveryPageGetServerSideProps, QueryPage, QueryPageGetServerSideProps, LandingPage, LandingPageGetServerSideProps, ColorThemePage, ColorThemePageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ProfilePage, ProfilePageGetServerSideProps, LoginPage, LoginPageGetServerSideProps, TailwindConfig, Gen3Provider, getNavPageLayoutPropsFromConfig, AuthzPage, AdminAuthZPageGetServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, Custom404Page, sessionToken, sessionLogout, credentialsLogin, credentialsLogout, createMantineTheme, AiSearchPage, AISearchPageGetServerSideProps, CrosswalkPage, CrosswalkPageGetServerSideProps, SubmissionPage, SubmissionPageGetServerSideProps, DataLibraryPage, DataLibraryPageGetServerSideProps, NotebookLitePage, NotebookLitePageGetStaticProps, registerMetadataSchemaApp, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, TabbedCohortBuilderPage, TabbedCohortBuilderPageGetServerSideProps,
|
|
71
76
|
// apps
|
|
72
77
|
registerCohortDiscoveryApp, registerCohortSimilarityApp,
|
|
73
78
|
// appApis
|
|
74
|
-
analysisApiCohortDiscovery, };
|
|
79
|
+
analysisApiCohortDiscovery, staticNotebookAPI, };
|
|
75
80
|
//# sourceMappingURL=index.js.map
|
package/dist/dts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"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B,kBAAkB,EAClB,YAAY,EACZ,8BAA8B,EAC9B,aAAa,EACb,+BAA+B,EAC/B,cAAc,EACd,gCAAgC,EAChC,eAAe,EACf,iCAAiC,EACjC,gBAAgB,EAChB,8BAA8B,EAC9B,yBAAyB,EACzB,kBAAkB,EAClB,oCAAoC,EACpC,uBAAuB,EACvB,yCAAyC;AACzC,OAAO;AACP,0BAA0B,EAC1B,2BAA2B;AAC3B,UAAU;AACV,0BAA0B,EAC1B,iBAAiB,GAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticProps.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/staticProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"staticProps.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/staticProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EAKxB,MAAM,2BAA2B,CAAC;AAInC;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,QAChC,OAAO,CAAC,kBAAkB,CAwDnC,CAAC"}
|
|
@@ -34,6 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
+
import { isHeaderMetadata, } from '../../features/Navigation';
|
|
37
38
|
import ContentSource from '../content';
|
|
38
39
|
import { GEN3_COMMONS_NAME } from '@gen3/core';
|
|
39
40
|
/**
|
|
@@ -42,7 +43,7 @@ import { GEN3_COMMONS_NAME } from '@gen3/core';
|
|
|
42
43
|
* @returns A Promise resolving to an object containing header and footer props.
|
|
43
44
|
*/
|
|
44
45
|
export var getNavPageLayoutPropsFromConfig = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
-
var navigationConfigJSON, bannerConfigJSON,
|
|
46
|
+
var navigationConfigJSON, bannerConfigJSON, error_1, topBar, navigation, _a, type, headerMetadata, loadedHeaderMetadata, error_2, headerProps, footerProps;
|
|
46
47
|
return __generator(this, function (_b) {
|
|
47
48
|
switch (_b.label) {
|
|
48
49
|
case 0: return [4 /*yield*/, ContentSource.getContentDatabase().get("".concat(GEN3_COMMONS_NAME, "/navigation.json"))];
|
|
@@ -57,11 +58,34 @@ export var getNavPageLayoutPropsFromConfig = function () { return __awaiter(void
|
|
|
57
58
|
bannerConfigJSON = _b.sent();
|
|
58
59
|
return [3 /*break*/, 5];
|
|
59
60
|
case 4:
|
|
60
|
-
|
|
61
|
+
error_1 = _b.sent();
|
|
61
62
|
console.warn('No banner config found at: ', "".concat(GEN3_COMMONS_NAME, "/banner.json"));
|
|
62
63
|
return [3 /*break*/, 5];
|
|
63
64
|
case 5:
|
|
64
65
|
topBar = navigationConfigJSON.topBar, navigation = navigationConfigJSON.navigation, _a = navigationConfigJSON.type, type = _a === void 0 ? 'original' : _a;
|
|
66
|
+
headerMetadata = {
|
|
67
|
+
title: 'Gen3 Frontend Framework Page',
|
|
68
|
+
content: 'Gen3 Frontend Framework Page',
|
|
69
|
+
key: 'gen3-common-page',
|
|
70
|
+
};
|
|
71
|
+
_b.label = 6;
|
|
72
|
+
case 6:
|
|
73
|
+
_b.trys.push([6, 8, , 9]);
|
|
74
|
+
return [4 /*yield*/, ContentSource.getContentDatabase().get("".concat(GEN3_COMMONS_NAME, "/headerMetadata.json"))];
|
|
75
|
+
case 7:
|
|
76
|
+
loadedHeaderMetadata = _b.sent();
|
|
77
|
+
if (isHeaderMetadata(loadedHeaderMetadata)) {
|
|
78
|
+
headerMetadata = loadedHeaderMetadata;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
console.warn('headerMetadata is not a valid HeaderMetadata object');
|
|
82
|
+
}
|
|
83
|
+
return [3 /*break*/, 9];
|
|
84
|
+
case 8:
|
|
85
|
+
error_2 = _b.sent();
|
|
86
|
+
console.warn('No headerMetadata config found at: ', "".concat(GEN3_COMMONS_NAME, "/headerMetadata.json"));
|
|
87
|
+
return [3 /*break*/, 9];
|
|
88
|
+
case 9:
|
|
65
89
|
headerProps = {
|
|
66
90
|
top: topBar,
|
|
67
91
|
navigation: navigation,
|
|
@@ -69,16 +93,12 @@ export var getNavPageLayoutPropsFromConfig = function () { return __awaiter(void
|
|
|
69
93
|
type: type,
|
|
70
94
|
};
|
|
71
95
|
return [4 /*yield*/, ContentSource.getContentDatabase().get("".concat(GEN3_COMMONS_NAME, "/footer.json"))];
|
|
72
|
-
case
|
|
96
|
+
case 10:
|
|
73
97
|
footerProps = _b.sent();
|
|
74
98
|
return [2 /*return*/, {
|
|
75
99
|
headerProps: headerProps,
|
|
76
100
|
footerProps: footerProps,
|
|
77
|
-
|
|
78
|
-
title: 'Gen3 Frontend Framework Page',
|
|
79
|
-
content: 'Gen3 Frontend Framework Page',
|
|
80
|
-
key: 'gen3-common-page',
|
|
81
|
-
},
|
|
101
|
+
headerMetadata: headerMetadata,
|
|
82
102
|
}];
|
|
83
103
|
}
|
|
84
104
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticProps.js","sourceRoot":"","sources":["../../../../src/lib/common/staticProps.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"staticProps.js","sourceRoot":"","sources":["../../../../src/lib/common/staticProps.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAQL,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,aAAa,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;GAIG;AACH,MAAM,CAAC,IAAM,+BAA+B,GAC1C;;;;oBAC+B,qBAAM,aAAa,CAAC,kBAAkB,EAAE,CAAC,GAAG,CACvE,UAAG,iBAAiB,qBAAkB,CACvC,EAAA;;gBAFK,oBAAoB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,gBAAA;qBACf,EAAC;;;KACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONObject } from '@gen3/core';
|
|
2
|
-
import {
|
|
2
|
+
import { HeaderMetadata } from '../../features/Navigation/types';
|
|
3
3
|
export interface ContentSource {
|
|
4
4
|
get<T extends Record<string, undefined>>(filepath: string): Promise<T>;
|
|
5
5
|
getAll<T extends Record<string, unknown>>(filepath: string, filter: string): Promise<Array<T>>;
|
|
@@ -27,7 +27,7 @@ export interface Gen3AppConfigData {
|
|
|
27
27
|
version?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
schema?: JSONObject;
|
|
30
|
-
headerMetadata?:
|
|
30
|
+
headerMetadata?: HeaderMetadata;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
33
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/content/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/content/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvE,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACtB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/notebooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,eAAO,MAAO,GAAG,GAAU,SAAU,WAAW,sBA+D/C,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 path from 'path';
|
|
38
|
+
import fs from 'fs';
|
|
39
|
+
import DOMPurify from 'isomorphic-dompurify';
|
|
40
|
+
export var GET = function (request) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
|
+
var searchParams, filePath, sanitizedPath, fullPath, dataDir, rawContent, sanitizedContent;
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
try {
|
|
44
|
+
searchParams = new URL(request.url).searchParams;
|
|
45
|
+
filePath = searchParams.get('path');
|
|
46
|
+
// Validate that a path was provided
|
|
47
|
+
if (!filePath) {
|
|
48
|
+
return [2 /*return*/, Response.json({
|
|
49
|
+
error: 'File path is required. Use ?path=filename.html',
|
|
50
|
+
success: false
|
|
51
|
+
}, { status: 400 })];
|
|
52
|
+
}
|
|
53
|
+
sanitizedPath = path.normalize(filePath).replace(/^(\.\.[\/\\])+/, '');
|
|
54
|
+
// Ensure the file is within the allowed directory and has .html extension
|
|
55
|
+
if (!sanitizedPath.endsWith('.html')) {
|
|
56
|
+
return [2 /*return*/, Response.json({
|
|
57
|
+
error: 'Only HTML files are allowed',
|
|
58
|
+
success: false
|
|
59
|
+
}, { status: 400 })];
|
|
60
|
+
}
|
|
61
|
+
fullPath = path.join(process.cwd(), 'data', sanitizedPath);
|
|
62
|
+
dataDir = path.join(process.cwd(), 'data');
|
|
63
|
+
if (!fullPath.startsWith(dataDir)) {
|
|
64
|
+
return [2 /*return*/, Response.json({
|
|
65
|
+
error: 'File access denied',
|
|
66
|
+
success: false
|
|
67
|
+
}, { status: 403 })];
|
|
68
|
+
}
|
|
69
|
+
rawContent = fs.readFileSync(fullPath, 'utf8');
|
|
70
|
+
sanitizedContent = DOMPurify.sanitize(rawContent, {
|
|
71
|
+
ALLOWED_TAGS: ['p', 'br', 'strong', 'em', 'h1', 'h2', 'h3', 'ul', 'ol', 'li', 'a', 'img'],
|
|
72
|
+
ALLOWED_ATTR: ['href', 'title', 'src', 'alt', 'target']
|
|
73
|
+
});
|
|
74
|
+
return [2 /*return*/, Response.json({
|
|
75
|
+
content: sanitizedContent,
|
|
76
|
+
success: true,
|
|
77
|
+
filePath: sanitizedPath
|
|
78
|
+
})];
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
if (error.code === "ENOENT") {
|
|
82
|
+
return [2 /*return*/, Response.json({
|
|
83
|
+
error: 'File not found',
|
|
84
|
+
success: false
|
|
85
|
+
}, { status: 404 })];
|
|
86
|
+
}
|
|
87
|
+
console.error('Error reading or sanitizing HTML file:', error);
|
|
88
|
+
return [2 /*return*/, Response.json({
|
|
89
|
+
error: 'Failed to load content',
|
|
90
|
+
success: false
|
|
91
|
+
}, { status: 500 })];
|
|
92
|
+
}
|
|
93
|
+
return [2 /*return*/];
|
|
94
|
+
});
|
|
95
|
+
}); };
|
|
96
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/notebooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAE5C,MAAM,CAAC,IAAO,GAAG,GAAG,UAAO,OAAqB;;;QAC9C,IAAI,CAAC;YACK,YAAY,GAAK,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,aAAzB,CAA0B;YACxC,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAE1C,oCAAoC;YACpC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,sBAAO,Q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AAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;aACxD,CAAC,CAAC;YAEH,sBAAO,QAAQ,CAAC,IAAI,CAAC;oBACnB,OAAO,EAAE,gBAAgB;oBACzB,OAAO,EAAE,IAAI;oBACb,QAAQ,EAAE,aAAa;iBACxB,CAAC,EAAC;QAEL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACrD,sBAAO,QAAQ,CAAC,IAAI,CAAC;wBACnB,KAAK,EAAE,gBAAgB;wBACvB,OAAO,EAAE,KAAK;qBACf,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAC;YACtB,CAAC;YAEH,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC;YAC/D,sBAAO,QAAQ,CAAC,IAAI,CAAC;oBACnB,KAAK,EAAE,wBAAwB;oBAC/B,OAAO,EAAE,KAAK;iBACf,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAC;QACtB,CAAC;;;KACF,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { NavPageLayout } from '../../features/Navigation';
|
|
|
3
3
|
import AiSearch from '../../features/Discovery/Search/AiSearch';
|
|
4
4
|
var AISearchPage = function (_a) {
|
|
5
5
|
var headerProps = _a.headerProps, footerProps = _a.footerProps;
|
|
6
|
-
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps,
|
|
6
|
+
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: {
|
|
7
7
|
title: 'Gen3 AI Search Page',
|
|
8
8
|
content: 'AI Search',
|
|
9
9
|
key: 'gen3-ai-search-page',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiSearch.js","sourceRoot":"","sources":["../../../../src/pages/AiSearch/AiSearch.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAEhE,IAAM,YAAY,GAAG,UAAC,EAGD;QAFnB,WAAW,iBAAA,EACX,WAAW,iBAAA;IAEX,OAAO,CACL,KAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,
|
|
1
|
+
{"version":3,"file":"AiSearch.js","sourceRoot":"","sources":["../../../../src/pages/AiSearch/AiSearch.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAEhE,IAAM,YAAY,GAAG,UAAC,EAGD;QAFnB,WAAW,iBAAA,EACX,WAAW,iBAAA;IAEX,OAAO,CACL,KAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,cAAc,EAAE;YACd,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,WAAW;YACpB,GAAG,EAAE,qBAAqB;SAC3B,YAED,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,QAAQ,KAAG,GACR,GACQ,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/pages/AiSearch/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAG/E,MAAM,CAAC,IAAM,8BAA8B,GAEvC;;;;;;;;;gBAIQ,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,qCACA,CAAC,SAAuC,CAAC,GAC7C;yBACD;;;gBAEF,OAAO,CAAC,KAAK,CAAC,KAAG,CAAC,CAAC;gBACnB,sBAAO;wBACL,KAAK,EAAE;4BACL,WAAW,EAAE;gCACX,GAAG,EAAE;oCACH,KAAK,EAAE,EAAE;iCACV;gCACD,UAAU,EAAE,EAAE;6BACf;4BACD,WAAW,EAAE,EAAE;4BACf,
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/pages/AiSearch/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAG/E,MAAM,CAAC,IAAM,8BAA8B,GAEvC;;;;;;;;;gBAIQ,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,qCACA,CAAC,SAAuC,CAAC,GAC7C;yBACD;;;gBAEF,OAAO,CAAC,KAAK,CAAC,KAAG,CAAC,CAAC;gBACnB,sBAAO;wBACL,KAAK,EAAE;4BACL,WAAW,EAAE;gCACX,GAAG,EAAE;oCACH,KAAK,EAAE,EAAE;iCACV;gCACD,UAAU,EAAE,EAAE;6BACf;4BACD,WAAW,EAAE,EAAE;4BACf,cAAc,EAAE;gCACd,KAAK,EAAE,qBAAqB;gCAC5B,OAAO,EAAE,WAAW;gCACpB,GAAG,EAAE,qBAAqB;6BAC3B;yBACF;qBACF,EAAC;;;;KAEL,CAAC"}
|
|
@@ -6,7 +6,7 @@ import AnalysisCenterWithSections from '../../features/Analysis/AnalysisCenterWi
|
|
|
6
6
|
import { ErrorCard } from '../../components/MessageCards';
|
|
7
7
|
var AnalysisPage = function (_a) {
|
|
8
8
|
var headerProps = _a.headerProps, footerProps = _a.footerProps, tools = _a.tools, sections = _a.sections, classNames = _a.classNames;
|
|
9
|
-
return (_jsxs(NavPageLayout, { headerProps: headerProps, footerProps: footerProps,
|
|
9
|
+
return (_jsxs(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: {
|
|
10
10
|
title: 'Gen3 Analysis Center',
|
|
11
11
|
content: 'Analysis Center',
|
|
12
12
|
key: 'gen3-analysis-center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Analysis.js","sourceRoot":"","sources":["../../../../src/pages/Analysis/Analysis.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,0BAA0B,MAAM,oDAAoD,CAAC;AAE5F,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,IAAM,YAAY,GAAG,UAAC,EAMI;QALxB,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,UAAU,gBAAA;IAEV,OAAO,CACL,MAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,
|
|
1
|
+
{"version":3,"file":"Analysis.js","sourceRoot":"","sources":["../../../../src/pages/Analysis/Analysis.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,0BAA0B,MAAM,oDAAoD,CAAC;AAE5F,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,IAAM,YAAY,GAAG,UAAC,EAMI;QALxB,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,UAAU,gBAAA;IAEV,OAAO,CACL,MAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,cAAc,EAAE;YACd,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,iBAAiB;YAC1B,GAAG,EAAE,sBAAsB;SAC5B,aAEA,CAAC,KAAK,IAAI,CAAC,QAAQ,IAAI,CACtB,KAAC,MAAM,IAAC,SAAS,EAAC,OAAO,YACvB,KAAC,SAAS,IAAC,OAAO,EAAC,4BAA4B,GAAG,GAC3C,CACV,EACA,KAAK,IAAI,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,EACxC,QAAQ,IAAI,CACX,KAAC,0BAA0B,IACzB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACtB,CACH,IACa,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { NavPageLayout } from '../../features/Navigation';
|
|
|
14
14
|
import { CrosswalkPanel } from '../../features/Crosswalk';
|
|
15
15
|
var CrosswalkPage = function (_a) {
|
|
16
16
|
var headerProps = _a.headerProps, footerProps = _a.footerProps, config = _a.config;
|
|
17
|
-
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps,
|
|
17
|
+
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: __assign({ title: 'Gen3 Crosswalk Page', content: 'Crosswalk Data', key: 'gen3-crosswalk-page' }, ((config === null || config === void 0 ? void 0 : config.headerMetadata) ? config.headerMetadata : {})), children: _jsx(CrosswalkPanel, __assign({}, config)) }));
|
|
18
18
|
};
|
|
19
19
|
export default CrosswalkPage;
|
|
20
20
|
//# sourceMappingURL=Crosswalk.js.map
|