@burdenoff/microfe-labsofscience 2026.706.5 → 2026.706.6

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 (81) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/labsofscience/components/DiscussionPanel.js +67 -0
  3. package/dist/labsofscience/components/DiscussionPanel.js.map +1 -0
  4. package/dist/labsofscience/components/ListSearchInput.js +1 -1
  5. package/dist/labsofscience/components/ListSearchInput.js.map +1 -1
  6. package/dist/labsofscience/components/PageLayout.js +3 -3
  7. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  8. package/dist/labsofscience/components/ProvenanceChain.js +42 -0
  9. package/dist/labsofscience/components/ProvenanceChain.js.map +1 -0
  10. package/dist/labsofscience/pages/OverviewPage.js +240 -142
  11. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  12. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js +2 -2
  13. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js.map +1 -1
  14. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +108 -100
  15. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
  16. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +2 -2
  17. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -1
  18. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +2 -2
  19. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
  20. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +153 -145
  21. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  22. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +1 -1
  23. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -1
  24. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +9 -9
  25. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
  26. package/dist/labsofscience/pages/experiments/RunDialogs.js +2 -2
  27. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -1
  28. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js +2 -2
  29. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js.map +1 -1
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +2 -2
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -1
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +2 -2
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -1
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +1 -1
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +1 -1
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -1
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +2 -2
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -1
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +9 -9
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -1
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +2 -2
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
  44. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +83 -78
  45. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -1
  46. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +6 -6
  47. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -1
  48. package/dist/labsofscience/pages/notebook/NotebookListPage.js +9 -9
  49. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
  50. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +1 -1
  51. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -1
  52. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +133 -111
  53. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  54. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +1 -1
  55. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -1
  56. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +22 -22
  57. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -1
  58. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +4 -4
  59. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -1
  60. package/dist/labsofscience/pages/projects/ProjectsListPage.js +9 -9
  61. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
  62. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js +2 -2
  63. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js.map +1 -1
  64. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +5 -5
  65. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
  66. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +1 -1
  67. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -1
  68. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +1 -1
  69. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
  70. package/dist/labsofscience/utils/cn.js +2 -2
  71. package/dist/node_modules/{clsx → .bun/clsx@2.1.1/node_modules/clsx}/dist/clsx.js +1 -1
  72. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  73. package/dist/node_modules/{tailwind-merge → .bun/tailwind-merge@3.5.0/node_modules/tailwind-merge}/dist/bundle-mjs.js +170 -212
  74. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  75. package/dist/services/createSandboxAssistantTransport.js +14 -0
  76. package/dist/services/createSandboxAssistantTransport.js.map +1 -0
  77. package/dist/utils/pageContext.js +49 -0
  78. package/dist/utils/pageContext.js.map +1 -0
  79. package/package.json +7 -3
  80. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  81. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ import { formatDate as r, formatNumber as i, formatRelativeTime as a } from "./l
4
4
  import { LabsOfScienceRoot as o } from "./labsofscience/LabsOfScienceRoot.js";
5
5
  import { useLabsOfScienceStore as s } from "./labsofscience/store/labsofscienceStore.js";
6
6
  import "./labsofscience/index.js";
7
- export { e as LabsOfScienceProvider, o as LabsOfScienceRoot, n as cn, r as formatDate, i as formatNumber, a as formatRelativeTime, t as useLabsOfScience, s as useLabsOfScienceStore };
7
+ import { useSandboxAssistantTransport as c } from "./services/createSandboxAssistantTransport.js";
8
+ export { e as LabsOfScienceProvider, o as LabsOfScienceRoot, n as cn, r as formatDate, i as formatNumber, a as formatRelativeTime, t as useLabsOfScience, s as useLabsOfScienceStore, c as useSandboxAssistantTransport };
@@ -0,0 +1,67 @@
1
+ import { useLabsOfScience as e } from "../context/LabsOfScienceContext.js";
2
+ import { DetailSection as t } from "../pages/shared/DetailComponents.js";
3
+ import { Component as n, useCallback as r, useMemo as i } from "react";
4
+ import { MessagesSquare as a } from "lucide-react";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ import { Button as c } from "@burdenoff/fe-libs/ui";
7
+ import { ContextConversationWidget as l } from "@burdenoff/fe-libs/shared";
8
+ import { useRegisterPageConversationContext as u } from "@burdenoff/fe-libs/shared/providers/shell";
9
+ //#region src/labsofscience/components/DiscussionPanel.tsx
10
+ var d = class extends n {
11
+ state = { failed: !1 };
12
+ static getDerivedStateFromError() {
13
+ return { failed: !0 };
14
+ }
15
+ componentDidCatch() {}
16
+ render() {
17
+ return this.state.failed ? this.props.fallback : this.props.children;
18
+ }
19
+ };
20
+ function f({ entityType: e, entityId: t, contextTitle: n, widgetKey: r }) {
21
+ return u(i(() => ({
22
+ entityType: e,
23
+ entityId: t,
24
+ contextTitle: n
25
+ }), [
26
+ e,
27
+ t,
28
+ n
29
+ ])), /* @__PURE__ */ o(l, { widgetKey: r });
30
+ }
31
+ function p({ entityType: n, entityId: i, title: l = "Discussion" }) {
32
+ let { navigate: u, navigateTo: p } = e(), m = `${n}:${i}`, h = r(() => {
33
+ u ? u("/conversations") : p("conversations");
34
+ }, [u, p]);
35
+ return /* @__PURE__ */ o(t, {
36
+ title: "Discussion",
37
+ children: /* @__PURE__ */ o(d, {
38
+ fallback: /* @__PURE__ */ s("div", {
39
+ className: "flex flex-wrap items-center gap-2 rounded-card border border-border-seam bg-bg-sunken px-4 py-3 text-sm text-text-secondary",
40
+ children: [
41
+ /* @__PURE__ */ o(a, {
42
+ className: "size-4",
43
+ "aria-hidden": "true"
44
+ }),
45
+ /* @__PURE__ */ o("span", { children: "Discuss this with your team." }),
46
+ /* @__PURE__ */ o(c, {
47
+ variant: "link",
48
+ size: "sm",
49
+ className: "h-auto px-0",
50
+ onClick: h,
51
+ children: "Open conversations"
52
+ })
53
+ ]
54
+ }),
55
+ children: /* @__PURE__ */ o(f, {
56
+ entityType: n,
57
+ entityId: i,
58
+ contextTitle: l,
59
+ widgetKey: m
60
+ })
61
+ })
62
+ });
63
+ }
64
+ //#endregion
65
+ export { p as default };
66
+
67
+ //# sourceMappingURL=DiscussionPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiscussionPanel.js","names":[],"sources":["../../../src/labsofscience/components/DiscussionPanel.tsx"],"sourcesContent":["/**\n * DiscussionPanel — entity-scoped discussion for a lab record, reusing the\n * platform wspace-conversations-svc widget (no bespoke comment model / UI).\n * @module labsofscience/components\n *\n * The fe-libs `ContextConversationWidget` binds its thread to the page's\n * conversation context. We drive that binding from the MFE via the public\n * `useRegisterPageConversationContext` hook (setting `entityType` + `entityId`),\n * exactly like microfe-cosmicintersection. The widget itself only accepts a\n * `widgetKey`, so the entity is supplied through the register hook rather than\n * props.\n *\n * The widget REQUIRES the host shell's `PageConversationContextProvider` (plus\n * the auth / active-context / gateway providers) to be mounted around the MFE.\n * When the shell has not yet mounted it, those hooks throw during render; the\n * error boundary below catches that and degrades to the working `/conversations`\n * deep-link so a detail page never crashes.\n */\n\nimport { Component, useCallback, useMemo, type ReactNode } from 'react';\nimport { MessagesSquare } from 'lucide-react';\nimport { ContextConversationWidget } from '@burdenoff/fe-libs/shared';\nimport { useRegisterPageConversationContext } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Button } from '@burdenoff/fe-libs/ui';\nimport { useLabsOfScience } from '../context/LabsOfScienceContext';\nimport { DetailSection } from '../pages/shared/DetailComponents';\n\ninterface DiscussionBoundaryProps {\n fallback: ReactNode;\n children: ReactNode;\n}\n\ninterface DiscussionBoundaryState {\n failed: boolean;\n}\n\n/**\n * Renders `fallback` if the embedded conversation widget throws (e.g. the host\n * shell has not mounted the conversation page-context provider yet). The failure\n * is deterministic per mount, so once tripped we stay on the fallback.\n */\nclass DiscussionBoundary extends Component<DiscussionBoundaryProps, DiscussionBoundaryState> {\n state: DiscussionBoundaryState = { failed: false };\n\n static getDerivedStateFromError(): DiscussionBoundaryState {\n return { failed: true };\n }\n\n componentDidCatch(): void {\n // Intentionally swallowed: absence of the shell conversation provider is an\n // expected degradation, surfaced to the user via the deep-link fallback.\n }\n\n render(): ReactNode {\n return this.state.failed ? this.props.fallback : this.props.children;\n }\n}\n\ninterface DiscussionThreadProps {\n entityType: string;\n entityId: string;\n contextTitle: string;\n widgetKey: string;\n}\n\nfunction DiscussionThread({\n entityType,\n entityId,\n contextTitle,\n widgetKey,\n}: DiscussionThreadProps) {\n // Stable object identity: `useRegisterPageConversationContext` keys its effect\n // on this reference, so a fresh inline object each render would loop the shared\n // provider. Memoize on the primitive inputs.\n const conversationContext = useMemo(\n () => ({ entityType, entityId, contextTitle }),\n [entityType, entityId, contextTitle]\n );\n useRegisterPageConversationContext(conversationContext);\n return <ContextConversationWidget widgetKey={widgetKey} />;\n}\n\nexport interface DiscussionPanelProps {\n /** Stable entity-type discriminator, e.g. `lab-experiment`. */\n entityType: string;\n entityId: string;\n /** Section heading; also used as the conversation context label. */\n title?: string;\n}\n\nexport function DiscussionPanel({\n entityType,\n entityId,\n title = 'Discussion',\n}: DiscussionPanelProps) {\n const { navigate, navigateTo } = useLabsOfScience();\n\n // One widget/thread per entity; `entityType` keeps threads distinct when the\n // same id space collides across domains.\n const widgetKey = `${entityType}:${entityId}`;\n\n const openConversations = useCallback(() => {\n // Prefer the shell's absolute navigate when integrated; fall back to the\n // MFE-relative helper in standalone mode.\n if (navigate) {\n navigate('/conversations');\n } else {\n navigateTo('conversations');\n }\n }, [navigate, navigateTo]);\n\n const fallback = (\n <div className=\"flex flex-wrap items-center gap-2 rounded-card border border-border-seam bg-bg-sunken px-4 py-3 text-sm text-text-secondary\">\n <MessagesSquare className=\"size-4\" aria-hidden=\"true\" />\n <span>Discuss this with your team.</span>\n <Button variant=\"link\" size=\"sm\" className=\"h-auto px-0\" onClick={openConversations}>\n Open conversations\n </Button>\n </div>\n );\n\n return (\n <DetailSection title=\"Discussion\">\n <DiscussionBoundary fallback={fallback}>\n <DiscussionThread\n entityType={entityType}\n entityId={entityId}\n contextTitle={title}\n widgetKey={widgetKey}\n />\n </DiscussionBoundary>\n </DetailSection>\n );\n}\n\nexport default DiscussionPanel;\n"],"mappings":";;;;;;;;;AAyCA,IAAM,IAAN,cAAiC,EAA4D;CAC3F,QAAiC,EAAE,QAAQ,IAAO;CAElD,OAAO,2BAAoD;AACzD,SAAO,EAAE,QAAQ,IAAM;;CAGzB,oBAA0B;CAK1B,SAAoB;AAClB,SAAO,KAAK,MAAM,SAAS,KAAK,MAAM,WAAW,KAAK,MAAM;;;AAWhE,SAAS,EAAiB,EACxB,eACA,aACA,iBACA,gBACwB;AASxB,QADA,EAJ4B,SACnB;EAAE;EAAY;EAAU;EAAc,GAC7C;EAAC;EAAY;EAAU;EAAa,CACrC,CACsD,EAChD,kBAAC,GAAD,EAAsC,cAAa,CAAA;;AAW5D,SAAgB,EAAgB,EAC9B,eACA,aACA,WAAQ,gBACe;CACvB,IAAM,EAAE,aAAU,kBAAe,GAAkB,EAI7C,IAAY,GAAG,EAAW,GAAG,KAE7B,IAAoB,QAAkB;AAG1C,EAAI,IACF,EAAS,iBAAiB,GAE1B,EAAW,gBAAgB;IAE5B,CAAC,GAAU,EAAW,CAAC;AAY1B,QACE,kBAAC,GAAD;EAAe,OAAM;YACnB,kBAAC,GAAD;GAA8B,UAXhC,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,GAAD;MAAgB,WAAU;MAAS,eAAY;MAAS,CAAA;KACxD,kBAAC,QAAD,EAAA,UAAM,gCAAmC,CAAA;KACzC,kBAAC,GAAD;MAAQ,SAAQ;MAAO,MAAK;MAAK,WAAU;MAAc,SAAS;gBAAmB;MAE5E,CAAA;KACL;;aAMF,kBAAC,GAAD;IACc;IACF;IACV,cAAc;IACH;IACX,CAAA;GACiB,CAAA;EACP,CAAA"}
@@ -4,7 +4,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { Input as i } from "@burdenoff/fe-libs/ui";
5
5
  //#region src/labsofscience/components/ListSearchInput.tsx
6
6
  var a = ({ value: a, onChange: o, ariaLabel: s, placeholder: c = "Search…", className: l }) => /* @__PURE__ */ r("div", {
7
- className: e("relative min-w-0 flex-1 sm:max-w-xs", l),
7
+ className: e("relative w-full min-w-0 flex-1 sm:max-w-xs", l),
8
8
  children: [/* @__PURE__ */ n(t, {
9
9
  "aria-hidden": "true",
10
10
  className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary"
@@ -1 +1 @@
1
- {"version":3,"file":"ListSearchInput.js","names":[],"sources":["../../../src/labsofscience/components/ListSearchInput.tsx"],"sourcesContent":["/**\n * List search input\n * @module labsofscience/components\n *\n * A labelled, icon-prefixed free-text search box for the list-page filter rows.\n * Debouncing is the caller's responsibility (see `useDebouncedValue`).\n */\n\nimport type { FC } from 'react';\nimport { Search } from 'lucide-react';\nimport { Input } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface ListSearchInputProps {\n value: string;\n onChange: (value: string) => void;\n /** Accessible name for the input (there is no visible label in filter rows). */\n ariaLabel: string;\n placeholder?: string;\n className?: string;\n}\n\nexport const ListSearchInput: FC<ListSearchInputProps> = ({\n value,\n onChange,\n ariaLabel,\n placeholder = 'Search…',\n className,\n}) => (\n <div className={cn('relative min-w-0 flex-1 sm:max-w-xs', className)}>\n <Search\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary\"\n />\n <Input\n type=\"search\"\n aria-label={ariaLabel}\n placeholder={placeholder}\n value={value}\n onChange={(event) => onChange(event.target.value)}\n className=\"h-11 pl-9 md:h-10\"\n />\n </div>\n);\n"],"mappings":";;;;;AAsBA,IAAa,KAA6C,EACxD,UACA,aACA,cACA,iBAAc,WACd,mBAEA,kBAAC,OAAD;CAAK,WAAW,EAAG,uCAAuC,EAAU;WAApE,CACE,kBAAC,GAAD;EACE,eAAY;EACZ,WAAU;EACV,CAAA,EACF,kBAAC,GAAD;EACE,MAAK;EACL,cAAY;EACC;EACN;EACP,WAAW,MAAU,EAAS,EAAM,OAAO,MAAM;EACjD,WAAU;EACV,CAAA,CACE"}
1
+ {"version":3,"file":"ListSearchInput.js","names":[],"sources":["../../../src/labsofscience/components/ListSearchInput.tsx"],"sourcesContent":["/**\n * List search input\n * @module labsofscience/components\n *\n * A labelled, icon-prefixed free-text search box for the list-page filter rows.\n * Debouncing is the caller's responsibility (see `useDebouncedValue`).\n */\n\nimport type { FC } from 'react';\nimport { Search } from 'lucide-react';\nimport { Input } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface ListSearchInputProps {\n value: string;\n onChange: (value: string) => void;\n /** Accessible name for the input (there is no visible label in filter rows). */\n ariaLabel: string;\n placeholder?: string;\n className?: string;\n}\n\nexport const ListSearchInput: FC<ListSearchInputProps> = ({\n value,\n onChange,\n ariaLabel,\n placeholder = 'Search…',\n className,\n}) => (\n <div className={cn('relative w-full min-w-0 flex-1 sm:max-w-xs', className)}>\n <Search\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary\"\n />\n <Input\n type=\"search\"\n aria-label={ariaLabel}\n placeholder={placeholder}\n value={value}\n onChange={(event) => onChange(event.target.value)}\n className=\"h-11 pl-9 md:h-10\"\n />\n </div>\n);\n"],"mappings":";;;;;AAsBA,IAAa,KAA6C,EACxD,UACA,aACA,cACA,iBAAc,WACd,mBAEA,kBAAC,OAAD;CAAK,WAAW,EAAG,8CAA8C,EAAU;WAA3E,CACE,kBAAC,GAAD;EACE,eAAY;EACZ,WAAU;EACV,CAAA,EACF,kBAAC,GAAD;EACE,MAAK;EACL,cAAY;EACC;EACN;EACP,WAAW,MAAU,EAAS,EAAM,OAAO,MAAM;EACjD,WAAU;EACV,CAAA,CACE"}
@@ -5,7 +5,7 @@ import { AuroraBackground as r } from "@burdenoff/fe-libs/ui";
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", {
8
- className: e("relative flex items-center justify-between gap-4 border-b border-border-seam px-6 py-4", c ? "overflow-hidden bg-hero-mesh" : "bg-bg-surface"),
8
+ className: e("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", c ? "overflow-hidden bg-hero-mesh" : "bg-bg-surface"),
9
9
  children: [
10
10
  c && /* @__PURE__ */ t(r, { intensity: "subtle" }),
11
11
  /* @__PURE__ */ n("div", {
@@ -19,12 +19,12 @@ var i = ({ title: i, description: a, actions: o, children: s, hero: c = !1, clas
19
19
  })]
20
20
  }),
21
21
  o && /* @__PURE__ */ t("div", {
22
- className: "flex flex-shrink-0 items-center gap-3",
22
+ className: "flex w-full flex-shrink-0 flex-wrap items-center gap-3 sm:w-auto sm:justify-end",
23
23
  children: o
24
24
  })
25
25
  ]
26
26
  }), /* @__PURE__ */ t("div", {
27
- className: "flex-1 overflow-auto p-6",
27
+ className: "flex-1 overflow-auto p-4 md:p-6",
28
28
  children: s
29
29
  })]
30
30
  });
@@ -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 items-center justify-between gap-4 border-b border-border-seam px-6 py-4',\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 && <div className=\"flex flex-shrink-0 items-center gap-3\">{actions}</div>}\n </div>\n\n {/* Page Content */}\n <div className=\"flex-1 overflow-auto 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,EAAU;WAArD,CAEE,kBAAC,OAAD;EACE,WAAW,EACT,0FACA,IAAO,iCAAiC,gBACzC;YAJH;GAMG,KAAQ,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;GAChD,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,MAAD;KAAI,WAAU;eAAqD;KAAW,CAAA,EAC7E,KAAe,kBAAC,KAAD;KAAG,WAAU;eAAoC;KAAgB,CAAA,CAC7E;;GACL,KAAW,kBAAC,OAAD;IAAK,WAAU;cAAyC;IAAc,CAAA;GAC9E;KAGN,kBAAC,OAAD;EAAK,WAAU;EAA4B;EAAe,CAAA,CACtD"}
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,EAAU;WAArD,CAEE,kBAAC,OAAD;EACE,WAAW,EACT,sIACA,IAAO,iCAAiC,gBACzC;YAJH;GAMG,KAAQ,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;GAChD,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,MAAD;KAAI,WAAU;eAAqD;KAAW,CAAA,EAC7E,KAAe,kBAAC,KAAD;KAAG,WAAU;eAAoC;KAAgB,CAAA,CAC7E;;GACL,KACC,kBAAC,OAAD;IAAK,WAAU;cACZ;IACG,CAAA;GAEJ;KAGN,kBAAC,OAAD;EAAK,WAAU;EAAmC;EAAe,CAAA,CAC7D"}
@@ -0,0 +1,42 @@
1
+ import { ChevronRight as e } from "lucide-react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/labsofscience/components/ProvenanceChain.tsx
4
+ var r = {
5
+ blue: "text-accent-blue-text bg-accent-blue-bg",
6
+ teal: "text-status-success-text bg-status-success-bg",
7
+ cyan: "text-accent-cyan-text bg-accent-cyan-bg",
8
+ violet: "text-accent-violet-text bg-accent-violet-bg",
9
+ neutral: "text-text-secondary bg-bg-sunken"
10
+ };
11
+ function i({ nodes: i }) {
12
+ return /* @__PURE__ */ t("div", {
13
+ className: "flex flex-col gap-2 md:flex-row md:items-stretch md:gap-1",
14
+ children: i.map((a, o) => /* @__PURE__ */ n("div", {
15
+ className: "flex flex-col md:flex-1 md:flex-row md:items-center",
16
+ children: [/* @__PURE__ */ n("div", {
17
+ className: "flex min-w-0 flex-1 items-center gap-2.5 rounded-lg border border-border-subtle bg-bg-surface p-2.5",
18
+ children: [a.icon ? /* @__PURE__ */ t("span", {
19
+ className: `flex h-7 w-7 shrink-0 items-center justify-center rounded-md ${r[a.tone ?? "neutral"]}`,
20
+ children: a.icon
21
+ }) : null, /* @__PURE__ */ n("div", {
22
+ className: "min-w-0",
23
+ children: [/* @__PURE__ */ t("p", {
24
+ className: "text-[10px] font-medium uppercase tracking-wide text-text-tertiary",
25
+ children: a.kind
26
+ }), /* @__PURE__ */ t("p", {
27
+ className: `truncate text-xs text-text-primary ${a.mono ? "font-mono" : "font-medium"}`,
28
+ title: a.label,
29
+ children: a.label
30
+ })]
31
+ })]
32
+ }), o < i.length - 1 ? /* @__PURE__ */ t(e, {
33
+ 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",
34
+ "aria-hidden": !0
35
+ }) : null]
36
+ }, `${a.kind}-${o}`))
37
+ });
38
+ }
39
+ //#endregion
40
+ export { i as ProvenanceChain };
41
+
42
+ //# sourceMappingURL=ProvenanceChain.js.map
@@ -0,0 +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;CACV;AAED,SAAgB,EAAgB,EAAE,YAAsC;AACtE,QACE,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;KACD,CAAA,GACL,MACJ,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAK;MACJ,CAAA,EACJ,kBAAC,KAAD;MACE,WAAW,sCAAsC,EAAK,OAAO,cAAc;MAC3E,OAAO,EAAK;gBAEX,EAAK;MACJ,CAAA,CACA;OACF;OACL,IAAQ,EAAM,SAAS,IACtB,kBAAC,GAAD;IACE,WAAU;IACV,eAAA;IACA,CAAA,GACA,KACA;KA/BC,GAAG,EAAK,KAAK,GAAG,IA+BjB,CACN;EACE,CAAA"}