@burdenoff/microfe-labsofscience 2026.1029.1 → 2026.1113.1

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 (339) hide show
  1. package/dist/generated/global-operations.d.ts +0 -1
  2. package/dist/generated/global-types.d.ts +0 -1
  3. package/dist/generated/wspace-operations.d.ts +0 -1
  4. package/dist/generated/wspace-types.d.ts +0 -1
  5. package/dist/index.d.ts +0 -1
  6. package/dist/labsofscience/LabsOfScienceRoot.d.ts +0 -2
  7. package/dist/labsofscience/LabsOfScienceRoot.js +2 -3
  8. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  9. package/dist/labsofscience/LabsOfScienceRoutes.d.ts +0 -2
  10. package/dist/labsofscience/LabsOfScienceRoutes.js +1 -2
  11. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  12. package/dist/labsofscience/components/BottomNav.d.ts +0 -2
  13. package/dist/labsofscience/components/BottomNav.js +8 -9
  14. package/dist/labsofscience/components/BottomNav.js.map +1 -1
  15. package/dist/labsofscience/components/DiscussionPanel.d.ts +1 -2
  16. package/dist/labsofscience/components/DiscussionPanel.js +4 -4
  17. package/dist/labsofscience/components/DiscussionPanel.js.map +1 -1
  18. package/dist/labsofscience/components/EmptyState.d.ts +0 -2
  19. package/dist/labsofscience/components/EmptyState.js +1 -2
  20. package/dist/labsofscience/components/EmptyState.js.map +1 -1
  21. package/dist/labsofscience/components/FileAttachment.d.ts +0 -2
  22. package/dist/labsofscience/components/FileAttachment.js +1 -2
  23. package/dist/labsofscience/components/FileAttachment.js.map +1 -1
  24. package/dist/labsofscience/components/FileUploadField.d.ts +0 -2
  25. package/dist/labsofscience/components/FileUploadField.js +1 -2
  26. package/dist/labsofscience/components/FileUploadField.js.map +1 -1
  27. package/dist/labsofscience/components/ListSearchInput.d.ts +0 -2
  28. package/dist/labsofscience/components/ListSearchInput.js +1 -2
  29. package/dist/labsofscience/components/ListSearchInput.js.map +1 -1
  30. package/dist/labsofscience/components/MetricsCard.d.ts +0 -2
  31. package/dist/labsofscience/components/MetricsCard.js +1 -2
  32. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  33. package/dist/labsofscience/components/PageLayout.d.ts +0 -2
  34. package/dist/labsofscience/components/PageLayout.js +1 -2
  35. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  36. package/dist/labsofscience/components/ProvenanceChain.d.ts +1 -3
  37. package/dist/labsofscience/components/ProvenanceChain.js +1 -2
  38. package/dist/labsofscience/components/ProvenanceChain.js.map +1 -1
  39. package/dist/labsofscience/components/ProvenancePanel.d.ts +1 -3
  40. package/dist/labsofscience/components/ProvenancePanel.js +11 -12
  41. package/dist/labsofscience/components/ProvenancePanel.js.map +1 -1
  42. package/dist/labsofscience/components/QueryStates.d.ts +0 -2
  43. package/dist/labsofscience/components/QueryStates.js +12 -6
  44. package/dist/labsofscience/components/QueryStates.js.map +1 -1
  45. package/dist/labsofscience/components/StatusBadge.d.ts +0 -2
  46. package/dist/labsofscience/components/StatusBadge.js +1 -2
  47. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  48. package/dist/labsofscience/components/index.d.ts +0 -1
  49. package/dist/labsofscience/components/provenanceMapping.d.ts +0 -2
  50. package/dist/labsofscience/components/provenanceMapping.js +1 -2
  51. package/dist/labsofscience/components/provenanceMapping.js.map +1 -1
  52. package/dist/labsofscience/context/LabsOfScienceContext.d.ts +0 -2
  53. package/dist/labsofscience/context/LabsOfScienceContext.js +1 -2
  54. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  55. package/dist/labsofscience/context/index.d.ts +0 -1
  56. package/dist/labsofscience/context/index.js +1 -2
  57. package/dist/labsofscience/hooks/index.d.ts +0 -1
  58. package/dist/labsofscience/hooks/useLabActorNames.d.ts +0 -2
  59. package/dist/labsofscience/hooks/useLabActorNames.js +4 -5
  60. package/dist/labsofscience/hooks/useLabActorNames.js.map +1 -1
  61. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +27 -29
  62. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +3 -4
  63. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  64. package/dist/labsofscience/hooks/useTr.d.ts +0 -1
  65. package/dist/labsofscience/hooks/useTr.js +1 -2
  66. package/dist/labsofscience/hooks/useTr.js.map +1 -1
  67. package/dist/labsofscience/index.d.ts +0 -1
  68. package/dist/labsofscience/index.js +3 -3
  69. package/dist/labsofscience/legal/aiTerms.d.ts +0 -1
  70. package/dist/labsofscience/legal/aiTerms.js +1 -2
  71. package/dist/labsofscience/legal/aiTerms.js.map +1 -1
  72. package/dist/labsofscience/pages/OverviewPage.d.ts +1 -2
  73. package/dist/labsofscience/pages/OverviewPage.js +60 -61
  74. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  75. package/dist/labsofscience/pages/ai/AiDialogs.d.ts +3 -5
  76. package/dist/labsofscience/pages/ai/AiDialogs.js +37 -47
  77. package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -1
  78. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +0 -2
  79. package/dist/labsofscience/pages/ai/AiErrorNotice.js +14 -15
  80. package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -1
  81. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +1 -2
  82. package/dist/labsofscience/pages/ai/AiOperationsPage.js +27 -28
  83. package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -1
  84. package/dist/labsofscience/pages/ai/AiTermsGate.d.ts +0 -2
  85. package/dist/labsofscience/pages/ai/AiTermsGate.js +6 -7
  86. package/dist/labsofscience/pages/ai/AiTermsGate.js.map +1 -1
  87. package/dist/labsofscience/pages/ai/DecisionCard.d.ts +0 -2
  88. package/dist/labsofscience/pages/ai/DecisionCard.js +1 -2
  89. package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -1
  90. package/dist/labsofscience/pages/ai/ModelSettings.d.ts +1 -2
  91. package/dist/labsofscience/pages/ai/ModelSettings.js +1 -2
  92. package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -1
  93. package/dist/labsofscience/pages/ai/aiReaders.d.ts +0 -2
  94. package/dist/labsofscience/pages/ai/aiReaders.js +1 -2
  95. package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -1
  96. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts +1 -2
  97. package/dist/labsofscience/pages/analytics/AnalyticsPage.js +1 -2
  98. package/dist/labsofscience/pages/analytics/AnalyticsPage.js.map +1 -1
  99. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts +1 -2
  100. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js +1 -2
  101. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js.map +1 -1
  102. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts +1 -2
  103. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +36 -37
  104. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
  105. package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts +1 -3
  106. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +16 -18
  107. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -1
  108. package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts +1 -2
  109. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +20 -21
  110. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
  111. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts +1 -2
  112. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js +1 -2
  113. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js.map +1 -1
  114. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts +1 -3
  115. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js +2 -3
  116. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js.map +1 -1
  117. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts +1 -2
  118. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js +9 -10
  119. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js.map +1 -1
  120. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts +1 -2
  121. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +44 -45
  122. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  123. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts +1 -3
  124. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +1 -2
  125. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -1
  126. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts +1 -3
  127. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js +7 -8
  128. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js.map +1 -1
  129. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts +1 -2
  130. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js +4 -5
  131. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js.map +1 -1
  132. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts +1 -3
  133. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js +12 -13
  134. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js.map +1 -1
  135. package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts +1 -2
  136. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +22 -23
  137. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
  138. package/dist/labsofscience/pages/experiments/RunDialogs.d.ts +2 -4
  139. package/dist/labsofscience/pages/experiments/RunDialogs.js +13 -15
  140. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -1
  141. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts +1 -2
  142. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js +16 -21
  143. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js.map +1 -1
  144. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts +1 -2
  145. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +15 -16
  146. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -1
  147. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts +1 -3
  148. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +1 -2
  149. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -1
  150. package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts +1 -2
  151. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +19 -20
  152. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
  153. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts +1 -3
  154. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +16 -21
  155. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -1
  156. package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts +1 -2
  157. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +15 -16
  158. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -1
  159. package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts +1 -3
  160. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +5 -6
  161. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -1
  162. package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts +1 -2
  163. package/dist/labsofscience/pages/inventory/InventoryListPage.js +23 -24
  164. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
  165. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts +1 -2
  166. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +46 -47
  167. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -1
  168. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts +1 -3
  169. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +22 -27
  170. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -1
  171. package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts +1 -2
  172. package/dist/labsofscience/pages/notebook/NotebookListPage.js +29 -30
  173. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
  174. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts +1 -3
  175. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +16 -18
  176. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -1
  177. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts +1 -2
  178. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +66 -67
  179. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  180. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts +1 -3
  181. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +14 -16
  182. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -1
  183. package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts +1 -2
  184. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +35 -36
  185. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -1
  186. package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts +1 -3
  187. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +1 -2
  188. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -1
  189. package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts +1 -2
  190. package/dist/labsofscience/pages/projects/ProjectsListPage.js +24 -25
  191. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
  192. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts +1 -2
  193. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js +1 -2
  194. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js.map +1 -1
  195. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts +1 -2
  196. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +17 -18
  197. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
  198. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts +1 -3
  199. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +1 -2
  200. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -1
  201. package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts +1 -2
  202. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +19 -20
  203. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
  204. package/dist/labsofscience/pages/shared/DetailComponents.d.ts +0 -2
  205. package/dist/labsofscience/pages/shared/DetailComponents.js +1 -2
  206. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -1
  207. package/dist/labsofscience/pages/shared/tags.d.ts +0 -1
  208. package/dist/labsofscience/pages/shared/tags.js +1 -2
  209. package/dist/labsofscience/pages/shared/tags.js.map +1 -1
  210. package/dist/labsofscience/store/index.d.ts +0 -1
  211. package/dist/labsofscience/store/index.js +1 -2
  212. package/dist/labsofscience/store/labsofscienceStore.d.ts +1 -2
  213. package/dist/labsofscience/store/labsofscienceStore.js +1 -2
  214. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  215. package/dist/labsofscience/types/index.d.ts +0 -2
  216. package/dist/labsofscience/utils/cn.d.ts +0 -2
  217. package/dist/labsofscience/utils/cn.js +1 -2
  218. package/dist/labsofscience/utils/cn.js.map +1 -1
  219. package/dist/labsofscience/utils/formatters.d.ts +0 -1
  220. package/dist/labsofscience/utils/formatters.js +1 -2
  221. package/dist/labsofscience/utils/formatters.js.map +1 -1
  222. package/dist/labsofscience/utils/index.d.ts +0 -1
  223. package/dist/labsofscience/utils/navigation.d.ts +0 -1
  224. package/dist/labsofscience/utils/navigation.js +1 -2
  225. package/dist/labsofscience/utils/navigation.js.map +1 -1
  226. package/dist/labsofscience/utils/uploadFile.d.ts +1 -2
  227. package/dist/labsofscience/utils/uploadFile.js +2 -3
  228. package/dist/labsofscience/utils/uploadFile.js.map +1 -1
  229. package/dist/labsofscience/utils/useDebouncedValue.d.ts +0 -1
  230. package/dist/labsofscience/utils/useDebouncedValue.js +1 -2
  231. package/dist/labsofscience/utils/useDebouncedValue.js.map +1 -1
  232. package/dist/node_modules/clsx/dist/clsx.js +7 -6
  233. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  234. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +100 -38
  235. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  236. package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
  237. package/dist/services/createSandboxAssistantTransport.js +1 -2
  238. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  239. package/dist/stories/EmptyState.stories.d.ts +0 -2
  240. package/dist/stories/MetricsCard.stories.d.ts +0 -2
  241. package/dist/stories/StatusBadge.stories.d.ts +0 -2
  242. package/dist/test/happydom.d.ts +1 -0
  243. package/dist/types/assistant.d.ts +0 -1
  244. package/dist/utils/pageContext.d.ts +0 -1
  245. package/dist/utils/pageContext.js +2 -3
  246. package/dist/utils/pageContext.js.map +1 -1
  247. package/package.json +82 -60
  248. package/dist/generated/global-operations.d.ts.map +0 -1
  249. package/dist/generated/global-types.d.ts.map +0 -1
  250. package/dist/generated/wspace-operations.d.ts.map +0 -1
  251. package/dist/generated/wspace-types.d.ts.map +0 -1
  252. package/dist/index.d.ts.map +0 -1
  253. package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +0 -1
  254. package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +0 -1
  255. package/dist/labsofscience/components/BottomNav.d.ts.map +0 -1
  256. package/dist/labsofscience/components/DiscussionPanel.d.ts.map +0 -1
  257. package/dist/labsofscience/components/EmptyState.d.ts.map +0 -1
  258. package/dist/labsofscience/components/FileAttachment.d.ts.map +0 -1
  259. package/dist/labsofscience/components/FileUploadField.d.ts.map +0 -1
  260. package/dist/labsofscience/components/ListSearchInput.d.ts.map +0 -1
  261. package/dist/labsofscience/components/MetricsCard.d.ts.map +0 -1
  262. package/dist/labsofscience/components/PageLayout.d.ts.map +0 -1
  263. package/dist/labsofscience/components/ProvenanceChain.d.ts.map +0 -1
  264. package/dist/labsofscience/components/ProvenancePanel.d.ts.map +0 -1
  265. package/dist/labsofscience/components/QueryStates.d.ts.map +0 -1
  266. package/dist/labsofscience/components/StatusBadge.d.ts.map +0 -1
  267. package/dist/labsofscience/components/index.d.ts.map +0 -1
  268. package/dist/labsofscience/components/provenanceMapping.d.ts.map +0 -1
  269. package/dist/labsofscience/context/LabsOfScienceContext.d.ts.map +0 -1
  270. package/dist/labsofscience/context/index.d.ts.map +0 -1
  271. package/dist/labsofscience/hooks/index.d.ts.map +0 -1
  272. package/dist/labsofscience/hooks/useLabActorNames.d.ts.map +0 -1
  273. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +0 -1
  274. package/dist/labsofscience/hooks/useTr.d.ts.map +0 -1
  275. package/dist/labsofscience/index.d.ts.map +0 -1
  276. package/dist/labsofscience/legal/aiTerms.d.ts.map +0 -1
  277. package/dist/labsofscience/pages/OverviewPage.d.ts.map +0 -1
  278. package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +0 -1
  279. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +0 -1
  280. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +0 -1
  281. package/dist/labsofscience/pages/ai/AiTermsGate.d.ts.map +0 -1
  282. package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +0 -1
  283. package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +0 -1
  284. package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +0 -1
  285. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts.map +0 -1
  286. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts.map +0 -1
  287. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
  288. package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts.map +0 -1
  289. package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts.map +0 -1
  290. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts.map +0 -1
  291. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts.map +0 -1
  292. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts.map +0 -1
  293. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts.map +0 -1
  294. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts.map +0 -1
  295. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts.map +0 -1
  296. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts.map +0 -1
  297. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts.map +0 -1
  298. package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts.map +0 -1
  299. package/dist/labsofscience/pages/experiments/RunDialogs.d.ts.map +0 -1
  300. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts.map +0 -1
  301. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts.map +0 -1
  302. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts.map +0 -1
  303. package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts.map +0 -1
  304. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts.map +0 -1
  305. package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts.map +0 -1
  306. package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts.map +0 -1
  307. package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts.map +0 -1
  308. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts.map +0 -1
  309. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts.map +0 -1
  310. package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts.map +0 -1
  311. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts.map +0 -1
  312. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts.map +0 -1
  313. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts.map +0 -1
  314. package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts.map +0 -1
  315. package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts.map +0 -1
  316. package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts.map +0 -1
  317. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts.map +0 -1
  318. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts.map +0 -1
  319. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts.map +0 -1
  320. package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts.map +0 -1
  321. package/dist/labsofscience/pages/shared/DetailComponents.d.ts.map +0 -1
  322. package/dist/labsofscience/pages/shared/tags.d.ts.map +0 -1
  323. package/dist/labsofscience/store/index.d.ts.map +0 -1
  324. package/dist/labsofscience/store/labsofscienceStore.d.ts.map +0 -1
  325. package/dist/labsofscience/types/index.d.ts.map +0 -1
  326. package/dist/labsofscience/utils/cn.d.ts.map +0 -1
  327. package/dist/labsofscience/utils/formatters.d.ts.map +0 -1
  328. package/dist/labsofscience/utils/index.d.ts.map +0 -1
  329. package/dist/labsofscience/utils/navigation.d.ts.map +0 -1
  330. package/dist/labsofscience/utils/uploadFile.d.ts.map +0 -1
  331. package/dist/labsofscience/utils/useDebouncedValue.d.ts.map +0 -1
  332. package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
  333. package/dist/stories/EmptyState.stories.d.ts.map +0 -1
  334. package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
  335. package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
  336. package/dist/test/setup.d.ts +0 -2
  337. package/dist/test/setup.d.ts.map +0 -1
  338. package/dist/types/assistant.d.ts.map +0 -1
  339. package/dist/utils/pageContext.d.ts.map +0 -1
@@ -2,7 +2,7 @@ import { cn as e } from "../utils/cn.js";
2
2
  import { Minus as t, TrendingDown as n, TrendingUp as r } from "lucide-react";
3
3
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
4
  import { GlassCard as o } from "@burdenoff/fe-libs/ui";
5
- //#region src/labsofscience/components/MetricsCard.tsx
5
+ // src/labsofscience/components/MetricsCard.tsx
6
6
  var s = {
7
7
  up: {
8
8
  icon: r,
@@ -46,7 +46,6 @@ var s = {
46
46
  })]
47
47
  });
48
48
  };
49
- //#endregion
50
49
  export { c as MetricsCard };
51
50
 
52
51
  //# sourceMappingURL=MetricsCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MetricsCard.js","names":[],"sources":["../../../src/labsofscience/components/MetricsCard.tsx"],"sourcesContent":["/**\n * Metrics Card Component\n * @module labsofscience/components\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { TrendingUp, TrendingDown, Minus } from 'lucide-react';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\nimport type { TrendDirection } from '../types';\n\nexport interface MetricsCardProps {\n icon: ReactNode;\n value: string | number;\n label: string;\n trend?: TrendDirection;\n trendValue?: string;\n /** Promote the single hero KPI on a page to the glass treatment with glow. */\n featured?: boolean;\n className?: string;\n}\n\nconst trendConfig: Record<TrendDirection, { icon: typeof TrendingUp; color: string }> = {\n up: { icon: TrendingUp, color: 'text-status-success-text' },\n down: { icon: TrendingDown, color: 'text-status-error-text' },\n neutral: { icon: Minus, color: 'text-text-secondary' },\n};\n\nexport const MetricsCard: FC<MetricsCardProps> = ({\n icon,\n value,\n label,\n trend,\n trendValue,\n featured = false,\n className,\n}) => {\n const trendInfo = trend ? trendConfig[trend] : null;\n const TrendIcon = trendInfo?.icon;\n\n return (\n <GlassCard\n treatment={featured ? 'glass' : 'metric'}\n glow={featured}\n className={cn('border-border-seam p-6', className)}\n >\n <div className=\"flex items-center justify-between\">\n <div className=\"flex size-9 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary [&>svg]:h-4 [&>svg]:w-4\">\n {icon}\n </div>\n {trend && trendInfo && TrendIcon && (\n <div className={cn('flex items-center gap-1 text-xs font-medium', trendInfo.color)}>\n <TrendIcon className=\"h-3.5 w-3.5\" />\n {trendValue && <span className=\"tabular-nums\">{trendValue}</span>}\n </div>\n )}\n </div>\n <div className=\"mt-3\">\n <p className=\"text-2xl font-bold tabular-nums text-text-primary\">{value}</p>\n <p className=\"mt-1 text-sm text-text-secondary\">{label}</p>\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;AAsBA,IAAM,IAAkF;CACtF,IAAI;EAAE,MAAM;EAAY,OAAO;CAA2B;CAC1D,MAAM;EAAE,MAAM;EAAc,OAAO;CAAyB;CAC5D,SAAS;EAAE,MAAM;EAAO,OAAO;CAAsB;AACvD,GAEa,KAAqC,EAChD,SACA,UACA,UACA,UACA,eACA,cAAW,IACX,mBACI;CACJ,IAAM,IAAY,IAAQ,EAAY,KAAS,MACzC,IAAY,GAAW;CAE7B,OACE,kBAAC,GAAD;EACE,WAAW,IAAW,UAAU;EAChC,MAAM;EACN,WAAW,EAAG,0BAA0B,CAAS;YAHnD,CAKE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,WAAU;cACZ;GACE,CAAA,GACJ,KAAS,KAAa,KACrB,kBAAC,OAAD;IAAK,WAAW,EAAG,+CAA+C,EAAU,KAAK;cAAjF,CACE,kBAAC,GAAD,EAAW,WAAU,cAAe,CAAA,GACnC,KAAc,kBAAC,QAAD;KAAM,WAAU;eAAgB;IAAiB,CAAA,CAC7D;KAEJ;MACL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cAAqD;GAAS,CAAA,GAC3E,kBAAC,KAAD;IAAG,WAAU;cAAoC;GAAS,CAAA,CACvD;IACI;;AAEf"}
1
+ {"version":3,"file":"MetricsCard.js","names":["trendConfig","TrendingUp","TrendingDown","Minus","MetricsCard","trendInfo","trend","TrendIcon","GlassCard","featured","cn","className","icon","trendValue","value","label"],"sources":["../../../src/labsofscience/components/MetricsCard.tsx"],"sourcesContent":["/**\n * Metrics Card Component\n * @module labsofscience/components\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { TrendingUp, TrendingDown, Minus } from 'lucide-react';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\nimport type { TrendDirection } from '../types';\n\nexport interface MetricsCardProps {\n icon: ReactNode;\n value: string | number;\n label: string;\n trend?: TrendDirection;\n trendValue?: string;\n /** Promote the single hero KPI on a page to the glass treatment with glow. */\n featured?: boolean;\n className?: string;\n}\n\nconst trendConfig: Record<TrendDirection, { icon: typeof TrendingUp; color: string }> = {\n up: { icon: TrendingUp, color: 'text-status-success-text' },\n down: { icon: TrendingDown, color: 'text-status-error-text' },\n neutral: { icon: Minus, color: 'text-text-secondary' },\n};\n\nexport const MetricsCard: FC<MetricsCardProps> = ({\n icon,\n value,\n label,\n trend,\n trendValue,\n featured = false,\n className,\n}) => {\n const trendInfo = trend ? trendConfig[trend] : null;\n const TrendIcon = trendInfo?.icon;\n\n return (\n <GlassCard\n treatment={featured ? 'glass' : 'metric'}\n glow={featured}\n className={cn('border-border-seam p-6', className)}\n >\n <div className=\"flex items-center justify-between\">\n <div className=\"flex size-9 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary [&>svg]:h-4 [&>svg]:w-4\">\n {icon}\n </div>\n {trend && trendInfo && TrendIcon && (\n <div className={cn('flex items-center gap-1 text-xs font-medium', trendInfo.color)}>\n <TrendIcon className=\"h-3.5 w-3.5\" />\n {trendValue && <span className=\"tabular-nums\">{trendValue}</span>}\n </div>\n )}\n </div>\n <div className=\"mt-3\">\n <p className=\"text-2xl font-bold tabular-nums text-text-primary\">{value}</p>\n <p className=\"mt-1 text-sm text-text-secondary\">{label}</p>\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;AAsBA,IAAMA,IAAkF;CACtF,IAAI;EAAE,MAAMC;EAAY,OAAO;CAA2B;CAC1D,MAAM;EAAE,MAAMC;EAAc,OAAO;CAAyB;CAC5D,SAAS;EAAE,MAAMC;EAAO,OAAO;CAAsB;AACvD,GAEaC,KAAqC,EAChD,SACA,UACA,UACA,UACA,eACA,cAAW,IACX,mBACI;CACJ,IAAMC,IAAYC,IAAQN,EAAYM,KAAS,MACzCC,IAAYF,GAAW;CAE7B,OACE,kBAACG,GAAD;EACE,WAAWC,IAAW,UAAU;EAChC,MAAMA;EACN,WAAWC,EAAG,0BAA0BC,CAAS;EAHnD,UAAA,CAKE,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAAC;GACE,CAAA,GACJN,KAASD,KAAaE,KACrB,kBAAC,OAAD;IAAK,WAAWG,EAAG,+CAA+CL,EAAU,KAAK;IAAjF,UAAA,CACE,kBAACE,GAAD,EAAW,WAAU,cAAe,CAAA,GACnCM,KAAc,kBAAC,QAAD;KAAM,WAAU;KAAgB,UAAAA;IAAiB,CAAA,CAC7D;GAEJ,CAAA,CAAA;EACL,CAAA,GAAA,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,KAAD;IAAG,WAAU;IAAqD,UAAAC;GAAS,CAAA,GAC3E,kBAAC,KAAD;IAAG,WAAU;IAAoC,UAAAC;GAAS,CAAA,CACvD;EACI,CAAA,CAAA;;AAEf"}
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface PageLayoutProps {
4
3
  title: ReactNode;
5
4
  description?: string;
@@ -11,4 +10,3 @@ interface PageLayoutProps {
11
10
  }
12
11
  export declare const PageLayout: FC<PageLayoutProps>;
13
12
  export {};
14
- //# sourceMappingURL=PageLayout.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { AuroraBackground as r } from "@burdenoff/fe-libs/ui";
4
- //#region src/labsofscience/components/PageLayout.tsx
4
+ // src/labsofscience/components/PageLayout.tsx
5
5
  var i = ({ title: i, description: a, actions: o, children: s, hero: c = !1, className: l }) => /* @__PURE__ */ n("div", {
6
6
  className: e("flex h-full flex-col", l),
7
7
  children: [/* @__PURE__ */ n("div", {
@@ -28,7 +28,6 @@ var i = ({ title: i, description: a, actions: o, children: s, hero: c = !1, clas
28
28
  children: s
29
29
  })]
30
30
  });
31
- //#endregion
32
31
  export { i as PageLayout };
33
32
 
34
33
  //# sourceMappingURL=PageLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/labsofscience/components/PageLayout.tsx"],"sourcesContent":["/**\n * Page Layout Component\n * @module labsofscience/components\n *\n * Boff UI 2.0: the page header is the MFE's single hero zone. When `hero` is\n * set, the header gains a seamless AuroraBackground backdrop (decorative, never\n * moves content) for a calm glassmorphic depth-of-field.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AuroraBackground } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n /** Render the page header as the MFE hero with an aurora backdrop. */\n hero?: boolean;\n className?: string;\n}\n\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n hero = false,\n className,\n}) => {\n return (\n <div className={cn('flex h-full flex-col', className)}>\n {/* Page Header — single hero zone per MFE */}\n <div\n className={cn(\n 'relative flex flex-col items-start justify-between gap-4 border-b border-border-seam px-4 py-4 sm:flex-row sm:items-center md:px-6',\n hero ? 'overflow-hidden bg-hero-mesh' : 'bg-bg-surface'\n )}\n >\n {hero && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"min-w-0\">\n <h1 className=\"truncate text-2xl font-semibold text-text-primary\">{title}</h1>\n {description && <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>}\n </div>\n {actions && (\n <div className=\"flex w-full flex-shrink-0 flex-wrap items-center gap-3 sm:w-auto sm:justify-end\">\n {actions}\n </div>\n )}\n </div>\n\n {/* Page Content */}\n <div className=\"flex-1 overflow-auto p-4 md:p-6\">{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;AAuBA,IAAa,KAAmC,EAC9C,UACA,gBACA,YACA,aACA,UAAO,IACP,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,wBAAwB,CAAS;WAApD,CAEE,kBAAC,OAAD;EACE,WAAW,EACT,sIACA,IAAO,iCAAiC,eAC1C;YAJF;GAMG,KAAQ,kBAAC,GAAD,EAAkB,WAAU,SAAU,CAAA;GAC/C,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,MAAD;KAAI,WAAU;eAAqD;IAAU,CAAA,GAC5E,KAAe,kBAAC,KAAD;KAAG,WAAU;eAAoC;IAAe,CAAA,CAC7E;;GACJ,KACC,kBAAC,OAAD;IAAK,WAAU;cACZ;GACE,CAAA;EAEJ;KAGL,kBAAC,OAAD;EAAK,WAAU;EAAmC;CAAc,CAAA,CAC7D"}
1
+ {"version":3,"file":"PageLayout.js","names":["PageLayout","cn","className","hero","AuroraBackground","title","description","actions"],"sources":["../../../src/labsofscience/components/PageLayout.tsx"],"sourcesContent":["/**\n * Page Layout Component\n * @module labsofscience/components\n *\n * Boff UI 2.0: the page header is the MFE's single hero zone. When `hero` is\n * set, the header gains a seamless AuroraBackground backdrop (decorative, never\n * moves content) for a calm glassmorphic depth-of-field.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AuroraBackground } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n /** Render the page header as the MFE hero with an aurora backdrop. */\n hero?: boolean;\n className?: string;\n}\n\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n hero = false,\n className,\n}) => {\n return (\n <div className={cn('flex h-full flex-col', className)}>\n {/* Page Header — single hero zone per MFE */}\n <div\n className={cn(\n 'relative flex flex-col items-start justify-between gap-4 border-b border-border-seam px-4 py-4 sm:flex-row sm:items-center md:px-6',\n hero ? 'overflow-hidden bg-hero-mesh' : 'bg-bg-surface'\n )}\n >\n {hero && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"min-w-0\">\n <h1 className=\"truncate text-2xl font-semibold text-text-primary\">{title}</h1>\n {description && <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>}\n </div>\n {actions && (\n <div className=\"flex w-full flex-shrink-0 flex-wrap items-center gap-3 sm:w-auto sm:justify-end\">\n {actions}\n </div>\n )}\n </div>\n\n {/* Page Content */}\n <div className=\"flex-1 overflow-auto p-4 md:p-6\">{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;AAuBA,IAAaA,KAAmC,EAC9C,UACA,gBACA,YACA,aACA,UAAO,IACP,mBAGE,kBAAC,OAAD;CAAK,WAAWC,EAAG,wBAAwBC,CAAS;CAApD,UAAA,CAEE,kBAAC,OAAD;EACE,WAAWD,EACT,sIACAE,IAAO,iCAAiC,eAC1C;EAJF,UAAA;GAMGA,KAAQ,kBAACC,GAAD,EAAkB,WAAU,SAAU,CAAA;GAC/C,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;KAAqD,UAAAC;IAAU,CAAA,GAC5EC,KAAe,kBAAC,KAAD;KAAG,WAAU;KAAoC,UAAAA;IAAe,CAAA,CAC7E;;GACJC,KACC,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAAA;GACE,CAAA;EAEJ;CAGL,CAAA,GAAA,kBAAC,OAAD;EAAK,WAAU;EAAmC;CAAc,CAAA,CAC7D"}
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface ProvenanceNode {
4
3
  /** Short type label, e.g. "Analysis run", "Dataset version". */
5
4
  kind: string;
@@ -14,5 +13,4 @@ export interface ProvenanceNode {
14
13
  }
15
14
  export declare function ProvenanceChain({ nodes }: {
16
15
  nodes: ProvenanceNode[];
17
- }): import("react").JSX.Element;
18
- //# sourceMappingURL=ProvenanceChain.d.ts.map
16
+ }): import('react').JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ChevronRight as e } from "lucide-react";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/labsofscience/components/ProvenanceChain.tsx
3
+ // src/labsofscience/components/ProvenanceChain.tsx
4
4
  var r = {
5
5
  blue: "text-accent-blue-text bg-accent-blue-bg",
6
6
  teal: "text-status-success-text bg-status-success-bg",
@@ -36,7 +36,6 @@ function i({ nodes: i }) {
36
36
  }, `${a.kind}-${o}`))
37
37
  });
38
38
  }
39
- //#endregion
40
39
  export { i as ProvenanceChain };
41
40
 
42
41
  //# sourceMappingURL=ProvenanceChain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProvenanceChain.js","names":[],"sources":["../../../src/labsofscience/components/ProvenanceChain.tsx"],"sourcesContent":["/**\n * ProvenanceChain — a reproducibility / lineage strip.\n *\n * Renders an ordered sequence of linked entity nodes (result → run →\n * dataset version → …) as connected cards with a chevron between them, so a\n * researcher can see at a glance exactly which pinned inputs and frozen methods\n * produced a result. Horizontal on desktop, stacks vertically on mobile.\n */\nimport type { ReactNode } from 'react';\nimport { ChevronRight } from 'lucide-react';\n\nexport interface ProvenanceNode {\n /** Short type label, e.g. \"Analysis run\", \"Dataset version\". */\n kind: string;\n /** Human-readable value / name for the node. */\n label: string;\n /** Optional lucide icon element. */\n icon?: ReactNode;\n /** Render the label in a monospace style (ids, checksums). */\n mono?: boolean;\n /** Optional accent tone for the node's icon chip. */\n tone?: 'blue' | 'teal' | 'cyan' | 'violet' | 'neutral';\n}\n\nconst TONE_CLASS: Record<NonNullable<ProvenanceNode['tone']>, string> = {\n blue: 'text-accent-blue-text bg-accent-blue-bg',\n teal: 'text-status-success-text bg-status-success-bg',\n cyan: 'text-accent-cyan-text bg-accent-cyan-bg',\n violet: 'text-accent-violet-text bg-accent-violet-bg',\n neutral: 'text-text-secondary bg-bg-sunken',\n};\n\nexport function ProvenanceChain({ nodes }: { nodes: ProvenanceNode[] }) {\n return (\n <div className=\"flex flex-col gap-2 md:flex-row md:items-stretch md:gap-1\">\n {nodes.map((node, index) => (\n <div\n key={`${node.kind}-${index}`}\n className=\"flex flex-col md:flex-1 md:flex-row md:items-center\"\n >\n <div className=\"flex min-w-0 flex-1 items-center gap-2.5 rounded-lg border border-border-subtle bg-bg-surface p-2.5\">\n {node.icon ? (\n <span\n className={`flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${\n TONE_CLASS[node.tone ?? 'neutral']\n }`}\n >\n {node.icon}\n </span>\n ) : null}\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {node.kind}\n </p>\n <p\n className={`truncate text-xs text-text-primary ${node.mono ? 'font-mono' : 'font-medium'}`}\n title={node.label}\n >\n {node.label}\n </p>\n </div>\n </div>\n {index < nodes.length - 1 ? (\n <ChevronRight\n className=\"mx-auto my-0.5 h-4 w-4 shrink-0 rotate-90 text-text-tertiary md:mx-0.5 md:my-0 md:rotate-0\"\n aria-hidden\n />\n ) : null}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;AAwBA,IAAM,IAAkE;CACtE,MAAM;CACN,MAAM;CACN,MAAM;CACN,QAAQ;CACR,SAAS;AACX;AAEA,SAAgB,EAAgB,EAAE,YAAsC;CACtE,OACE,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAM,KAAK,GAAM,MAChB,kBAAC,OAAD;GAEE,WAAU;aAFZ,CAIE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACG,EAAK,OACJ,kBAAC,QAAD;KACE,WAAW,gEACT,EAAW,EAAK,QAAQ;eAGzB,EAAK;IACF,CAAA,IACJ,MACJ,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAK;KACL,CAAA,GACH,kBAAC,KAAD;MACE,WAAW,sCAAsC,EAAK,OAAO,cAAc;MAC3E,OAAO,EAAK;gBAEX,EAAK;KACL,CAAA,CACA;MACF;OACJ,IAAQ,EAAM,SAAS,IACtB,kBAAC,GAAD;IACE,WAAU;IACV,eAAA;GACD,CAAA,IACC,IACD;KA/BE,GAAG,EAAK,KAAK,GAAG,GA+BlB,CACN;CACE,CAAA;AAET"}
1
+ {"version":3,"file":"ProvenanceChain.js","names":["TONE_CLASS","ProvenanceChain","nodes","node","index","ChevronRight"],"sources":["../../../src/labsofscience/components/ProvenanceChain.tsx"],"sourcesContent":["/**\n * ProvenanceChain — a reproducibility / lineage strip.\n *\n * Renders an ordered sequence of linked entity nodes (result → run →\n * dataset version → …) as connected cards with a chevron between them, so a\n * researcher can see at a glance exactly which pinned inputs and frozen methods\n * produced a result. Horizontal on desktop, stacks vertically on mobile.\n */\nimport type { ReactNode } from 'react';\nimport { ChevronRight } from 'lucide-react';\n\nexport interface ProvenanceNode {\n /** Short type label, e.g. \"Analysis run\", \"Dataset version\". */\n kind: string;\n /** Human-readable value / name for the node. */\n label: string;\n /** Optional lucide icon element. */\n icon?: ReactNode;\n /** Render the label in a monospace style (ids, checksums). */\n mono?: boolean;\n /** Optional accent tone for the node's icon chip. */\n tone?: 'blue' | 'teal' | 'cyan' | 'violet' | 'neutral';\n}\n\nconst TONE_CLASS: Record<NonNullable<ProvenanceNode['tone']>, string> = {\n blue: 'text-accent-blue-text bg-accent-blue-bg',\n teal: 'text-status-success-text bg-status-success-bg',\n cyan: 'text-accent-cyan-text bg-accent-cyan-bg',\n violet: 'text-accent-violet-text bg-accent-violet-bg',\n neutral: 'text-text-secondary bg-bg-sunken',\n};\n\nexport function ProvenanceChain({ nodes }: { nodes: ProvenanceNode[] }) {\n return (\n <div className=\"flex flex-col gap-2 md:flex-row md:items-stretch md:gap-1\">\n {nodes.map((node, index) => (\n <div\n key={`${node.kind}-${index}`}\n className=\"flex flex-col md:flex-1 md:flex-row md:items-center\"\n >\n <div className=\"flex min-w-0 flex-1 items-center gap-2.5 rounded-lg border border-border-subtle bg-bg-surface p-2.5\">\n {node.icon ? (\n <span\n className={`flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${\n TONE_CLASS[node.tone ?? 'neutral']\n }`}\n >\n {node.icon}\n </span>\n ) : null}\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {node.kind}\n </p>\n <p\n className={`truncate text-xs text-text-primary ${node.mono ? 'font-mono' : 'font-medium'}`}\n title={node.label}\n >\n {node.label}\n </p>\n </div>\n </div>\n {index < nodes.length - 1 ? (\n <ChevronRight\n className=\"mx-auto my-0.5 h-4 w-4 shrink-0 rotate-90 text-text-tertiary md:mx-0.5 md:my-0 md:rotate-0\"\n aria-hidden\n />\n ) : null}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;AAwBA,IAAMA,IAAkE;CACtE,MAAM;CACN,MAAM;CACN,MAAM;CACN,QAAQ;CACR,SAAS;AACX;AAEA,SAAgBC,EAAgB,EAAE,YAAsC;CACtE,OACE,kBAAC,OAAD;EAAK,WAAU;EACZ,UAAAC,EAAM,KAAK,GAAM,MAChB,kBAAC,OAAD;GAEE,WAAU;GAFZ,UAAA,CAIE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACGC,EAAK,OACJ,kBAAC,QAAD;KACE,WAAW,gEACTH,EAAWG,EAAK,QAAQ;KAGzB,UAAAA,EAAK;IACF,CAAA,IACJ,MACJ,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAAC,KAAD;MAAG,WAAU;MACV,UAAAA,EAAK;KACL,CAAA,GACH,kBAAC,KAAD;MACE,WAAW,sCAAsCA,EAAK,OAAO,cAAc;MAC3E,OAAOA,EAAK;MAEX,UAAAA,EAAK;KACL,CAAA,CACA;IACF,CAAA,CAAA;GACJ,CAAA,GAAAC,IAAQF,EAAM,SAAS,IACtB,kBAACG,GAAD;IACE,WAAU;IACV,eAAA;GACD,CAAA,IACC,IACD;EA/BE,GAAA,GAAGF,EAAK,KAAK,GAAGC,GA+BlB,CACN;CACE,CAAA;AAET"}
@@ -1,5 +1,4 @@
1
1
  import { LabProvenanceEntityType } from '../types';
2
-
3
2
  export interface ProvenancePanelProps {
4
3
  /** GraphQL enum value for the root entity type. */
5
4
  entityType: LabProvenanceEntityType;
@@ -10,5 +9,4 @@ export interface ProvenancePanelProps {
10
9
  /** Maximum BFS depth for the backend traversal. */
11
10
  maxDepth?: number;
12
11
  }
13
- export declare function ProvenancePanel({ entityType, entityId, title, maxDepth, }: ProvenancePanelProps): import("react").JSX.Element;
14
- //# sourceMappingURL=ProvenancePanel.d.ts.map
12
+ export declare function ProvenancePanel({ entityType, entityId, title, maxDepth, }: ProvenancePanelProps): import('react').JSX.Element;
@@ -1,13 +1,13 @@
1
- import { QueryBoundary as e } from "./QueryStates.js";
2
- import { useLabProvenance as t } from "../hooks/useLabsOfScienceApi.js";
3
- import { DetailSection as n } from "../pages/shared/DetailComponents.js";
4
- import { ProvenanceChain as r } from "./ProvenanceChain.js";
5
- import { buildProvenanceChain as i, buildProvenanceEdges as a } from "./provenanceMapping.js";
1
+ import { ProvenanceChain as e } from "./ProvenanceChain.js";
2
+ import { QueryBoundary as t } from "./QueryStates.js";
3
+ import { useLabProvenance as n } from "../hooks/useLabsOfScienceApi.js";
4
+ import { buildProvenanceChain as r, buildProvenanceEdges as i } from "./provenanceMapping.js";
5
+ import { DetailSection as a } from "../pages/shared/DetailComponents.js";
6
6
  import { useState as o } from "react";
7
7
  import { GitBranch as s, List as c, Network as l } from "lucide-react";
8
8
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
9
  import { Button as p, ResponsiveTable as m } from "@burdenoff/fe-libs/ui";
10
- //#region src/labsofscience/components/ProvenancePanel.tsx
10
+ // src/labsofscience/components/ProvenancePanel.tsx
11
11
  var h = [
12
12
  {
13
13
  key: "from",
@@ -52,8 +52,8 @@ var h = [
52
52
  }
53
53
  ];
54
54
  function g({ entityType: g, entityId: _, title: v = "Provenance", maxDepth: y = 5 }) {
55
- let [b, x] = o("chain"), S = t(g, _, y);
56
- return /* @__PURE__ */ d(n, {
55
+ let [b, x] = o("chain"), S = n(g, _, y);
56
+ return /* @__PURE__ */ d(a, {
57
57
  title: v,
58
58
  action: /* @__PURE__ */ f("div", {
59
59
  className: "flex items-center gap-1",
@@ -71,7 +71,7 @@ function g({ entityType: g, entityId: _, title: v = "Provenance", maxDepth: y =
71
71
  children: [/* @__PURE__ */ d(l, { className: "mr-1.5 h-3.5 w-3.5" }), "Edges"]
72
72
  })]
73
73
  }),
74
- children: /* @__PURE__ */ d(e, {
74
+ children: /* @__PURE__ */ d(t, {
75
75
  isLoading: S.isLoading,
76
76
  isError: S.isError,
77
77
  error: S.error,
@@ -82,12 +82,12 @@ function g({ entityType: g, entityId: _, title: v = "Provenance", maxDepth: y =
82
82
  children: [b === "chain" ? /* @__PURE__ */ d(u, { children: S.data.nodes.length === 0 ? /* @__PURE__ */ d("p", {
83
83
  className: "py-4 text-center text-sm text-text-secondary",
84
84
  children: "No provenance information available for this entity."
85
- }) : /* @__PURE__ */ d(r, { nodes: i(S.data) }) }) : /* @__PURE__ */ d(u, { children: S.data.edges.length === 0 ? /* @__PURE__ */ d("p", {
85
+ }) : /* @__PURE__ */ d(e, { nodes: r(S.data) }) }) : /* @__PURE__ */ d(u, { children: S.data.edges.length === 0 ? /* @__PURE__ */ d("p", {
86
86
  className: "py-4 text-center text-sm text-text-secondary",
87
87
  children: "No edges to display."
88
88
  }) : /* @__PURE__ */ d(m, {
89
89
  columns: h,
90
- data: a(S.data),
90
+ data: i(S.data),
91
91
  rowKey: (e) => e.id
92
92
  }) }), /* @__PURE__ */ f("p", {
93
93
  className: "flex items-center gap-1.5 text-xs text-text-secondary",
@@ -107,7 +107,6 @@ function g({ entityType: g, entityId: _, title: v = "Provenance", maxDepth: y =
107
107
  })
108
108
  });
109
109
  }
110
- //#endregion
111
110
  export { g as ProvenancePanel };
112
111
 
113
112
  //# sourceMappingURL=ProvenancePanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProvenancePanel.js","names":[],"sources":["../../../src/labsofscience/components/ProvenancePanel.tsx"],"sourcesContent":["/**\n * ProvenancePanel — reusable read-only provenance graph viewer.\n * @module labsofscience/components\n *\n * Displays the lineage of any LabsOfScience entity (project, experiment, run,\n * dataset, pipeline, notebook entry) as an interactive graph. It reuses the\n * existing `ProvenanceChain` for the high-level chain and adds a simple\n * chain/edges toggle so researchers can inspect the raw graph relationships.\n */\n\nimport { useState } from 'react';\nimport { Network, List, GitBranch } from 'lucide-react';\nimport { Button, ResponsiveTable, type ResponsiveTableColumn } from '@burdenoff/fe-libs/ui';\n\nimport { ProvenanceChain } from './ProvenanceChain';\nimport { QueryBoundary } from './QueryStates';\nimport { useLabProvenance } from '../hooks/useLabsOfScienceApi';\nimport {\n buildProvenanceChain,\n buildProvenanceEdges,\n type ProvenanceEdgeViewModel,\n} from './provenanceMapping';\nimport { DetailSection } from '../pages/shared/DetailComponents';\nimport type { LabProvenanceEntityType } from '../types';\n\ntype ViewMode = 'chain' | 'edges';\n\nconst edgeColumns: ResponsiveTableColumn<ProvenanceEdgeViewModel>[] = [\n {\n key: 'from',\n header: 'From',\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {row.fromType}\n </p>\n <p className=\"truncate text-sm text-text-primary\" title={row.fromLabel}>\n {row.fromLabel}\n </p>\n </div>\n ),\n },\n {\n key: 'relationship',\n header: 'Relationship',\n priority: 'primary',\n cell: (row) => <span className=\"text-sm text-text-secondary\">{row.label}</span>,\n },\n {\n key: 'to',\n header: 'To',\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {row.toType}\n </p>\n <p className=\"truncate text-sm text-text-primary\" title={row.toLabel}>\n {row.toLabel}\n </p>\n </div>\n ),\n },\n];\n\nexport interface ProvenancePanelProps {\n /** GraphQL enum value for the root entity type. */\n entityType: LabProvenanceEntityType;\n /** Root entity id to traverse from. */\n entityId: string;\n /** Optional section title; defaults to \"Provenance\". */\n title?: string;\n /** Maximum BFS depth for the backend traversal. */\n maxDepth?: number;\n}\n\nexport function ProvenancePanel({\n entityType,\n entityId,\n title = 'Provenance',\n maxDepth = 5,\n}: ProvenancePanelProps) {\n const [view, setView] = useState<ViewMode>('chain');\n const query = useLabProvenance(entityType, entityId, maxDepth);\n\n return (\n <DetailSection\n title={title}\n action={\n <div className=\"flex items-center gap-1\">\n <Button\n size=\"sm\"\n variant={view === 'chain' ? 'default' : 'outline'}\n onClick={() => setView('chain')}\n aria-pressed={view === 'chain'}\n >\n <GitBranch className=\"mr-1.5 h-3.5 w-3.5\" />\n Chain\n </Button>\n <Button\n size=\"sm\"\n variant={view === 'edges' ? 'default' : 'outline'}\n onClick={() => setView('edges')}\n aria-pressed={view === 'edges'}\n >\n <Network className=\"mr-1.5 h-3.5 w-3.5\" />\n Edges\n </Button>\n </div>\n }\n >\n <QueryBoundary\n isLoading={query.isLoading}\n isError={query.isError}\n error={query.error}\n onRetry={() => void query.refetch()}\n loadingLabel=\"Loading provenance graph…\"\n >\n {query.data && (\n <div className=\"space-y-3\">\n {view === 'chain' ? (\n <>\n {query.data.nodes.length === 0 ? (\n <p className=\"py-4 text-center text-sm text-text-secondary\">\n No provenance information available for this entity.\n </p>\n ) : (\n <ProvenanceChain nodes={buildProvenanceChain(query.data)} />\n )}\n </>\n ) : (\n <>\n {query.data.edges.length === 0 ? (\n <p className=\"py-4 text-center text-sm text-text-secondary\">\n No edges to display.\n </p>\n ) : (\n <ResponsiveTable\n columns={edgeColumns}\n data={buildProvenanceEdges(query.data)}\n rowKey={(row) => row.id}\n />\n )}\n </>\n )}\n\n <p className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <List className=\"h-3.5 w-3.5\" />\n {query.data.nodes.length} node{query.data.nodes.length === 1 ? '' : 's'} ·{' '}\n {query.data.edges.length} edge{query.data.edges.length === 1 ? '' : 's'}\n </p>\n </div>\n )}\n </QueryBoundary>\n </DetailSection>\n );\n}\n"],"mappings":";;;;;;;;;;AA2BA,IAAM,IAAgE;CACpE;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MACL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAI;GACJ,CAAA,GACH,kBAAC,KAAD;IAAG,WAAU;IAAqC,OAAO,EAAI;cAC1D,EAAI;GACJ,CAAA,CACA;;CAET;CACA;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MAAQ,kBAAC,QAAD;GAAM,WAAU;aAA+B,EAAI;EAAY,CAAA;CAChF;CACA;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MACL,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAI;GACJ,CAAA,GACH,kBAAC,KAAD;IAAG,WAAU;IAAqC,OAAO,EAAI;cAC1D,EAAI;GACJ,CAAA,CACA;;CAET;AACF;AAaA,SAAgB,EAAgB,EAC9B,eACA,aACA,WAAQ,cACR,cAAW,KACY;CACvB,IAAM,CAAC,GAAM,KAAW,EAAmB,OAAO,GAC5C,IAAQ,EAAiB,GAAY,GAAU,CAAQ;CAE7D,OACE,kBAAC,GAAD;EACS;EACP,QACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD;IACE,MAAK;IACL,SAAS,MAAS,UAAU,YAAY;IACxC,eAAe,EAAQ,OAAO;IAC9B,gBAAc,MAAS;cAJzB,CAME,kBAAC,GAAD,EAAW,WAAU,qBAAsB,CAAA,GAAC,OAEtC;OACR,kBAAC,GAAD;IACE,MAAK;IACL,SAAS,MAAS,UAAU,YAAY;IACxC,eAAe,EAAQ,OAAO;IAC9B,gBAAc,MAAS;cAJzB,CAME,kBAAC,GAAD,EAAS,WAAU,qBAAsB,CAAA,GAAC,OAEpC;KACL;;YAGP,kBAAC,GAAD;GACE,WAAW,EAAM;GACjB,SAAS,EAAM;GACf,OAAO,EAAM;GACb,eAAe,KAAK,EAAM,QAAQ;GAClC,cAAa;aAEZ,EAAM,QACL,kBAAC,OAAD;IAAK,WAAU;cAAf,CACG,MAAS,UACR,kBAAA,GAAA,EAAA,UACG,EAAM,KAAK,MAAM,WAAW,IAC3B,kBAAC,KAAD;KAAG,WAAU;eAA+C;IAEzD,CAAA,IAEH,kBAAC,GAAD,EAAiB,OAAO,EAAqB,EAAM,IAAI,EAAI,CAAA,EAE7D,CAAA,IAEF,kBAAA,GAAA,EAAA,UACG,EAAM,KAAK,MAAM,WAAW,IAC3B,kBAAC,KAAD;KAAG,WAAU;eAA+C;IAEzD,CAAA,IAEH,kBAAC,GAAD;KACE,SAAS;KACT,MAAM,EAAqB,EAAM,IAAI;KACrC,SAAS,MAAQ,EAAI;IACtB,CAAA,EAEH,CAAA,GAGJ,kBAAC,KAAD;KAAG,WAAU;eAAb;MACE,kBAAC,GAAD,EAAM,WAAU,cAAe,CAAA;MAC9B,EAAM,KAAK,MAAM;MAAO;MAAM,EAAM,KAAK,MAAM,WAAW,IAAI,KAAK;MAAI;MAAG;MAC1E,EAAM,KAAK,MAAM;MAAO;MAAM,EAAM,KAAK,MAAM,WAAW,IAAI,KAAK;KACnE;MACA;;EAEM,CAAA;CACF,CAAA;AAEnB"}
1
+ {"version":3,"file":"ProvenancePanel.js","names":["_Fragment","edgeColumns","row","ProvenancePanel","view","setView","useState","query","useLabProvenance","entityType","entityId","maxDepth","DetailSection","Button","GitBranch","Network","QueryBoundary","Fragment","ProvenanceChain","buildProvenanceChain","ResponsiveTable","buildProvenanceEdges","List"],"sources":["../../../src/labsofscience/components/ProvenancePanel.tsx"],"sourcesContent":["/**\n * ProvenancePanel — reusable read-only provenance graph viewer.\n * @module labsofscience/components\n *\n * Displays the lineage of any LabsOfScience entity (project, experiment, run,\n * dataset, pipeline, notebook entry) as an interactive graph. It reuses the\n * existing `ProvenanceChain` for the high-level chain and adds a simple\n * chain/edges toggle so researchers can inspect the raw graph relationships.\n */\n\nimport { useState } from 'react';\nimport { Network, List, GitBranch } from 'lucide-react';\nimport { Button, ResponsiveTable, type ResponsiveTableColumn } from '@burdenoff/fe-libs/ui';\n\nimport { ProvenanceChain } from './ProvenanceChain';\nimport { QueryBoundary } from './QueryStates';\nimport { useLabProvenance } from '../hooks/useLabsOfScienceApi';\nimport {\n buildProvenanceChain,\n buildProvenanceEdges,\n type ProvenanceEdgeViewModel,\n} from './provenanceMapping';\nimport { DetailSection } from '../pages/shared/DetailComponents';\nimport type { LabProvenanceEntityType } from '../types';\n\ntype ViewMode = 'chain' | 'edges';\n\nconst edgeColumns: ResponsiveTableColumn<ProvenanceEdgeViewModel>[] = [\n {\n key: 'from',\n header: 'From',\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {row.fromType}\n </p>\n <p className=\"truncate text-sm text-text-primary\" title={row.fromLabel}>\n {row.fromLabel}\n </p>\n </div>\n ),\n },\n {\n key: 'relationship',\n header: 'Relationship',\n priority: 'primary',\n cell: (row) => <span className=\"text-sm text-text-secondary\">{row.label}</span>,\n },\n {\n key: 'to',\n header: 'To',\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"text-[10px] font-medium uppercase tracking-wide text-text-tertiary\">\n {row.toType}\n </p>\n <p className=\"truncate text-sm text-text-primary\" title={row.toLabel}>\n {row.toLabel}\n </p>\n </div>\n ),\n },\n];\n\nexport interface ProvenancePanelProps {\n /** GraphQL enum value for the root entity type. */\n entityType: LabProvenanceEntityType;\n /** Root entity id to traverse from. */\n entityId: string;\n /** Optional section title; defaults to \"Provenance\". */\n title?: string;\n /** Maximum BFS depth for the backend traversal. */\n maxDepth?: number;\n}\n\nexport function ProvenancePanel({\n entityType,\n entityId,\n title = 'Provenance',\n maxDepth = 5,\n}: ProvenancePanelProps) {\n const [view, setView] = useState<ViewMode>('chain');\n const query = useLabProvenance(entityType, entityId, maxDepth);\n\n return (\n <DetailSection\n title={title}\n action={\n <div className=\"flex items-center gap-1\">\n <Button\n size=\"sm\"\n variant={view === 'chain' ? 'default' : 'outline'}\n onClick={() => setView('chain')}\n aria-pressed={view === 'chain'}\n >\n <GitBranch className=\"mr-1.5 h-3.5 w-3.5\" />\n Chain\n </Button>\n <Button\n size=\"sm\"\n variant={view === 'edges' ? 'default' : 'outline'}\n onClick={() => setView('edges')}\n aria-pressed={view === 'edges'}\n >\n <Network className=\"mr-1.5 h-3.5 w-3.5\" />\n Edges\n </Button>\n </div>\n }\n >\n <QueryBoundary\n isLoading={query.isLoading}\n isError={query.isError}\n error={query.error}\n onRetry={() => void query.refetch()}\n loadingLabel=\"Loading provenance graph…\"\n >\n {query.data && (\n <div className=\"space-y-3\">\n {view === 'chain' ? (\n <>\n {query.data.nodes.length === 0 ? (\n <p className=\"py-4 text-center text-sm text-text-secondary\">\n No provenance information available for this entity.\n </p>\n ) : (\n <ProvenanceChain nodes={buildProvenanceChain(query.data)} />\n )}\n </>\n ) : (\n <>\n {query.data.edges.length === 0 ? (\n <p className=\"py-4 text-center text-sm text-text-secondary\">\n No edges to display.\n </p>\n ) : (\n <ResponsiveTable\n columns={edgeColumns}\n data={buildProvenanceEdges(query.data)}\n rowKey={(row) => row.id}\n />\n )}\n </>\n )}\n\n <p className=\"flex items-center gap-1.5 text-xs text-text-secondary\">\n <List className=\"h-3.5 w-3.5\" />\n {query.data.nodes.length} node{query.data.nodes.length === 1 ? '' : 's'} ·{' '}\n {query.data.edges.length} edge{query.data.edges.length === 1 ? '' : 's'}\n </p>\n </div>\n )}\n </QueryBoundary>\n </DetailSection>\n );\n}\n"],"mappings":";;;;;;;;;;AA2BA,IAAMC,IAAgE;CACpE;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MACL,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAC,EAAI;GACJ,CAAA,GACH,kBAAC,KAAD;IAAG,WAAU;IAAqC,OAAOA,EAAI;IAC1D,UAAAA,EAAI;GACJ,CAAA,CACA;;CAET;CACA;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MAAQ,kBAAC,QAAD;GAAM,WAAU;GAA+B,UAAAA,EAAI;EAAY,CAAA;CAChF;CACA;EACE,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO,MACL,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAA,EAAI;GACJ,CAAA,GACH,kBAAC,KAAD;IAAG,WAAU;IAAqC,OAAOA,EAAI;IAC1D,UAAAA,EAAI;GACJ,CAAA,CACA;;CAET;AACF;AAaA,SAAgBC,EAAgB,EAC9B,eACA,aACA,WAAQ,cACR,cAAW,KACY;CACvB,IAAM,CAACC,GAAMC,KAAWC,EAAmB,OAAO,GAC5CC,IAAQC,EAAiBC,GAAYC,GAAUC,CAAQ;CAE7D,OACE,kBAACC,GAAD;EACS;EACP,QACE,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAACC,GAAD;IACE,MAAK;IACL,SAAST,MAAS,UAAU,YAAY;IACxC,eAAeC,EAAQ,OAAO;IAC9B,gBAAcD,MAAS;IAJzB,UAAA,CAME,kBAACU,GAAD,EAAW,WAAU,qBAAsB,CAAA,GAAC,OAEtC;GACR,CAAA,GAAA,kBAACD,GAAD;IACE,MAAK;IACL,SAAST,MAAS,UAAU,YAAY;IACxC,eAAeC,EAAQ,OAAO;IAC9B,gBAAcD,MAAS;IAJzB,UAAA,CAME,kBAACW,GAAD,EAAS,WAAU,qBAAsB,CAAA,GAAC,OAEpC;GACL,CAAA,CAAA;;EAGP,UAAA,kBAACC,GAAD;GACE,WAAWT,EAAM;GACjB,SAASA,EAAM;GACf,OAAOA,EAAM;GACb,eAAe,KAAKA,EAAM,QAAQ;GAClC,cAAa;GAEZ,UAAAA,EAAM,QACL,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACGH,MAAS,UACR,kBAAAJ,GAAA,EAAA,UACGO,EAAM,KAAK,MAAM,WAAW,IAC3B,kBAAC,KAAD;KAAG,WAAU;KAA+C,UAAA;IAEzD,CAAA,IAEH,kBAACW,GAAD,EAAiB,OAAOC,EAAqBZ,EAAM,IAAI,EAAI,CAAA,EAE7D,CAAA,IAEF,kBAAAP,GAAA,EAAA,UACGO,EAAM,KAAK,MAAM,WAAW,IAC3B,kBAAC,KAAD;KAAG,WAAU;KAA+C,UAAA;IAEzD,CAAA,IAEH,kBAACa,GAAD;KACE,SAASnB;KACT,MAAMoB,EAAqBd,EAAM,IAAI;KACrC,SAAS,MAAQL,EAAI;IACtB,CAAA,EAEH,CAAA,GAGJ,kBAAC,KAAD;KAAG,WAAU;KAAb,UAAA;MACE,kBAACoB,GAAD,EAAM,WAAU,cAAe,CAAA;MAC9Bf,EAAM,KAAK,MAAM;MAAO;MAAMA,EAAM,KAAK,MAAM,WAAW,IAAI,KAAK;MAAI;MAAG;MAC1EA,EAAM,KAAK,MAAM;MAAO;MAAMA,EAAM,KAAK,MAAM,WAAW,IAAI,KAAK;KACnE;IACA,CAAA,CAAA;;EAEM,CAAA;CACF,CAAA;AAEnB"}
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  export declare const LoadingState: FC<{
4
3
  className?: string;
5
4
  label?: string;
@@ -23,4 +22,3 @@ export declare const QueryBoundary: FC<{
23
22
  loadingLabel?: string;
24
23
  children: ReactNode;
25
24
  }>;
26
- //# sourceMappingURL=QueryStates.d.ts.map
@@ -2,7 +2,7 @@ import { cn as e } from "../utils/cn.js";
2
2
  import { AlertCircle as t } from "lucide-react";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { Button as a, Spinner as o } from "@burdenoff/fe-libs/ui";
5
- //#region src/labsofscience/components/QueryStates.tsx
5
+ // src/labsofscience/components/QueryStates.tsx
6
6
  var s = ({ className: t, label: n = "Loading…" }) => /* @__PURE__ */ i("div", {
7
7
  className: e("flex min-h-[240px] flex-col items-center justify-center gap-3", t),
8
8
  children: [/* @__PURE__ */ r(o, { size: "lg" }), /* @__PURE__ */ r("p", {
@@ -30,11 +30,17 @@ var s = ({ className: t, label: n = "Loading…" }) => /* @__PURE__ */ i("div",
30
30
  children: "Try again"
31
31
  })
32
32
  ]
33
- }), l = ({ isLoading: e, isError: t, error: i, onRetry: a, loadingLabel: o, children: l }) => e ? /* @__PURE__ */ r(s, { label: o }) : t ? /* @__PURE__ */ r(c, {
34
- message: i instanceof Error ? i.message : void 0,
35
- onRetry: a
36
- }) : /* @__PURE__ */ r(n, { children: l });
37
- //#endregion
33
+ }), l = ({ isLoading: e, isError: t, error: i, onRetry: a, loadingLabel: o, children: l }) => {
34
+ if (e) return /* @__PURE__ */ r(s, { label: o });
35
+ if (t) {
36
+ let e = i instanceof Error ? i.message : void 0;
37
+ return /* @__PURE__ */ r(c, {
38
+ message: e,
39
+ onRetry: a
40
+ });
41
+ }
42
+ return /* @__PURE__ */ r(n, { children: l });
43
+ };
38
44
  export { c as ErrorState, s as LoadingState, l as QueryBoundary };
39
45
 
40
46
  //# sourceMappingURL=QueryStates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryStates.js","names":[],"sources":["../../../src/labsofscience/components/QueryStates.tsx"],"sourcesContent":["/**\n * Query state helpers\n * @module labsofscience/components\n *\n * Small, reusable loading / error scaffolding shared by every list and detail\n * page so the data-fetching states render consistently across the MFE.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AlertCircle } from 'lucide-react';\nimport { Button, Spinner } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\nexport const LoadingState: FC<{ className?: string; label?: string }> = ({\n className,\n label = 'Loading…',\n}) => (\n <div className={cn('flex min-h-[240px] flex-col items-center justify-center gap-3', className)}>\n <Spinner size=\"lg\" />\n <p className=\"text-sm text-text-secondary\">{label}</p>\n </div>\n);\n\nexport const ErrorState: FC<{\n title?: string;\n message?: string;\n onRetry?: () => void;\n className?: string;\n}> = ({ title = 'Something went wrong', message, onRetry, className }) => (\n <div\n className={cn(\n 'flex min-h-[240px] flex-col items-center justify-center gap-3 px-4 text-center',\n className\n )}\n >\n <div className=\"text-status-error-text\">\n <AlertCircle className=\"h-8 w-8\" />\n </div>\n <div>\n <h3 className=\"text-lg font-medium text-text-primary\">{title}</h3>\n {message && <p className=\"mt-1 max-w-md text-sm text-text-secondary\">{message}</p>}\n </div>\n {onRetry && (\n <Button variant=\"outline\" size=\"sm\" onClick={onRetry}>\n Try again\n </Button>\n )}\n </div>\n);\n\n/**\n * Render-prop convenience that picks the right state for a React Query result.\n * Returns the matching state element, or `null` once data is ready (the caller\n * then renders `children`).\n */\nexport const QueryBoundary: FC<{\n isLoading: boolean;\n isError: boolean;\n error?: unknown;\n onRetry?: () => void;\n loadingLabel?: string;\n children: ReactNode;\n}> = ({ isLoading, isError, error, onRetry, loadingLabel, children }) => {\n if (isLoading) {\n return <LoadingState label={loadingLabel} />;\n }\n if (isError) {\n const message = error instanceof Error ? error.message : undefined;\n return <ErrorState message={message} onRetry={onRetry} />;\n }\n return <>{children}</>;\n};\n"],"mappings":";;;;;AAaA,IAAa,KAA4D,EACvE,cACA,WAAQ,iBAER,kBAAC,OAAD;CAAK,WAAW,EAAG,iEAAiE,CAAS;WAA7F,CACE,kBAAC,GAAD,EAAS,MAAK,KAAM,CAAA,GACpB,kBAAC,KAAD;EAAG,WAAU;YAA+B;CAAS,CAAA,CAClD;IAGM,KAKP,EAAE,WAAQ,wBAAwB,YAAS,YAAS,mBACxD,kBAAC,OAAD;CACE,WAAW,EACT,kFACA,CACF;WAJF;EAME,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,GAAD,EAAa,WAAU,UAAW,CAAA;EAC/B,CAAA;EACL,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;GAAI,WAAU;aAAyC;EAAU,CAAA,GAChE,KAAW,kBAAC,KAAD;GAAG,WAAU;aAA6C;EAAW,CAAA,CAC9E,EAAA,CAAA;EACJ,KACC,kBAAC,GAAD;GAAQ,SAAQ;GAAU,MAAK;GAAK,SAAS;aAAS;EAE9C,CAAA;CAEP;IAQM,KAOP,EAAE,cAAW,YAAS,UAAO,YAAS,iBAAc,kBACpD,IACK,kBAAC,GAAD,EAAc,OAAO,EAAe,CAAA,IAEzC,IAEK,kBAAC,GAAD;CAAqB,SADZ,aAAiB,QAAQ,EAAM,UAAU,KAAA;CACX;AAAU,CAAA,IAEnD,kBAAA,GAAA,EAAG,YAAW,CAAA"}
1
+ {"version":3,"file":"QueryStates.js","names":["_Fragment","LoadingState","cn","className","Spinner","label","ErrorState","AlertCircle","title","message","onRetry","Button","QueryBoundary","isLoading","loadingLabel","isError","error","Fragment"],"sources":["../../../src/labsofscience/components/QueryStates.tsx"],"sourcesContent":["/**\n * Query state helpers\n * @module labsofscience/components\n *\n * Small, reusable loading / error scaffolding shared by every list and detail\n * page so the data-fetching states render consistently across the MFE.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AlertCircle } from 'lucide-react';\nimport { Button, Spinner } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\nexport const LoadingState: FC<{ className?: string; label?: string }> = ({\n className,\n label = 'Loading…',\n}) => (\n <div className={cn('flex min-h-[240px] flex-col items-center justify-center gap-3', className)}>\n <Spinner size=\"lg\" />\n <p className=\"text-sm text-text-secondary\">{label}</p>\n </div>\n);\n\nexport const ErrorState: FC<{\n title?: string;\n message?: string;\n onRetry?: () => void;\n className?: string;\n}> = ({ title = 'Something went wrong', message, onRetry, className }) => (\n <div\n className={cn(\n 'flex min-h-[240px] flex-col items-center justify-center gap-3 px-4 text-center',\n className\n )}\n >\n <div className=\"text-status-error-text\">\n <AlertCircle className=\"h-8 w-8\" />\n </div>\n <div>\n <h3 className=\"text-lg font-medium text-text-primary\">{title}</h3>\n {message && <p className=\"mt-1 max-w-md text-sm text-text-secondary\">{message}</p>}\n </div>\n {onRetry && (\n <Button variant=\"outline\" size=\"sm\" onClick={onRetry}>\n Try again\n </Button>\n )}\n </div>\n);\n\n/**\n * Render-prop convenience that picks the right state for a React Query result.\n * Returns the matching state element, or `null` once data is ready (the caller\n * then renders `children`).\n */\nexport const QueryBoundary: FC<{\n isLoading: boolean;\n isError: boolean;\n error?: unknown;\n onRetry?: () => void;\n loadingLabel?: string;\n children: ReactNode;\n}> = ({ isLoading, isError, error, onRetry, loadingLabel, children }) => {\n if (isLoading) {\n return <LoadingState label={loadingLabel} />;\n }\n if (isError) {\n const message = error instanceof Error ? error.message : undefined;\n return <ErrorState message={message} onRetry={onRetry} />;\n }\n return <>{children}</>;\n};\n"],"mappings":";;;;;AAaA,IAAaC,KAA4D,EACvE,cACA,WAAQ,iBAER,kBAAC,OAAD;CAAK,WAAWC,EAAG,iEAAiEC,CAAS;CAA7F,UAAA,CACE,kBAACC,GAAD,EAAS,MAAK,KAAM,CAAA,GACpB,kBAAC,KAAD;EAAG,WAAU;EAA+B,UAAAC;CAAS,CAAA,CAClD;A,IAGMC,KAKP,EAAE,WAAQ,wBAAwB,YAAS,YAAS,mBACxD,kBAAC,OAAD;CACE,WAAWJ,EACT,kFACAC,CACF;CAJF,UAAA;EAME,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACI,GAAD,EAAa,WAAU,UAAW,CAAA;EAC/B,CAAA;EACL,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;GAAI,WAAU;GAAyC,UAAAC;EAAU,CAAA,GAChEC,KAAW,kBAAC,KAAD;GAAG,WAAU;GAA6C,UAAAA;EAAW,CAAA,CAC9E,EAAA,CAAA;EACJC,KACC,kBAACC,GAAD;GAAQ,SAAQ;GAAU,MAAK;GAAK,SAASD;GAAS,UAAA;EAE9C,CAAA;CAEP;A,IAQME,KAOP,EAAE,cAAW,YAAS,UAAO,YAAS,iBAAc,kBAAe;CACvE,IAAIC,GACF,OAAO,kBAACZ,GAAD,EAAc,OAAOa,EAAe,CAAA;CAE7C,IAAIC,GAAS;EACX,IAAMN,IAAUO,aAAiB,QAAQA,EAAM,UAAU,KAAA;EACzD,OAAO,kBAACV,GAAD;GAAqB;GAAkB;EAAU,CAAA;CAC1D;CACA,OAAO,kBAAAN,GAAA,EAAG,YAAW,CAAA;AACvB"}
@@ -1,9 +1,7 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface StatusBadgeProps {
4
3
  status: string;
5
4
  className?: string;
6
5
  }
7
6
  export declare const StatusBadge: FC<StatusBadgeProps>;
8
7
  export {};
9
- //# sourceMappingURL=StatusBadge.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/labsofscience/components/StatusBadge.tsx
3
+ // src/labsofscience/components/StatusBadge.tsx
4
4
  var r = {
5
5
  success: "bg-status-success-bg-subtle text-status-success-text",
6
6
  warning: "bg-status-warning-bg-subtle text-status-warning-text",
@@ -84,7 +84,6 @@ var c = ({ status: c, className: l }) => {
84
84
  }), s(c)]
85
85
  });
86
86
  };
87
- //#endregion
88
87
  export { c as StatusBadge };
89
88
 
90
89
  //# sourceMappingURL=StatusBadge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/labsofscience/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module labsofscience/components\n *\n * A colored badge based on status value with semantic color mapping\n * for various order, cart, and investment statuses.\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-status-info-bg-subtle text-status-info-text',\n outline: 'border border-border-seam text-text-primary',\n};\n\nconst dotColor: Record<BadgeVariant, string> = {\n success: 'bg-status-success-text',\n warning: 'bg-status-warning-text',\n destructive: 'bg-status-error-text',\n secondary: 'bg-text-secondary',\n info: 'bg-status-info-text',\n outline: 'bg-text-secondary',\n};\n\n// Statuses representing a live / active in-flight state get a calm glow-pulse dot.\nconst liveStatuses = new Set(['active', 'running', 'in_progress', 'in_use', 'queued', 'requested']);\n\n// All LabsOfScience domain enums are UPPERCASE on the wire; we normalize to\n// lowercase before lookup, so every key here is lowercase.\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Project lifecycle\n planning: 'secondary',\n active: 'success',\n on_hold: 'warning',\n completed: 'success',\n archived: 'outline',\n\n // Project visibility\n private: 'secondary',\n workspace: 'info',\n public: 'success',\n\n // Experiment lifecycle\n design: 'secondary',\n running: 'info',\n analysis: 'warning',\n complete: 'success',\n abandoned: 'destructive',\n\n // Run / pipeline-run lifecycle\n planned: 'secondary',\n in_progress: 'info',\n succeeded: 'success',\n failed: 'destructive',\n cancelled: 'destructive',\n queued: 'secondary',\n\n // Notebook entry lifecycle\n draft: 'secondary',\n submitted: 'info',\n signed: 'success',\n witnessed: 'success',\n void: 'outline',\n\n // Protocol lifecycle\n published: 'success',\n deprecated: 'outline',\n\n // Dataset lifecycle\n locked: 'warning',\n\n // Inventory derived status\n in_stock: 'success',\n low: 'warning',\n out_of_stock: 'destructive',\n expired: 'destructive',\n quarantined: 'warning',\n\n // Instrument status\n available: 'success',\n in_use: 'info',\n maintenance: 'warning',\n offline: 'destructive',\n\n // Booking status\n requested: 'warning',\n confirmed: 'success',\n\n // AI decision ledger — LabAgentRunTrigger. `succeeded` / `failed` above already\n // cover LabAgentRunStatus.\n manual: 'secondary',\n scheduled: 'info',\n event: 'info',\n\n // LabRunRecommendation. ESCALATE_REVIEW is the one that stops the bench —\n // a human must look before another run starts — so it reads as destructive\n // rather than as another shade of \"consider changing something\".\n replicate: 'info',\n adjust_parameters: 'warning',\n escalate_review: 'destructive',\n conclude: 'success',\n\n // Review state of the AI read on an experiment (context.lastAiRecommendation).\n proposed: 'warning',\n overridden: 'info',\n};\n\n/**\n * Domain enums arrive UPPERCASE on the wire (see the note on `statusVariantMap`),\n * and the design renders badges UPPERCASE — see the status pills in\n * `labsofscience-specs/product/mockups/labsci-05-experiments-list.png`\n * (\"RUNNING\", \"ANALYSIS\", \"COMPLETE\", \"ABANDONED\"). So the only transform this\n * needs is underscore → space: `IN_PROGRESS` → `IN PROGRESS`.\n *\n * This previously ended in `.replace(/\\b\\w/g, c => c.toUpperCase())`, which read as\n * Title Case but was dead code — the input is already uppercase, so it matched and\n * re-uppercased the same characters and could never change anything. It was removed\n * rather than \"fixed\": title-casing here would silently restyle every badge in the\n * product away from the design. `toUpperCase()` is explicit so a future lowercase\n * caller cannot quietly change the rendering.\n */\nfunction formatStatusLabel(status: string): string {\n return status.replace(/_/g, ' ').toUpperCase();\n}\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const normalized = status.toLowerCase();\n const variant = statusVariantMap[normalized] || 'secondary';\n const isLive = liveStatuses.has(normalized);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'h-1.5 w-1.5 rounded-full motion-safe:animate-vc-glow-pulse',\n dotColor[variant]\n )}\n />\n )}\n {formatStatusLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;AAkBA,IAAM,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAEM,IAAyC;CAC7C,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAGM,oBAAe,IAAI,IAAI;CAAC;CAAU;CAAW;CAAe;CAAU;CAAU;AAAW,CAAC,GAI5F,IAAiD;CAErD,UAAU;CACV,QAAQ;CACR,SAAS;CACT,WAAW;CACX,UAAU;CAGV,SAAS;CACT,WAAW;CACX,QAAQ;CAGR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,UAAU;CACV,WAAW;CAGX,SAAS;CACT,aAAa;CACb,WAAW;CACX,QAAQ;CACR,WAAW;CACX,QAAQ;CAGR,OAAO;CACP,WAAW;CACX,QAAQ;CACR,WAAW;CACX,MAAM;CAGN,WAAW;CACX,YAAY;CAGZ,QAAQ;CAGR,UAAU;CACV,KAAK;CACL,cAAc;CACd,SAAS;CACT,aAAa;CAGb,WAAW;CACX,QAAQ;CACR,aAAa;CACb,SAAS;CAGT,WAAW;CACX,WAAW;CAIX,QAAQ;CACR,WAAW;CACX,OAAO;CAKP,WAAW;CACX,mBAAmB;CACnB,iBAAiB;CACjB,UAAU;CAGV,UAAU;CACV,YAAY;AACd;AAgBA,SAAS,EAAkB,GAAwB;CACjD,OAAO,EAAO,QAAQ,MAAM,GAAG,CAAC,CAAC,YAAY;AAC/C;AAEA,IAAa,KAAqC,EAAE,WAAQ,mBAAgB;CAC1E,IAAM,IAAa,EAAO,YAAY,GAChC,IAAU,EAAiB,MAAe,aAC1C,IAAS,EAAa,IAAI,CAAU;CAE1C,OACE,kBAAC,QAAD;EACE,WAAW,EACT,mFACA,EAAc,IACd,CACF;YALF,CAOG,KACC,kBAAC,QAAD;GACE,eAAY;GACZ,WAAW,EACT,8DACA,EAAS,EACX;EACD,CAAA,GAEF,EAAkB,CAAM,CACrB;;AAEV"}
1
+ {"version":3,"file":"StatusBadge.js","names":["variantStyles","dotColor","liveStatuses","statusVariantMap","formatStatusLabel","status","StatusBadge","normalized","variant","isLive","cn","className"],"sources":["../../../src/labsofscience/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module labsofscience/components\n *\n * A colored badge based on status value with semantic color mapping\n * for various order, cart, and investment statuses.\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-status-info-bg-subtle text-status-info-text',\n outline: 'border border-border-seam text-text-primary',\n};\n\nconst dotColor: Record<BadgeVariant, string> = {\n success: 'bg-status-success-text',\n warning: 'bg-status-warning-text',\n destructive: 'bg-status-error-text',\n secondary: 'bg-text-secondary',\n info: 'bg-status-info-text',\n outline: 'bg-text-secondary',\n};\n\n// Statuses representing a live / active in-flight state get a calm glow-pulse dot.\nconst liveStatuses = new Set(['active', 'running', 'in_progress', 'in_use', 'queued', 'requested']);\n\n// All LabsOfScience domain enums are UPPERCASE on the wire; we normalize to\n// lowercase before lookup, so every key here is lowercase.\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Project lifecycle\n planning: 'secondary',\n active: 'success',\n on_hold: 'warning',\n completed: 'success',\n archived: 'outline',\n\n // Project visibility\n private: 'secondary',\n workspace: 'info',\n public: 'success',\n\n // Experiment lifecycle\n design: 'secondary',\n running: 'info',\n analysis: 'warning',\n complete: 'success',\n abandoned: 'destructive',\n\n // Run / pipeline-run lifecycle\n planned: 'secondary',\n in_progress: 'info',\n succeeded: 'success',\n failed: 'destructive',\n cancelled: 'destructive',\n queued: 'secondary',\n\n // Notebook entry lifecycle\n draft: 'secondary',\n submitted: 'info',\n signed: 'success',\n witnessed: 'success',\n void: 'outline',\n\n // Protocol lifecycle\n published: 'success',\n deprecated: 'outline',\n\n // Dataset lifecycle\n locked: 'warning',\n\n // Inventory derived status\n in_stock: 'success',\n low: 'warning',\n out_of_stock: 'destructive',\n expired: 'destructive',\n quarantined: 'warning',\n\n // Instrument status\n available: 'success',\n in_use: 'info',\n maintenance: 'warning',\n offline: 'destructive',\n\n // Booking status\n requested: 'warning',\n confirmed: 'success',\n\n // AI decision ledger — LabAgentRunTrigger. `succeeded` / `failed` above already\n // cover LabAgentRunStatus.\n manual: 'secondary',\n scheduled: 'info',\n event: 'info',\n\n // LabRunRecommendation. ESCALATE_REVIEW is the one that stops the bench —\n // a human must look before another run starts — so it reads as destructive\n // rather than as another shade of \"consider changing something\".\n replicate: 'info',\n adjust_parameters: 'warning',\n escalate_review: 'destructive',\n conclude: 'success',\n\n // Review state of the AI read on an experiment (context.lastAiRecommendation).\n proposed: 'warning',\n overridden: 'info',\n};\n\n/**\n * Domain enums arrive UPPERCASE on the wire (see the note on `statusVariantMap`),\n * and the design renders badges UPPERCASE — see the status pills in\n * `labsofscience-specs/product/mockups/labsci-05-experiments-list.png`\n * (\"RUNNING\", \"ANALYSIS\", \"COMPLETE\", \"ABANDONED\"). So the only transform this\n * needs is underscore → space: `IN_PROGRESS` → `IN PROGRESS`.\n *\n * This previously ended in `.replace(/\\b\\w/g, c => c.toUpperCase())`, which read as\n * Title Case but was dead code — the input is already uppercase, so it matched and\n * re-uppercased the same characters and could never change anything. It was removed\n * rather than \"fixed\": title-casing here would silently restyle every badge in the\n * product away from the design. `toUpperCase()` is explicit so a future lowercase\n * caller cannot quietly change the rendering.\n */\nfunction formatStatusLabel(status: string): string {\n return status.replace(/_/g, ' ').toUpperCase();\n}\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const normalized = status.toLowerCase();\n const variant = statusVariantMap[normalized] || 'secondary';\n const isLive = liveStatuses.has(normalized);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'h-1.5 w-1.5 rounded-full motion-safe:animate-vc-glow-pulse',\n dotColor[variant]\n )}\n />\n )}\n {formatStatusLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;AAkBA,IAAMA,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAEMC,IAAyC;CAC7C,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;AACX,GAGMC,oBAAe,IAAI,IAAI;CAAC;CAAU;CAAW;CAAe;CAAU;CAAU;AAAW,CAAC,GAI5FC,IAAiD;CAErD,UAAU;CACV,QAAQ;CACR,SAAS;CACT,WAAW;CACX,UAAU;CAGV,SAAS;CACT,WAAW;CACX,QAAQ;CAGR,QAAQ;CACR,SAAS;CACT,UAAU;CACV,UAAU;CACV,WAAW;CAGX,SAAS;CACT,aAAa;CACb,WAAW;CACX,QAAQ;CACR,WAAW;CACX,QAAQ;CAGR,OAAO;CACP,WAAW;CACX,QAAQ;CACR,WAAW;CACX,MAAM;CAGN,WAAW;CACX,YAAY;CAGZ,QAAQ;CAGR,UAAU;CACV,KAAK;CACL,cAAc;CACd,SAAS;CACT,aAAa;CAGb,WAAW;CACX,QAAQ;CACR,aAAa;CACb,SAAS;CAGT,WAAW;CACX,WAAW;CAIX,QAAQ;CACR,WAAW;CACX,OAAO;CAKP,WAAW;CACX,mBAAmB;CACnB,iBAAiB;CACjB,UAAU;CAGV,UAAU;CACV,YAAY;AACd;AAgBA,SAASC,EAAkB,GAAwB;CACjD,OAAOC,EAAO,QAAQ,MAAM,GAAG,CAAC,CAAC,YAAY;AAC/C;AAEA,IAAaC,KAAqC,EAAE,WAAQ,mBAAgB;CAC1E,IAAMC,IAAaF,EAAO,YAAY,GAChCG,IAAUL,EAAiBI,MAAe,aAC1CE,IAASP,EAAa,IAAIK,CAAU;CAE1C,OACE,kBAAC,QAAD;EACE,WAAWG,EACT,mFACAV,EAAcQ,IACdG,CACF;EALF,UAAA,CAOGF,KACC,kBAAC,QAAD;GACE,eAAY;GACZ,WAAWC,EACT,8DACAT,EAASO,EACX;EACD,CAAA,GAEFJ,EAAkBC,CAAM,CACrB;;AAEV"}
@@ -12,4 +12,3 @@ export { FileUploadField } from './FileUploadField';
12
12
  export { ListSearchInput } from './ListSearchInput';
13
13
  export { DiscussionPanel } from './DiscussionPanel';
14
14
  export { BottomNav } from './BottomNav';
15
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { LabProvenanceGraph } from '../types';
3
-
4
3
  export interface ProvenanceNodeViewModel {
5
4
  /** Short type label shown above the node value. */
6
5
  kind: string;
@@ -32,4 +31,3 @@ export declare function buildProvenanceChain(graph: LabProvenanceGraph): Provena
32
31
  * Build a flat list of edge view-models for the table/list toggle.
33
32
  */
34
33
  export declare function buildProvenanceEdges(graph: LabProvenanceGraph): ProvenanceEdgeViewModel[];
35
- //# sourceMappingURL=provenanceMapping.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { BookOpen as e, Boxes as t, Database as n, FlaskConical as r, FolderKanban as i, GitBranch as a, GitCommit as o, Play as s, ScrollText as c } from "lucide-react";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
- //#region src/labsofscience/components/provenanceMapping.tsx
3
+ // src/labsofscience/components/provenanceMapping.tsx
4
4
  var u = {
5
5
  LAB_PROJECT: {
6
6
  kind: "Project",
@@ -95,7 +95,6 @@ function h(e) {
95
95
  };
96
96
  });
97
97
  }
98
- //#endregion
99
98
  export { m as buildProvenanceChain, h as buildProvenanceEdges };
100
99
 
101
100
  //# sourceMappingURL=provenanceMapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provenanceMapping.js","names":[],"sources":["../../../src/labsofscience/components/provenanceMapping.tsx"],"sourcesContent":["/**\n * Pure mapping helpers for the provenance panel.\n * @module labsofscience/components/provenanceMapping\n *\n * Translates the backend's `LabProvenanceGraph` into the UI-specific shapes\n * consumed by `ProvenanceChain` and the edges table, keeping the component\n * free of transformation logic.\n */\n\nimport type { ReactNode } from 'react';\nimport {\n FolderKanban,\n FlaskConical,\n Play,\n ScrollText,\n Database,\n GitCommit,\n GitBranch,\n Boxes,\n BookOpen,\n type LucideIcon,\n} from 'lucide-react';\n\nimport type { LabProvenanceEntityType, LabProvenanceGraph, LabProvenanceNode } from '../types';\n\nexport interface ProvenanceNodeViewModel {\n /** Short type label shown above the node value. */\n kind: string;\n /** Human-readable value / name for the node. */\n label: string;\n /** Icon element rendered in the node's chip. */\n icon: ReactNode;\n /** Render the label in a monospace style (ids, checksums). */\n mono?: boolean;\n /** Accent tone for the node's icon chip. */\n tone: 'blue' | 'teal' | 'cyan' | 'violet' | 'neutral';\n}\n\nexport interface ProvenanceEdgeViewModel {\n id: string;\n fromLabel: string;\n toLabel: string;\n fromType: string;\n toType: string;\n label: string;\n}\n\nconst ENTITY_META: Record<\n LabProvenanceEntityType,\n { kind: string; icon: LucideIcon; tone: ProvenanceNodeViewModel['tone']; mono?: boolean }\n> = {\n LAB_PROJECT: { kind: 'Project', icon: FolderKanban, tone: 'blue' },\n LAB_EXPERIMENT: { kind: 'Experiment', icon: FlaskConical, tone: 'cyan' },\n LAB_EXPERIMENT_RUN: { kind: 'Run', icon: Play, tone: 'cyan' },\n LAB_PROTOCOL: { kind: 'Protocol', icon: ScrollText, tone: 'neutral' },\n LAB_DATASET: { kind: 'Dataset', icon: Database, tone: 'teal' },\n LAB_DATASET_VERSION: { kind: 'Version', icon: GitCommit, tone: 'teal', mono: true },\n LAB_ANALYSIS_PIPELINE: { kind: 'Pipeline', icon: GitBranch, tone: 'violet' },\n LAB_PIPELINE_RUN: { kind: 'Pipeline run', icon: Boxes, tone: 'violet' },\n LAB_NOTEBOOK_ENTRY: { kind: 'Notebook entry', icon: BookOpen, tone: 'neutral' },\n};\n\nconst shortId = (id: string): string => `${id.slice(0, 8)}…`;\n\nfunction nodeLabel(node: LabProvenanceNode): string {\n if (node.label) return node.label;\n if (node.checksum) return `${shortId(node.id)} (${node.checksum.slice(0, 8)}…)`;\n return shortId(node.id);\n}\n\nfunction nodeToViewModel(node: LabProvenanceNode): ProvenanceNodeViewModel {\n const meta = ENTITY_META[node.entityType];\n const Icon = meta.icon;\n return {\n kind: meta.kind,\n label: nodeLabel(node),\n icon: <Icon className=\"h-4 w-4\" />,\n mono: meta.mono,\n tone: meta.tone,\n };\n}\n\n/**\n * Build an ordered chain of view-model nodes starting from the root and\n * following outgoing edges breadth-first. Cycles are skipped; if the graph\n * is disconnected, only the connected component reachable from the root is\n * shown in the chain.\n */\nexport function buildProvenanceChain(graph: LabProvenanceGraph): ProvenanceNodeViewModel[] {\n const nodeById = new Map(graph.nodes.map((node) => [node.id, node]));\n const childrenById = new Map<string, string[]>();\n\n for (const edge of graph.edges) {\n const list = childrenById.get(edge.fromNodeId) ?? [];\n list.push(edge.toNodeId);\n childrenById.set(edge.fromNodeId, list);\n }\n\n const ordered: LabProvenanceNode[] = [];\n const visited = new Set<string>();\n const queue: string[] = [graph.rootNodeId];\n\n while (queue.length > 0) {\n const id = queue.shift()!;\n if (visited.has(id)) continue;\n visited.add(id);\n\n const node = nodeById.get(id);\n if (!node) continue;\n ordered.push(node);\n\n for (const childId of childrenById.get(id) ?? []) {\n if (!visited.has(childId)) queue.push(childId);\n }\n }\n\n return ordered.map(nodeToViewModel);\n}\n\n/**\n * Build a flat list of edge view-models for the table/list toggle.\n */\nexport function buildProvenanceEdges(graph: LabProvenanceGraph): ProvenanceEdgeViewModel[] {\n const nodeById = new Map(graph.nodes.map((node) => [node.id, node]));\n\n return graph.edges.map((edge) => {\n const from = nodeById.get(edge.fromNodeId);\n const to = nodeById.get(edge.toNodeId);\n return {\n id: edge.id,\n fromLabel: from ? nodeLabel(from) : edge.fromNodeId,\n toLabel: to ? nodeLabel(to) : edge.toNodeId,\n fromType: from ? ENTITY_META[from.entityType].kind : 'Unknown',\n toType: to ? ENTITY_META[to.entityType].kind : 'Unknown',\n label: edge.label,\n };\n });\n}\n"],"mappings":";;;AA+CA,IAAM,IAGF;CACF,aAAa;EAAE,MAAM;EAAW,MAAM;EAAc,MAAM;CAAO;CACjE,gBAAgB;EAAE,MAAM;EAAc,MAAM;EAAc,MAAM;CAAO;CACvE,oBAAoB;EAAE,MAAM;EAAO,MAAM;EAAM,MAAM;CAAO;CAC5D,cAAc;EAAE,MAAM;EAAY,MAAM;EAAY,MAAM;CAAU;CACpE,aAAa;EAAE,MAAM;EAAW,MAAM;EAAU,MAAM;CAAO;CAC7D,qBAAqB;EAAE,MAAM;EAAW,MAAM;EAAW,MAAM;EAAQ,MAAM;CAAK;CAClF,uBAAuB;EAAE,MAAM;EAAY,MAAM;EAAW,MAAM;CAAS;CAC3E,kBAAkB;EAAE,MAAM;EAAgB,MAAM;EAAO,MAAM;CAAS;CACtE,oBAAoB;EAAE,MAAM;EAAkB,MAAM;EAAU,MAAM;CAAU;AAChF,GAEM,KAAW,MAAuB,GAAG,EAAG,MAAM,GAAG,CAAC,EAAE;AAE1D,SAAS,EAAU,GAAiC;CAGlD,OAFI,EAAK,QAAc,EAAK,QACxB,EAAK,WAAiB,GAAG,EAAQ,EAAK,EAAE,EAAE,IAAI,EAAK,SAAS,MAAM,GAAG,CAAC,EAAE,MACrE,EAAQ,EAAK,EAAE;AACxB;AAEA,SAAS,EAAgB,GAAkD;CACzE,IAAM,IAAO,EAAY,EAAK,aACxB,IAAO,EAAK;CAClB,OAAO;EACL,MAAM,EAAK;EACX,OAAO,EAAU,CAAI;EACrB,MAAM,kBAAC,GAAD,EAAM,WAAU,UAAW,CAAA;EACjC,MAAM,EAAK;EACX,MAAM,EAAK;CACb;AACF;AAQA,SAAgB,EAAqB,GAAsD;CACzF,IAAM,IAAW,IAAI,IAAI,EAAM,MAAM,KAAK,MAAS,CAAC,EAAK,IAAI,CAAI,CAAC,CAAC,GAC7D,oBAAe,IAAI,IAAsB;CAE/C,KAAK,IAAM,KAAQ,EAAM,OAAO;EAC9B,IAAM,IAAO,EAAa,IAAI,EAAK,UAAU,KAAK,CAAC;EAEnD,AADA,EAAK,KAAK,EAAK,QAAQ,GACvB,EAAa,IAAI,EAAK,YAAY,CAAI;CACxC;CAEA,IAAM,IAA+B,CAAC,GAChC,oBAAU,IAAI,IAAY,GAC1B,IAAkB,CAAC,EAAM,UAAU;CAEzC,OAAO,EAAM,SAAS,IAAG;EACvB,IAAM,IAAK,EAAM,MAAM;EACvB,IAAI,EAAQ,IAAI,CAAE,GAAG;EACrB,EAAQ,IAAI,CAAE;EAEd,IAAM,IAAO,EAAS,IAAI,CAAE;EACvB,OACL;KAAQ,KAAK,CAAI;GAEjB,KAAK,IAAM,KAAW,EAAa,IAAI,CAAE,KAAK,CAAC,GAC7C,AAAK,EAAQ,IAAI,CAAO,KAAG,EAAM,KAAK,CAAO;EAH9B;CAKnB;CAEA,OAAO,EAAQ,IAAI,CAAe;AACpC;AAKA,SAAgB,EAAqB,GAAsD;CACzF,IAAM,IAAW,IAAI,IAAI,EAAM,MAAM,KAAK,MAAS,CAAC,EAAK,IAAI,CAAI,CAAC,CAAC;CAEnE,OAAO,EAAM,MAAM,KAAK,MAAS;EAC/B,IAAM,IAAO,EAAS,IAAI,EAAK,UAAU,GACnC,IAAK,EAAS,IAAI,EAAK,QAAQ;EACrC,OAAO;GACL,IAAI,EAAK;GACT,WAAW,IAAO,EAAU,CAAI,IAAI,EAAK;GACzC,SAAS,IAAK,EAAU,CAAE,IAAI,EAAK;GACnC,UAAU,IAAO,EAAY,EAAK,WAAW,CAAC,OAAO;GACrD,QAAQ,IAAK,EAAY,EAAG,WAAW,CAAC,OAAO;GAC/C,OAAO,EAAK;EACd;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"provenanceMapping.js","names":["ENTITY_META","FolderKanban","FlaskConical","Play","ScrollText","Database","GitCommit","GitBranch","Boxes","BookOpen","shortId","id","nodeLabel","node","nodeToViewModel","meta","Icon","buildProvenanceChain","nodeById","graph","childrenById","edge","list","ordered","visited","queue","childId","buildProvenanceEdges","from","to"],"sources":["../../../src/labsofscience/components/provenanceMapping.tsx"],"sourcesContent":["/**\n * Pure mapping helpers for the provenance panel.\n * @module labsofscience/components/provenanceMapping\n *\n * Translates the backend's `LabProvenanceGraph` into the UI-specific shapes\n * consumed by `ProvenanceChain` and the edges table, keeping the component\n * free of transformation logic.\n */\n\nimport type { ReactNode } from 'react';\nimport {\n FolderKanban,\n FlaskConical,\n Play,\n ScrollText,\n Database,\n GitCommit,\n GitBranch,\n Boxes,\n BookOpen,\n type LucideIcon,\n} from 'lucide-react';\n\nimport type { LabProvenanceEntityType, LabProvenanceGraph, LabProvenanceNode } from '../types';\n\nexport interface ProvenanceNodeViewModel {\n /** Short type label shown above the node value. */\n kind: string;\n /** Human-readable value / name for the node. */\n label: string;\n /** Icon element rendered in the node's chip. */\n icon: ReactNode;\n /** Render the label in a monospace style (ids, checksums). */\n mono?: boolean;\n /** Accent tone for the node's icon chip. */\n tone: 'blue' | 'teal' | 'cyan' | 'violet' | 'neutral';\n}\n\nexport interface ProvenanceEdgeViewModel {\n id: string;\n fromLabel: string;\n toLabel: string;\n fromType: string;\n toType: string;\n label: string;\n}\n\nconst ENTITY_META: Record<\n LabProvenanceEntityType,\n { kind: string; icon: LucideIcon; tone: ProvenanceNodeViewModel['tone']; mono?: boolean }\n> = {\n LAB_PROJECT: { kind: 'Project', icon: FolderKanban, tone: 'blue' },\n LAB_EXPERIMENT: { kind: 'Experiment', icon: FlaskConical, tone: 'cyan' },\n LAB_EXPERIMENT_RUN: { kind: 'Run', icon: Play, tone: 'cyan' },\n LAB_PROTOCOL: { kind: 'Protocol', icon: ScrollText, tone: 'neutral' },\n LAB_DATASET: { kind: 'Dataset', icon: Database, tone: 'teal' },\n LAB_DATASET_VERSION: { kind: 'Version', icon: GitCommit, tone: 'teal', mono: true },\n LAB_ANALYSIS_PIPELINE: { kind: 'Pipeline', icon: GitBranch, tone: 'violet' },\n LAB_PIPELINE_RUN: { kind: 'Pipeline run', icon: Boxes, tone: 'violet' },\n LAB_NOTEBOOK_ENTRY: { kind: 'Notebook entry', icon: BookOpen, tone: 'neutral' },\n};\n\nconst shortId = (id: string): string => `${id.slice(0, 8)}…`;\n\nfunction nodeLabel(node: LabProvenanceNode): string {\n if (node.label) return node.label;\n if (node.checksum) return `${shortId(node.id)} (${node.checksum.slice(0, 8)}…)`;\n return shortId(node.id);\n}\n\nfunction nodeToViewModel(node: LabProvenanceNode): ProvenanceNodeViewModel {\n const meta = ENTITY_META[node.entityType];\n const Icon = meta.icon;\n return {\n kind: meta.kind,\n label: nodeLabel(node),\n icon: <Icon className=\"h-4 w-4\" />,\n mono: meta.mono,\n tone: meta.tone,\n };\n}\n\n/**\n * Build an ordered chain of view-model nodes starting from the root and\n * following outgoing edges breadth-first. Cycles are skipped; if the graph\n * is disconnected, only the connected component reachable from the root is\n * shown in the chain.\n */\nexport function buildProvenanceChain(graph: LabProvenanceGraph): ProvenanceNodeViewModel[] {\n const nodeById = new Map(graph.nodes.map((node) => [node.id, node]));\n const childrenById = new Map<string, string[]>();\n\n for (const edge of graph.edges) {\n const list = childrenById.get(edge.fromNodeId) ?? [];\n list.push(edge.toNodeId);\n childrenById.set(edge.fromNodeId, list);\n }\n\n const ordered: LabProvenanceNode[] = [];\n const visited = new Set<string>();\n const queue: string[] = [graph.rootNodeId];\n\n while (queue.length > 0) {\n const id = queue.shift()!;\n if (visited.has(id)) continue;\n visited.add(id);\n\n const node = nodeById.get(id);\n if (!node) continue;\n ordered.push(node);\n\n for (const childId of childrenById.get(id) ?? []) {\n if (!visited.has(childId)) queue.push(childId);\n }\n }\n\n return ordered.map(nodeToViewModel);\n}\n\n/**\n * Build a flat list of edge view-models for the table/list toggle.\n */\nexport function buildProvenanceEdges(graph: LabProvenanceGraph): ProvenanceEdgeViewModel[] {\n const nodeById = new Map(graph.nodes.map((node) => [node.id, node]));\n\n return graph.edges.map((edge) => {\n const from = nodeById.get(edge.fromNodeId);\n const to = nodeById.get(edge.toNodeId);\n return {\n id: edge.id,\n fromLabel: from ? nodeLabel(from) : edge.fromNodeId,\n toLabel: to ? nodeLabel(to) : edge.toNodeId,\n fromType: from ? ENTITY_META[from.entityType].kind : 'Unknown',\n toType: to ? ENTITY_META[to.entityType].kind : 'Unknown',\n label: edge.label,\n };\n });\n}\n"],"mappings":";;;AA+CA,IAAMA,IAGF;CACF,aAAa;EAAE,MAAM;EAAW,MAAMC;EAAc,MAAM;CAAO;CACjE,gBAAgB;EAAE,MAAM;EAAc,MAAMC;EAAc,MAAM;CAAO;CACvE,oBAAoB;EAAE,MAAM;EAAO,MAAMC;EAAM,MAAM;CAAO;CAC5D,cAAc;EAAE,MAAM;EAAY,MAAMC;EAAY,MAAM;CAAU;CACpE,aAAa;EAAE,MAAM;EAAW,MAAMC;EAAU,MAAM;CAAO;CAC7D,qBAAqB;EAAE,MAAM;EAAW,MAAMC;EAAW,MAAM;EAAQ,MAAM;CAAK;CAClF,uBAAuB;EAAE,MAAM;EAAY,MAAMC;EAAW,MAAM;CAAS;CAC3E,kBAAkB;EAAE,MAAM;EAAgB,MAAMC;EAAO,MAAM;CAAS;CACtE,oBAAoB;EAAE,MAAM;EAAkB,MAAMC;EAAU,MAAM;CAAU;AAChF,GAEMC,KAAW,MAAuB,GAAGC,EAAG,MAAM,GAAG,CAAC,EAAE;AAE1D,SAASC,EAAU,GAAiC;CAGlD,OAFIC,EAAK,QAAcA,EAAK,QACxBA,EAAK,WAAiB,GAAGH,EAAQG,EAAK,EAAE,EAAE,IAAIA,EAAK,SAAS,MAAM,GAAG,CAAC,EAAE,MACrEH,EAAQG,EAAK,EAAE;AACxB;AAEA,SAASC,EAAgB,GAAkD;CACzE,IAAMC,IAAOf,EAAYa,EAAK,aACxBG,IAAOD,EAAK;CAClB,OAAO;EACL,MAAMA,EAAK;EACX,OAAOH,EAAUC,CAAI;EACrB,MAAM,kBAACG,GAAD,EAAM,WAAU,UAAW,CAAA;EACjC,MAAMD,EAAK;EACX,MAAMA,EAAK;CACb;AACF;AAQA,SAAgBE,EAAqB,GAAsD;CACzF,IAAMC,IAAW,IAAI,IAAIC,EAAM,MAAM,KAAK,MAAS,CAACN,EAAK,IAAIA,CAAI,CAAC,CAAC,GAC7DO,oBAAe,IAAI,IAAsB;CAE/C,KAAK,IAAMC,KAAQF,EAAM,OAAO;EAC9B,IAAMG,IAAOF,EAAa,IAAIC,EAAK,UAAU,KAAK,CAAC;EAEnD,AADAC,EAAK,KAAKD,EAAK,QAAQ,GACvBD,EAAa,IAAIC,EAAK,YAAYC,CAAI;CACxC;CAEA,IAAMC,IAA+B,CAAC,GAChCC,oBAAU,IAAI,IAAY,GAC1BC,IAAkB,CAACN,EAAM,UAAU;CAEzC,OAAOM,EAAM,SAAS,IAAG;EACvB,IAAMd,IAAKc,EAAM,MAAM;EACvB,IAAID,EAAQ,IAAIb,CAAE,GAAG;EACrB,EAAQ,IAAIA,CAAE;EAEd,IAAME,IAAOK,EAAS,IAAIP,CAAE;EAC5B,IAAKE,GACL;KAAQ,KAAKA,CAAI;GAEjB,KAAK,IAAMa,KAAWN,EAAa,IAAIT,CAAE,KAAK,CAAC,GAC7C,AAAKa,EAAQ,IAAIE,CAAO,KAAGD,EAAM,KAAKC,CAAO;EAH9B;CAKnB;CAEA,OAAOH,EAAQ,IAAIT,CAAe;AACpC;AAKA,SAAgBa,EAAqB,GAAsD;CACzF,IAAMT,IAAW,IAAI,IAAIC,EAAM,MAAM,KAAK,MAAS,CAACN,EAAK,IAAIA,CAAI,CAAC,CAAC;CAEnE,OAAOM,EAAM,MAAM,KAAK,MAAS;EAC/B,IAAMS,IAAOV,EAAS,IAAIG,EAAK,UAAU,GACnCQ,IAAKX,EAAS,IAAIG,EAAK,QAAQ;EACrC,OAAO;GACL,IAAIA,EAAK;GACT,WAAWO,IAAOhB,EAAUgB,CAAI,IAAIP,EAAK;GACzC,SAASQ,IAAKjB,EAAUiB,CAAE,IAAIR,EAAK;GACnC,UAAUO,IAAO5B,EAAY4B,EAAK,WAAW,CAAC,OAAO;GACrD,QAAQC,IAAK7B,EAAY6B,EAAG,WAAW,CAAC,OAAO;GAC/C,OAAOR,EAAK;EACd;CACF,CAAC;AACH"}
@@ -1,6 +1,5 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { LabsOfScienceRootProps } from '../types';
3
-
4
3
  interface LabsOfScienceContextValue extends Omit<LabsOfScienceRootProps, 'registerNavItems' | 'registerFooterItems' | 'navigate'> {
5
4
  isStandalone: boolean;
6
5
  /** Shell's navigate function (only available in integrated mode) */
@@ -13,4 +12,3 @@ interface LabsOfScienceContextValue extends Omit<LabsOfScienceRootProps, 'regist
13
12
  export declare function useLabsOfScience(): LabsOfScienceContextValue;
14
13
  export declare const LabsOfScienceProvider: FC<PropsWithChildren<LabsOfScienceRootProps>>;
15
14
  export {};
16
- //# sourceMappingURL=LabsOfScienceContext.d.ts.map
@@ -2,7 +2,7 @@ import { joinPath as e } from "../utils/navigation.js";
2
2
  import { createContext as t, useCallback as n, useContext as r, useMemo as i } from "react";
3
3
  import { MemoryRouter as a, useNavigate as o } from "react-router";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
- //#region src/labsofscience/context/LabsOfScienceContext.tsx
5
+ // src/labsofscience/context/LabsOfScienceContext.tsx
6
6
  var c = t(null);
7
7
  function l() {
8
8
  let e = r(c);
@@ -80,7 +80,6 @@ var u = ({ children: t, basePath: r, currentUser: a, tenantId: l, workspaceId: u
80
80
  children: t
81
81
  }) });
82
82
  };
83
- //#endregion
84
83
  export { f as LabsOfScienceProvider, l as useLabsOfScience };
85
84
 
86
85
  //# sourceMappingURL=LabsOfScienceContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabsOfScienceContext.js","names":[],"sources":["../../../src/labsofscience/context/LabsOfScienceContext.tsx"],"sourcesContent":["/**\n * LabsOfScience Context Provider\n * @module labsofscience/context\n */\n\nimport type { FC, PropsWithChildren } from 'react';\nimport { createContext, useContext, useMemo, useCallback } from 'react';\nimport { MemoryRouter, useNavigate as useRouterNavigate } from 'react-router';\nimport type { LabsOfScienceRootProps } from '../types';\nimport { joinPath } from '../utils/navigation';\n\n// ============================================================================\n// Context\n// ============================================================================\n\ninterface LabsOfScienceContextValue extends Omit<\n LabsOfScienceRootProps,\n 'registerNavItems' | 'registerFooterItems' | 'navigate'\n> {\n isStandalone: boolean;\n /** Shell's navigate function (only available in integrated mode) */\n navigate?: (path: string) => void;\n /** Navigate to a path relative to basePath */\n navigateTo: (relativePath: string) => void;\n /** Get the full path for a relative path */\n getPath: (relativePath: string) => string;\n}\n\nconst LabsOfScienceContext = createContext<LabsOfScienceContextValue | null>(null);\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useLabsOfScience(): LabsOfScienceContextValue {\n const context = useContext(LabsOfScienceContext);\n if (!context) {\n throw new Error('useLabsOfScience must be used within a LabsOfScienceProvider');\n }\n return context;\n}\n\n// ============================================================================\n// Provider Component\n// ============================================================================\n\ntype ProviderProps = Omit<LabsOfScienceRootProps, 'registerNavItems' | 'registerFooterItems'> & {\n isStandalone: boolean;\n};\n\n/** Provider for standalone mode (has access to MemoryRouter) */\nconst StandaloneProviderInner: FC<PropsWithChildren<ProviderProps>> = ({\n children,\n basePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n}) => {\n const routerNavigate = useRouterNavigate();\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n routerNavigate(fullPath);\n },\n [effectiveBasePath, routerNavigate]\n );\n\n const contextValue = useMemo<LabsOfScienceContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate: undefined,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n isStandalone: true,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n navigateTo,\n getPath,\n ]\n );\n\n return (\n <LabsOfScienceContext.Provider value={contextValue}>{children}</LabsOfScienceContext.Provider>\n );\n};\n\n/** Provider for integrated mode (shell provides navigate) */\nconst IntegratedProviderInner: FC<\n PropsWithChildren<ProviderProps & { navigate: (path: string) => void }>\n> = ({\n children,\n basePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n}) => {\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n navigate(fullPath);\n },\n [effectiveBasePath, navigate]\n );\n\n const contextValue = useMemo<LabsOfScienceContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n isStandalone: false,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n navigateTo,\n getPath,\n ]\n );\n\n return (\n <LabsOfScienceContext.Provider value={contextValue}>{children}</LabsOfScienceContext.Provider>\n );\n};\n\nexport const LabsOfScienceProvider: FC<PropsWithChildren<LabsOfScienceRootProps>> = (props) => {\n const { children, navigate } = props;\n // Standalone mode: no navigate function provided (MFE manages its own router)\n // Integrated mode: navigate function provided by shell (shell provides router)\n const isStandalone = !navigate;\n\n // Standalone mode: wrap in MemoryRouter\n if (isStandalone) {\n return (\n <MemoryRouter>\n <StandaloneProviderInner {...props} isStandalone={true}>\n {children}\n </StandaloneProviderInner>\n </MemoryRouter>\n );\n }\n\n // Integrated mode: shell provides router\n return (\n <IntegratedProviderInner {...props} navigate={navigate} isStandalone={false}>\n {children}\n </IntegratedProviderInner>\n );\n};\n"],"mappings":";;;;;AA4BA,IAAM,IAAuB,EAAgD,IAAI;AAMjF,SAAgB,IAA8C;CAC5D,IAAM,IAAU,EAAW,CAAoB;CAC/C,IAAI,CAAC,GACH,MAAU,MAAM,8DAA8D;CAEhF,OAAO;AACT;AAWA,IAAM,KAAiE,EACrE,aACA,aACA,gBACA,aACA,gBACA,kBACA,mBACI;CACJ,IAAM,IAAiB,EAAkB,GACnC,IAAoB,KAAY,KAEhC,IAAU,GACb,MAAyB,EAAS,GAAmB,CAAY,GAClE,CAAC,CAAiB,CACpB,GAEM,IAAa,GAChB,MAAyB;EACxB,IAAM,IAAW,EAAS,GAAmB,CAAY;EACzD,EAAe,CAAQ;CACzB,GACA,CAAC,GAAmB,CAAc,CACpC,GAEM,IAAe,SACZ;EACL,UAAU;EACV,UAAU,KAAA;EACV;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;CACF,IACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CACF;CAEA,OACE,kBAAC,EAAqB,UAAtB;EAA+B,OAAO;EAAe;CAAwC,CAAA;AAEjG,GAGM,KAED,EACH,aACA,aACA,aACA,gBACA,aACA,gBACA,kBACA,mBACI;CACJ,IAAM,IAAoB,KAAY,KAEhC,IAAU,GACb,MAAyB,EAAS,GAAmB,CAAY,GAClE,CAAC,CAAiB,CACpB,GAEM,IAAa,GAChB,MAAyB;EAExB,EADiB,EAAS,GAAmB,CACpC,CAAQ;CACnB,GACA,CAAC,GAAmB,CAAQ,CAC9B,GAEM,IAAe,SACZ;EACL,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;CACF,IACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CACF;CAEA,OACE,kBAAC,EAAqB,UAAtB;EAA+B,OAAO;EAAe;CAAwC,CAAA;AAEjG,GAEa,KAAwE,MAAU;CAC7F,IAAM,EAAE,aAAU,gBAAa;CAiB/B,OAdsB,IAepB,kBAAC,GAAD;EAAyB,GAAI;EAAiB;EAAU,cAAc;EACnE;CACsB,CAAA,IAZvB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EAAyB,GAAI;EAAO,cAAc;EAC/C;CACsB,CAAA,EACb,CAAA;AAUpB"}
1
+ {"version":3,"file":"LabsOfScienceContext.js","names":["useRouterNavigate","LabsOfScienceContext","createContext","useLabsOfScience","context","useContext","StandaloneProviderInner","routerNavigate","useNavigate","effectiveBasePath","basePath","getPath","useCallback","joinPath","relativePath","navigateTo","fullPath","contextValue","useMemo","currentUser","tenantId","workspaceId","apiGatewayUrl","authToken","IntegratedProviderInner","navigate","LabsOfScienceProvider","props","MemoryRouter"],"sources":["../../../src/labsofscience/context/LabsOfScienceContext.tsx"],"sourcesContent":["/**\n * LabsOfScience Context Provider\n * @module labsofscience/context\n */\n\nimport type { FC, PropsWithChildren } from 'react';\nimport { createContext, useContext, useMemo, useCallback } from 'react';\nimport { MemoryRouter, useNavigate as useRouterNavigate } from 'react-router';\nimport type { LabsOfScienceRootProps } from '../types';\nimport { joinPath } from '../utils/navigation';\n\n// ============================================================================\n// Context\n// ============================================================================\n\ninterface LabsOfScienceContextValue extends Omit<\n LabsOfScienceRootProps,\n 'registerNavItems' | 'registerFooterItems' | 'navigate'\n> {\n isStandalone: boolean;\n /** Shell's navigate function (only available in integrated mode) */\n navigate?: (path: string) => void;\n /** Navigate to a path relative to basePath */\n navigateTo: (relativePath: string) => void;\n /** Get the full path for a relative path */\n getPath: (relativePath: string) => string;\n}\n\nconst LabsOfScienceContext = createContext<LabsOfScienceContextValue | null>(null);\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useLabsOfScience(): LabsOfScienceContextValue {\n const context = useContext(LabsOfScienceContext);\n if (!context) {\n throw new Error('useLabsOfScience must be used within a LabsOfScienceProvider');\n }\n return context;\n}\n\n// ============================================================================\n// Provider Component\n// ============================================================================\n\ntype ProviderProps = Omit<LabsOfScienceRootProps, 'registerNavItems' | 'registerFooterItems'> & {\n isStandalone: boolean;\n};\n\n/** Provider for standalone mode (has access to MemoryRouter) */\nconst StandaloneProviderInner: FC<PropsWithChildren<ProviderProps>> = ({\n children,\n basePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n}) => {\n const routerNavigate = useRouterNavigate();\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n routerNavigate(fullPath);\n },\n [effectiveBasePath, routerNavigate]\n );\n\n const contextValue = useMemo<LabsOfScienceContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate: undefined,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n isStandalone: true,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n navigateTo,\n getPath,\n ]\n );\n\n return (\n <LabsOfScienceContext.Provider value={contextValue}>{children}</LabsOfScienceContext.Provider>\n );\n};\n\n/** Provider for integrated mode (shell provides navigate) */\nconst IntegratedProviderInner: FC<\n PropsWithChildren<ProviderProps & { navigate: (path: string) => void }>\n> = ({\n children,\n basePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n}) => {\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n navigate(fullPath);\n },\n [effectiveBasePath, navigate]\n );\n\n const contextValue = useMemo<LabsOfScienceContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n isStandalone: false,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n navigateTo,\n getPath,\n ]\n );\n\n return (\n <LabsOfScienceContext.Provider value={contextValue}>{children}</LabsOfScienceContext.Provider>\n );\n};\n\nexport const LabsOfScienceProvider: FC<PropsWithChildren<LabsOfScienceRootProps>> = (props) => {\n const { children, navigate } = props;\n // Standalone mode: no navigate function provided (MFE manages its own router)\n // Integrated mode: navigate function provided by shell (shell provides router)\n const isStandalone = !navigate;\n\n // Standalone mode: wrap in MemoryRouter\n if (isStandalone) {\n return (\n <MemoryRouter>\n <StandaloneProviderInner {...props} isStandalone={true}>\n {children}\n </StandaloneProviderInner>\n </MemoryRouter>\n );\n }\n\n // Integrated mode: shell provides router\n return (\n <IntegratedProviderInner {...props} navigate={navigate} isStandalone={false}>\n {children}\n </IntegratedProviderInner>\n );\n};\n"],"mappings":";;;;;AA4BA,IAAMC,IAAuBC,EAAgD,IAAI;AAMjF,SAAgBC,IAA8C;CAC5D,IAAMC,IAAUC,EAAWJ,CAAoB;CAC/C,IAAI,CAACG,GACH,MAAU,MAAM,8DAA8D;CAEhF,OAAOA;AACT;AAWA,IAAME,KAAiE,EACrE,aACA,aACA,gBACA,aACA,gBACA,kBACA,mBACI;CACJ,IAAMC,IAAiBP,EAAkB,GACnCS,IAAoBC,KAAY,KAEhCC,IAAUC,GACb,MAAyBC,EAASJ,GAAmBK,CAAY,GAClE,CAACL,CAAiB,CACpB,GAEMM,IAAaH,GAChB,MAAyB;EACxB,IAAMI,IAAWH,EAASJ,GAAmBK,CAAY;EACzD,EAAeE,CAAQ;CACzB,GACA,CAACP,GAAmBF,CAAc,CACpC,GAEMU,IAAeC,SACZ;EACL,UAAUT;EACV,UAAU,KAAA;EACV;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;CACF,IACA;EACEA;EACAU;EACAC;EACAC;EACAC;EACAC;EACAR;EACAJ;CACF,CACF;CAEA,OACE,kBAACV,EAAqB,UAAtB;EAA+B,OAAOgB;EAAe;CAAwC,CAAA;AAEjG,GAGMO,KAED,EACH,aACA,aACA,aACA,gBACA,aACA,gBACA,kBACA,mBACI;CACJ,IAAMf,IAAoBC,KAAY,KAEhCC,IAAUC,GACb,MAAyBC,EAASJ,GAAmBK,CAAY,GAClE,CAACL,CAAiB,CACpB,GAEMM,IAAaH,GAChB,MAAyB;EAExB,EADiBC,EAASJ,GAAmBK,CACpC,CAAQ;CACnB,GACA,CAACL,GAAmBgB,CAAQ,CAC9B,GAEMR,IAAeC,SACZ;EACL,UAAUT;EACV;EACA;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;CACF,IACA;EACEA;EACAgB;EACAN;EACAC;EACAC;EACAC;EACAC;EACAR;EACAJ;CACF,CACF;CAEA,OACE,kBAACV,EAAqB,UAAtB;EAA+B,OAAOgB;EAAe;CAAwC,CAAA;AAEjG,GAEaS,KAAwE,MAAU;CAC7F,IAAM,EAAE,aAAU,gBAAaC;CAiB/B,OAdsBF,IAepB,kBAACD,GAAD;EAAyB,GAAIG;EAAiB;EAAU,cAAc;EACnE;CACsB,CAAA,IAZvB,kBAACC,GAAD,EAAA,UACE,kBAACtB,GAAD;EAAyB,GAAIqB;EAAO,cAAc;EAC/C;CACsB,CAAA,EACb,CAAA;AAUpB"}
@@ -3,4 +3,3 @@
3
3
  * @module labsofscience/context
4
4
  */
5
5
  export { LabsOfScienceProvider, useLabsOfScience } from './LabsOfScienceContext';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
- import { LabsOfScienceProvider as e, useLabsOfScience as t } from "./LabsOfScienceContext.js";
2
- export { e as LabsOfScienceProvider, t as useLabsOfScience };
1
+ export { LabsOfScienceProvider, useLabsOfScience } from "./LabsOfScienceContext.js";
@@ -5,4 +5,3 @@
5
5
  export { useProjects, useProject, useCreateProject, useUpdateProject, useArchiveProject, useExperiments, useExperiment, useCreateExperiment, useUpdateExperiment, useTransitionExperiment, useRuns, useStartRun, usePlanRun, useCompleteRun, useNotebookEntries, useNotebookEntry, useCreateNotebookEntry, useSignNotebookEntry, useWitnessNotebookEntry, useProtocols, useProtocol, useCreateProtocol, useUpdateProtocol, usePublishProtocol, useDatasets, useDataset, useCreateDataset, useArchiveDataset, usePipelines, useCreatePipeline, usePipelineRuns, useRunPipeline, useTransitionPipelineRun, useInventoryItems, useInventoryItem, useCreateInventoryItem, useAdjustInventory, useArchiveInventoryItem, useInstruments, useInstrument, useCreateInstrument, useCancelBooking, useAiModelCatalog, useWorkspaceAiConfig, useSetWorkspaceAiModel, useSetWorkspaceAutoPilot, useAgentRuns, useAgentRun, useSuggestProtocol, useRecommendNextRun, useOverrideAgentRun, useExperimentAiContext, useMyAiTermsAcceptances, useAcceptAiTerms, useResearchAnalytics, useWorkspaceTotals, useLabRecentActivity, LabApiError, } from './useLabsOfScienceApi';
6
6
  export { useLabActorNames, type UseLabActorNamesResult } from './useLabActorNames';
7
7
  export { useTr } from './useTr';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ActorProfileMap } from '@burdenoff/fe-libs/shared';
2
-
3
2
  export interface UseLabActorNamesResult {
4
3
  /** Resolved profiles keyed by actor id, exposed for callers that need more than displayName. */
5
4
  profiles: ActorProfileMap;
@@ -15,4 +14,3 @@ export interface UseLabActorNamesResult {
15
14
  * render.
16
15
  */
17
16
  export declare function useLabActorNames(actorIds: Array<string | null | undefined>): UseLabActorNamesResult;
18
- //# sourceMappingURL=useLabActorNames.d.ts.map
@@ -1,17 +1,16 @@
1
1
  import { useLabsOfScience as e } from "../context/LabsOfScienceContext.js";
2
2
  import { useActorProfiles as t } from "@burdenoff/fe-libs/shared";
3
- //#region src/labsofscience/hooks/useLabActorNames.ts
3
+ // src/labsofscience/hooks/useLabActorNames.ts
4
4
  function n(n) {
5
- let { workspaceId: r } = e(), i = t([...new Set(n.filter((e) => !!e))].map((e) => ({
5
+ let { workspaceId: r } = e(), i = [...new Set(n.filter((e) => !!e))], a = t(i.map((e) => ({
6
6
  actorId: e,
7
7
  actorType: "user"
8
8
  })), { workspaceId: r });
9
9
  return {
10
- profiles: i,
11
- nameOf: (e) => e ? i[e]?.displayName ?? e : "—"
10
+ profiles: a,
11
+ nameOf: (e) => e ? a[e]?.displayName ?? e : "—"
12
12
  };
13
13
  }
14
- //#endregion
15
14
  export { n as useLabActorNames };
16
15
 
17
16
  //# sourceMappingURL=useLabActorNames.js.map