@gen3/frontend 0.12.3 → 0.12.5

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 (315) hide show
  1. package/.swcrc +24 -0
  2. package/__mocks__/createWebStorageMock.js +10 -0
  3. package/dist/dts/components/HeaderTitle.d.ts +5 -0
  4. package/dist/dts/components/HeaderTitle.d.ts.map +1 -0
  5. package/dist/dts/components/HeaderTitle.js +8 -0
  6. package/dist/dts/components/HeaderTitle.js.map +1 -0
  7. package/dist/dts/components/HeaderTitle.stories.d.ts +13 -0
  8. package/dist/dts/components/HeaderTitle.stories.d.ts.map +1 -0
  9. package/dist/dts/components/HeaderTitle.stories.js +27 -0
  10. package/dist/dts/components/HeaderTitle.stories.js.map +1 -0
  11. package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -2
  12. package/dist/dts/components/SegmentedControl.stories.d.ts +15 -15
  13. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  14. package/dist/dts/exports/app.d.ts +14 -0
  15. package/dist/dts/exports/app.d.ts.map +1 -0
  16. package/dist/dts/exports/app.js +9 -0
  17. package/dist/dts/exports/app.js.map +1 -0
  18. package/dist/dts/exports/content.d.ts +7 -0
  19. package/dist/dts/exports/content.d.ts.map +1 -0
  20. package/dist/dts/exports/content.js +5 -0
  21. package/dist/dts/exports/content.js.map +1 -0
  22. package/dist/dts/exports/explorerRenderers.d.ts +7 -0
  23. package/dist/dts/exports/explorerRenderers.d.ts.map +1 -0
  24. package/dist/dts/exports/explorerRenderers.js +5 -0
  25. package/dist/dts/exports/explorerRenderers.js.map +1 -0
  26. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +2 -2
  27. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  28. package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -1
  29. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  30. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +2 -1
  31. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -1
  32. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +6 -5
  33. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -1
  34. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +3 -2
  35. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -1
  36. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +5 -4
  37. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -1
  38. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts +3 -3
  39. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -1
  40. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js +53 -34
  41. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -1
  42. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  43. package/dist/dts/features/Discovery/DiscoveryTable.js +4 -2
  44. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  45. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  46. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +1 -1
  47. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  48. package/dist/dts/features/Profile/Profile.d.ts.map +1 -1
  49. package/dist/dts/features/Profile/Profile.js +1 -1
  50. package/dist/dts/features/Profile/Profile.js.map +1 -1
  51. package/dist/dts/index.d.ts +19 -21
  52. package/dist/dts/index.d.ts.map +1 -1
  53. package/dist/dts/index.js +20 -22
  54. package/dist/dts/index.js.map +1 -1
  55. package/dist/dts/lib/content/index.d.ts +1 -0
  56. package/dist/dts/lib/content/index.d.ts.map +1 -1
  57. package/dist/dts/lib/content/index.js +4 -0
  58. package/dist/dts/lib/content/index.js.map +1 -1
  59. package/dist/dts/pages/403/index.d.ts +2 -1
  60. package/dist/dts/pages/403/index.d.ts.map +1 -1
  61. package/dist/dts/pages/403/index.js +2 -1
  62. package/dist/dts/pages/403/index.js.map +1 -1
  63. package/dist/dts/pages/404/index.d.ts +2 -1
  64. package/dist/dts/pages/404/index.d.ts.map +1 -1
  65. package/dist/dts/pages/404/index.js +2 -1
  66. package/dist/dts/pages/404/index.js.map +1 -1
  67. package/dist/dts/pages/{AiSearch/AiSearch.d.ts → AISearch/AISearchPage.d.ts} +1 -1
  68. package/dist/dts/pages/AISearch/AISearchPage.d.ts.map +1 -0
  69. package/dist/dts/pages/{AiSearch/AiSearch.js → AISearch/AISearchPage.js} +1 -1
  70. package/dist/dts/pages/AISearch/AISearchPage.js.map +1 -0
  71. package/dist/dts/pages/{AiSearch → AISearch}/data.d.ts.map +1 -1
  72. package/dist/dts/pages/{AiSearch → AISearch}/data.js.map +1 -1
  73. package/dist/dts/pages/AISearch/index.d.ts +4 -0
  74. package/dist/dts/pages/AISearch/index.d.ts.map +1 -0
  75. package/dist/dts/pages/AISearch/index.js +4 -0
  76. package/dist/dts/pages/AISearch/index.js.map +1 -0
  77. package/dist/dts/pages/Analysis/{Analysis.d.ts → AnalysisPage.d.ts} +1 -1
  78. package/dist/dts/pages/Analysis/AnalysisPage.d.ts.map +1 -0
  79. package/dist/dts/pages/Analysis/{Analysis.js → AnalysisPage.js} +1 -1
  80. package/dist/dts/pages/Analysis/AnalysisPage.js.map +1 -0
  81. package/dist/dts/pages/Analysis/index.d.ts +4 -3
  82. package/dist/dts/pages/Analysis/index.d.ts.map +1 -1
  83. package/dist/dts/pages/Analysis/index.js +3 -2
  84. package/dist/dts/pages/Analysis/index.js.map +1 -1
  85. package/dist/dts/pages/Crosswalk/{Crosswalk.d.ts → CrosswalkPage.d.ts} +1 -1
  86. package/dist/dts/pages/Crosswalk/CrosswalkPage.d.ts.map +1 -0
  87. package/dist/dts/pages/Crosswalk/{Crosswalk.js → CrosswalkPage.js} +1 -1
  88. package/dist/dts/pages/Crosswalk/CrosswalkPage.js.map +1 -0
  89. package/dist/dts/pages/Crosswalk/index.d.ts +4 -2
  90. package/dist/dts/pages/Crosswalk/index.d.ts.map +1 -1
  91. package/dist/dts/pages/Crosswalk/index.js +3 -2
  92. package/dist/dts/pages/Crosswalk/index.js.map +1 -1
  93. package/dist/dts/pages/DataDictionary/{DataDictionary.d.ts → DataDictionaryPage.d.ts} +1 -1
  94. package/dist/dts/pages/DataDictionary/DataDictionaryPage.d.ts.map +1 -0
  95. package/dist/dts/pages/DataDictionary/{DataDictionary.js → DataDictionaryPage.js} +1 -1
  96. package/dist/dts/pages/DataDictionary/DataDictionaryPage.js.map +1 -0
  97. package/dist/dts/pages/DataDictionary/index.d.ts +4 -2
  98. package/dist/dts/pages/DataDictionary/index.d.ts.map +1 -1
  99. package/dist/dts/pages/DataDictionary/index.js +3 -2
  100. package/dist/dts/pages/DataDictionary/index.js.map +1 -1
  101. package/dist/dts/pages/DataLibrary/{DataLibrary.d.ts → DataLibraryPage.d.ts} +1 -1
  102. package/dist/dts/pages/DataLibrary/DataLibraryPage.d.ts.map +1 -0
  103. package/dist/dts/pages/DataLibrary/{DataLibrary.js → DataLibraryPage.js} +1 -1
  104. package/dist/dts/pages/DataLibrary/DataLibraryPage.js.map +1 -0
  105. package/dist/dts/pages/DataLibrary/index.d.ts +3 -2
  106. package/dist/dts/pages/DataLibrary/index.d.ts.map +1 -1
  107. package/dist/dts/pages/DataLibrary/index.js +3 -2
  108. package/dist/dts/pages/DataLibrary/index.js.map +1 -1
  109. package/dist/dts/pages/Discovery/{Discovery.d.ts → DiscoveryPage.d.ts} +1 -1
  110. package/dist/dts/pages/Discovery/DiscoveryPage.d.ts.map +1 -0
  111. package/dist/dts/pages/Discovery/{Discovery.js → DiscoveryPage.js} +1 -1
  112. package/dist/dts/pages/Discovery/DiscoveryPage.js.map +1 -0
  113. package/dist/dts/pages/Discovery/index.d.ts +4 -2
  114. package/dist/dts/pages/Discovery/index.d.ts.map +1 -1
  115. package/dist/dts/pages/Discovery/index.js +3 -2
  116. package/dist/dts/pages/Discovery/index.js.map +1 -1
  117. package/dist/dts/pages/Explorer/{Explorer.d.ts → ExplorerPage.d.ts} +1 -1
  118. package/dist/dts/pages/Explorer/ExplorerPage.d.ts.map +1 -0
  119. package/dist/dts/pages/Explorer/{Explorer.js → ExplorerPage.js} +1 -1
  120. package/dist/dts/pages/Explorer/ExplorerPage.js.map +1 -0
  121. package/dist/dts/pages/Explorer/index.d.ts +4 -3
  122. package/dist/dts/pages/Explorer/index.d.ts.map +1 -1
  123. package/dist/dts/pages/Explorer/index.js +3 -3
  124. package/dist/dts/pages/Explorer/index.js.map +1 -1
  125. package/dist/dts/pages/Landing/{Landing.d.ts → LandingPage.d.ts} +1 -1
  126. package/dist/dts/pages/Landing/LandingPage.d.ts.map +1 -0
  127. package/dist/dts/pages/Landing/{Landing.js → LandingPage.js} +1 -1
  128. package/dist/dts/pages/Landing/LandingPage.js.map +1 -0
  129. package/dist/dts/pages/Landing/index.d.ts +3 -2
  130. package/dist/dts/pages/Landing/index.d.ts.map +1 -1
  131. package/dist/dts/pages/Landing/index.js +3 -2
  132. package/dist/dts/pages/Landing/index.js.map +1 -1
  133. package/dist/dts/pages/Login/{Login.d.ts → LoginPage.d.ts} +1 -1
  134. package/dist/dts/pages/Login/LoginPage.d.ts.map +1 -0
  135. package/dist/dts/pages/Login/{Login.js → LoginPage.js} +1 -1
  136. package/dist/dts/pages/Login/LoginPage.js.map +1 -0
  137. package/dist/dts/pages/Login/index.d.ts +4 -2
  138. package/dist/dts/pages/Login/index.d.ts.map +1 -1
  139. package/dist/dts/pages/Login/index.js +3 -2
  140. package/dist/dts/pages/Login/index.js.map +1 -1
  141. package/dist/dts/pages/NotebookLite/{NotebookLite.d.ts → NotebookLitePage.d.ts} +1 -1
  142. package/dist/dts/pages/NotebookLite/NotebookLitePage.d.ts.map +1 -0
  143. package/dist/dts/pages/NotebookLite/{NotebookLite.js → NotebookLitePage.js} +1 -1
  144. package/dist/dts/pages/NotebookLite/NotebookLitePage.js.map +1 -0
  145. package/dist/dts/pages/NotebookLite/index.d.ts +3 -2
  146. package/dist/dts/pages/NotebookLite/index.d.ts.map +1 -1
  147. package/dist/dts/pages/NotebookLite/index.js +3 -2
  148. package/dist/dts/pages/NotebookLite/index.js.map +1 -1
  149. package/dist/dts/pages/Profile/{Profile.d.ts → ProfilePage.d.ts} +1 -1
  150. package/dist/dts/pages/Profile/ProfilePage.d.ts.map +1 -0
  151. package/dist/dts/pages/Profile/{Profile.js → ProfilePage.js} +1 -1
  152. package/dist/dts/pages/Profile/ProfilePage.js.map +1 -0
  153. package/dist/dts/pages/Profile/index.d.ts +3 -2
  154. package/dist/dts/pages/Profile/index.d.ts.map +1 -1
  155. package/dist/dts/pages/Profile/index.js +3 -2
  156. package/dist/dts/pages/Profile/index.js.map +1 -1
  157. package/dist/dts/pages/Query/{Query.d.ts → QueryPage.d.ts} +1 -1
  158. package/dist/dts/pages/Query/QueryPage.d.ts.map +1 -0
  159. package/dist/dts/pages/Query/{Query.js → QueryPage.js} +1 -1
  160. package/dist/dts/pages/Query/QueryPage.js.map +1 -0
  161. package/dist/dts/pages/Query/index.d.ts +4 -3
  162. package/dist/dts/pages/Query/index.d.ts.map +1 -1
  163. package/dist/dts/pages/Query/index.js +3 -3
  164. package/dist/dts/pages/Query/index.js.map +1 -1
  165. package/dist/dts/pages/Repository/{Repository.d.ts → RepositoryPage.d.ts} +1 -1
  166. package/dist/dts/pages/Repository/RepositoryPage.d.ts.map +1 -0
  167. package/dist/dts/pages/Repository/{Repository.js → RepositoryPage.js} +1 -1
  168. package/dist/dts/pages/Repository/RepositoryPage.js.map +1 -0
  169. package/dist/dts/pages/Repository/index.d.ts +4 -3
  170. package/dist/dts/pages/Repository/index.d.ts.map +1 -1
  171. package/dist/dts/pages/Repository/index.js +3 -3
  172. package/dist/dts/pages/Repository/index.js.map +1 -1
  173. package/dist/dts/pages/Submission/{Submission.d.ts → SubmissionPage.d.ts} +1 -1
  174. package/dist/dts/pages/Submission/SubmissionPage.d.ts.map +1 -0
  175. package/dist/dts/pages/Submission/{Submission.js → SubmissionPage.js} +1 -1
  176. package/dist/dts/pages/Submission/SubmissionPage.js.map +1 -0
  177. package/dist/dts/pages/Submission/index.d.ts +4 -2
  178. package/dist/dts/pages/Submission/index.d.ts.map +1 -1
  179. package/dist/dts/pages/Submission/index.js +3 -2
  180. package/dist/dts/pages/Submission/index.js.map +1 -1
  181. package/dist/dts/pages/TabbedCohortBuilder/index.d.ts +4 -2
  182. package/dist/dts/pages/TabbedCohortBuilder/index.d.ts.map +1 -1
  183. package/dist/dts/pages/TabbedCohortBuilder/index.js +3 -2
  184. package/dist/dts/pages/TabbedCohortBuilder/index.js.map +1 -1
  185. package/dist/dts/pages/Theme/{Colors.d.ts → ColorThemePage.d.ts} +1 -1
  186. package/dist/dts/pages/Theme/ColorThemePage.d.ts.map +1 -0
  187. package/dist/dts/pages/Theme/{Colors.js → ColorThemePage.js} +1 -1
  188. package/dist/dts/pages/Theme/ColorThemePage.js.map +1 -0
  189. package/dist/dts/pages/Theme/index.d.ts +3 -3
  190. package/dist/dts/pages/Theme/index.d.ts.map +1 -1
  191. package/dist/dts/pages/Theme/index.js +3 -2
  192. package/dist/dts/pages/Theme/index.js.map +1 -1
  193. package/dist/dts/pages/Workspace/{WorkspaceNoAccess.d.ts → WorkspaceNoAccess.Page.d.ts} +1 -1
  194. package/dist/dts/pages/Workspace/WorkspaceNoAccess.Page.d.ts.map +1 -0
  195. package/dist/dts/pages/Workspace/{WorkspaceNoAccess.js → WorkspaceNoAccess.Page.js} +1 -1
  196. package/dist/dts/pages/Workspace/WorkspaceNoAccess.Page.js.map +1 -0
  197. package/dist/dts/pages/Workspace/{Workspace.d.ts → WorkspacePage.d.ts} +1 -1
  198. package/dist/dts/pages/Workspace/WorkspacePage.d.ts.map +1 -0
  199. package/dist/dts/pages/Workspace/{Workspace.js → WorkspacePage.js} +1 -1
  200. package/dist/dts/pages/Workspace/WorkspacePage.js.map +1 -0
  201. package/dist/dts/pages/Workspace/index.d.ts +5 -4
  202. package/dist/dts/pages/Workspace/index.d.ts.map +1 -1
  203. package/dist/dts/pages/Workspace/index.js +4 -4
  204. package/dist/dts/pages/Workspace/index.js.map +1 -1
  205. package/dist/dts/pages/external/{footer.d.ts → StandaloneFooterPage.d.ts} +1 -1
  206. package/dist/dts/pages/external/StandaloneFooterPage.d.ts.map +1 -0
  207. package/dist/dts/pages/external/{footer.js → StandaloneFooterPage.js} +1 -1
  208. package/dist/dts/pages/external/StandaloneFooterPage.js.map +1 -0
  209. package/dist/dts/pages/index.d.ts +19 -3
  210. package/dist/dts/pages/index.d.ts.map +1 -1
  211. package/dist/dts/pages/index.js +19 -54
  212. package/dist/dts/pages/index.js.map +1 -1
  213. package/dist/dts/utils/labels.d.ts +5 -5
  214. package/dist/dts/utils/labels.d.ts.map +1 -1
  215. package/dist/dts/utils/labels.js +7 -7
  216. package/dist/dts/utils/labels.js.map +1 -1
  217. package/dist/index/cjs/{QueryPanel-BMyMDa0j.js → QueryPanel-DjEGC2y4.js} +2 -2
  218. package/dist/index/cjs/{QueryPanel-BMyMDa0j.js.map → QueryPanel-DjEGC2y4.js.map} +1 -1
  219. package/dist/index/cjs/{index-UneMBb1i.js → index-Dbe1092a.js} +116 -79
  220. package/dist/index/cjs/index-Dbe1092a.js.map +1 -0
  221. package/dist/index/cjs/index.js +2 -2
  222. package/dist/index/esm/{QueryPanel-jUkVQ57q.js → QueryPanel-CuoHGg9R.js} +2 -2
  223. package/dist/index/esm/{QueryPanel-jUkVQ57q.js.map → QueryPanel-CuoHGg9R.js.map} +1 -1
  224. package/dist/index/esm/{index-CMqj9qc0.js → index-BzX6R_rC.js} +117 -80
  225. package/dist/index/esm/index-BzX6R_rC.js.map +1 -0
  226. package/dist/index/esm/index.js +1 -1
  227. package/dist/index.d.ts +28 -25
  228. package/dist/pages/cjs/CohortBuilder-um9lj6F0.js +480 -0
  229. package/dist/pages/cjs/CohortBuilder-um9lj6F0.js.map +1 -0
  230. package/dist/pages/cjs/GqlQueryEditor-C2C--3Sq.js +54 -0
  231. package/dist/pages/cjs/GqlQueryEditor-C2C--3Sq.js.map +1 -0
  232. package/dist/pages/cjs/QueryPanel-FE6wpWyr.js +24 -0
  233. package/dist/pages/cjs/QueryPanel-FE6wpWyr.js.map +1 -0
  234. package/dist/pages/cjs/index-DEefrENb.js +22201 -0
  235. package/dist/pages/cjs/index-DEefrENb.js.map +1 -0
  236. package/dist/pages/cjs/index.js +103 -0
  237. package/dist/pages/cjs/index.js.map +1 -0
  238. package/dist/pages/esm/CohortBuilder-DKva6j9o.js +477 -0
  239. package/dist/pages/esm/CohortBuilder-DKva6j9o.js.map +1 -0
  240. package/dist/pages/esm/GqlQueryEditor--3qrsd-o.js +52 -0
  241. package/dist/pages/esm/GqlQueryEditor--3qrsd-o.js.map +1 -0
  242. package/dist/pages/esm/QueryPanel-D4MUqmA6.js +22 -0
  243. package/dist/pages/esm/QueryPanel-D4MUqmA6.js.map +1 -0
  244. package/dist/pages/esm/index-CbfjtvBZ.js +22119 -0
  245. package/dist/pages/esm/index-CbfjtvBZ.js.map +1 -0
  246. package/dist/pages/esm/index.js +59 -0
  247. package/dist/pages/esm/index.js.map +1 -0
  248. package/dist/pages.d.ts +1002 -0
  249. package/dist/server/cjs/server.js +4 -0
  250. package/dist/server/cjs/server.js.map +1 -1
  251. package/dist/server/esm/server.js +4 -0
  252. package/dist/server/esm/server.js.map +1 -1
  253. package/dist/server.d.ts +1 -0
  254. package/docs/components/Part 1.3 (1).ics +68 -0
  255. package/docs/components/TextContent.md +185 -0
  256. package/jest.config.ts +32 -0
  257. package/package.json +14 -47
  258. package/postcss.config.js +8 -0
  259. package/rollup.config.mjs +198 -0
  260. package/schemas/discovery_config_schema.json +925 -0
  261. package/setupTests.ts +18 -0
  262. package/dist/dts/features/cart/types.d.ts +0 -2
  263. package/dist/dts/features/cart/types.d.ts.map +0 -1
  264. package/dist/dts/features/cart/types.js +0 -2
  265. package/dist/dts/features/cart/types.js.map +0 -1
  266. package/dist/dts/pages/AiSearch/AiSearch.d.ts.map +0 -1
  267. package/dist/dts/pages/AiSearch/AiSearch.js.map +0 -1
  268. package/dist/dts/pages/AiSearch/index.d.ts +0 -3
  269. package/dist/dts/pages/AiSearch/index.d.ts.map +0 -1
  270. package/dist/dts/pages/AiSearch/index.js +0 -3
  271. package/dist/dts/pages/AiSearch/index.js.map +0 -1
  272. package/dist/dts/pages/Analysis/Analysis.d.ts.map +0 -1
  273. package/dist/dts/pages/Analysis/Analysis.js.map +0 -1
  274. package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +0 -1
  275. package/dist/dts/pages/Crosswalk/Crosswalk.js.map +0 -1
  276. package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +0 -1
  277. package/dist/dts/pages/DataDictionary/DataDictionary.js.map +0 -1
  278. package/dist/dts/pages/DataLibrary/DataLibrary.d.ts.map +0 -1
  279. package/dist/dts/pages/DataLibrary/DataLibrary.js.map +0 -1
  280. package/dist/dts/pages/Discovery/Discovery.d.ts.map +0 -1
  281. package/dist/dts/pages/Discovery/Discovery.js.map +0 -1
  282. package/dist/dts/pages/Explorer/Explorer.d.ts.map +0 -1
  283. package/dist/dts/pages/Explorer/Explorer.js.map +0 -1
  284. package/dist/dts/pages/Landing/Landing.d.ts.map +0 -1
  285. package/dist/dts/pages/Landing/Landing.js.map +0 -1
  286. package/dist/dts/pages/Login/Login.d.ts.map +0 -1
  287. package/dist/dts/pages/Login/Login.js.map +0 -1
  288. package/dist/dts/pages/NotebookLite/NotebookLite.d.ts.map +0 -1
  289. package/dist/dts/pages/NotebookLite/NotebookLite.js.map +0 -1
  290. package/dist/dts/pages/Profile/Profile.d.ts.map +0 -1
  291. package/dist/dts/pages/Profile/Profile.js.map +0 -1
  292. package/dist/dts/pages/Query/Query.d.ts.map +0 -1
  293. package/dist/dts/pages/Query/Query.js.map +0 -1
  294. package/dist/dts/pages/Repository/Repository.d.ts.map +0 -1
  295. package/dist/dts/pages/Repository/Repository.js.map +0 -1
  296. package/dist/dts/pages/Submission/Submission.d.ts.map +0 -1
  297. package/dist/dts/pages/Submission/Submission.js.map +0 -1
  298. package/dist/dts/pages/Theme/Colors.d.ts.map +0 -1
  299. package/dist/dts/pages/Theme/Colors.js.map +0 -1
  300. package/dist/dts/pages/Workspace/Workspace.d.ts.map +0 -1
  301. package/dist/dts/pages/Workspace/Workspace.js.map +0 -1
  302. package/dist/dts/pages/Workspace/WorkspaceNoAccess.d.ts.map +0 -1
  303. package/dist/dts/pages/Workspace/WorkspaceNoAccess.js.map +0 -1
  304. package/dist/dts/pages/external/footer.d.ts.map +0 -1
  305. package/dist/dts/pages/external/footer.js.map +0 -1
  306. package/dist/index/cjs/index-UneMBb1i.js.map +0 -1
  307. package/dist/index/cjs/styles.css +0 -7
  308. package/dist/index/cjs/styles.css.map +0 -1
  309. package/dist/index/esm/index-CMqj9qc0.js.map +0 -1
  310. package/dist/index/esm/styles.css +0 -7
  311. package/dist/index/esm/styles.css.map +0 -1
  312. package/dist/styles.css +0 -7
  313. package/dist/tsconfig.tsbuildinfo +0 -1
  314. /package/dist/dts/pages/{AiSearch → AISearch}/data.d.ts +0 -0
  315. /package/dist/dts/pages/{AiSearch → AISearch}/data.js +0 -0
@@ -0,0 +1,198 @@
1
+ import dts from 'rollup-plugin-dts';
2
+ import json from '@rollup/plugin-json';
3
+ import copy from 'rollup-plugin-copy';
4
+ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
5
+ import postcss from 'rollup-plugin-postcss';
6
+ import autoprefixer from 'autoprefixer';
7
+ import postcssImport from 'postcss-import';
8
+ import { swc } from 'rollup-plugin-swc3';
9
+ import swcPreserveDirectives from 'rollup-swc-preserve-directives';
10
+
11
+ const globals = {
12
+ react: 'React',
13
+ 'react-redux': 'reactRedux',
14
+ '@reduxjs/toolkit': 'toolkit',
15
+ '@reduxjs/toolkit/query': 'query',
16
+ '@reduxjs/toolkit/query/react': 'react',
17
+ '@reduxjs/toolkit/dist/query/react': 'react',
18
+ '@mantine/core ': 'mantineCore',
19
+ redux: 'redux',
20
+ uuid: 'uuid',
21
+ graphiql: 'graphiql',
22
+ lodash: 'lodash',
23
+ immer: 'immer',
24
+ minisearch: 'minisearch',
25
+ tinycolot2: 'tinyColor',
26
+ fs: 'fs',
27
+ path: 'path',
28
+ glob: 'glob',
29
+ idb: 'idb',
30
+ '@gen3/core': 'gen3Core',
31
+ 'jsonpath-plus': 'jsonpathPlus',
32
+ '@hello-pangea/dnd': '@hello-pangea/dnd',
33
+ '@mantine/notifications': 'mantineNotifications',
34
+ 'redux-persist/integration/react': 'redux-persist/integration/react',
35
+ 'redux-persist/lib/storage/createWebStorage':
36
+ 'redux-persist/lib/storage/createWebStorage',
37
+ '@mantine/hooks': 'mantineHooks',
38
+ '@mantine/core': 'mantineCore',
39
+ '@mantine/form': 'mantineForm',
40
+ '@mantine/modals': 'mantineModals',
41
+ '@tabler/icons-react': 'tablerIcons',
42
+ 'react-icons/ai': 'reactIcons',
43
+ 'react-icons/bs': 'reactIcons',
44
+ 'react-icons/fi': 'reactIcons',
45
+ 'react-icons/lu': 'reactIcons',
46
+ 'react-icons/md': 'reactIcons',
47
+ 'react-icons/io': 'reactIcons',
48
+ 'react-icons/ri': 'reactIcons',
49
+ 'react-icons/ti': 'reactIcons',
50
+ 'react-minisearch': 'reactMinisearch',
51
+ 'lodash/uniq': 'lodashUniq',
52
+ 'lodash/sum': 'lodashSum',
53
+ 'react-cookie': 'reactCookie',
54
+ yaml: 'yaml',
55
+ 'file-saver': 'fileSaver',
56
+ 'universal-cookie': 'universalCookie',
57
+ jose: 'jose',
58
+ 'cookies-next': 'cookies-next',
59
+ cookie: 'cookie',
60
+ 'next/head': 'nextHead',
61
+ 'next/navigation': 'nextNavigation',
62
+ 'react-markdown': 'reactMarkdown',
63
+ 'remark-gfm': 'remark-gfm',
64
+ 'default-composer': 'default-composer',
65
+ filesize: 'filesize',
66
+ 'tailwind-merge': 'tailwind-merge',
67
+ util: 'util',
68
+ swc: 'swc',
69
+ 'redux-persist': 'reduxPersist',
70
+ '@hello-pangea': 'pangea',
71
+ 'use-deep-compare': 'use-deep-compare',
72
+ graphql: 'graphql',
73
+ 'isomorphic-dompurify': 'isomorphic-dompurify',
74
+ '@iconify-icon/react': 'iconify-iconReact',
75
+ };
76
+
77
+ const external = [
78
+ ...Object.keys(globals),
79
+ 'tailwindcss/plugin',
80
+ '@iconify/react',
81
+ 'next/router',
82
+ 'next/dynamic',
83
+ 'next/link',
84
+ 'next/image',
85
+ 'react-icons/bi',
86
+ 'react-icons/fa',
87
+ 'react-icons/im',
88
+ 'react-icons/pi',
89
+ 'tinycolor2',
90
+ 'tailwind-styled-components',
91
+ '@graphiql/plugin-explorer',
92
+ 'mantine-react-table',
93
+ 'victory',
94
+ 'echarts',
95
+ 'swr',
96
+ '@dnd-kit/core',
97
+ '@dnd-kit/sortable',
98
+ '@dnd-kit/utilities',
99
+ '@dnd-kit/modifiers',
100
+ '@gen3/core/server',
101
+ ];
102
+
103
+ const jsBundle = (input, baseName, additionalExternal) => ({
104
+ input,
105
+ output: [
106
+ {
107
+ dir: `dist/${baseName}/cjs`,
108
+ format: 'cjs',
109
+ globals,
110
+ sourcemap: true,
111
+ },
112
+ {
113
+ dir: `dist/${baseName}/esm`,
114
+ format: 'esm',
115
+ globals,
116
+ sourcemap: true,
117
+ },
118
+ ],
119
+ external,
120
+ ...(additionalExternal && { external: [...external, ...additionalExternal] }),
121
+ plugins: [
122
+ peerDepsExternal(),
123
+ json(),
124
+ // If only client entry uses CSS, you can conditionally enable postcss for index only.
125
+ baseName === 'index' &&
126
+ postcss({
127
+ config: { path: './postcss.config.js' },
128
+ modules: true,
129
+ preserveModules: false,
130
+ treeshake: { moduleSideEffects: false },
131
+ extract: 'styles.css',
132
+ extensions: ['.css'],
133
+ sourceMap: true,
134
+ plugins: [postcssImport(), autoprefixer()],
135
+ inject: { insertAt: 'top' },
136
+ }),
137
+ swc(
138
+ {
139
+ sourceMaps: true,
140
+ include: /\.[mc]?[jt]sx?$/,
141
+ exclude: /node_modules/,
142
+ tsconfig: 'tsconfig.json',
143
+ jsc: {},
144
+ },
145
+ swcPreserveDirectives(),
146
+ json(),
147
+ ),
148
+ ],
149
+ });
150
+
151
+ // DTS bundle factory
152
+ const dtsBundle = (input, outFile) => ({
153
+ input,
154
+ output: [{ file: outFile, format: 'es' }],
155
+ plugins: [
156
+ dts(),
157
+ postcss(),
158
+ copy({
159
+ targets: [
160
+ {
161
+ src: ['dist/esm/styles.css'],
162
+ dest: 'dist',
163
+ },
164
+ ],
165
+ }),
166
+ ],
167
+ });
168
+
169
+ const config = [
170
+ // JS builds
171
+ jsBundle('./src/index.ts', 'index'), // default/client entry
172
+ jsBundle('./src/server.ts', 'server'), // server entry
173
+ jsBundle('./src/pages/index.ts', 'pages', ['@gen3/frontend/server']), // server entry
174
+
175
+ // Type declarations
176
+ dtsBundle('./dist/dts/index.d.ts', 'dist/index.d.ts'),
177
+ dtsBundle('./dist/dts/server.d.ts', 'dist/server.d.ts'),
178
+ dtsBundle('./dist/dts/pages/index.d.ts', 'dist/pages.d.ts'),
179
+ {
180
+ // as of now frontend does not export css but added for completeness
181
+ input: './dist/dts/index.d.ts',
182
+ output: [{ file: 'dist/index.d.ts', format: 'es' }],
183
+ plugins: [
184
+ dts(),
185
+ postcss(),
186
+ copy({
187
+ targets: [
188
+ {
189
+ src: ['dist/index/esm/styles.css'],
190
+ dest: 'dist',
191
+ },
192
+ ],
193
+ }),
194
+ ],
195
+ },
196
+ ];
197
+
198
+ export default config;