@gen3/frontend 0.10.87 → 0.10.89

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 (133) hide show
  1. package/dist/cjs/index.js +76 -59
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Providers/Gen3Provider.d.ts +4 -1
  4. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  5. package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -1
  6. package/dist/dts/features/Analysis/AnalysisCard.js +2 -2
  7. package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -1
  8. package/dist/dts/features/Analysis/AnalysisCardCompact.d.ts.map +1 -1
  9. package/dist/dts/features/Analysis/AnalysisCardCompact.js +2 -2
  10. package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -1
  11. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +8 -6
  12. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
  13. package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
  14. package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
  15. package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
  16. package/dist/dts/features/Analysis/AnalysisCenterWithSections.d.ts.map +1 -1
  17. package/dist/dts/features/Analysis/AnalysisCenterWithSections.js +4 -4
  18. package/dist/dts/features/Analysis/AnalysisCenterWithSections.js.map +1 -1
  19. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.d.ts.map +1 -1
  20. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js +1 -6
  21. package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js.map +1 -1
  22. package/dist/dts/features/Analysis/TextDescription.js +1 -1
  23. package/dist/dts/features/Analysis/types.d.ts +1 -0
  24. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  25. package/dist/dts/features/Analysis/types.js.map +1 -1
  26. package/dist/dts/features/Authz/AuthzAdminProvider.d.ts +44 -0
  27. package/dist/dts/features/Authz/AuthzAdminProvider.d.ts.map +1 -0
  28. package/dist/dts/features/Authz/AuthzAdminProvider.js +55 -0
  29. package/dist/dts/features/Authz/AuthzAdminProvider.js.map +1 -0
  30. package/dist/dts/features/CohortBuilder/index.d.ts +2 -1
  31. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  32. package/dist/dts/features/CohortBuilder/index.js +2 -1
  33. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  34. package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js +1 -1
  35. package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js.map +1 -1
  36. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts +4 -0
  37. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts.map +1 -0
  38. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js +124 -0
  39. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js.map +1 -0
  40. package/dist/dts/features/{Navigation/TopBar.stories.d.ts → Discovery/ActionBar/AddToDataLibrary.stories.d.ts} +2 -3
  41. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.d.ts.map +1 -0
  42. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.js +54 -0
  43. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.js.map +1 -0
  44. package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.d.ts +13 -0
  45. package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.d.ts.map +1 -0
  46. package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.js +15 -0
  47. package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.js.map +1 -0
  48. package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts +1 -0
  49. package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts.map +1 -0
  50. package/dist/dts/features/Discovery/ActionBar/registeredActions.js +86 -0
  51. package/dist/dts/features/Discovery/ActionBar/registeredActions.js.map +1 -0
  52. package/dist/dts/index.d.ts +2 -2
  53. package/dist/dts/index.d.ts.map +1 -1
  54. package/dist/dts/index.js +2 -2
  55. package/dist/dts/index.js.map +1 -1
  56. package/dist/dts/lib/common/analysisToolFramework.d.ts +6 -0
  57. package/dist/dts/lib/common/analysisToolFramework.d.ts.map +1 -0
  58. package/dist/dts/lib/common/analysisToolFramework.js +21 -0
  59. package/dist/dts/lib/common/analysisToolFramework.js.map +1 -0
  60. package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
  61. package/dist/dts/lib/common/staticProps.js +4 -4
  62. package/dist/dts/lib/common/staticProps.js.map +1 -1
  63. package/dist/dts/lib/common/types.d.ts +8 -0
  64. package/dist/dts/lib/common/types.d.ts.map +1 -0
  65. package/dist/dts/lib/common/types.js +2 -0
  66. package/dist/dts/lib/common/types.js.map +1 -0
  67. package/dist/dts/lib/content/constants.d.ts.map +1 -1
  68. package/dist/dts/lib/content/constants.js +1 -1
  69. package/dist/dts/lib/content/constants.js.map +1 -1
  70. package/dist/dts/lib/content/filesystem.js +4 -6
  71. package/dist/dts/lib/content/filesystem.js.map +1 -1
  72. package/dist/dts/lib/content/index.d.ts +9 -2
  73. package/dist/dts/lib/content/index.d.ts.map +1 -1
  74. package/dist/dts/lib/content/index.js +26 -7
  75. package/dist/dts/lib/content/index.js.map +1 -1
  76. package/dist/dts/pages/Analysis/data.d.ts.map +1 -1
  77. package/dist/dts/pages/Analysis/data.js +1 -1
  78. package/dist/dts/pages/Analysis/data.js.map +1 -1
  79. package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
  80. package/dist/dts/pages/Crosswalk/data.js +1 -1
  81. package/dist/dts/pages/Crosswalk/data.js.map +1 -1
  82. package/dist/dts/pages/DataDictionary/data.d.ts.map +1 -1
  83. package/dist/dts/pages/DataDictionary/data.js +1 -1
  84. package/dist/dts/pages/DataDictionary/data.js.map +1 -1
  85. package/dist/dts/pages/DataLibrary/data.d.ts.map +1 -1
  86. package/dist/dts/pages/DataLibrary/data.js +1 -1
  87. package/dist/dts/pages/DataLibrary/data.js.map +1 -1
  88. package/dist/dts/pages/Discovery/data.d.ts.map +1 -1
  89. package/dist/dts/pages/Discovery/data.js +1 -1
  90. package/dist/dts/pages/Discovery/data.js.map +1 -1
  91. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  92. package/dist/dts/pages/Explorer/data.js +2 -2
  93. package/dist/dts/pages/Explorer/data.js.map +1 -1
  94. package/dist/dts/pages/Landing/data.d.ts +2 -2
  95. package/dist/dts/pages/Landing/data.d.ts.map +1 -1
  96. package/dist/dts/pages/Landing/data.js +2 -2
  97. package/dist/dts/pages/Landing/data.js.map +1 -1
  98. package/dist/dts/pages/Landing/index.d.ts +1 -1
  99. package/dist/dts/pages/Landing/index.d.ts.map +1 -1
  100. package/dist/dts/pages/Landing/index.js +1 -1
  101. package/dist/dts/pages/Landing/index.js.map +1 -1
  102. package/dist/dts/pages/Landing/resource.js +1 -1
  103. package/dist/dts/pages/Landing/resource.js.map +1 -1
  104. package/dist/dts/pages/Login/data.js +1 -1
  105. package/dist/dts/pages/Login/data.js.map +1 -1
  106. package/dist/dts/pages/Profile/data.js +1 -1
  107. package/dist/dts/pages/Profile/data.js.map +1 -1
  108. package/dist/dts/pages/Query/data.js +1 -1
  109. package/dist/dts/pages/Query/data.js.map +1 -1
  110. package/dist/dts/pages/Submission/data.d.ts.map +1 -1
  111. package/dist/dts/pages/Submission/data.js +1 -1
  112. package/dist/dts/pages/Submission/data.js.map +1 -1
  113. package/dist/dts/pages/Workspace/data.d.ts.map +1 -1
  114. package/dist/dts/pages/Workspace/data.js +1 -1
  115. package/dist/dts/pages/Workspace/data.js.map +1 -1
  116. package/dist/dts/pages/admin/Workspace/data.js +1 -1
  117. package/dist/dts/pages/admin/Workspace/data.js.map +1 -1
  118. package/dist/dts/pages/admin/analysis/data.js +1 -1
  119. package/dist/dts/pages/admin/analysis/data.js.map +1 -1
  120. package/dist/dts/pages/admin/authz/data.js +1 -1
  121. package/dist/dts/pages/admin/authz/data.js.map +1 -1
  122. package/dist/esm/index.js +74 -58
  123. package/dist/esm/index.js.map +1 -1
  124. package/dist/index.d.ts +23 -6
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/package.json +3 -3
  127. package/dist/dts/features/Navigation/TopBar.d.ts +0 -24
  128. package/dist/dts/features/Navigation/TopBar.d.ts.map +0 -1
  129. package/dist/dts/features/Navigation/TopBar.js +0 -56
  130. package/dist/dts/features/Navigation/TopBar.js.map +0 -1
  131. package/dist/dts/features/Navigation/TopBar.stories.d.ts.map +0 -1
  132. package/dist/dts/features/Navigation/TopBar.stories.js +0 -30
  133. package/dist/dts/features/Navigation/TopBar.stories.js.map +0 -1
package/dist/cjs/index.js CHANGED
@@ -11972,11 +11972,11 @@ const TextDescription = ({ description })=>{
11972
11972
  children: [
11973
11973
  !extend ? /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
11974
11974
  ref: textRef,
11975
- size: "sm",
11975
+ size: "md",
11976
11976
  lineClamp: 4,
11977
11977
  children: description
11978
11978
  }) : /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
11979
- size: "sm",
11979
+ size: "md",
11980
11980
  children: description
11981
11981
  }),
11982
11982
  isClamped && /*#__PURE__*/ jsxRuntime.jsx("button", {
@@ -11997,7 +11997,7 @@ const TextDescription = ({ description })=>{
11997
11997
  });
11998
11998
  };
11999
11999
 
12000
- const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href })=>{
12000
+ const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText })=>{
12001
12001
  return /*#__PURE__*/ jsxRuntime.jsx(core$1.Stack, {
12002
12002
  children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
12003
12003
  className: "rounded-sm bg-base-max",
@@ -12065,7 +12065,7 @@ const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginReq
12065
12065
  root: 'bg-accent text-accent-contrast hover:bg-accent-darker p-2 rounded-sm',
12066
12066
  label: 'text-sm font-semibold'
12067
12067
  },
12068
- label: `Run ${type === 'application' ? 'App' : 'Notebook'}`
12068
+ label: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
12069
12069
  }),
12070
12070
  hasDemo && /*#__PURE__*/ jsxRuntime.jsx("button", {
12071
12071
  className: "ml-2 p-1.5 rounded-sm text-sm font-semibold",
@@ -12149,7 +12149,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
12149
12149
  /*#__PURE__*/ jsxRuntime.jsx("div", {
12150
12150
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
12151
12151
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-1 mx-4 overflow-y-scroll",
12152
- children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href }, key)=>{
12152
+ children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText }, key)=>{
12153
12153
  return /*#__PURE__*/ jsxRuntime.jsx(AnalysisCard, {
12154
12154
  title,
12155
12155
  description,
@@ -12159,7 +12159,8 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
12159
12159
  hasDemo,
12160
12160
  loginRequired,
12161
12161
  href,
12162
- cardType: 'regular'
12162
+ cardType: 'regular',
12163
+ btnText
12163
12164
  }, title);
12164
12165
  })
12165
12166
  })
@@ -12168,7 +12169,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
12168
12169
  });
12169
12170
  };
12170
12171
 
12171
- const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits })=>{
12172
+ const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits, btnText })=>{
12172
12173
  return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Stack, {
12173
12174
  gap: "xs",
12174
12175
  classNames: {
@@ -12176,12 +12177,12 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12176
12177
  },
12177
12178
  children: [
12178
12179
  /*#__PURE__*/ jsxRuntime.jsx("div", {
12179
- className: "rounded-t-lg bg-secondary border-b-4 border-accent-warm h-12"
12180
+ className: "rounded-t-lg bg-secondary border-b-4 border-accent-warm h-10"
12180
12181
  }),
12181
12182
  /*#__PURE__*/ jsxRuntime.jsx("div", {
12182
- className: "flex relative -mt-10 z-10 p-2 max-w-90",
12183
+ className: "flex relative -mt-10 z-10 p-1 max-w-90",
12183
12184
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
12184
- className: "relative rounded-lg bg-base-lightest ml-5 border-4 border-base-light mx-2 w-1/4 aspect-square",
12185
+ className: "relative rounded-lg bg-base-lightest ml-5 border-4 border-base-light mx-1 w-1/4 aspect-square",
12185
12186
  children: /*#__PURE__*/ jsxRuntime.jsx(core$1.Image, {
12186
12187
  component: Image,
12187
12188
  src: `${icon}`,
@@ -12193,7 +12194,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12193
12194
  })
12194
12195
  }),
12195
12196
  /*#__PURE__*/ jsxRuntime.jsxs("div", {
12196
- className: "flex flex-col ml-2 px-4 pb-2 h-full justify-between",
12197
+ className: "flex flex-col ml-2 px-4 h-4/6 justify-between",
12197
12198
  children: [
12198
12199
  /*#__PURE__*/ jsxRuntime.jsxs("div", {
12199
12200
  className: "flex flex-col",
@@ -12201,11 +12202,11 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12201
12202
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
12202
12203
  fw: "bold",
12203
12204
  classNames: {
12204
- root: 'font-header sm:text-xl lg:text-2xl'
12205
+ root: 'font-header sm:text-lg lg:text-xl'
12205
12206
  },
12206
12207
  children: title
12207
12208
  }),
12208
- /*#__PURE__*/ jsxRuntime.jsxs(core$1.Text, {
12209
+ count && /*#__PURE__*/ jsxRuntime.jsxs(core$1.Text, {
12209
12210
  size: "md",
12210
12211
  fw: "semibold",
12211
12212
  c: "base-contrast.5",
@@ -12216,7 +12217,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12216
12217
  ]
12217
12218
  }),
12218
12219
  /*#__PURE__*/ jsxRuntime.jsx("div", {
12219
- className: "py-2 min-h-24 h-full",
12220
+ className: count ? 'pt-2 min-h-20 h-full' : 'pt-7 min-h-20 h-full',
12220
12221
  children: /*#__PURE__*/ jsxRuntime.jsx(TextDescription, {
12221
12222
  description: description
12222
12223
  })
@@ -12224,14 +12225,11 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12224
12225
  ]
12225
12226
  }),
12226
12227
  /*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
12227
- className: "mb-4",
12228
+ className: "mb-6",
12228
12229
  children: [
12229
- /*#__PURE__*/ jsxRuntime.jsxs(core$1.Button, {
12230
+ /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
12230
12231
  color: "primary.4",
12231
- children: [
12232
- "Run ",
12233
- type === 'application' ? 'App' : 'Notebook'
12234
- ]
12232
+ children: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
12235
12233
  }),
12236
12234
  hasDemo && /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
12237
12235
  variant: "outline",
@@ -12264,8 +12262,8 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12264
12262
  * @returns {ReactElement} A React element that renders the analysis panel with sections.
12265
12263
  */ const AnalysisCenterWithSections = ({ sections, classNames })=>{
12266
12264
  const rootClassNamesDefaults = {
12267
- title: 'font-header font-bold text-2xl uppercase',
12268
- divider: 'text-accent w-[100px] border-accent mb-4'
12265
+ title: 'font-header font-bold text-2xl uppercase mt-2',
12266
+ divider: 'text-accent w-[70px] border-accent mb-4'
12269
12267
  };
12270
12268
  const mergedGlobalClassnames = mergeDefaultTailwindClassnames(rootClassNamesDefaults, classNames ?? {});
12271
12269
  const sectionPanels = React.useMemo(()=>sections.map((section)=>{
@@ -12274,6 +12272,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12274
12272
  gap: "xs",
12275
12273
  children: [
12276
12274
  /*#__PURE__*/ jsxRuntime.jsx(core$1.Text, {
12275
+ color: "primary.4",
12277
12276
  classNames: {
12278
12277
  root: sectionClassnames['title']
12279
12278
  },
@@ -12301,6 +12300,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
12301
12300
  sections
12302
12301
  ]);
12303
12302
  return /*#__PURE__*/ jsxRuntime.jsx(core$1.Stack, {
12303
+ gap: "xl",
12304
12304
  children: sectionPanels
12305
12305
  });
12306
12306
  };
@@ -12310,7 +12310,7 @@ const myGlob = (dir, filter)=>{
12310
12310
  const files = fs.readdirSync(dir);
12311
12311
  return files.filter((file)=>file.search(filter) !== -1);
12312
12312
  } catch (error) {
12313
- console.log('myGlow error', error, dir);
12313
+ console.log('myGlob error', error, dir);
12314
12314
  }
12315
12315
  return [];
12316
12316
  };
@@ -12322,15 +12322,15 @@ class FilesystemContent {
12322
12322
  try {
12323
12323
  return await JSON.parse(fs.readFileSync(path.join(this.rootPath, filepath)).toString('utf8'));
12324
12324
  } catch (err) {
12325
- throw new Error(`Cannot process ${filepath}`);
12325
+ throw new Error(`Cannot process ${filepath} `);
12326
12326
  }
12327
12327
  }
12328
12328
  async getAll(filepath, filter) {
12329
12329
  try {
12330
12330
  const files = myGlob(path.join(this.rootPath, filepath), filter);
12331
- return Promise.all(files.map((file)=>this.get(path.join(this.rootPath, filepath, file))));
12331
+ return Promise.all(files.map((file)=>this.get(path.join(filepath, file))));
12332
12332
  } catch (err) {
12333
- throw new Error(`getAllCannot process ${filepath}/${filter}`);
12333
+ throw new Error(`getAllCannot process ${path.join(this.rootPath, filepath)}/${filter}`);
12334
12334
  }
12335
12335
  }
12336
12336
  }
@@ -12349,30 +12349,46 @@ class ContentDatabase {
12349
12349
  }
12350
12350
  }
12351
12351
 
12352
- const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './';
12352
+ const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './config/';
12353
12353
 
12354
- const ContentRoot = GEN3_FRONTEND_CONFIGURATION_ROOT;
12355
- const setup = ()=>{
12356
- const config = {
12357
- store: new FilesystemContent({
12358
- rootPath: ContentRoot
12359
- })
12360
- };
12361
- return new ContentDatabase(config);
12362
- };
12363
- const ContentSource = setup();
12354
+ class ContentSource {
12355
+ static{
12356
+ this.instance = null;
12357
+ }
12358
+ constructor(){
12359
+ const config = {
12360
+ store: new FilesystemContent({
12361
+ rootPath: GEN3_FRONTEND_CONFIGURATION_ROOT
12362
+ })
12363
+ };
12364
+ this.contentDatabase = new ContentDatabase(config);
12365
+ }
12366
+ static getInstance() {
12367
+ if (!ContentSource.instance) {
12368
+ ContentSource.instance = new ContentSource();
12369
+ }
12370
+ return ContentSource.instance;
12371
+ }
12372
+ // Add methods to access the ContentDatabase functionality
12373
+ // For example:
12374
+ getContentDatabase() {
12375
+ return this.contentDatabase;
12376
+ }
12377
+ }
12378
+ // Export a singleton instance
12379
+ var ContentSource$1 = ContentSource.getInstance();
12364
12380
 
12365
12381
  /**
12366
12382
  * Retrieves navigation page layout properties from configuration.
12367
12383
  * Note: GEN3_COMMONS_NAME depends on siteConfig.json value in the data commons package
12368
12384
  * @returns A Promise resolving to an object containing header and footer props.
12369
12385
  */ const getNavPageLayoutPropsFromConfig = async ()=>{
12370
- const navigationConfigJSON = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/navigation.json`);
12386
+ const navigationConfigJSON = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/navigation.json`);
12371
12387
  let bannerConfigJSON = [];
12372
12388
  try {
12373
- bannerConfigJSON = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/banner.json`);
12389
+ bannerConfigJSON = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/banner.json`);
12374
12390
  } catch (e) {
12375
- console.warn('No banner config found at: ', `config/${core.GEN3_COMMONS_NAME}/banner.json`);
12391
+ console.warn('No banner config found at: ', `${core.GEN3_COMMONS_NAME}/banner.json`);
12376
12392
  }
12377
12393
  const { topBar, navigation, type = 'original' } = navigationConfigJSON;
12378
12394
  const headerProps = {
@@ -12381,7 +12397,7 @@ const ContentSource = setup();
12381
12397
  banners: bannerConfigJSON,
12382
12398
  type
12383
12399
  };
12384
- const footerProps = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/footer.json`);
12400
+ const footerProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/footer.json`);
12385
12401
  return {
12386
12402
  headerProps,
12387
12403
  footerProps,
@@ -15320,7 +15336,7 @@ const DiscoveryPage = ({ headerProps, footerProps, discoveryConfig })=>{
15320
15336
 
15321
15337
  const DiscoveryPageGetServerSideProps = async ()=>{
15322
15338
  try {
15323
- const discoveryConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/discovery.json`);
15339
+ const discoveryConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/discovery.json`);
15324
15340
  return {
15325
15341
  props: {
15326
15342
  ...await getNavPageLayoutPropsFromConfig(),
@@ -15369,7 +15385,7 @@ const QueryPage = ({ headerProps, footerProps, queryProps })=>{
15369
15385
  };
15370
15386
 
15371
15387
  const QueryPageGetServerSideProps = async ()=>{
15372
- const queryProps = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/query.json`);
15388
+ const queryProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/query.json`);
15373
15389
  return {
15374
15390
  props: {
15375
15391
  ...await getNavPageLayoutPropsFromConfig(),
@@ -15544,9 +15560,9 @@ const LandingPage = ({ headerProps, footerProps, landingPage })=>{
15544
15560
  };
15545
15561
 
15546
15562
  // should move this thing into _app.tsx and make a dedicated layout component after https://github.com/vercel/next.js/discussions/10949 is addressed
15547
- const LandingPageGetStaticProps = async ()=>{
15563
+ const LandingPageGetServerSideProps = async ()=>{
15548
15564
  const navPageLayoutProps = await getNavPageLayoutPropsFromConfig();
15549
- const landingPage = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/landingPage.json`);
15565
+ const landingPage = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/landingPage.json`);
15550
15566
  return {
15551
15567
  props: {
15552
15568
  ...navPageLayoutProps,
@@ -15625,7 +15641,7 @@ const GetSharedFieldMapping = async (cohortBuilderConfiguration)=>{
15625
15641
  };
15626
15642
  const ExplorerPageGetServerSideProps = async ()=>{
15627
15643
  try {
15628
- const cohortBuilderConfiguration = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/explorer.json`);
15644
+ const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/explorer.json`);
15629
15645
  if (lodash.isArray(cohortBuilderConfiguration)) {
15630
15646
  // older config layout
15631
15647
  // TODO: remove this
@@ -15660,7 +15676,7 @@ const ExplorerPageGetServerSideProps = async ()=>{
15660
15676
  const ExplorerPageGetServerSidePropsForConfigId = async (context)=>{
15661
15677
  const configId = context.query.configId;
15662
15678
  try {
15663
- const cohortBuilderConfiguration = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/explorer/${configId}.json`);
15679
+ const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/explorer/${configId}.json`);
15664
15680
  if (lodash.isArray(cohortBuilderConfiguration)) {
15665
15681
  // older config layout
15666
15682
  // TODO: remove this
@@ -16620,7 +16636,7 @@ const ProfilePage = ({ headerProps, footerProps, profileConfig })=>{
16620
16636
  };
16621
16637
 
16622
16638
  const ProfilePageGetServerSideProps = async ()=>{
16623
- const profileConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/profile.json`);
16639
+ const profileConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/profile.json`);
16624
16640
  return {
16625
16641
  props: {
16626
16642
  ...await getNavPageLayoutPropsFromConfig(),
@@ -16647,7 +16663,7 @@ const LoginPage = ({ headerProps, footerProps, loginConfig })=>{
16647
16663
  };
16648
16664
 
16649
16665
  const LoginPageGetServerSideProps = async ()=>{
16650
- const loginConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/login.json`);
16666
+ const loginConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/login.json`);
16651
16667
  return {
16652
16668
  props: {
16653
16669
  ...await getNavPageLayoutPropsFromConfig(),
@@ -16678,7 +16694,7 @@ const DictionaryPage = ({ headerProps, footerProps, config })=>{
16678
16694
 
16679
16695
  const DictionaryPageGetServerSideProps = async ()=>{
16680
16696
  try {
16681
- const cohortBuilderProps = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/dictionary.json`);
16697
+ const cohortBuilderProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/dictionary.json`);
16682
16698
  return {
16683
16699
  props: {
16684
16700
  ...await getNavPageLayoutPropsFromConfig(),
@@ -17401,7 +17417,7 @@ const AuthzPage = ({ headerProps, footerProps, authz })=>{
17401
17417
  };
17402
17418
 
17403
17419
  const AdminAuthZPageGetServerSideProps = async ()=>{
17404
- const rootPath = `config/${core.GEN3_COMMONS_NAME}/`;
17420
+ const rootPath = `${core.GEN3_COMMONS_NAME}/`;
17405
17421
  const filepath = 'user.yaml';
17406
17422
  let data = {};
17407
17423
  try {
@@ -17729,7 +17745,7 @@ const SubmissionPage = ({ submissionConfig, headerProps, footerProps })=>{
17729
17745
 
17730
17746
  const SubmissionPageGetServerSideProps = async ()=>{
17731
17747
  try {
17732
- const submissionConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/submission.json`);
17748
+ const submissionConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/submission.json`);
17733
17749
  return {
17734
17750
  props: {
17735
17751
  ...await getNavPageLayoutPropsFromConfig(),
@@ -17794,7 +17810,7 @@ const WorkspaceNoAccessPage = ({ headerProps, footerProps })=>{
17794
17810
  };
17795
17811
 
17796
17812
  const WorkspacePageGetServerSideProps = async (_context)=>{
17797
- const workspaceProps = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/workspace.json`);
17813
+ const workspaceProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/workspace.json`);
17798
17814
  try {
17799
17815
  return {
17800
17816
  props: {
@@ -17856,7 +17872,7 @@ const AnalysisPage = ({ headerProps, footerProps, tools, sections, classNames })
17856
17872
 
17857
17873
  const AnalysisPageGetServerSideProps = async ()=>{
17858
17874
  try {
17859
- const analysisConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/analysisTools.json`);
17875
+ const analysisConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/analysisTools.json`);
17860
17876
  return {
17861
17877
  props: {
17862
17878
  ...await getNavPageLayoutPropsFromConfig(),
@@ -18491,7 +18507,7 @@ const AnalysisEditorPage = ({ headerProps, footerProps, analysisFile })=>{
18491
18507
  };
18492
18508
 
18493
18509
  const AnalysisEditorPageGetServerSideProps = async ()=>{
18494
- // const rootPath = `config/${GEN3_COMMONS_NAME}/`;
18510
+ // const rootPath = `${GEN3_COMMONS_NAME}/`;
18495
18511
  // const filepath = 'user.yaml';
18496
18512
  // let data: Record<string, any> = {};
18497
18513
  // try {
@@ -20399,7 +20415,7 @@ const DataLibraryPage = ({ headerProps, footerProps, config })=>{
20399
20415
 
20400
20416
  const DataLibraryPageGetServerSideProps = async ()=>{
20401
20417
  try {
20402
- const datalibraryConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/dataLibrary.json`);
20418
+ const datalibraryConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/dataLibrary.json`);
20403
20419
  return {
20404
20420
  props: {
20405
20421
  ...await getNavPageLayoutPropsFromConfig(),
@@ -20691,7 +20707,7 @@ const CrosswalkPage = ({ headerProps, footerProps, config })=>{
20691
20707
 
20692
20708
  const CrosswalkPageGetServerSideProps = async ()=>{
20693
20709
  try {
20694
- const initialConfig = await ContentSource.get(`config/${core.GEN3_COMMONS_NAME}/crosswalk.json`);
20710
+ const initialConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/crosswalk.json`);
20695
20711
  const regex = /->/g;
20696
20712
  const processedConfig = {
20697
20713
  showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
@@ -21044,10 +21060,11 @@ exports.AuthzPage = AuthzPage;
21044
21060
  exports.BaseModal = BaseModal;
21045
21061
  exports.Charts = Charts;
21046
21062
  exports.CohortBuilder = CohortBuilder;
21063
+ exports.CohortManager = CohortManager;
21047
21064
  exports.CollapsableSidebar = CollapsableSidebar;
21048
21065
  exports.ColorThemePage = ColorThemePage;
21049
21066
  exports.ColorThemePageGetServerSideProps = ColorThemePageGetServerSideProps;
21050
- exports.ContentSource = ContentSource;
21067
+ exports.ContentSource = ContentSource$1;
21051
21068
  exports.CreateCredentialsAPIKeyModal = CreateCredentialsAPIKeyModal;
21052
21069
  exports.CrosswalkPage = CrosswalkPage;
21053
21070
  exports.CrosswalkPageGetServerSideProps = CrosswalkPageGetServerSideProps;
@@ -21081,7 +21098,7 @@ exports.GqlQueryEditor = GqlQueryEditor$1;
21081
21098
  exports.Header = Header;
21082
21099
  exports.HoverLink = HoverLink;
21083
21100
  exports.LandingPage = LandingPage;
21084
- exports.LandingPageGetStaticProps = LandingPageGetStaticProps;
21101
+ exports.LandingPageGetServerSideProps = LandingPageGetServerSideProps;
21085
21102
  exports.LoginButton = LoginButton$1;
21086
21103
  exports.LoginPage = LoginPage;
21087
21104
  exports.LoginPageGetServerSideProps = LoginPageGetServerSideProps;