@crewlethq/ui 0.124.0 → 0.126.0

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 (107) hide show
  1. package/README.md +29 -1
  2. package/dist/ArtifactBar/ArtifactBar.d.ts +5 -0
  3. package/dist/ArtifactBar/index.js +5 -5
  4. package/dist/ArtifactCard/index.js +3 -3
  5. package/dist/AttentionList/index.js +3 -3
  6. package/dist/AuthLayout/index.js +3 -3
  7. package/dist/AvatarPicker/index.js +6 -6
  8. package/dist/Breadcrumb/index.js +2 -2
  9. package/dist/BriefCard/index.js +4 -4
  10. package/dist/Card/index.js +2 -2
  11. package/dist/CharacterPicker/index.js +2 -2
  12. package/dist/Charts/index.js +2 -2
  13. package/dist/DeepWorkCard/index.js +4 -4
  14. package/dist/EntityList/index.js +4 -4
  15. package/dist/FolderTile/index.js +3 -3
  16. package/dist/GraphCanvas/GraphCanvas.d.ts +35 -7
  17. package/dist/GraphCanvas/index.d.ts +2 -2
  18. package/dist/GraphCanvas/index.js +2 -2
  19. package/dist/{GraphCanvas-UZPZRP6S.css → GraphCanvas-V4VJADVF.css} +103 -16
  20. package/dist/HuePicker/index.js +4 -4
  21. package/dist/LayersList/index.js +2 -2
  22. package/dist/MarkdownEditor/index.js +5 -5
  23. package/dist/MentionMenu/index.js +3 -3
  24. package/dist/MergeConflicts/index.js +5 -5
  25. package/dist/ObjectHeader/index.js +2 -2
  26. package/dist/{ObjectHeader-BH7OBEAL.css → ObjectHeader-3YYG2BAF.css} +4 -2
  27. package/dist/OpenInAppCard/index.js +4 -4
  28. package/dist/OrgLabel/index.js +1 -1
  29. package/dist/{OrgLabel-AZLKOG72.css → OrgLabel-F2PW7B73.css} +1 -1
  30. package/dist/OrgNode/index.js +2 -2
  31. package/dist/OrgTable/index.js +2 -2
  32. package/dist/PersonRow/index.js +2 -2
  33. package/dist/PropertyList/index.js +3 -3
  34. package/dist/ProposalCard/index.js +4 -4
  35. package/dist/RailList/index.js +3 -3
  36. package/dist/RefusalCard/index.js +4 -4
  37. package/dist/RelatedRow/index.js +3 -3
  38. package/dist/ResultTableCard/index.js +4 -4
  39. package/dist/RichEditor/index.js +1 -1
  40. package/dist/SegmentedControl/index.js +4 -4
  41. package/dist/{SegmentedControl-HFCBBWKH.css → SegmentedControl-RDBMHV7Q.css} +8 -3
  42. package/dist/SheetColumnEditor/index.js +5 -5
  43. package/dist/StatusCard/index.js +3 -3
  44. package/dist/Switcher/index.js +2 -2
  45. package/dist/TableCells/index.js +2 -2
  46. package/dist/Tabs/index.js +2 -2
  47. package/dist/Tabs/roving.d.ts +15 -0
  48. package/dist/{Tabs-244SPRII.css → Tabs-BJZ2W5KB.css} +33 -6
  49. package/dist/Text/index.js +1 -1
  50. package/dist/{Text-XOCOU34C.css → Text-6KVFTLYV.css} +17 -0
  51. package/dist/ThemeGallery/index.js +2 -2
  52. package/dist/ThemeSwitcher/index.js +5 -5
  53. package/dist/TimeRangePicker/index.js +5 -5
  54. package/dist/Toaster/index.js +2 -2
  55. package/dist/VersionCompare/index.js +5 -5
  56. package/dist/{chunk-YJ2V7QSY.js → chunk-2JXC3Y5W.js} +1 -1
  57. package/dist/{chunk-5PHBOCIX.js → chunk-377HVWK7.js} +2 -2
  58. package/dist/{chunk-XROJ6XQ3.js → chunk-42I2VSZZ.js} +1 -1
  59. package/dist/{chunk-KTH2KXZY.js → chunk-46WA7E5V.js} +1 -1
  60. package/dist/{chunk-XLMURU75.js → chunk-475DOAWF.js} +1 -1
  61. package/dist/{chunk-VRDLNMST.js → chunk-54OD6YIS.js} +1 -1
  62. package/dist/{chunk-GIYIKUJE.js → chunk-5L56E6AF.js} +4 -3
  63. package/dist/{chunk-5AORKQ5Q.js → chunk-6BTQVM6O.js} +1 -1
  64. package/dist/{chunk-CVXQWNSM.js → chunk-6IBC6CPE.js} +1 -1
  65. package/dist/{chunk-5P6LLFEO.js → chunk-766IY2ZW.js} +1 -1
  66. package/dist/{chunk-EGMQURBR.js → chunk-7F3OPUM5.js} +12 -1
  67. package/dist/chunk-7U4V36SB.js +3 -0
  68. package/dist/{chunk-22I4FAEM.js → chunk-7Y5OSXA2.js} +1 -1
  69. package/dist/{chunk-25CL7J4J.js → chunk-B6AQY6FH.js} +1 -1
  70. package/dist/{chunk-T4TKY4VZ.js → chunk-BBWCMOK7.js} +1 -1
  71. package/dist/{chunk-4Z3AGYOB.js → chunk-BXDBDAKS.js} +1 -1
  72. package/dist/{chunk-DSBKVP73.js → chunk-CWHFC7FS.js} +134 -110
  73. package/dist/{chunk-4PEPSGCZ.js → chunk-DQKNAQWN.js} +1 -1
  74. package/dist/{chunk-VB7KAQBN.js → chunk-E5F25GGA.js} +1 -1
  75. package/dist/{chunk-AJCPRBYJ.js → chunk-ESIB6MBQ.js} +2 -2
  76. package/dist/{chunk-BMXUVFV6.js → chunk-ESLLB6TP.js} +1 -1
  77. package/dist/{chunk-3C3TSWRR.js → chunk-GJJQPF75.js} +1 -1
  78. package/dist/{chunk-PMP2WNF4.js → chunk-H6QSHVKY.js} +1 -1
  79. package/dist/{chunk-EWJOBD25.js → chunk-H7EKNIW4.js} +1 -1
  80. package/dist/{chunk-GCPSAYA3.js → chunk-HYIBP6MW.js} +2 -2
  81. package/dist/{chunk-V3ZKGVC2.js → chunk-I2JRUQJ4.js} +1 -1
  82. package/dist/{chunk-J44ZIWGH.js → chunk-ICRFVQH5.js} +2 -2
  83. package/dist/{chunk-BIAAOLAX.js → chunk-IYEMN7RK.js} +1 -1
  84. package/dist/{chunk-DVZRAYX3.js → chunk-JDA4ADTD.js} +1 -1
  85. package/dist/{chunk-PEYNAR4F.js → chunk-LV2CE5EN.js} +1 -1
  86. package/dist/{chunk-ABQTPJPW.js → chunk-M2JND4EM.js} +1 -1
  87. package/dist/{chunk-OBPLHZMV.js → chunk-M557YJHH.js} +1 -1
  88. package/dist/{chunk-4PKMM3EZ.js → chunk-MTEQ3WO3.js} +2 -2
  89. package/dist/{chunk-NNW5MZGO.js → chunk-NKCLA6RG.js} +1 -1
  90. package/dist/{chunk-I4FO353C.js → chunk-NT26CSYA.js} +1 -1
  91. package/dist/{chunk-YCT7LRYR.js → chunk-RD32XZLB.js} +2 -2
  92. package/dist/{chunk-4VKFZZHS.js → chunk-RFZ5MMLI.js} +1 -1
  93. package/dist/{chunk-2DJOEXY4.js → chunk-SHSQNFW2.js} +3 -2
  94. package/dist/{chunk-DEVO45TG.js → chunk-SYMLWDV6.js} +1 -1
  95. package/dist/{chunk-VUYNNILP.js → chunk-TEOUMHAI.js} +1 -1
  96. package/dist/{chunk-ZY5322MJ.js → chunk-TQ6ZPQI4.js} +1 -1
  97. package/dist/{chunk-SAHYQ53P.js → chunk-UGF5YD5O.js} +1 -1
  98. package/dist/{chunk-7L75YB57.js → chunk-VDADSS7I.js} +1 -1
  99. package/dist/{chunk-PFZKJXEA.js → chunk-VR72FN5R.js} +1 -1
  100. package/dist/{chunk-S4JRQJEP.js → chunk-ZIL6MTMZ.js} +1 -1
  101. package/dist/{chunk-I4V4GUVM.js → chunk-ZPKCRFPZ.js} +1 -1
  102. package/dist/generated/index.js +61 -61
  103. package/dist/index.js +61 -61
  104. package/dist/styles.css +172 -34
  105. package/package.json +3 -3
  106. package/dist/chunk-KWXVG3CH.js +0 -3
  107. package/dist/{Editor-SBHTMAEK.js → Editor-JCAYNXQX.js} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { Table } from './chunk-YGN4SBNP.js';
2
2
  import { DownloadButton } from './chunk-GCRACVZO.js';
3
- import { StatusCard } from './chunk-7L75YB57.js';
3
+ import { StatusCard } from './chunk-VDADSS7I.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ResultTableCard-AP355LQM.css';
6
6
  import { useState } from 'react';
@@ -1,4 +1,4 @@
1
- import { Text } from './chunk-XLMURU75.js';
1
+ import { Text } from './chunk-475DOAWF.js';
2
2
  import { useLayerContainer } from './chunk-FIX72ZEC.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { safeHref } from './chunk-KBZO4B33.js';
2
2
  import { IconTile } from './chunk-VRVNLJUA.js';
3
3
  import { ReceiptStrip } from './chunk-TMHG4576.js';
4
- import { StatusCard } from './chunk-7L75YB57.js';
4
+ import { StatusCard } from './chunk-VDADSS7I.js';
5
5
  import { ButtonLink, Button } from './chunk-M2M6ZD7P.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './OpenInAppCard-CKHCK7DO.css';
@@ -1,7 +1,7 @@
1
1
  import { StepList } from './chunk-EHD4CEHK.js';
2
2
  import { ReceiptStrip } from './chunk-TMHG4576.js';
3
3
  import { Meter } from './chunk-MXOT2CWL.js';
4
- import { StatusCard } from './chunk-7L75YB57.js';
4
+ import { StatusCard } from './chunk-VDADSS7I.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Spinner } from './chunk-XSPCITPN.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
@@ -2,11 +2,11 @@ import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374
2
2
  import { FilterChip } from './chunk-L6HUVA33.js';
3
3
  import { FullscreenToggle } from './chunk-3JLG6KRU.js';
4
4
  import { fitView, CANVAS_FIT_PADDING, Canvas } from './chunk-GKHZSNIV.js';
5
- import { Text } from './chunk-XLMURU75.js';
5
+ import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-FIX72ZEC.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
- import './GraphCanvas-UZPZRP6S.css';
9
+ import './GraphCanvas-V4VJADVF.css';
10
10
  import { memo, useMemo, useId, useState, useCallback, useRef, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
11
11
  import { ChevronDownGlyph, ChevronRightGlyph, TriangleAlertGlyph, CircleAlertGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
12
12
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1003,9 +1003,15 @@ var GRAPH_CANVAS_LABELS = {
1003
1003
  leaveFullscreen: "Leave fullscreen"
1004
1004
  };
1005
1005
  var GRAPH_CANVAS_DETAIL_ZOOM = 0.5;
1006
+ var GRAPH_CANVAS_TILE_ZOOM = 0.3;
1007
+ function graphDetail(zoom) {
1008
+ if (zoom >= GRAPH_CANVAS_DETAIL_ZOOM) return "cards";
1009
+ return zoom >= GRAPH_CANVAS_TILE_ZOOM ? "tiles" : "marks";
1010
+ }
1006
1011
  var GRAPH_CANVAS_OPEN_ZOOM = 0.75;
1007
1012
  var GRAPH_CANVAS_FIT_FLOOR = 0.02;
1008
1013
  var GRAPH_CANVAS_FLOW_LIMIT = 160;
1014
+ var ZOOM_PROPERTY = "--crewlet-graph-canvas-zoom";
1009
1015
  var POINT_IN_MS = 90;
1010
1016
  var POINT_OUT_MS = 120;
1011
1017
  var PRESS_SLOP = 4;
@@ -1285,10 +1291,20 @@ function GraphCanvas({
1285
1291
  const viewport = useRef(null);
1286
1292
  const placeCardNow = useRef(() => {
1287
1293
  });
1294
+ const zoomNow = useRef(1);
1295
+ const worldEl = useRef(null);
1296
+ const world = useCallback((el) => {
1297
+ worldEl.current = el;
1298
+ el?.style.setProperty(ZOOM_PROPERTY, String(zoomNow.current));
1299
+ }, []);
1288
1300
  const viewChanged = useCallback(
1289
1301
  (view, size) => {
1290
1302
  onViewChange?.(view, size);
1291
1303
  viewport.current = size;
1304
+ if (view.k !== zoomNow.current) {
1305
+ zoomNow.current = view.k;
1306
+ worldEl.current?.style.setProperty(ZOOM_PROPERTY, String(view.k));
1307
+ }
1292
1308
  placeCardNow.current();
1293
1309
  const next = graphWindow(mountedNow.current, view, size);
1294
1310
  if (next !== mountedNow.current) setMounted(next);
@@ -1533,7 +1549,7 @@ function GraphCanvas({
1533
1549
  if (selectedKey !== null) keep.add(selectedKey);
1534
1550
  return layout.items.filter((item) => {
1535
1551
  if (keep.has(item.key)) return true;
1536
- if (!mounted.detail && item.kind !== "empty" && item.kind !== "head") return false;
1552
+ if (mounted.detail === "marks" && item.kind !== "empty" && item.kind !== "head") return false;
1537
1553
  return intersects(item, mounted.rect);
1538
1554
  });
1539
1555
  }, [layout, mounted, activeKey, selectedKey]);
@@ -1706,113 +1722,122 @@ function GraphCanvas({
1706
1722
  lane.id
1707
1723
  );
1708
1724
  }),
1709
- layout && placed ? /* @__PURE__ */ jsxs("div", { className: "crewlet-graph-canvas__world", style: { width: `${width}px`, height: `${height}px` }, children: [
1710
- /* @__PURE__ */ jsxs("svg", { className: "crewlet-graph-canvas__ground", width, height, "aria-hidden": "true", children: [
1711
- layout.lanes.map((lane) => /* @__PURE__ */ jsx(
1712
- "rect",
1713
- {
1714
- className: "crewlet-graph-canvas__lane",
1715
- x: lane.panel.x,
1716
- y: lane.panel.y,
1717
- width: lane.panel.width,
1718
- height: lane.panel.height
1719
- },
1720
- lane.id
1721
- )),
1722
- layout.groups.map(
1723
- (group) => group.box ? /* @__PURE__ */ jsx(
1724
- "rect",
1725
+ layout && placed ? /* @__PURE__ */ jsxs(
1726
+ "div",
1727
+ {
1728
+ ref: world,
1729
+ className: "crewlet-graph-canvas__world",
1730
+ "data-detail": mounted?.detail,
1731
+ style: { width: `${width}px`, height: `${height}px` },
1732
+ children: [
1733
+ /* @__PURE__ */ jsxs("svg", { className: "crewlet-graph-canvas__ground", width, height, "aria-hidden": "true", children: [
1734
+ layout.lanes.map((lane) => /* @__PURE__ */ jsx(
1735
+ "rect",
1736
+ {
1737
+ className: "crewlet-graph-canvas__lane",
1738
+ x: lane.panel.x,
1739
+ y: lane.panel.y,
1740
+ width: lane.panel.width,
1741
+ height: lane.panel.height
1742
+ },
1743
+ lane.id
1744
+ )),
1745
+ layout.groups.map(
1746
+ (group) => group.box ? /* @__PURE__ */ jsx(
1747
+ "rect",
1748
+ {
1749
+ className: "crewlet-graph-canvas__group",
1750
+ x: group.box.x,
1751
+ y: group.box.y,
1752
+ width: group.box.width,
1753
+ height: group.box.height
1754
+ },
1755
+ group.id
1756
+ ) : null
1757
+ )
1758
+ ] }),
1759
+ layout.bands.map(
1760
+ (band) => band.title ? /* @__PURE__ */ jsx(
1761
+ "div",
1762
+ {
1763
+ className: "crewlet-graph-canvas__band-title",
1764
+ "aria-hidden": "true",
1765
+ style: placedStyle(band.title),
1766
+ children: bands[band.index].label
1767
+ },
1768
+ band.id
1769
+ ) : null
1770
+ ),
1771
+ paths ? /* @__PURE__ */ jsxs("svg", { className: "crewlet-graph-canvas__edges", width, height, "aria-hidden": "true", children: [
1772
+ trunks.length > 0 ? /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__trunk", d: trunks.map((trunk) => trunk.d).join("") }) : null,
1773
+ EDGE_STATES.flatMap(
1774
+ (state) => DRAW_ORDER.map((family) => {
1775
+ const layer = paths.get(`${family}:${state}`);
1776
+ if (!layer || layer.d === "") return null;
1777
+ return /* @__PURE__ */ jsxs(
1778
+ "g",
1779
+ {
1780
+ className: "crewlet-graph-canvas__edge-layer",
1781
+ "data-family": family,
1782
+ "data-state": state,
1783
+ children: [
1784
+ /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__edge", d: layer.d }),
1785
+ /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__arrow", d: layer.arrow }),
1786
+ family === "flow" && state !== "dim" ? /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__flow", d: layer.d }) : null
1787
+ ]
1788
+ },
1789
+ `${family}:${state}`
1790
+ );
1791
+ })
1792
+ )
1793
+ ] }) : null,
1794
+ trunks.map((trunk) => /* @__PURE__ */ jsx(
1795
+ "span",
1725
1796
  {
1726
- className: "crewlet-graph-canvas__group",
1727
- x: group.box.x,
1728
- y: group.box.y,
1729
- width: group.box.width,
1730
- height: group.box.height
1797
+ className: "crewlet-graph-canvas__trunk-label",
1798
+ "aria-hidden": "true",
1799
+ style: { transform: `translate(${trunk.label.x}px, ${trunk.label.y}px) translate(-50%, -50%)` },
1800
+ children: text.trunk(trunk.count)
1731
1801
  },
1732
- group.id
1733
- ) : null
1734
- )
1735
- ] }),
1736
- layout.bands.map(
1737
- (band) => band.title ? /* @__PURE__ */ jsx(
1738
- "div",
1739
- {
1740
- className: "crewlet-graph-canvas__band-title",
1741
- "aria-hidden": "true",
1742
- style: placedStyle(band.title),
1743
- children: bands[band.index].label
1744
- },
1745
- band.id
1746
- ) : null
1747
- ),
1748
- paths ? /* @__PURE__ */ jsxs("svg", { className: "crewlet-graph-canvas__edges", width, height, "aria-hidden": "true", children: [
1749
- trunks.length > 0 ? /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__trunk", d: trunks.map((trunk) => trunk.d).join("") }) : null,
1750
- EDGE_STATES.flatMap(
1751
- (state) => DRAW_ORDER.map((family) => {
1752
- const layer = paths.get(`${family}:${state}`);
1753
- if (!layer || layer.d === "") return null;
1754
- return /* @__PURE__ */ jsxs(
1755
- "g",
1802
+ trunk.key
1803
+ )),
1804
+ layout.lanes.map((lane) => {
1805
+ const tally = tallies.get(lane.id);
1806
+ return /* @__PURE__ */ jsx(
1807
+ "div",
1756
1808
  {
1757
- className: "crewlet-graph-canvas__edge-layer",
1758
- "data-family": family,
1759
- "data-state": state,
1760
- children: [
1761
- /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__edge", d: layer.d }),
1762
- /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__arrow", d: layer.arrow }),
1763
- family === "flow" && state !== "dim" ? /* @__PURE__ */ jsx("path", { className: "crewlet-graph-canvas__flow", d: layer.d }) : null
1764
- ]
1809
+ className: "crewlet-graph-canvas__lane-head",
1810
+ "aria-hidden": "true",
1811
+ style: placedStyle(lane.head),
1812
+ children: /* @__PURE__ */ jsxs("span", { className: "crewlet-graph-canvas__lane-title", children: [
1813
+ /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-label", children: laneOf.get(lane.id)?.label }),
1814
+ /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-count", children: lane.count }),
1815
+ TONES.map(
1816
+ (tone) => tally?.[tone] ? /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-tone", "data-tone": tone, children: tally[tone] }, tone) : null
1817
+ )
1818
+ ] })
1765
1819
  },
1766
- `${family}:${state}`
1820
+ lane.id
1767
1821
  );
1768
- })
1769
- )
1770
- ] }) : null,
1771
- trunks.map((trunk) => /* @__PURE__ */ jsx(
1772
- "span",
1773
- {
1774
- className: "crewlet-graph-canvas__trunk-label",
1775
- "aria-hidden": "true",
1776
- style: { transform: `translate(${trunk.label.x}px, ${trunk.label.y}px) translate(-50%, -50%)` },
1777
- children: text.trunk(trunk.count)
1778
- },
1779
- trunk.key
1780
- )),
1781
- layout.lanes.map((lane) => {
1782
- const tally = tallies.get(lane.id);
1783
- return /* @__PURE__ */ jsx(
1784
- "div",
1785
- {
1786
- className: "crewlet-graph-canvas__lane-head",
1787
- "aria-hidden": "true",
1788
- style: placedStyle(lane.head),
1789
- children: /* @__PURE__ */ jsxs("span", { className: "crewlet-graph-canvas__lane-title", children: [
1790
- /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-label", children: laneOf.get(lane.id)?.label }),
1791
- /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-count", children: lane.count }),
1792
- TONES.map(
1793
- (tone) => tally?.[tone] ? /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__lane-tone", "data-tone": tone, children: tally[tone] }, tone) : null
1794
- )
1795
- ] })
1796
- },
1797
- lane.id
1798
- );
1799
- }),
1800
- mounted && !mounted.detail ? /* @__PURE__ */ jsx(
1801
- Shapes,
1802
- {
1803
- layout,
1804
- nodeById,
1805
- dimmed: drawn?.itemDimmed,
1806
- worstOf,
1807
- selectedKey
1808
- }
1809
- ) : null,
1810
- /* @__PURE__ */ jsx("div", { className: "crewlet-graph-canvas__items", children: bands.map((band, b) => {
1811
- const lanes = layout.lanes.filter((lane) => lane.band === b);
1812
- const inner = lanes.map((lane) => /* @__PURE__ */ jsx("div", { role: "group", "aria-label": laneName(lane.id, lane.count), children: (shownByLane.get(lane.id) ?? []).map(renderItem) }, lane.id));
1813
- return band.label ? /* @__PURE__ */ jsx("div", { role: "group", "aria-label": band.label, children: inner }, band.id) : /* @__PURE__ */ jsx("div", { role: "none", children: inner }, band.id);
1814
- }) })
1815
- ] }) : null
1822
+ }),
1823
+ mounted?.detail === "marks" ? /* @__PURE__ */ jsx(
1824
+ Shapes,
1825
+ {
1826
+ layout,
1827
+ nodeById,
1828
+ dimmed: drawn?.itemDimmed,
1829
+ worstOf,
1830
+ selectedKey
1831
+ }
1832
+ ) : null,
1833
+ /* @__PURE__ */ jsx("div", { className: "crewlet-graph-canvas__items", children: bands.map((band, b) => {
1834
+ const lanes = layout.lanes.filter((lane) => lane.band === b);
1835
+ const inner = lanes.map((lane) => /* @__PURE__ */ jsx("div", { role: "group", "aria-label": laneName(lane.id, lane.count), children: (shownByLane.get(lane.id) ?? []).map(renderItem) }, lane.id));
1836
+ return band.label ? /* @__PURE__ */ jsx("div", { role: "group", "aria-label": band.label, children: inner }, band.id) : /* @__PURE__ */ jsx("div", { role: "none", children: inner }, band.id);
1837
+ }) })
1838
+ ]
1839
+ }
1840
+ ) : null
1816
1841
  ]
1817
1842
  }
1818
1843
  ) : null;
@@ -2047,7 +2072,6 @@ function GraphEmptyLane({
2047
2072
  );
2048
2073
  }
2049
2074
  var SHAPE_CORNER = 2;
2050
- var SHAPE_NOTCH = 4;
2051
2075
  function Shapes({
2052
2076
  layout,
2053
2077
  nodeById,
@@ -2062,12 +2086,12 @@ function Shapes({
2062
2086
  if (item.kind !== "node" && item.kind !== "summary") continue;
2063
2087
  const node = item.kind === "node" ? nodeById.get(item.id) : void 0;
2064
2088
  const rect = roundRect(item, radius);
2089
+ const attention = node ? node.attention : worstOf(layout.groupById.get(item.id)?.members ?? []);
2065
2090
  if (item.key === selectedKey) out.selected += rect;
2066
2091
  else if (dimmed?.(item.key)) out.faded += rect;
2092
+ else if (attention) out[attention.tone] += rect;
2067
2093
  else if (node?.unconfirmed) out.dashed += rect;
2068
2094
  else out.card += rect;
2069
- const attention = node ? node.attention : worstOf(layout.groupById.get(item.id)?.members ?? []);
2070
- if (attention) out[attention.tone] += `M${item.x} ${item.y}h${SHAPE_NOTCH}v${item.height}h${-SHAPE_NOTCH}Z`;
2071
2095
  }
2072
2096
  return out;
2073
2097
  }, [layout, nodeById, dimmed, worstOf, selectedKey]);
@@ -2101,7 +2125,7 @@ function intersects(a, b) {
2101
2125
  return a.x < b.x + b.width && a.x + a.width > b.x && a.y < b.y + b.height && a.y + a.height > b.y;
2102
2126
  }
2103
2127
  function graphWindow(was, view, viewport) {
2104
- const detail = view.k >= GRAPH_CANVAS_DETAIL_ZOOM;
2128
+ const detail = graphDetail(view.k);
2105
2129
  const visible = {
2106
2130
  x: -view.x / view.k,
2107
2131
  y: -view.y / view.k,
@@ -2135,4 +2159,4 @@ function typeAhead(layout, from, text, nameOf) {
2135
2159
  return null;
2136
2160
  }
2137
2161
 
2138
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, routeGraphEdges };
2162
+ export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, routeGraphEdges };
@@ -1,4 +1,4 @@
1
- import { SetByLine } from './chunk-J44ZIWGH.js';
1
+ import { SetByLine } from './chunk-ICRFVQH5.js';
2
2
  import { Link } from './chunk-JZI7SIM6.js';
3
3
  import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-SBHTMAEK.js').then(
12
+ loading ??= import('./Editor-JCAYNXQX.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,6 +1,6 @@
1
1
  import { Inline, Stack, Spacer } from './chunk-ZAC7SKUN.js';
2
- import { Card } from './chunk-3C3TSWRR.js';
3
- import { Text } from './chunk-XLMURU75.js';
2
+ import { Card } from './chunk-GJJQPF75.js';
3
+ import { Text } from './chunk-475DOAWF.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './RelatedRow-IZ22XCLP.css';
6
6
  import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
1
  import { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
2
2
  import { developing } from './chunk-6C7GQOBV.js';
3
- import { StatusCard } from './chunk-7L75YB57.js';
3
+ import { StatusCard } from './chunk-VDADSS7I.js';
4
4
  import { StatusDot } from './chunk-QRE6JCHS.js';
5
5
  import { Button } from './chunk-M2M6ZD7P.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { CardHeaderSlotContext } from './chunk-AV2DXAEL.js';
2
- import { Text } from './chunk-XLMURU75.js';
2
+ import { Text } from './chunk-475DOAWF.js';
3
3
  import { Count } from './chunk-Y5CMDLQM.js';
4
4
  import { useHeadingLevel, HeadingLevelProvider, nextHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { StatusCard } from './chunk-7L75YB57.js';
1
+ import { StatusCard } from './chunk-VDADSS7I.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './RefusalCard-UM67F5HB.css';
4
4
  import { LockGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { TreeGrid } from './chunk-NOKZULW3.js';
2
- import { OrgLabel } from './chunk-DEVO45TG.js';
2
+ import { OrgLabel } from './chunk-SYMLWDV6.js';
3
3
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';
5
5
  import { IconButton } from './chunk-X5YI6E5X.js';
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
3
- import { tabId } from './chunk-GIYIKUJE.js';
2
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
3
+ import { tabId } from './chunk-5L56E6AF.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './MarkdownEditor-BLCJRGDC.css';
@@ -2,7 +2,7 @@ import { Link } from './chunk-JZI7SIM6.js';
2
2
  import { Tag } from './chunk-SJ3EUCFD.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
5
- import { Text } from './chunk-XLMURU75.js';
5
+ import { Text } from './chunk-475DOAWF.js';
6
6
  import { titleIfCut } from './chunk-WSIJDWUG.js';
7
7
  import { Avatar } from './chunk-XZY6S3UC.js';
8
8
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,7 +1,7 @@
1
1
  import { Link } from './chunk-JZI7SIM6.js';
2
- import { Text } from './chunk-XLMURU75.js';
2
+ import { Text } from './chunk-475DOAWF.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './ObjectHeader-BH7OBEAL.css';
4
+ import './ObjectHeader-3YYG2BAF.css';
5
5
  import { ArrowUpRightGlyph } from '@crewlethq/icons/glyphs';
6
6
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
2
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
2
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
3
3
  import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-U3LHWQQK.js';
2
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
2
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
3
3
  import { EmptyState } from './chunk-PPUR46MK.js';
4
4
  import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
- import { Card } from './chunk-3C3TSWRR.js';
4
+ import { Card } from './chunk-GJJQPF75.js';
5
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
7
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
@@ -1,4 +1,4 @@
1
- import { Card } from './chunk-3C3TSWRR.js';
1
+ import { Card } from './chunk-GJJQPF75.js';
2
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
3
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
1
  import { RefusalStrip, ReceiptStrip } from './chunk-TMHG4576.js';
2
2
  import { ChangeList } from './chunk-NB53SAL4.js';
3
- import { StatusCard } from './chunk-7L75YB57.js';
3
+ import { StatusCard } from './chunk-VDADSS7I.js';
4
4
  import { Checkbox } from './chunk-KFTVPWG2.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -1,5 +1,5 @@
1
- import { tabId } from './chunk-GIYIKUJE.js';
2
- import { useRoving, tabStop } from './chunk-EGMQURBR.js';
1
+ import { tabId } from './chunk-5L56E6AF.js';
2
+ import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
4
  import { Count } from './chunk-Y5CMDLQM.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { KeyChip } from './chunk-HBDA76EZ.js';
2
- import { Text } from './chunk-XLMURU75.js';
2
+ import { Text } from './chunk-475DOAWF.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './Breadcrumb-SENMIAG2.css';
5
5
  import { useRef, useState, useLayoutEffect } from 'react';
@@ -3,7 +3,7 @@ import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
3
3
  import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
4
4
  import { Popover } from './chunk-KDRJZWE3.js';
5
5
  import { Skeleton } from './chunk-WFAJYBLX.js';
6
- import { Text } from './chunk-XLMURU75.js';
6
+ import { Text } from './chunk-475DOAWF.js';
7
7
  import { Input } from './chunk-NN44J7BP.js';
8
8
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
9
9
  import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
@@ -1,6 +1,6 @@
1
- import { HuePicker } from './chunk-5P6LLFEO.js';
1
+ import { HuePicker } from './chunk-766IY2ZW.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
- import { CharacterPicker } from './chunk-S4JRQJEP.js';
3
+ import { CharacterPicker } from './chunk-ZIL6MTMZ.js';
4
4
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { ThemeSwatch } from './chunk-3XQUEF5C.js';
2
2
  import { useHighlightRest } from './chunk-KW7T23RT.js';
3
3
  import { Tag } from './chunk-SJ3EUCFD.js';
4
- import { useRoving, tabStop } from './chunk-EGMQURBR.js';
4
+ import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './ThemeGallery-UEFZRT6W.css';
7
7
  import { useId } from 'react';
@@ -1,4 +1,4 @@
1
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
1
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
2
2
  import { ArtifactIcon } from './chunk-AVL52EME.js';
3
3
  import { Menu } from './chunk-35S25WJZ.js';
4
4
  import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
@@ -47,7 +47,8 @@ function ArtifactBar({
47
47
  const headingId = useId();
48
48
  const Root = as;
49
49
  const apple = isApplePlatform();
50
- const folding = [...kindTools, ...tools].filter((t) => !t.labelled);
50
+ const listed = new Set(menu.map((entry) => entry.key));
51
+ const folding = [...kindTools, ...tools].filter((t) => !t.labelled && !listed.has(t.key));
51
52
  const pinned = [...kindTools, ...tools].filter((t) => t.labelled);
52
53
  const folded = [
53
54
  ...modes ? modes.options.map(
@@ -1,6 +1,6 @@
1
1
  import { Avatar } from './chunk-XZY6S3UC.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './OrgLabel-AZLKOG72.css';
3
+ import './OrgLabel-F2PW7B73.css';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
6
  function OrgLabel(props) {
@@ -1,4 +1,4 @@
1
- import { useRoving } from './chunk-EGMQURBR.js';
1
+ import { useRoving } from './chunk-7F3OPUM5.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './LayersList-BQHKROBH.css';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { Text } from './chunk-XLMURU75.js';
1
+ import { Text } from './chunk-475DOAWF.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './Charts-4VQ7T3GB.css';
@@ -1,4 +1,4 @@
1
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
1
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
2
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MergeConflicts-HCXPRQVR.css';
@@ -1,5 +1,5 @@
1
1
  import { Tag } from './chunk-SJ3EUCFD.js';
2
- import { Card } from './chunk-3C3TSWRR.js';
2
+ import { Card } from './chunk-GJJQPF75.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './StatusCard-72STCSWY.css';
@@ -1,4 +1,4 @@
1
- import { Card } from './chunk-3C3TSWRR.js';
1
+ import { Card } from './chunk-GJJQPF75.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './FolderTile-NM7CRTVH.css';
@@ -1,4 +1,4 @@
1
- import { useRoving, tabStop } from './chunk-EGMQURBR.js';
1
+ import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
2
2
  import { Avatar } from './chunk-XZY6S3UC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY } from '@crewlethq/icons/characters';
@@ -1,6 +1,6 @@
1
1
  import { Modal } from './chunk-OG4GX2TB.js';
2
2
  import { Callout } from './chunk-RCQLXOGS.js';
3
- import { SegmentedControl } from './chunk-4PKMM3EZ.js';
3
+ import { SegmentedControl } from './chunk-MTEQ3WO3.js';
4
4
  import { FormField, Input } from './chunk-NN44J7BP.js';
5
5
  import { Button } from './chunk-M2M6ZD7P.js';
6
6
  import { useState } from 'react';