@gen3/frontend 0.11.22 → 0.11.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/cjs/index.js +16 -6
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts +2 -0
  4. package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts.map +1 -1
  5. package/dist/dts/features/Analysis/AnalysisCardCompact.d.ts.map +1 -1
  6. package/dist/dts/features/Analysis/AnalysisCardCompact.js +9 -2
  7. package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -1
  8. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +18 -14
  9. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
  10. package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts +2 -2
  11. package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts.map +1 -1
  12. package/dist/dts/features/Analysis/AnalysisWorkspace.js +9 -10
  13. package/dist/dts/features/Analysis/AnalysisWorkspace.js.map +1 -1
  14. package/dist/dts/features/Analysis/types.d.ts +4 -0
  15. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  16. package/dist/dts/features/Analysis/types.js.map +1 -1
  17. package/dist/dts/features/Navigation/NavPageLayout.d.ts +4 -2
  18. package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
  19. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  20. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  21. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +1 -1
  22. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -1
  23. package/dist/dts/pages/admin/analysis/data.d.ts +2 -0
  24. package/dist/dts/pages/admin/analysis/data.d.ts.map +1 -1
  25. package/dist/dts/pages/admin/authz/data.d.ts +2 -0
  26. package/dist/dts/pages/admin/authz/data.d.ts.map +1 -1
  27. package/dist/esm/index.js +16 -6
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/index.d.ts +10 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +3 -3
package/dist/cjs/index.js CHANGED
@@ -6606,7 +6606,7 @@ const LeftSidePanel = ({ items = [], classNames = {} })=>{
6606
6606
  });
6607
6607
  };
6608
6608
 
6609
- const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, children })=>{
6609
+ const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, CustomHeaderComponent, CustomFooterComponent, children })=>{
6610
6610
  const mainContentStyle = mainProps?.fixed ? 'flex-1 flex overflow-hidden relative' : 'flex grow relative';
6611
6611
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
6612
6612
  className: "flex flex-col justify-between h-screen",
@@ -6622,7 +6622,9 @@ const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, ch
6622
6622
  }, headerMetadata.key)
6623
6623
  ]
6624
6624
  }),
6625
- /*#__PURE__*/ jsxRuntime.jsxs(Header$1, {
6625
+ CustomHeaderComponent ? /*#__PURE__*/ jsxRuntime.jsx(CustomHeaderComponent, {
6626
+ ...headerProps
6627
+ }) : /*#__PURE__*/ jsxRuntime.jsxs(Header$1, {
6626
6628
  ...headerProps,
6627
6629
  children: [
6628
6630
  /*#__PURE__*/ jsxRuntime.jsx("title", {
@@ -6650,7 +6652,9 @@ const NavPageLayout = ({ headerProps, footerProps, mainProps, headerMetadata, ch
6650
6652
  className: mainContentStyle,
6651
6653
  children: children
6652
6654
  }),
6653
- /*#__PURE__*/ jsxRuntime.jsx(Footer, {
6655
+ CustomFooterComponent ? /*#__PURE__*/ jsxRuntime.jsx(CustomFooterComponent, {
6656
+ ...footerProps
6657
+ }) : /*#__PURE__*/ jsxRuntime.jsx(Footer, {
6654
6658
  ...footerProps
6655
6659
  })
6656
6660
  ]
@@ -14792,6 +14796,10 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
14792
14796
  };
14793
14797
 
14794
14798
  const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits, btnText })=>{
14799
+ const router$1 = router.useRouter();
14800
+ const handleClick = React.useCallback((href)=>router$1.push(href), [
14801
+ router$1
14802
+ ]);
14795
14803
  return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Stack, {
14796
14804
  gap: "xs",
14797
14805
  classNames: {
@@ -14850,7 +14858,10 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
14850
14858
  className: "mb-6",
14851
14859
  children: [
14852
14860
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
14853
- color: "primary.4",
14861
+ color: "accent.4",
14862
+ component: Link,
14863
+ href: href ?? '_blank',
14864
+ onClick: (_event)=>handleClick(href ?? '_blank'),
14854
14865
  children: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
14855
14866
  }),
14856
14867
  hasDemo && /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
@@ -25639,8 +25650,7 @@ const TabbedCohortBuilderPage = ({ headerProps, footerProps, configuration })=>{
25639
25650
  /*#__PURE__*/ jsxRuntime.jsx("div", {
25640
25651
  className: "w-full mt-40 mr-4",
25641
25652
  children: /*#__PURE__*/ jsxRuntime.jsx(TabbedCohortBuilder, {
25642
- ...configuration,
25643
- index: configuration.index
25653
+ ...configuration
25644
25654
  })
25645
25655
  })
25646
25656
  ]