@crewlethq/ui 0.130.2 → 0.131.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 (118) hide show
  1. package/dist/AppShell/AppShell.d.ts +47 -196
  2. package/dist/AppShell/index.js +2 -2
  3. package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
  4. package/dist/ArtifactBar/index.js +4 -4
  5. package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
  6. package/dist/ArtifactCard/index.js +1 -1
  7. package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
  8. package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
  9. package/dist/AvatarPicker/index.js +5 -5
  10. package/dist/BrandSample/index.js +1 -1
  11. package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
  12. package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
  13. package/dist/Breadcrumb/index.js +1 -1
  14. package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
  15. package/dist/Canvas/Canvas.d.ts +52 -228
  16. package/dist/Canvas/geometry.d.ts +31 -139
  17. package/dist/Canvas/index.js +1 -1
  18. package/dist/CanvasBoard/index.js +3 -3
  19. package/dist/CanvasToolbar/index.js +2 -2
  20. package/dist/CodeBlock/index.js +1 -1
  21. package/dist/ColorSwatch/index.js +2 -2
  22. package/dist/CommentThread/CommentThread.d.ts +3 -21
  23. package/dist/CommentThread/index.js +1 -1
  24. package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
  25. package/dist/Composer/Composer.d.ts +17 -54
  26. package/dist/ConfirmField/index.js +2 -2
  27. package/dist/Copyable/Copyable.d.ts +2 -11
  28. package/dist/Copyable/index.js +1 -1
  29. package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
  30. package/dist/DataGrid/DataGrid.d.ts +46 -136
  31. package/dist/DataGrid/index.js +1 -1
  32. package/dist/DataTable/index.js +2 -2
  33. package/dist/DataView/index.js +3 -3
  34. package/dist/DocTabsEditor/index.js +2 -2
  35. package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
  36. package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
  37. package/dist/GraphCanvas/index.js +2 -2
  38. package/dist/GraphCanvas/layout.d.ts +10 -35
  39. package/dist/HuePicker/index.js +4 -4
  40. package/dist/InlineCode/InlineCode.d.ts +7 -28
  41. package/dist/InlineCode/index.js +1 -1
  42. package/dist/InlineCode-3KJCBT5I.css +80 -0
  43. package/dist/Link/Link.d.ts +3 -25
  44. package/dist/Link/index.js +1 -1
  45. package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
  46. package/dist/LinkInterstitial/index.js +2 -2
  47. package/dist/MarkdownEditor/index.js +4 -4
  48. package/dist/MentionMenu/MentionMenu.d.ts +9 -31
  49. package/dist/Menu/Menu.d.ts +9 -91
  50. package/dist/Menu/index.js +1 -1
  51. package/dist/MergeConflicts/index.js +4 -4
  52. package/dist/ObjectHeader/index.js +2 -2
  53. package/dist/OrgTable/index.js +3 -3
  54. package/dist/PropertyList/index.js +3 -3
  55. package/dist/RichEditor/index.js +1 -1
  56. package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
  57. package/dist/SearchTrigger/index.js +1 -1
  58. package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
  59. package/dist/SegmentedControl/index.js +3 -3
  60. package/dist/ShareDialog/index.js +1 -1
  61. package/dist/SheetColumnEditor/index.js +5 -5
  62. package/dist/SheetGrid/index.js +2 -2
  63. package/dist/SlideFilmstrip/index.js +2 -2
  64. package/dist/TableCells/index.js +2 -2
  65. package/dist/Tabs/index.js +2 -2
  66. package/dist/ThemeSwitcher/index.js +4 -4
  67. package/dist/TimeRangePicker/index.js +4 -4
  68. package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
  69. package/dist/TreeCanvas/index.js +2 -2
  70. package/dist/TreeGrid/index.js +2 -2
  71. package/dist/VersionCompare/index.js +4 -4
  72. package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
  73. package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
  74. package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
  75. package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
  76. package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
  77. package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
  78. package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
  79. package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
  80. package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
  81. package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
  82. package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
  83. package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
  84. package/dist/{chunk-MNACKUBB.js → chunk-CX4JXBS3.js} +2 -2
  85. package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
  86. package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
  87. package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
  88. package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
  89. package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
  90. package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
  91. package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
  92. package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
  93. package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
  94. package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
  95. package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
  96. package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
  97. package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
  98. package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
  99. package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
  100. package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
  101. package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
  102. package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
  103. package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
  104. package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
  105. package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
  106. package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
  107. package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
  108. package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
  109. package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
  110. package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
  111. package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
  112. package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
  113. package/dist/generated/index.js +49 -49
  114. package/dist/index.js +49 -49
  115. package/dist/styles.css +188 -696
  116. package/dist/utils/pathBreaks.d.ts +3 -8
  117. package/package.json +3 -3
  118. package/dist/InlineCode-BEYQFJQT.css +0 -106
@@ -1,6 +1,6 @@
1
- export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-3WSDAVE6.js';
1
+ export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-5PAABHF7.js';
2
2
  import '../chunk-JMBPMSNI.js';
3
- import '../chunk-EGHOU7U2.js';
3
+ import '../chunk-WGAEHKGW.js';
4
4
  import '../chunk-NN44J7BP.js';
5
5
  import '../chunk-NICEDVZM.js';
6
6
  import '../chunk-JLKO7PSK.js';
@@ -1,9 +1,9 @@
1
- import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
1
  import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
2
+ import { richEditorLabels } from './chunk-2DMTW2Y3.js';
3
3
  import './chunk-KOJPDCGQ.js';
4
4
  import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
5
5
  import { Toolbar } from './chunk-NPEI2QAN.js';
6
- import { Menu } from './chunk-EGHOU7U2.js';
6
+ import { Menu } from './chunk-WGAEHKGW.js';
7
7
  import { FormField, Input } from './chunk-NN44J7BP.js';
8
8
  import './chunk-NICEDVZM.js';
9
9
  import './chunk-JLKO7PSK.js';
@@ -1,47 +1,7 @@
1
1
  /**
2
- * A layered map on a canvas: entries stand in clusters (lanes) read left to
3
- * right, bands of clusters under each other, groups that open and close, and
4
- * right-angled lines from each entry to what it relies on.
5
- *
6
- * PURE PRESENTATION. Entries, edges, the selection and the trace come in as
7
- * props and every decision goes out through a callback; nothing is fetched.
8
- * The layout is `layout.ts` (pure, tested without a DOM), the walk `walk.ts`
9
- * and the reach `reach.ts`; this component measures, draws and listens.
10
- *
11
- * THREE FAMILIES OF LINE. `flow` is the path a request takes: drawn at rest,
12
- * with dashes moving along it that say which way it points (direction, never
13
- * volume). `support` is what something runs on: at rest it is one trunk per
14
- * pair of clusters, with its count, never a line per entry. `context` is
15
- * everything around (an account, a repository, a monitor), drawn when the
16
- * legend turns it on. Each legend switch says whether its family is drawn, so
17
- * one that reads on draws it and one that reads off draws none of it. The last
18
- * two are drawn line by line for the entry a reader stands on, which is what
19
- * keeps a few hundred entries from being a tangle.
20
- *
21
- * ONE LOOK, INSIDE THE WORLD ONLY. Outlined boxes on a fine grid, a ruled
22
- * glyph cell, square corners and mono labels are the drawing of clusters,
23
- * entries, lines and trunks. The legend, the card, the dock and the zoom bar
24
- * are the kit's own surfaces.
25
- *
26
- * IT STAYS LIGHT AT THOUSANDS OF ENTRIES. Every card is one size, so nothing
27
- * is measured per card; only the cards near the view are mounted; edges are a
28
- * few paths rather than one element each; and zoomed out past the least a
29
- * card can say the cards are drawn as marks on one layer rather than as
30
- * elements at all.
31
- *
32
- * A CARD IS NEVER A BLANK BOX. The map has three levels of detail
33
- * ([GraphDetail]), and each keeps a signal a reader can use at its size: the
34
- * whole card; then a tile, its glyph filling the cell and its name held at a
35
- * size that reads; then a filled mark in its tone, under cluster titles,
36
- * counts and tallies that hold their size on screen at every zoom.
37
- *
38
- * IT OPENS ON THE WHOLE MAP, fitted to the view at whatever level of detail
39
- * that zoom draws, since every level reads. It fits again when its first
40
- * entries arrive (a map placed before them fitted its empty lanes), when the
41
- * caller's `fitKey` moves, and when its box is resized while nobody has moved
42
- * the view since; a data refresh keeps the reader's view. A map opened on one
43
- * entry (`initialNode`, such as the one a link names) draws that entry in the
44
- * middle instead, at a size its card reads.
2
+ * A layered map on a canvas: clustered entries, groups that open and close,
3
+ * and lines to what each entry relies on. Pure presentation: data comes in as
4
+ * props, every decision goes out through a callback, nothing is fetched.
45
5
  */
46
6
  import { type ReactNode, type Ref, type RefObject } from 'react';
47
7
  import { type CanvasGround, type CanvasLabels, type CanvasRect, type CanvasSize, type CanvasView } from '../Canvas/index.js';
@@ -161,44 +121,31 @@ export interface GraphCanvasLabels extends CanvasLabels {
161
121
  }
162
122
  export declare const GRAPH_CANVAS_LABELS: GraphCanvasLabels;
163
123
  /**
164
- * How much of an entry the map draws at a zoom.
165
- *
166
- * `cards` is the whole card. `tiles` is the card cut to what still reads: its
167
- * glyph filling the cell, its name held at one size on screen and cut to what
168
- * fits, its tone on the whole cell. `marks` is every card as a filled shape
169
- * on one layer, in its tone, with the clusters' titles and counts carrying
170
- * the words.
124
+ * How much of an entry the map draws at a zoom: the whole card, a tile (its
125
+ * glyph and a name held at one size on screen), or a filled mark in its tone.
171
126
  */
172
127
  export type GraphDetail = 'cards' | 'tiles' | 'marks';
173
128
  /**
174
- * THE ZOOM BELOW WHICH CARDS ARE TILES. At half size a 13px name draws at
175
- * about 6.5px, the least that still reads as words; below it a card's own
176
- * text is texture, so the name is held at a size on screen instead of being
177
- * scaled with the map.
129
+ * The zoom below which cards are tiles: at half size a 13px name draws at
130
+ * about 6.5px, the least that still reads as words.
178
131
  */
179
132
  export declare const GRAPH_CANVAS_DETAIL_ZOOM = 0.5;
180
133
  /**
181
- * THE ZOOM BELOW WHICH TILES ARE MARKS. A tile's name is held at 10px on
182
- * screen, and a card is 38px tall, so at three tenths it is about 11px: the
183
- * last size one line of that name still fits inside its own card. Below it no
184
- * word fits a card at all, and at most a few hundred elements were mounted to
185
- * get here, so every card becomes a filled mark on one layer.
134
+ * The zoom below which tiles are marks: a 38px card is about 11px tall here,
135
+ * the last size a tile's 10px name still fits inside it.
186
136
  */
187
137
  export declare const GRAPH_CANVAS_TILE_ZOOM = 0.3;
188
138
  /** The level of detail a zoom draws: see [GraphDetail]. */
189
139
  export declare function graphDetail(zoom: number): GraphDetail;
190
140
  /**
191
- * THE MOST A MAP OPENED ON ONE ENTRY ZOOMS IN: a card's 13px name draws at
192
- * about 10px, with the entries beside it in view. A narrower window takes
193
- * less, so the card and its padding fit across it; a map whose fit already
194
- * draws the entry this large opens on the fit, which shows it with the rest.
141
+ * The most a map opened on one entry zooms in (a 13px name draws at about
142
+ * 10px); a narrower window takes less, so the card and its padding fit.
195
143
  */
196
144
  export declare const GRAPH_CANVAS_FOCUS_ZOOM = 0.75;
197
145
  /**
198
146
  * The view a map opened on one entry takes: its card in the middle of `room`
199
- * (the part of the viewport the bars leave), at [GRAPH_CANVAS_FOCUS_ZOOM] or
200
- * at what fits the card and its padding across a narrower room. Null, which
201
- * opens on the fit, where the fit already draws the card as large.
147
+ * at up to [GRAPH_CANVAS_FOCUS_ZOOM], or null (open on the fit) where the fit
148
+ * already draws the card as large.
202
149
  */
203
150
  export declare function graphFocusView(item: CanvasRect, room: CanvasRect, fit: CanvasView): CanvasView | null;
204
151
  /**
@@ -273,10 +220,9 @@ export interface GraphCanvasProps {
273
220
  */
274
221
  chrome?: boolean | undefined;
275
222
  /**
276
- * The fullscreen control in the zoom bar. On by default, taking the map
277
- * itself; pass the element to take instead where the map opens something
278
- * beside it (a detail sheet), since a fullscreen element paints only its
279
- * own subtree.
223
+ * The fullscreen control in the zoom bar: on by default, taking the map;
224
+ * pass an element to take instead, since a fullscreen element paints only
225
+ * its own subtree.
280
226
  */
281
227
  fullscreen?: boolean | RefObject<HTMLElement | null> | undefined;
282
228
  /** A card pushed back, such as one a legend filter leaves out. */
@@ -304,11 +250,9 @@ export interface GraphCanvasProps {
304
250
  /** The view to open on instead of the fit. Read once, when the map is first placed. */
305
251
  initialView?: CanvasView | undefined;
306
252
  /**
307
- * The entry to open on instead of the fit, such as the one a link names:
308
- * drawn in the middle of the view at up to [GRAPH_CANVAS_FOCUS_ZOOM] (its
309
- * closed group's card, where it stands in one, which a selection then
310
- * opens in place). Read once, when the map is first placed; an entry the
311
- * map does not hold opens on the fit.
253
+ * The entry to open on instead of the fit, drawn in the middle at up to
254
+ * [GRAPH_CANVAS_FOCUS_ZOOM] (its closed group's card where it is in one).
255
+ * Read once, when the map is first placed; an unknown entry opens on the fit.
312
256
  */
313
257
  initialNode?: string | null | undefined;
314
258
  onViewChange?: ((view: CanvasView, viewport: CanvasSize) => void) | undefined;
@@ -323,9 +267,8 @@ export interface GraphWindow {
323
267
  }
324
268
  export declare function GraphCanvas({ label, bands, nodes, edges, groups, collapseAbove, openGroups, onOpenGroupsChange, selectedId, onSelect, trace, hoveredId, onHover, renderCard, dock, families, onFamiliesChange, tones, chrome, fullscreen, cardDimmed, overlay, controlsPlacement, controlsExtra, controlsBelow, controlsStart, overlayEnd, hint, ground, labels, minZoom, fitKey, initialView, initialNode, onViewChange, ref, className, }: GraphCanvasProps): import("react").JSX.Element;
325
269
  /**
326
- * THE WINDOW MOVES IN STEPS. What is mounted is the view with half a screen
327
- * of room on every side, and it is replaced only when the view leaves it or
328
- * shrinks far inside it, so a pan re-renders the map every half screen rather
329
- * than every frame.
270
+ * THE WINDOW MOVES IN STEPS: the view plus half a screen on every side,
271
+ * replaced only when the view leaves it or shrinks far inside it, so a pan
272
+ * re-renders the map every half screen rather than every frame.
330
273
  */
331
274
  export declare function graphWindow(was: GraphWindow | null, view: CanvasView, viewport: CanvasSize): GraphWindow;
@@ -1,8 +1,8 @@
1
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-2AKVGQ73.js';
1
+ export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-GDBROEQ5.js';
2
2
  import '../chunk-MY374UUD.js';
3
3
  import '../chunk-3JLG6KRU.js';
4
4
  import '../chunk-L6HUVA33.js';
5
- import '../chunk-MNVIIZQP.js';
5
+ import '../chunk-YADYQHHW.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-475DOAWF.js';
8
8
  import '../chunk-WSIJDWUG.js';
@@ -1,17 +1,7 @@
1
1
  /**
2
- * The layout of a layered map, as pure functions: lanes read left to right,
3
- * bands stacked under each other, groups inside a lane, and orthogonal edges.
4
- *
5
- * ONE ROW GRID PER BAND. Every card is the same size and stands in a cell of
6
- * its band's grid, a group's header takes a row of its own, and an empty lane
7
- * keeps the rows its message needs. Because every lane of a band shares the
8
- * rows, the gaps between rows are free of cards in every lane at once, so an
9
- * edge that crosses a lane runs along a gap and never through a card.
10
- *
11
- * LANES ARE INPUT. Nothing here assigns ranks: a cycle is an edge drawn back
12
- * across a lane, and the order inside a lane is a fixed number of barycentric
13
- * sweeps, ties broken by the caller's order, so the same input always gives
14
- * the same picture.
2
+ * The layout of a layered map, as pure functions. Every lane of a band shares
3
+ * one row grid, so an edge runs along a gap between rows, never through a card.
4
+ * Lanes are input, and the same input always gives the same picture.
15
5
  */
16
6
  import type { CanvasPoint, CanvasRect } from '../Canvas/geometry.js';
17
7
  /** A band of lanes, top to bottom; its lanes read left to right. */
@@ -27,10 +17,8 @@ export interface GraphLayoutNode {
27
17
  lane: string;
28
18
  group?: string | undefined;
29
19
  /**
30
- * The column of its lane it stands in, from 0, for a lane wider than one
31
- * column whose columns mean something (a depth: what calls stands left of
32
- * what is called). Read for a lane that holds no groups; elsewhere the lane
33
- * fills row by row.
20
+ * Its column (from 0) in a lane whose columns mean something, such as call
21
+ * depth. Read only for a lane with no groups; others fill row by row.
34
22
  */
35
23
  column?: number | undefined;
36
24
  }
@@ -223,9 +211,8 @@ export interface GraphTrunk {
223
211
  label: CanvasPoint;
224
212
  /**
225
213
  * The gap it crosses: from the upper cluster's foot (`top`) to the lower
226
- * one's head (`bottom`), with the level run between them at `y`, from `x1`
227
- * (under the upper cluster) to `x2` (over the lower one). Where its count may
228
- * be written: see [placeTrunkLabels].
214
+ * one's head (`bottom`), with its level run at `y` from `x1` to `x2`. Where
215
+ * its count may be written: see [placeTrunkLabels].
229
216
  */
230
217
  run: {
231
218
  x1: number;
@@ -243,21 +230,9 @@ export interface GraphTrunk {
243
230
  */
244
231
  export declare function graphTrunks(layout: Pick<GraphLayout, 'laneById'>, edges: readonly GraphLayoutEdge[], laneOf: (node: string) => string | undefined): GraphTrunk[];
245
232
  /**
246
- * WHERE EACH TRUNK'S COUNT IS WRITTEN, or null where nowhere in its gap is
247
- * clear. A count holds its size on screen, as the clusters' titles do, while
248
- * the gap between two bands shrinks with the zoom, so at its middle a count
249
- * came to stand on the lower clusters' titles, and two trunks leaving one
250
- * cluster wrote their counts on each other. Each count is tried along its
251
- * level run, the middle first, then just past either end of it, at the middle
252
- * of the gap, hung from the upper cluster's foot, or stood on the lower one's
253
- * head, and takes the first place that covers no title, no card (`obstacles`,
254
- * in world units) and no count already placed: a trunk that drops straight
255
- * down first, since it has one place across, then the largest counts. It may
256
- * cross a cluster's outline, never what is drawn inside one. A count with nowhere clear is not
257
- * written: its trunk still is, and the legend says what a trunk is.
258
- *
259
- * `sizes` is each count's box in world units, by trunk key, as it is drawn at
260
- * the zoom the map stands at.
233
+ * Where each trunk's count is written, or null where no place in its gap is
234
+ * clear of titles, cards (`obstacles`, world units) and counts already placed.
235
+ * `sizes` is each count's box in world units at the map's zoom, by trunk key.
261
236
  */
262
237
  export declare function placeTrunkLabels(trunks: readonly GraphTrunk[], sizes: ReadonlyMap<string, {
263
238
  width: number;
@@ -1,11 +1,11 @@
1
1
  import '../chunk-FFMCMSJB.js';
2
- export { HuePicker, HueSwatch } from '../chunk-PFTUWDZN.js';
2
+ export { HuePicker, HueSwatch } from '../chunk-FIH5EMJF.js';
3
3
  import '../chunk-AYKXMIOR.js';
4
- import '../chunk-V2FD4RPS.js';
5
- import '../chunk-JY6WSDUG.js';
4
+ import '../chunk-BGPHGCDT.js';
5
+ import '../chunk-AIQHJ2HF.js';
6
6
  import '../chunk-7F3OPUM5.js';
7
7
  import '../chunk-QRE6JCHS.js';
8
- import '../chunk-EGHOU7U2.js';
8
+ import '../chunk-WGAEHKGW.js';
9
9
  import '../chunk-M2M6ZD7P.js';
10
10
  import '../chunk-XSPCITPN.js';
11
11
  import '../chunk-2YTOOH3A.js';
@@ -3,10 +3,8 @@ export type InlineCodeVariant =
3
3
  /** An identifier, a path, a config key, a header name. */
4
4
  'default'
5
5
  /**
6
- * A `${NAME}` pointing at a secret or an environment variable. Ligatures are
7
- * off everywhere in this component, and this variant holds `${` and `}` to
8
- * the name: the chip moves to the next line whole where it fits there, and
9
- * breaks inside the name only where it does not fit on a line of its own.
6
+ * A `${NAME}` pointing at a secret or an environment variable: `${` and `}`
7
+ * hold to the name, so the chip moves whole where it fits on the next line.
10
8
  */
11
9
  | 'reference';
12
10
  export type InlineCodeTone =
@@ -24,11 +22,8 @@ export interface InlineCodeProps extends HTMLAttributes<HTMLElement> {
24
22
  /** One line, cut with an ellipsis, for a chip inside a dense row. */
25
23
  truncate?: boolean | undefined;
26
24
  /**
27
- * Kept on one line: a short token a reader reads as one (a cron
28
- * expression, an event type, a version). The chip moves to the next line
29
- * whole rather than splitting, and breaks only in a box no line of which
30
- * can hold it. Leave it off for a URL or a path, which has to wrap or it
31
- * tears the sentence around it apart.
25
+ * Kept on one line, for a short token read as one (a cron expression, a
26
+ * version); it breaks only where no line can hold it. Not for a URL or path.
32
27
  */
33
28
  whole?: boolean | undefined;
34
29
  /**
@@ -40,24 +35,8 @@ export interface InlineCodeProps extends HTMLAttributes<HTMLElement> {
40
35
  close?: string | undefined;
41
36
  }
42
37
  /**
43
- * One identifier inside a sentence.
44
- *
45
- * IT WRAPS, and that is the whole reason it is a component rather than a
46
- * `code` element with a class. These chips carry public base URLs and config
47
- * paths, and a URL is ONE UNBREAKABLE WORD to a line breaker: without an
48
- * explicit break opportunity the chip is pushed whole onto its own line and
49
- * the sentence around it is torn into fragments.
50
- *
51
- * A PATH BREAKS AT ITS SEPARATORS (`pathBreaks`): a break opportunity follows
52
- * every `/`, so a line ends at "…/v1/" rather than at "…/v1/report" with an
53
- * "s" carried over. Breaking at any character is the last resort, for one
54
- * run between separators that no line can hold.
55
- *
56
- * ITS GROUND HUGS THE PUNCTUATION AROUND IT. Where a caller hands over the
57
- * marks that open and close around the chip (`open`, `close`), the ground
58
- * gives up its inset on that side, so "set." does not read as "set ." with a
59
- * space before the full stop.
60
- *
61
- * For a block of code, several lines of it, use `CodeBlock`.
38
+ * One identifier inside a sentence. It wraps, a path at its separators
39
+ * (`pathBreaks`), so a long URL never tears the sentence around it apart.
40
+ * For several lines of code, use `CodeBlock`.
62
41
  */
63
42
  export declare function InlineCode({ variant, tone, truncate, whole, open, close, className, children, ...rest }: InlineCodeProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- export { InlineCode } from '../chunk-XHNV272L.js';
1
+ export { InlineCode } from '../chunk-W4UJWFCZ.js';
2
2
  import '../chunk-HZXS5CEL.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,80 @@
1
+ /*
2
+ * One identifier inside a sentence: a mono chip on the inset surface.
3
+ */
4
+
5
+ .crewlet-inline-code {
6
+ /* Relative, not a step off the type scale, so the chip sits in its
7
+ sentence's register; the reduction offsets the mono face's larger size. */
8
+ --crewlet-inline-code-size: 0.92em;
9
+ font-family: var(--font-family-mono);
10
+ /* An identifier is read character by character; a ligature joins two of them
11
+ into a drawing of something nobody typed. */
12
+ font-variant-ligatures: none;
13
+ font-size: var(--crewlet-inline-code-size);
14
+ background: var(--color-surface-inset);
15
+ border-radius: var(--radius-xs);
16
+ padding: 1px var(--spacing-1);
17
+ color: var(--color-text-secondary);
18
+ /* Last resort for a run between the `/` breaks (`pathBreaks`) that no line
19
+ can hold, which would otherwise push the chip past its box. */
20
+ overflow-wrap: anywhere;
21
+ /* SLICED where it breaks, not cloned: a browser leaves a cloned inset out of
22
+ line breaking, so each broken line ran up to the inset past its box. */
23
+ box-decoration-break: slice;
24
+ }
25
+
26
+ /*
27
+ * A `${NAME}` pointer: `${` and `}` hold to the name's first and last
28
+ * characters. The name itself may still break where the chip cannot fit a line.
29
+ */
30
+ .crewlet-inline-code__end {
31
+ white-space: nowrap;
32
+ }
33
+
34
+ /*
35
+ * Inside a Callout or a field error the chip takes that message's ink only,
36
+ * keeping its own ground and inset (status inks hold 4.5:1 on that ground).
37
+ */
38
+ .crewlet-inline-code--inherit {
39
+ color: inherit;
40
+ }
41
+
42
+ /*
43
+ * Beside a mark the caller handed over (`open`, `close`) the ground keeps only
44
+ * a hair of its inset, so the mark sits where it would after a word.
45
+ */
46
+ .crewlet-inline-code--opened {
47
+ padding-inline-start: 1px;
48
+ }
49
+
50
+ .crewlet-inline-code--closed {
51
+ padding-inline-end: 1px;
52
+ }
53
+
54
+ /* A whole chip and the punctuation around it are one atomic box, so a line
55
+ never breaks between "(" and the chip (peelPunctuation). */
56
+ .crewlet-inline-code-bound {
57
+ display: inline-block;
58
+ max-width: 100%;
59
+ overflow-wrap: anywhere;
60
+ }
61
+
62
+ /*
63
+ * A short token read as one: an atomic box that moves to the next line whole,
64
+ * and breaks inside only where no line can hold it (a nested list, a cell).
65
+ * `line-height: normal` gives the box the running chip's own height.
66
+ */
67
+ .crewlet-inline-code--whole {
68
+ display: inline-block;
69
+ max-width: 100%;
70
+ line-height: normal;
71
+ }
72
+
73
+ .crewlet-inline-code--truncate {
74
+ display: inline-block;
75
+ max-width: 100%;
76
+ overflow: hidden;
77
+ text-overflow: ellipsis;
78
+ white-space: nowrap;
79
+ vertical-align: bottom;
80
+ }
@@ -41,30 +41,8 @@ export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
41
41
  children?: ReactNode;
42
42
  }
43
43
  /**
44
- * A link that reads as one.
45
- *
46
- * WHY IT IS NOT A `Text` WITH A COLOUR. The registers used to be utility
47
- * classes, and a caption-sized link spelled with the caption class took the
48
- * caption's quiet ink, which won over the anchor rule: four real navigations
49
- * rendered as dim static micro-text that a reader could only find by hovering.
50
- * A link is a different thing from a piece of text, so it is a different
51
- * component, and `size="caption"` sets the caption's SIZE without its ink.
52
- *
53
- * `subtle` is for a link whose words are an identity rather than an
54
- * instruction, a seat's name in a row, say. It is still underlined on hover
55
- * and still takes the focus ring, because a link a reader cannot find is not
56
- * quieter, it is hidden.
57
- *
58
- * `quiet` is for a reference that sits in a column of rows or inside a
59
- * sentence, where every row drawing a full accent link would turn the column
60
- * into a column of links. It keeps an ink of its own, measured to 4.5:1 on
61
- * every surface and pressed row, so it is still found by colour and by its
62
- * place, and it keeps the focus ring. It draws no underline even on hover:
63
- * the ink stepping up to the accent is the signal that it is live.
64
- *
65
- * `size="inherit"` sets a link inside a sentence, and there a navigation or an
66
- * identity is UNDERLINED AT REST: among other words its ink alone does not set
67
- * it apart (the accent ink against secondary text is 1.18:1 in the dark
68
- * palette, where running text asks 3:1 or a mark that is not colour).
44
+ * A link that reads as one: `size="caption"` takes the caption's size, not its
45
+ * ink. Inside a sentence (`size="inherit"`) a `default` or `subtle` link is
46
+ * underlined at rest, since its ink alone does not set it apart from the words.
69
47
  */
70
48
  export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,3 +1,3 @@
1
- export { Link } from '../chunk-RMGPZQVJ.js';
1
+ export { Link } from '../chunk-UTKI2SAM.js';
2
2
  import '../chunk-RRRK2KB6.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -1,10 +1,6 @@
1
1
  /*
2
- * A link, in the three registers a console needs: a navigation, an identity
3
- * and a quiet reference.
4
- *
5
- * The ink is the accent's INK step, not the accent fill. The fill is a mark
6
- * and clears 3:1; text has to clear 4.5:1, and at caption size it is exactly
7
- * the place a fill-as-text fails.
2
+ * A link: a navigation, an identity or a quiet reference. The ink is the
3
+ * accent's ink step (4.5:1 for text), not the accent fill (3:1, for marks).
8
4
  */
9
5
 
10
6
  .crewlet-link {
@@ -34,12 +30,8 @@
34
30
  }
35
31
 
36
32
  /*
37
- * A reference among other words. Its own ink sits between the accent ink and
38
- * the secondary text, so a column of rows that each name a task does not read
39
- * as a column of links, and the hover steps it up to the full accent ink with
40
- * no underline. The ink is a token rather than a mix of two, because a mix is
41
- * a colour nobody measured; this one clears 4.5:1 on every surface and on a
42
- * pressed row.
33
+ * A reference among other words: a measured token between the accent ink and
34
+ * secondary text (4.5:1 on every surface and pressed row); hover steps it up.
43
35
  */
44
36
  .crewlet-link--quiet {
45
37
  color: var(--color-text-link-quiet);
@@ -59,12 +51,8 @@
59
51
  text-decoration: underline;
60
52
  }
61
53
 
62
- /*
63
- * FORCED COLORS paints every link in LinkText whatever its state, so the step
64
- * up to the accent ink cannot be seen there, and a hover with no underline is
65
- * no hover at all. The rule under the words is the one mark the mode leaves to
66
- * the author, so it is where the quiet variant's hover goes in that mode.
67
- */
54
+ /* Forced colors paints every link in LinkText, so the quiet hover there is the
55
+ underline. */
68
56
  @media (forced-colors: active) {
69
57
  .crewlet-link--quiet:hover {
70
58
  text-decoration: underline;
@@ -76,12 +64,8 @@
76
64
  }
77
65
 
78
66
  /*
79
- * Set inside a sentence: the sentence's own size, whatever it is, and
80
- * UNDERLINED AT REST. Among other words its ink alone does not set it apart:
81
- * the accent ink against secondary text is 1.18:1 in the dark palette, where a
82
- * link in running text needs 3:1 against the words around it or a mark that is
83
- * not colour. The underline is that mark, in every palette. A quiet reference
84
- * keeps its own rule (never underlined), and a plain one its own ink.
67
+ * Inside a sentence: its size. Default and subtle links are underlined at
68
+ * rest, since the accent ink on secondary text is 1.18:1 in the dark palette.
85
69
  */
86
70
  .crewlet-link--inherit {
87
71
  font-size: inherit;
@@ -105,10 +89,8 @@
105
89
  }
106
90
 
107
91
  /*
108
- * A whole row is the target. No underline, because the row's own hover says
109
- * it is live, and the ring is drawn INSIDE: a row inside a clipping scroller
110
- * loses an outset ring to the scroller's edge and to the next row painted
111
- * over it.
92
+ * A whole row is the target: no underline, and the ring is drawn inside so a
93
+ * clipping scroller and the next row do not hide it.
112
94
  */
113
95
  .crewlet-link--block {
114
96
  display: block;
@@ -125,13 +107,8 @@
125
107
  }
126
108
 
127
109
  .crewlet-link__external {
128
- /*
129
- * Sits on the text baseline beside the last word rather than under it.
130
- * INLINE, said here, because the document baseline sets every `svg` to
131
- * `display: block`: as a block the mark broke the line inside the link and
132
- * stood alone on a row of its own under the words, and the vertical-align
133
- * below did nothing at all.
134
- */
110
+ /* Inline, said here: the document baseline sets every `svg` to block, which
111
+ would break the line inside the link. */
135
112
  display: inline-block;
136
113
  vertical-align: -0.125em;
137
114
  margin-inline-start: var(--spacing-1);
@@ -1,6 +1,6 @@
1
- export { LinkInterstitial, openExternal } from '../chunk-6POROC4M.js';
1
+ export { LinkInterstitial, openExternal } from '../chunk-ZO3MXMAC.js';
2
2
  import '../chunk-VSD3536L.js';
3
- import '../chunk-XHNV272L.js';
3
+ import '../chunk-W4UJWFCZ.js';
4
4
  import '../chunk-HZXS5CEL.js';
5
5
  import '../chunk-RCQLXOGS.js';
6
6
  import '../chunk-M2M6ZD7P.js';
@@ -1,11 +1,11 @@
1
- export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-NMBGVHGQ.js';
1
+ export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-GSLN7WL2.js';
2
2
  import '../chunk-NPEI2QAN.js';
3
3
  import '../chunk-7U4V36SB.js';
4
- import '../chunk-V2FD4RPS.js';
5
- import '../chunk-JY6WSDUG.js';
4
+ import '../chunk-BGPHGCDT.js';
5
+ import '../chunk-AIQHJ2HF.js';
6
6
  import '../chunk-7F3OPUM5.js';
7
7
  import '../chunk-QRE6JCHS.js';
8
- import '../chunk-EGHOU7U2.js';
8
+ import '../chunk-WGAEHKGW.js';
9
9
  import '../chunk-M2M6ZD7P.js';
10
10
  import '../chunk-XSPCITPN.js';
11
11
  import '../chunk-2YTOOH3A.js';
@@ -41,26 +41,21 @@ export interface MentionMenuProps {
41
41
  */
42
42
  listRef?: Ref<HTMLUListElement> | undefined;
43
43
  /**
44
- * Whether the reader has taken the list over with the arrow keys. Until then
45
- * the active row is drawn quietly, as what Enter or Tab would take, and the
46
- * strong highlight arrives with the first arrow press, which commits to that
47
- * row rather than moving past it. True by default.
44
+ * Whether the reader has taken the list over with the arrow keys; until then
45
+ * the active row is drawn quietly. True by default.
48
46
  */
49
47
  keyed?: boolean | undefined;
50
48
  /** The foot. Left out, it carries the keyboard hints; `null` draws none. */
51
49
  footer?: ReactNode;
52
50
  labels?: Partial<MentionMenuLabels> | undefined;
53
51
  /**
54
- * `chat` is a conversation's message box's list: a compact card (the small
55
- * corner, at most 480px wide) with no heading, and 32px rows whose face
56
- * column fits an extra small `Avatar` (20px). `default` is today's list.
52
+ * `chat` is a conversation's message box's list: a compact card with no
53
+ * heading and 32px rows sized for an extra small `Avatar`.
57
54
  */
58
55
  appearance?: MentionMenuAppearance | undefined;
59
56
  /**
60
- * The trigger character's distance in px from the left edge of the box the
61
- * menu is placed in (`caretPoint`). Given, the card moves along so its face
62
- * column stands under the trigger, and stays inside that box. Left out, the
63
- * card starts at the box's left edge.
57
+ * The trigger character's distance in px from the left edge of the menu's
58
+ * box (`caretPoint`); the card moves to stand under it, inside that box.
64
59
  */
65
60
  anchor?: number | undefined;
66
61
  className?: string | undefined;
@@ -68,26 +63,9 @@ export interface MentionMenuProps {
68
63
  /** The list's look: `default`, or `chat`, a conversation's message box's list. */
69
64
  export type MentionMenuAppearance = 'default' | 'chat';
70
65
  /**
71
- * The suggestions a composer opens on "@" or "#": people and agents with
72
- * their faces and what they are doing, rooms with their glyphs, and everyone
73
- * in the room.
74
- *
75
- * A LISTBOX THE FIELD OWNS. Focus stays in the message box, which points at
76
- * the highlighted row with `aria-activedescendant`, so typing goes on while
77
- * the list narrows. `useListbox` gives the keys (the arrows wrap, Enter and
78
- * Tab take the row, Escape closes the list and nothing else); the host spreads
79
- * `aria-autocomplete="list"`, `aria-controls` and `aria-activedescendant` on
80
- * its field, and finds the word being typed with `mentionQuery`. THE FIELD
81
- * STAYS THE TEXTBOX a textarea is: ARIA in HTML allows no `combobox` role on
82
- * a textarea (axe aria-allowed-role), and a textbox takes all three.
83
- *
84
- * DRAWN ABOVE THE COMPOSER, never over what is being typed: it is placed
85
- * against the nearest positioned box round the field, as wide as the field
86
- * and no wider than a list is read (`--crewlet-mention-menu-width`). With an
87
- * `anchor` (from `caretPoint`) it moves along to stand under the trigger.
88
- *
89
- * ITS ROWS ARE `PersonRow`s, so a face, a name and its detail sit where every
90
- * other list of people in the product puts them.
66
+ * The suggestions a composer opens on "@" or "#": a listbox the field owns via
67
+ * `aria-activedescendant`, so focus and typing stay in the field (a textarea
68
+ * stays a textbox, never a combobox). Drawn above the composer.
91
69
  */
92
70
  export declare function MentionMenu({ id, label, options, active, onPick, onHover, listRef, keyed, footer, labels: overrides, appearance, anchor, className, }: MentionMenuProps): import("react").JSX.Element;
93
71
  /** The mention being typed at the caret. */