@burdenoff/microfe-cosmicintersection 2026.1101.3 → 2026.1107.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 (43) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +33 -0
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +118 -71
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +1 -1
  6. package/dist/cosmicintersection/components/ScienceCanvas.js +9 -2
  7. package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -1
  8. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +22 -0
  9. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +1 -0
  10. package/dist/cosmicintersection/lib/useTrackRecentItem.js +28 -0
  11. package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -0
  12. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +1 -1
  13. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +321 -285
  14. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  15. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +1 -1
  16. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +101 -93
  17. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
  18. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  19. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +82 -74
  20. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  21. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
  22. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +66 -58
  23. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  24. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +1 -1
  25. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +126 -118
  26. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  27. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  28. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +211 -203
  29. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  30. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  31. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +92 -84
  32. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  33. package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +1 -1
  34. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +101 -93
  35. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
  36. package/dist/index.d.ts +2 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +2 -1
  39. package/dist/services/recentItems.d.ts +40 -0
  40. package/dist/services/recentItems.d.ts.map +1 -0
  41. package/dist/services/recentItems.js +128 -0
  42. package/dist/services/recentItems.js.map +1 -0
  43. package/package.json +5 -1
@@ -0,0 +1,22 @@
1
+ import { CosRecentEntityType } from '../../services/recentItems';
2
+ /** The entity a detail view is showing, once it has loaded. */
3
+ export interface TrackedRecentEntity {
4
+ readonly type: CosRecentEntityType;
5
+ readonly id: string;
6
+ readonly name: string;
7
+ /** Path relative to the module base path, e.g. `datasets/ds-1` or `releases?id=rel-1`. */
8
+ readonly path: string;
9
+ }
10
+ /**
11
+ * Records the entity a detail view is showing in the workspace's recent list,
12
+ * which feeds the "Recent" section of the app shell's command palette.
13
+ *
14
+ * Pass `null` while the entity is loading or missing: nothing is recorded for
15
+ * a not-found id. Nothing is recorded either until the active workspace is
16
+ * known, because the shell reads the list back per workspace and an entry
17
+ * written before the id arrives would land in a bucket nothing displays. The
18
+ * entry is written again only when the entity, its name or the workspace
19
+ * changes, never on every render.
20
+ */
21
+ export declare function useTrackRecentItem(entity: TrackedRecentEntity | null): void;
22
+ //# sourceMappingURL=useTrackRecentItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackRecentItem.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/lib/useTrackRecentItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGxF,+DAA+D;AAC/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAY3E"}
@@ -0,0 +1,28 @@
1
+ import { useCosmicIntersection as e } from "../context/CosmicIntersectionContext.js";
2
+ import { recordRecentItem as t } from "../../services/recentItems.js";
3
+ import { useEffect as n } from "react";
4
+ //#region src/cosmicintersection/lib/useTrackRecentItem.ts
5
+ function r(r) {
6
+ let { basePath: i, workspaceId: a } = e(), o = r?.type, s = r?.id, c = r?.name, l = r?.path;
7
+ n(() => {
8
+ if (!a?.trim() || !o || !s || !c || !l) return;
9
+ let e = l.startsWith("/") ? l.slice(1) : l;
10
+ t(a, {
11
+ type: o,
12
+ id: s,
13
+ name: c,
14
+ href: `${i}/${e}`
15
+ });
16
+ }, [
17
+ i,
18
+ a,
19
+ o,
20
+ s,
21
+ c,
22
+ l
23
+ ]);
24
+ }
25
+ //#endregion
26
+ export { r as useTrackRecentItem };
27
+
28
+ //# sourceMappingURL=useTrackRecentItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrackRecentItem.js","names":[],"sources":["../../../src/cosmicintersection/lib/useTrackRecentItem.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nimport { recordRecentItem, type CosRecentEntityType } from '../../services/recentItems';\nimport { useCosmicIntersection } from '../context/CosmicIntersectionContext';\n\n/** The entity a detail view is showing, once it has loaded. */\nexport interface TrackedRecentEntity {\n readonly type: CosRecentEntityType;\n readonly id: string;\n readonly name: string;\n /** Path relative to the module base path, e.g. `datasets/ds-1` or `releases?id=rel-1`. */\n readonly path: string;\n}\n\n/**\n * Records the entity a detail view is showing in the workspace's recent list,\n * which feeds the \"Recent\" section of the app shell's command palette.\n *\n * Pass `null` while the entity is loading or missing: nothing is recorded for\n * a not-found id. Nothing is recorded either until the active workspace is\n * known, because the shell reads the list back per workspace and an entry\n * written before the id arrives would land in a bucket nothing displays. The\n * entry is written again only when the entity, its name or the workspace\n * changes, never on every render.\n */\nexport function useTrackRecentItem(entity: TrackedRecentEntity | null): void {\n const { basePath, workspaceId } = useCosmicIntersection();\n const type = entity?.type;\n const id = entity?.id;\n const name = entity?.name;\n const path = entity?.path;\n\n useEffect(() => {\n if (!workspaceId?.trim() || !type || !id || !name || !path) return;\n const relative = path.startsWith('/') ? path.slice(1) : path;\n recordRecentItem(workspaceId, { type, id, name, href: `${basePath}/${relative}` });\n }, [basePath, workspaceId, type, id, name, path]);\n}\n"],"mappings":";;;;AAyBA,SAAgB,EAAmB,GAA0C;CAC3E,IAAM,EAAE,aAAU,mBAAgB,EAAsB,GAClD,IAAO,GAAQ,MACf,IAAK,GAAQ,IACb,IAAO,GAAQ,MACf,IAAO,GAAQ;CAErB,QAAgB;EACd,IAAI,CAAC,GAAa,KAAK,KAAK,CAAC,KAAQ,CAAC,KAAM,CAAC,KAAQ,CAAC,GAAM;EAC5D,IAAM,IAAW,EAAK,WAAW,GAAG,IAAI,EAAK,MAAM,CAAC,IAAI;EACxD,EAAiB,GAAa;GAAE;GAAM;GAAI;GAAM,MAAM,GAAG,EAAS,GAAG;EAAW,CAAC;CACnF,GAAG;EAAC;EAAU;EAAa;EAAM;EAAI;EAAM;CAAI,CAAC;AAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnalysesPage.d.ts","sourceRoot":"","sources":["../../../../src/cosmicintersection/pages/analyses/AnalysesPage.tsx"],"names":[],"mappings":"AA6lBA,MAAM,CAAC,OAAO,UAAU,YAAY,gCAoXnC"}
1
+ {"version":3,"file":"AnalysesPage.d.ts","sourceRoot":"","sources":["../../../../src/cosmicintersection/pages/analyses/AnalysesPage.tsx"],"names":[],"mappings":"AAunBA,MAAM,CAAC,OAAO,UAAU,YAAY,gCA8YnC"}