@crewlethq/ui 0.129.0 → 0.129.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.
@@ -1,4 +1,4 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-XZB53C7U.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-4FKHPUVR.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-HF5L56YQ.js';
4
4
  import '../chunk-GBKBME7Q.js';
@@ -9,8 +9,8 @@ import '../chunk-475DOAWF.js';
9
9
  import '../chunk-WSIJDWUG.js';
10
10
  import '../chunk-W3A6NBUM.js';
11
11
  import '../chunk-KFTVPWG2.js';
12
- import '../chunk-DOY3KC6I.js';
13
12
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
13
+ import '../chunk-DOY3KC6I.js';
14
14
  import '../chunk-ARZGEHWE.js';
15
15
  import '../chunk-XZY6S3UC.js';
16
16
  import '../chunk-NN44J7BP.js';
@@ -63,6 +63,8 @@
63
63
  * or zoomed, a resize keeps their view and only keeps the content
64
64
  * reachable. It is opt in because a screen that chooses its own views
65
65
  * after a fit (a chart held at a legible zoom) decides its own refits.
66
+ * The same "untouched" is what `restoreView` asks: a fit it gives back is
67
+ * the fit of the content as it stands then, never the old fit's transform.
66
68
  * - MOTION ONLY ON REQUEST. A fit, a zoom button or a reveal eases; a drag, a
67
69
  * pinch, a wheel and a relayout anchor never do, and under reduced motion
68
70
  * nothing does. An easing lasts as long as its transition: a clamp that
@@ -102,8 +104,18 @@ export interface CanvasHandle {
102
104
  zoomBy(factor: number): void;
103
105
  /** Zoom about the viewport centre to one scale, 1 being actual size, within the limits. */
104
106
  zoomTo(scale: number): void;
105
- /** Pan the least distance that brings a world rectangle into view. */
106
- reveal(target: CanvasRect): void;
107
+ /**
108
+ * Pan the least distance that brings a world rectangle into view, clear of
109
+ * the end bar, as a fit is (see [CanvasProps.overlayEnd]).
110
+ *
111
+ * `outside` is where a rectangle lying WHOLLY outside the view is brought:
112
+ * `edge`, the default, just inside the nearest edge, for a reader stepping
113
+ * to the next item; `centre`, the middle of the view at the same zoom, for a
114
+ * reader SENT to an item somewhere else, and that move travels rather than
115
+ * corrects. A rectangle partly in view moves the least distance either way.
116
+ * See [revealView].
117
+ */
118
+ reveal(target: CanvasRect, outside?: 'edge' | 'centre'): void;
107
119
  /** Keep a node still on screen across a relayout: see `anchorView`. */
108
120
  anchor(before: CanvasPoint, after: CanvasPoint): void;
109
121
  /**
@@ -138,7 +150,18 @@ export interface CanvasHandle {
138
150
  * Calling it twice keeps the first view, as [focusRegion] does.
139
151
  */
140
152
  rememberView(): void;
141
- /** Ease back to the view [focusRegion] left, if it has not been given back already. */
153
+ /**
154
+ * Ease back to the view [focusRegion] or [rememberView] left, if it has not
155
+ * been given back already.
156
+ *
157
+ * A FIT IS GIVEN BACK AS A FIT. Where the view left was the untouched fit (a
158
+ * fit nobody has moved since, as `refitOnResize` counts one), what comes
159
+ * back is the fit of the content as it stands NOW rather than the old fit's
160
+ * zoom and pan: a fit says "all of the content", and a surface that changed
161
+ * the content while it was open (a node added in it, a branch opened for
162
+ * it) and gave back the old transform cut the new content off at the edges.
163
+ * A view the reader moved is theirs, and comes back exactly.
164
+ */
142
165
  restoreView(): void;
143
166
  /** A world rectangle in viewport coordinates, for positioning an overlay. */
144
167
  screenRect(target: CanvasRect): CanvasRect;
@@ -25,7 +25,9 @@
25
25
  * fit even at the smallest zoom it aligns to the TOP, where a tree's root
26
26
  * is, rather than centring the root off screen.
27
27
  * - A REVEAL MOVES AS LITTLE AS IT CAN: nothing when the target is already in
28
- * view, otherwise just enough to bring it inside the padding.
28
+ * view, otherwise just enough to bring it inside the padding. The one
29
+ * exception is asked for by name: a target a reader is SENT to that none of
30
+ * the view shows is drawn in its middle (see [revealView]).
29
31
  */
30
32
  export interface CanvasPoint {
31
33
  x: number;
@@ -189,8 +191,20 @@ export declare function clampPan(view: CanvasView, content: CanvasRect, viewport
189
191
  * screens wide, and a fit that stops at a quarter clips it on every side.
190
192
  */
191
193
  export declare function fitView(content: CanvasRect, viewport: CanvasSize, padding?: number, floor?: number): CanvasView;
192
- /** The smallest pan that brings world rectangle `target` inside the padded viewport. */
193
- export declare function revealView(view: CanvasView, target: CanvasRect, viewport: CanvasSize, padding?: number): CanvasView;
194
+ /**
195
+ * The smallest pan that brings world rectangle `target` inside the padded
196
+ * viewport, at the same zoom.
197
+ *
198
+ * `outside` is where a target lying WHOLLY outside the viewport is brought.
199
+ * `edge`, the default, is the least pan, which leaves it just inside the edge
200
+ * it came in by: right for a reader stepping to the next item, which is
201
+ * beside the one before. `centre` draws its middle on the viewport's middle:
202
+ * for a reader SENT to an item somewhere else (after an operation, an undo or
203
+ * a search), whom the least pan left against the edge with nothing of the
204
+ * content around it on that side. A target partly in view moves the least
205
+ * distance either way, and one in view does not move.
206
+ */
207
+ export declare function revealView(view: CanvasView, target: CanvasRect, viewport: CanvasSize, padding?: number, outside?: 'edge' | 'centre'): CanvasView;
194
208
  /**
195
209
  * The view that draws world point `after` where `before` was drawn.
196
210
  *
@@ -1,4 +1,4 @@
1
- export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-ELZSD6FJ.js';
1
+ export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-MNVIIZQP.js';
2
2
  import '../chunk-X4HBZSXA.js';
3
3
  import '../chunk-VBBLHS2Y.js';
4
4
  import '../chunk-M2M6ZD7P.js';
@@ -1,8 +1,8 @@
1
- export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-NNMI7FAI.js';
1
+ export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-QM2QFKIA.js';
2
2
  import '../chunk-YJPQJVRJ.js';
3
- import '../chunk-N47PA4V4.js';
3
+ import '../chunk-AKCIF6XN.js';
4
4
  import '../chunk-NPEI2QAN.js';
5
- import '../chunk-ELZSD6FJ.js';
5
+ import '../chunk-MNVIIZQP.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-VBBLHS2Y.js';
8
8
  import '../chunk-M2M6ZD7P.js';
@@ -1,6 +1,6 @@
1
- export { CanvasToolbar, toolForKey } from '../chunk-N47PA4V4.js';
1
+ export { CanvasToolbar, toolForKey } from '../chunk-AKCIF6XN.js';
2
2
  import '../chunk-NPEI2QAN.js';
3
- import '../chunk-ELZSD6FJ.js';
3
+ import '../chunk-MNVIIZQP.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-VBBLHS2Y.js';
6
6
  import '../chunk-M2M6ZD7P.js';
@@ -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-UGEFJGJ7.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-2AKVGQ73.js';
2
2
  import '../chunk-MY374UUD.js';
3
3
  import '../chunk-3JLG6KRU.js';
4
4
  import '../chunk-L6HUVA33.js';
5
- import '../chunk-ELZSD6FJ.js';
5
+ import '../chunk-MNVIIZQP.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-475DOAWF.js';
8
8
  import '../chunk-WSIJDWUG.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-Q6QKY7EZ.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-KQFOPY2P.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
@@ -167,6 +167,19 @@ export interface TreeCardContext {
167
167
  * that promised these there would be a promise kept by doing nothing.
168
168
  */
169
169
  export interface TreeCanvasHandle extends TreeViewHandle {
170
+ /**
171
+ * Open every collapsed ancestor of a node, focus it, and bring it into view.
172
+ *
173
+ * A CALLER SENDING FOCUS IS SENDING THE READER SOMEWHERE: to the node an
174
+ * operation made or moved, to the one an undo or a search names. So a node
175
+ * that the view does not show at all is brought to the MIDDLE of the view,
176
+ * at the reader's zoom, with the chart around it on every side; the least
177
+ * pan left it against the edge it came in by, which after an add was the
178
+ * edge of the pane with nothing of the chart beyond it. A node partly in
179
+ * view moves the least distance, and one in view does not move. The tree's
180
+ * own arrow keys keep the least pan: a step lands beside the node before.
181
+ */
182
+ focusNode(id: string): void;
170
183
  /**
171
184
  * Ease onto one node's own card, remembering the view it left.
172
185
  *
@@ -202,9 +215,19 @@ export interface TreeCanvasHandle extends TreeViewHandle {
202
215
  * WHAT THE CHART DOES ABOUT IT. It opens `parent` if it is closed, eases onto
203
216
  * the ghost with the room a form needs rather than the room a label needs
204
217
  * ([CANVAS_COMPOSE_CONTEXT]), moves focus to the first control inside it, and
205
- * on Escape calls `onCancel`. When it goes, the view the reader left is given
206
- * back and focus returns to `parent`. Under `prefers-reduced-motion` every
218
+ * on Escape calls `onCancel`. When it goes, focus returns to `parent` and the
219
+ * view the reader left is given back. Under `prefers-reduced-motion` every
207
220
  * part of that still happens; only the animations do not.
221
+ *
222
+ * THE VIEW COMES BACK ON THE CHART THE COMPOSITION LEFT. An add ends with the
223
+ * node it made in `nodes` and the ghost gone, in one commit, and the new card
224
+ * is measured a frame later; the view is given back on the first layout that
225
+ * places it, not on the ghost's. A reader who had not moved the fit gets the
226
+ * fit of the chart as it now stands, with the new node and anything the
227
+ * composition opened for it inside; a reader who had moved the view gets it
228
+ * back exactly. A caller that then sends focus to the node it made
229
+ * (`focusNode`, as it does after any operation) has it brought to the middle
230
+ * of that view when the view does not show it.
208
231
  */
209
232
  export interface TreeComposing {
210
233
  /**
@@ -1,6 +1,6 @@
1
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-R7PMTSQD.js';
1
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-Q4JX6UO7.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-ELZSD6FJ.js';
3
+ import '../chunk-MNVIIZQP.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-SK4BIFTG.js';
6
6
  import '../chunk-COS6LJ4K.js';
@@ -1,7 +1,7 @@
1
1
  import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
2
2
  import { FullscreenToggle } from './chunk-3JLG6KRU.js';
3
3
  import { FilterChip } from './chunk-L6HUVA33.js';
4
- import { CANVAS_FIT_PADDING, Canvas } from './chunk-ELZSD6FJ.js';
4
+ import { CANVAS_FIT_PADDING, Canvas } from './chunk-MNVIIZQP.js';
5
5
  import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-FIX72ZEC.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { ShortcutTip } from './chunk-ELZSD6FJ.js';
2
+ import { ShortcutTip } from './chunk-MNVIIZQP.js';
3
3
  import { IconButton } from './chunk-X5YI6E5X.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './CanvasToolbar-EM5EVZED.css';
@@ -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-2TWJE7OR.js').then(
12
+ loading ??= import('./Editor-MEPTWBY5.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -102,12 +102,15 @@ function fitView(content, viewport, padding = CANVAS_FIT_PADDING, floor = CANVAS
102
102
  const y = drawnHeight <= roomY ? (viewport.height - drawnHeight) / 2 - content.y * k : padding - content.y * k;
103
103
  return { x, y, k };
104
104
  }
105
- function revealView(view, target, viewport, padding = CANVAS_REVEAL_PADDING) {
105
+ function revealView(view, target, viewport, padding = CANVAS_REVEAL_PADDING, outside = "edge") {
106
106
  const drawn = screenRect(view, target);
107
+ const off = (start, length, room) => start + length <= 0 || start >= room;
108
+ const centre = outside === "centre" && (off(drawn.x, drawn.width, viewport.width) || off(drawn.y, drawn.height, viewport.height));
107
109
  const axis = (offset, start, length, room) => {
108
110
  const low = padding;
109
111
  const high = room - padding;
110
112
  if (length > high - low) return offset + (low - start);
113
+ if (centre) return offset + (room / 2 - (start + length / 2));
111
114
  if (start < low) return offset + (low - start);
112
115
  if (start + length > high) return offset - (start + length - high);
113
116
  return offset;
@@ -311,9 +314,8 @@ function Canvas({
311
314
  if (!ready) return;
312
315
  const resized = sizeSeen.current.width !== size.width || sizeSeen.current.height !== size.height;
313
316
  sizeSeen.current = size;
314
- const was = fitted.current;
315
317
  const now = viewNow.current;
316
- const untouched = was !== null && was.x === now.x && was.y === now.y && was.k === now.k;
318
+ const untouched = sameView(fitted.current, now);
317
319
  if (refitOnResize && resized && untouched && content) {
318
320
  apply(fitOf(content), false);
319
321
  fitted.current = viewNow.current;
@@ -355,28 +357,43 @@ function Canvas({
355
357
  const factor = scale / viewNow.current.k;
356
358
  apply(zoomAt(viewNow.current, factor, { x: width / 2, y: height / 2 }, limitsNow.current), "near");
357
359
  },
358
- reveal: (target) => {
359
- const next = revealView(viewNow.current, target, sizeNow.current);
360
- if (next.x !== viewNow.current.x || next.y !== viewNow.current.y) apply(next, "near");
360
+ reveal: (target, outside = "edge") => {
361
+ const { top, bottom } = bandNow.current;
362
+ const room2 = { width: sizeNow.current.width, height: Math.max(0, sizeNow.current.height - top - bottom) };
363
+ const now = viewNow.current;
364
+ const inRoom = (how) => {
365
+ const next2 = revealView({ ...now, y: now.y - top }, target, room2, CANVAS_REVEAL_PADDING, how);
366
+ return { ...next2, y: next2.y + top };
367
+ };
368
+ const least = inRoom("edge");
369
+ const next = outside === "edge" ? least : inRoom(outside);
370
+ if (next.x === now.x && next.y === now.y) return;
371
+ apply(next, next.x === least.x && next.y === least.y ? "near" : "travel");
361
372
  },
362
373
  anchor: (before, after) => apply(anchorView(viewNow.current, before, after), false),
363
374
  rememberView: () => {
364
- left.current ??= viewNow.current;
375
+ left.current ??= { view: viewNow.current, fit: sameView(fitted.current, viewNow.current) };
365
376
  },
366
377
  focusRegion: (target, context, ceiling) => {
367
- left.current ??= viewNow.current;
378
+ left.current ??= { view: viewNow.current, fit: sameView(fitted.current, viewNow.current) };
368
379
  apply(regionView(target, sizeNow.current, limitsNow.current, context, ceiling), "travel");
369
380
  },
370
381
  restoreView: () => {
371
382
  const was = left.current;
372
383
  if (!was) return;
373
384
  left.current = null;
374
- apply(was, "travel");
385
+ const bounds = contentNow.current;
386
+ if (was.fit && bounds) {
387
+ apply(fitOf(bounds), "travel");
388
+ fitted.current = viewNow.current;
389
+ return;
390
+ }
391
+ apply(was.view, "travel");
375
392
  },
376
393
  screenRect: (target) => screenRect(viewNow.current, target),
377
394
  worldAt: (client) => toWorld(viewNow.current, local({ clientX: client.x, clientY: client.y }))
378
395
  }),
379
- [apply, fitNow, local]
396
+ [apply, fitNow, fitOf, local]
380
397
  );
381
398
  useEffect(() => {
382
399
  const el = viewport.current;
@@ -679,6 +696,9 @@ function Canvas({
679
696
  }
680
697
  );
681
698
  }
699
+ function sameView(fit, view) {
700
+ return fit !== null && fit.x === view.x && fit.y === view.y && fit.k === view.k;
701
+ }
682
702
  function gridOf(view) {
683
703
  const k = view.k > 0 && Number.isFinite(view.k) ? view.k : 1;
684
704
  return { scale: k * 2 ** -Math.floor(Math.log2(k)), x: view.x, y: view.y };
@@ -1,5 +1,5 @@
1
1
  import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
2
- import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-ELZSD6FJ.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-MNVIIZQP.js';
3
3
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
4
4
  import { focusables } from './chunk-EDPMHSLZ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -146,6 +146,8 @@ function TreeCanvas({
146
146
  const composeParent = composing?.parent ?? null;
147
147
  const eased = useRef(null);
148
148
  const returnTo = useRef(null);
149
+ const remembered = useRef(false);
150
+ const restoring = useRef(false);
149
151
  const takeFocus = useRef(false);
150
152
  const composeEl = useRef(null);
151
153
  const { measure, sizes, measured } = useMeasuredSizes();
@@ -239,6 +241,19 @@ function TreeCanvas({
239
241
  useLayoutEffect(() => {
240
242
  shownPositions.current = positions;
241
243
  }, [positions]);
244
+ useLayoutEffect(() => {
245
+ if (composeId !== null) {
246
+ restoring.current = false;
247
+ return;
248
+ }
249
+ if (remembered.current) {
250
+ remembered.current = false;
251
+ restoring.current = true;
252
+ }
253
+ if (!restoring.current || !placed || !layout) return;
254
+ restoring.current = false;
255
+ canvas.current?.restoreView();
256
+ }, [composeId, placed, layout]);
242
257
  const fittedFor = useRef(fitKey);
243
258
  const placedOnce = useRef(false);
244
259
  useLayoutEffect(() => {
@@ -267,10 +282,10 @@ function TreeCanvas({
267
282
  };
268
283
  const pendingFocus = useRef(null);
269
284
  const focusNow = useCallback(
270
- (id) => {
285
+ (id, outside) => {
271
286
  const el = items.current.get(id);
272
287
  const placed2 = layout?.byId.get(cardOf(id));
273
- if (!el || !el.isConnected || !placed2) return false;
288
+ if (!el || !el.isConnected || !placed2 || !drawn?.byId.has(cardOf(id))) return false;
274
289
  el.focus({ preventScroll: true });
275
290
  const card2 = el.closest(".crewlet-tree-canvas__card");
276
291
  const top = card2 ? offsetWithin(el, card2) : 0;
@@ -280,23 +295,23 @@ function TreeCanvas({
280
295
  width: placed2.width,
281
296
  height: el.offsetHeight > 0 && top > 0 ? el.offsetHeight : placed2.height
282
297
  };
283
- canvas.current?.reveal(rect);
298
+ canvas.current?.reveal(rect, outside);
284
299
  return true;
285
300
  },
286
- [layout, cardOf]
301
+ [layout, drawn, cardOf]
287
302
  );
288
303
  const focusNode = useCallback(
289
- (id) => {
304
+ (id, outside = "edge") => {
290
305
  if (!model.parent.has(id)) return;
291
306
  const opened = tree.open(id);
292
307
  setActive(id);
293
- if (opened || !focusNow(id)) pendingFocus.current = id;
308
+ if (opened || restoring.current || !focusNow(id, outside)) pendingFocus.current = { id, outside };
294
309
  },
295
310
  [model, tree, setActive, focusNow]
296
311
  );
297
312
  useLayoutEffect(() => {
298
- const id = pendingFocus.current;
299
- if (id !== null && focusNow(id)) pendingFocus.current = null;
313
+ const want = pendingFocus.current;
314
+ if (want !== null && !restoring.current && focusNow(want.id, want.outside)) pendingFocus.current = null;
300
315
  });
301
316
  const focusRef = useRef(focusNode);
302
317
  focusRef.current = focusNode;
@@ -308,7 +323,8 @@ function TreeCanvas({
308
323
  useImperativeHandle(
309
324
  ref,
310
325
  () => ({
311
- focusNode: (id) => focusRef.current(id),
326
+ // A CALLER SENDS THE READER SOMEWHERE: see [TreeCanvasHandle.focusNode].
327
+ focusNode: (id) => focusRef.current(id, "centre"),
312
328
  expandAll,
313
329
  collapseAll,
314
330
  focusRegion: (id) => {
@@ -339,6 +355,7 @@ function TreeCanvas({
339
355
  const was = eased.current;
340
356
  if (composeId !== null) {
341
357
  canvas.current?.rememberView();
358
+ remembered.current = true;
342
359
  takeFocus.current = takeFocus.current || eased.current !== composeId;
343
360
  const box = placedCards?.get(composeId);
344
361
  if (!box || was === composeId) return;
@@ -352,7 +369,6 @@ function TreeCanvas({
352
369
  const back = returnTo.current;
353
370
  eased.current = null;
354
371
  returnTo.current = null;
355
- canvas.current?.restoreView();
356
372
  if (back !== null) {
357
373
  setActive(back);
358
374
  items.current.get(back)?.focus({ preventScroll: true });
@@ -1,6 +1,6 @@
1
1
  import { Note } from './chunk-YJPQJVRJ.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-N47PA4V4.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-ELZSD6FJ.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-AKCIF6XN.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-MNVIIZQP.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './CanvasBoard-U6LR5F6H.css';
@@ -1,51 +1,51 @@
1
1
  import '../chunk-2KUAO2CX.js';
2
+ export { SLIDE_COMPARE_LABELS, SlideCompare } from '../chunk-FSCJV5M5.js';
2
3
  export { ElementToPngError, elementToPng, parseCsv, peelPunctuation, serializeElement, toCsv } from '../chunk-BALBOOKX.js';
3
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-R7PMTSQD.js';
4
4
  export { TypeSpecimen } from '../chunk-JKAFEFFC.js';
5
+ export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-3DAIOPAV.js';
5
6
  export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-QDXSBVZR.js';
6
7
  export { VersionTimeline } from '../chunk-RM5RKPFV.js';
7
- export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-3DAIOPAV.js';
8
8
  export { WidgetFrame } from '../chunk-5ZTH54O6.js';
9
- export { TileGrid } from '../chunk-UFID3DSP.js';
10
9
  export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-3P24SMTI.js';
11
10
  export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-GQPKDPMS.js';
12
11
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from '../chunk-B6AQY6FH.js';
13
- export { TagsInput } from '../chunk-A5VNNA3V.js';
12
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-Q4JX6UO7.js';
14
13
  export { ThemeGallery } from '../chunk-35ALKQC5.js';
14
+ export { DensitySwitcher, ThemeSwitcher } from '../chunk-AIYSPVVZ.js';
15
15
  export { ThemeSwatch } from '../chunk-3XQUEF5C.js';
16
16
  export { ThemeToggle } from '../chunk-5RXY2RL4.js';
17
- export { DensitySwitcher, ThemeSwitcher } from '../chunk-AIYSPVVZ.js';
18
17
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
19
18
  export { ThinkingIndicator } from '../chunk-DX7ZHO47.js';
19
+ export { TileGrid } from '../chunk-UFID3DSP.js';
20
20
  export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-U4HA6LRQ.js';
21
21
  export { Switcher } from '../chunk-GPEXCG5K.js';
22
22
  export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-JKFA2F7J.js';
23
- export { StatCard } from '../chunk-2YADDY4A.js';
23
+ export { TagsInput } from '../chunk-A5VNNA3V.js';
24
24
  export { StatGroup } from '../chunk-OUD75UB2.js';
25
25
  export { Statement } from '../chunk-MZJKPTA5.js';
26
26
  export { StatusLegend } from '../chunk-CXFMNOPV.js';
27
27
  export { StatusLine } from '../chunk-435WY2WT.js';
28
- export { SLIDE_COMPARE_LABELS, SlideCompare } from '../chunk-FSCJV5M5.js';
28
+ import '../chunk-ZZMXJTII.js';
29
29
  export { SlideFilmstrip } from '../chunk-7FSIBX4S.js';
30
30
  export { SlideGrid } from '../chunk-73L3774J.js';
31
31
  export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from '../chunk-S656HY4W.js';
32
+ export { StatCard } from '../chunk-2YADDY4A.js';
32
33
  export { SetupWizard } from '../chunk-2DZV4PHK.js';
33
34
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-WZ5TDJ2K.js';
34
35
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-MNACKUBB.js';
35
36
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-E3AFQTWT.js';
36
37
  export { TagGroup } from '../chunk-FOUIZS7Q.js';
37
38
  export { matchesShortcut, useShortcut } from '../chunk-K6PKXCR2.js';
38
- import '../chunk-ZZMXJTII.js';
39
39
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from '../chunk-EFY7R766.js';
40
40
  export { SegmentedMeter, segmentedMeterLabel } from '../chunk-4AK52VHB.js';
41
41
  export { SelectionBar } from '../chunk-XIKU44QE.js';
42
42
  export { SEND_BUTTON_LABELS, SendButton } from '../chunk-PNSUXNNY.js';
43
43
  export { SettingsTable, SettingsTableRow } from '../chunk-FRXOUBN2.js';
44
44
  export { ReviewList } from '../chunk-7XYU5PSQ.js';
45
+ export { RichEditor, preloadRichEditor } from '../chunk-KQFOPY2P.js';
46
+ export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
45
47
  export { canonicalMarkdown, roundTripMarkdown } from '../chunk-GBASM5EV.js';
46
48
  import '../chunk-7CSTEH5I.js';
47
- export { RichEditor, preloadRichEditor } from '../chunk-Q6QKY7EZ.js';
48
- export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
49
49
  export { RoomRow } from '../chunk-45OOFAL6.js';
50
50
  export { RUN_STATES, RunChip } from '../chunk-L6SYLG3F.js';
51
51
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-4EKHHHOQ.js';
@@ -94,8 +94,8 @@ export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../
94
94
  export { ListDetail, ListDetailBack } from '../chunk-DNBIBLT2.js';
95
95
  export { ListInput, withDraft } from '../chunk-Z64KEJ3N.js';
96
96
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from '../chunk-DPNVKWJX.js';
97
- export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from '../chunk-CQFQGAZI.js';
98
97
  export { LogoSlot, LogoSlotGroup } from '../chunk-4Q7AWZ6O.js';
98
+ export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from '../chunk-CQFQGAZI.js';
99
99
  export { KeyValueRows, keyValueRowsLabels } from '../chunk-Q7WKCU2U.js';
100
100
  export { LAYERS_LIST_LABELS, LayersList } from '../chunk-TEOUMHAI.js';
101
101
  export { AutoGrid, Inline, Spacer, Stack } from '../chunk-ZAC7SKUN.js';
@@ -109,14 +109,14 @@ export { IndicatorAnchor } from '../chunk-27MJPU7G.js';
109
109
  export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-WMZ2MROV.js';
110
110
  export { InlineRef } from '../chunk-ACXYNJZR.js';
111
111
  export { MARKDOWN_CALLOUT_NAMES, MARKDOWN_CALLOUT_TONES, markdownBreaks, markdownClosesFence, markdownCodeText, markdownFenceOf, markdownHeadingOf, markdownInline, markdownLines, parseMarkdown, parseMarkdownSpans, safeHref } from '../chunk-KBZO4B33.js';
112
- 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-UGEFJGJ7.js';
112
+ 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';
113
113
  export { SIZE_EPSILON, TYPE_AHEAD_RESET_MS, createTreeModel, isTypeAheadKey, layoutConnectors, layoutForest, placeGroups, treeAllExpandable, treeAncestors, treeCollapseOrAscend, treeExpandOrDescend, treeExpandTo, treeExpandable, treeFirst, treeFirstChild, treeItemAction, treeLast, treeLevel, treeNext, treeParent, treePosInSet, treePrevious, treeSetSize, treeStep, treeTypeAhead, treeVisible, typeAheadBuffer, useLayoutAnchor, useMeasuredSizes, useTreeState } from '../chunk-MY374UUD.js';
114
114
  export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscreen, useIdle } from '../chunk-3JLG6KRU.js';
115
115
  export { Highlight, highlightRanges, highlightTerms } from '../chunk-H6VKCIWV.js';
116
116
  import '../chunk-MICRGE3J.js';
117
117
  import '../chunk-FFMCMSJB.js';
118
- export { IconTile } from '../chunk-VRVNLJUA.js';
119
118
  export { ImageUpload } from '../chunk-K6Y6CDEZ.js';
119
+ export { IconTile } from '../chunk-VRVNLJUA.js';
120
120
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from '../chunk-XF5PDUDH.js';
121
121
  export { FileList } from '../chunk-FQBSYMEW.js';
122
122
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from '../chunk-L6HUVA33.js';
@@ -141,8 +141,8 @@ export { EditingStatus } from '../chunk-KRF3GQ63.js';
141
141
  export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-3DGNF2EH.js';
142
142
  export { PageHeader } from '../chunk-FPDIHEM4.js';
143
143
  export { FILTER_PILL_LABELS, FILTER_PILL_WORDS_CLASS, FilterPill, filterPillSentence } from '../chunk-E4QX4VET.js';
144
- export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from '../chunk-AQZPZYSY.js';
145
144
  export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-OHXOUHTX.js';
145
+ export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from '../chunk-AQZPZYSY.js';
146
146
  export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-JLOZE7QG.js';
147
147
  export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from '../chunk-EHD4CEHK.js';
148
148
  export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from '../chunk-MXOT2CWL.js';
@@ -155,8 +155,8 @@ export { ContrastHelp } from '../chunk-SIL5WE55.js';
155
155
  export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-3YOLD7WG.js';
156
156
  export { CursorFlag } from '../chunk-MMCYH5LB.js';
157
157
  export { PresenceRing, presenceHueClass } from '../chunk-EFX2YC5T.js';
158
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-Y7FPSBCN.js';
159
158
  export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-CPWSBK3F.js';
159
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-Y7FPSBCN.js';
160
160
  export { ColorSwatch } from '../chunk-SG2M6SBD.js';
161
161
  export { Combobox } from '../chunk-WUJ54OTI.js';
162
162
  export { CommandPalette } from '../chunk-XYZA7OSE.js';
@@ -181,17 +181,17 @@ export { useOutcome } from '../chunk-DTIW4CHZ.js';
181
181
  export { ColorChip } from '../chunk-C6T4VBEY.js';
182
182
  export { ColorField } from '../chunk-UQA7SV3B.js';
183
183
  import '../chunk-3L5NHASN.js';
184
- export { ChatDay, ChatDayPill } from '../chunk-RBQOS3JC.js';
185
184
  export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from '../chunk-TQ6ZPQI4.js';
185
+ export { ChatDay, ChatDayPill } from '../chunk-RBQOS3JC.js';
186
186
  export { ChatDivider } from '../chunk-EI242VTX.js';
187
187
  import '../chunk-5QJNA7KD.js';
188
188
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-KTKPC3CV.js';
189
189
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from '../chunk-Y3EV3Q2U.js';
190
190
  export { CheckGrid } from '../chunk-AYLFZW27.js';
191
- export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-NNMI7FAI.js';
191
+ export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-QM2QFKIA.js';
192
192
  export { Note } from '../chunk-YJPQJVRJ.js';
193
193
  export { CanvasSchematic } from '../chunk-NBWNLYWZ.js';
194
- export { CanvasToolbar, toolForKey } from '../chunk-N47PA4V4.js';
194
+ export { CanvasToolbar, toolForKey } from '../chunk-AKCIF6XN.js';
195
195
  export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from '../chunk-NPEI2QAN.js';
196
196
  export { CatalogTile } from '../chunk-JKEGFDBG.js';
197
197
  export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from '../chunk-NB53SAL4.js';
@@ -200,23 +200,23 @@ export { ChangeMark } from '../chunk-TYQJRTTK.js';
200
200
  export { LONGTEXT_MAX_DEFAULT, RATING_MAX_CEILING, RATING_MAX_DEFAULT, SHEET_COLUMN_BOUNDS, SHEET_COLUMN_TYPES, SHEET_COLUMN_WIDTHS, SHEET_FIT_SAMPLES, SHEET_LABELS, SHEET_ROW_HEIGHT, SHEET_ROW_NUMBER_WIDTH, SheetPendingEdits, TEXT_MAX_DEFAULT, URL_MAX, cellDescription, cellKey, cellSpeech, changeText, changeTime, checkValue, columnOffsets, columnWidth, compareValues, displayText, drawnColumns, editText, editorSide, findOption, findPerson, fitSamples, fittedWidth, flagText, hasPrevious, inRange, isEmptyValue, isMod, isMultiCell, isSheetColumnType, isTypingKey, liveOptions, moveFrom, nextSort, normalizeValue, optionHue, parseOptionList, parseTSV, parseText, planClear, planPaste, presenceByCell, presenceByColumn, presenceByRow, rangeOf, ratingMax, refusalText, retypeColumn, rowName, sameValue, scrollToRow, sheetLabels, sortRows, spokenText, statusTone, textMax, toTSV, visibleRows } from '../chunk-LFSIKGRQ.js';
201
201
  export { PRESENCE_ACTIVITIES, PRESENCE_HUES, PRESENCE_LABELS, assignPresenceHues, collapseSessions, joinNames, presenceLabels, presenceOrder } from '../chunk-Z7JYG5TF.js';
202
202
  export { BrandSample } from '../chunk-IJCMOAM3.js';
203
- export { Breadcrumb } from '../chunk-NKCLA6RG.js';
204
- export { KeyChip } from '../chunk-HBDA76EZ.js';
205
203
  export { BrandScope, brandScopeInputs } from '../chunk-X7WEE3EK.js';
206
204
  import '../chunk-5SGHW42B.js';
207
205
  import '../chunk-7W3LYIOC.js';
206
+ export { Breadcrumb } from '../chunk-NKCLA6RG.js';
207
+ export { KeyChip } from '../chunk-HBDA76EZ.js';
208
208
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-K6YVJS5T.js';
209
209
  export { SuggestionList, SuggestionRow } from '../chunk-IR3OWPAZ.js';
210
210
  import '../chunk-6C7GQOBV.js';
211
211
  export { StatusCard } from '../chunk-X227R7IP.js';
212
212
  export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from '../chunk-EE3DJMSQ.js';
213
213
  export { Callout } from '../chunk-RCQLXOGS.js';
214
- export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-ELZSD6FJ.js';
214
+ export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-MNVIIZQP.js';
215
215
  import '../chunk-X4HBZSXA.js';
216
216
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from '../chunk-7UQQEUOT.js';
217
- export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-NKB2ORTZ.js';
218
217
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from '../chunk-GZSEIFWB.js';
219
218
  export { Tag } from '../chunk-SJ3EUCFD.js';
219
+ export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-NKB2ORTZ.js';
220
220
  export { AuthLayout } from '../chunk-VPQX3EQQ.js';
221
221
  export { AvatarPicker } from '../chunk-O43SIR3W.js';
222
222
  export { HuePicker, HueSwatch } from '../chunk-PFTUWDZN.js';
@@ -225,7 +225,7 @@ export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-ZIL6MTMZ.js'
225
225
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
226
226
  export { BrandChip } from '../chunk-UH44L7OJ.js';
227
227
  export { BrandLockup } from '../chunk-KXWJJWBD.js';
228
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-XZB53C7U.js';
228
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-4FKHPUVR.js';
229
229
  export { Skeleton } from '../chunk-WFAJYBLX.js';
230
230
  export { PRINCIPAL_KINDS, PrincipalAvatar } from '../chunk-HF5L56YQ.js';
231
231
  export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from '../chunk-GBKBME7Q.js';
@@ -237,8 +237,8 @@ import '../chunk-WSIJDWUG.js';
237
237
  export { DashboardCover, DocCover, SHEET_COVER_COLUMNS, SHEET_COVER_ROWS, SheetCover } from '../chunk-MMV7NEAC.js';
238
238
  export { Document, DocumentTitle, DocumentTitleField } from '../chunk-I4PBFJGX.js';
239
239
  export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile } from '../chunk-W3A6NBUM.js';
240
- export { ArtifactMakeRow } from '../chunk-A3SQWUWG.js';
241
240
  export { ArtifactNameCell } from '../chunk-3SCASXQH.js';
241
+ export { ArtifactMakeRow } from '../chunk-A3SQWUWG.js';
242
242
  export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-V47JOO72.js';
243
243
  export { afterMotion, releaseFocus, runningMotion, usePresence } from '../chunk-SNKQNAJI.js';
244
244
  import '../chunk-JLOESTT2.js';
@@ -250,7 +250,6 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-XVKTZ2AC.js';
250
250
  export { Switch } from '../chunk-6YYRFGXO.js';
251
251
  export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists } from '../chunk-JMBPMSNI.js';
252
252
  export { Checkbox, CheckboxGroup } from '../chunk-KFTVPWG2.js';
253
- export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from '../chunk-DOY3KC6I.js';
254
253
  export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-NLGRDKCK.js';
255
254
  import '../chunk-7U4V36SB.js';
256
255
  export { SegmentedControl } from '../chunk-V2FD4RPS.js';
@@ -260,15 +259,16 @@ export { StatusDot } from '../chunk-QRE6JCHS.js';
260
259
  export { ARTIFACT_ICON_WORDS, ArtifactIcon, artifactIconGlyph } from '../chunk-AVL52EME.js';
261
260
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
262
261
  export { Menu } from '../chunk-EGHOU7U2.js';
262
+ export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from '../chunk-DOY3KC6I.js';
263
263
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from '../chunk-QTMUKRTN.js';
264
264
  export { EmptyState } from '../chunk-PPUR46MK.js';
265
265
  export { Accordion, AccordionItem } from '../chunk-3QEAANRP.js';
266
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
266
267
  export { ActivityLine } from '../chunk-FNJCCVQX.js';
267
268
  export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-OYKQVTJB.js';
268
269
  export { AvatarStack, avatarStackLabel } from '../chunk-ARZGEHWE.js';
269
270
  export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from '../chunk-XZY6S3UC.js';
270
271
  export { ADD_PILL_MS, AddPill } from '../chunk-5W3EYO5Q.js';
271
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
272
272
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-NZFYX5UF.js';
273
273
  export { Timeline, TimelineItem } from '../chunk-XDUXAQIS.js';
274
274
  export { Section } from '../chunk-WFCWPXJN.js';
package/dist/index.js CHANGED
@@ -1,51 +1,51 @@
1
1
  import './chunk-2KUAO2CX.js';
2
+ export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-FSCJV5M5.js';
2
3
  export { ElementToPngError, elementToPng, parseCsv, peelPunctuation, serializeElement, toCsv } from './chunk-BALBOOKX.js';
3
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-R7PMTSQD.js';
4
4
  export { TypeSpecimen } from './chunk-JKAFEFFC.js';
5
+ export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from './chunk-3DAIOPAV.js';
5
6
  export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from './chunk-QDXSBVZR.js';
6
7
  export { VersionTimeline } from './chunk-RM5RKPFV.js';
7
- export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from './chunk-3DAIOPAV.js';
8
8
  export { WidgetFrame } from './chunk-5ZTH54O6.js';
9
- export { TileGrid } from './chunk-UFID3DSP.js';
10
9
  export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from './chunk-3P24SMTI.js';
11
10
  export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from './chunk-GQPKDPMS.js';
12
11
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from './chunk-B6AQY6FH.js';
13
- export { TagsInput } from './chunk-A5VNNA3V.js';
12
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-Q4JX6UO7.js';
14
13
  export { ThemeGallery } from './chunk-35ALKQC5.js';
14
+ export { DensitySwitcher, ThemeSwitcher } from './chunk-AIYSPVVZ.js';
15
15
  export { ThemeSwatch } from './chunk-3XQUEF5C.js';
16
16
  export { ThemeToggle } from './chunk-5RXY2RL4.js';
17
- export { DensitySwitcher, ThemeSwitcher } from './chunk-AIYSPVVZ.js';
18
17
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from './chunk-Z24ZUSTX.js';
19
18
  export { ThinkingIndicator } from './chunk-DX7ZHO47.js';
19
+ export { TileGrid } from './chunk-UFID3DSP.js';
20
20
  export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from './chunk-U4HA6LRQ.js';
21
21
  export { Switcher } from './chunk-GPEXCG5K.js';
22
22
  export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from './chunk-JKFA2F7J.js';
23
- export { StatCard } from './chunk-2YADDY4A.js';
23
+ export { TagsInput } from './chunk-A5VNNA3V.js';
24
24
  export { StatGroup } from './chunk-OUD75UB2.js';
25
25
  export { Statement } from './chunk-MZJKPTA5.js';
26
26
  export { StatusLegend } from './chunk-CXFMNOPV.js';
27
27
  export { StatusLine } from './chunk-435WY2WT.js';
28
- export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-FSCJV5M5.js';
28
+ import './chunk-ZZMXJTII.js';
29
29
  export { SlideFilmstrip } from './chunk-7FSIBX4S.js';
30
30
  export { SlideGrid } from './chunk-73L3774J.js';
31
31
  export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-S656HY4W.js';
32
+ export { StatCard } from './chunk-2YADDY4A.js';
32
33
  export { SetupWizard } from './chunk-2DZV4PHK.js';
33
34
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-WZ5TDJ2K.js';
34
35
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from './chunk-MNACKUBB.js';
35
36
  export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-E3AFQTWT.js';
36
37
  export { TagGroup } from './chunk-FOUIZS7Q.js';
37
38
  export { matchesShortcut, useShortcut } from './chunk-K6PKXCR2.js';
38
- import './chunk-ZZMXJTII.js';
39
39
  export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-EFY7R766.js';
40
40
  export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
41
41
  export { SelectionBar } from './chunk-XIKU44QE.js';
42
42
  export { SEND_BUTTON_LABELS, SendButton } from './chunk-PNSUXNNY.js';
43
43
  export { SettingsTable, SettingsTableRow } from './chunk-FRXOUBN2.js';
44
44
  export { ReviewList } from './chunk-7XYU5PSQ.js';
45
+ export { RichEditor, preloadRichEditor } from './chunk-KQFOPY2P.js';
46
+ export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
45
47
  export { canonicalMarkdown, roundTripMarkdown } from './chunk-GBASM5EV.js';
46
48
  import './chunk-7CSTEH5I.js';
47
- export { RichEditor, preloadRichEditor } from './chunk-Q6QKY7EZ.js';
48
- export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
49
49
  export { RoomRow } from './chunk-45OOFAL6.js';
50
50
  export { RUN_STATES, RunChip } from './chunk-L6SYLG3F.js';
51
51
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-4EKHHHOQ.js';
@@ -94,8 +94,8 @@ export { ActionDivider, MessageAction, MessageActions, QuickReaction } from './c
94
94
  export { ListDetail, ListDetailBack } from './chunk-DNBIBLT2.js';
95
95
  export { ListInput, withDraft } from './chunk-Z64KEJ3N.js';
96
96
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from './chunk-DPNVKWJX.js';
97
- export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from './chunk-CQFQGAZI.js';
98
97
  export { LogoSlot, LogoSlotGroup } from './chunk-4Q7AWZ6O.js';
98
+ export { LIVE_PREVIEW_DWELL_MS, LIVE_PREVIEW_MARGIN, LIVE_PREVIEW_MAX, LIVE_PREVIEW_MAX_FRAMES, LIVE_PREVIEW_RENDER_MS, LIVE_PREVIEW_STILLS_KEPT, LivePreview, LivePreviewBudgetProvider, PREVIEW_FILL_MAX_CUT, PreviewScale, createLivePreviewBudget, createLivePreviewStills, immediately, perFrame, useLivePreview } from './chunk-CQFQGAZI.js';
99
99
  export { KeyValueRows, keyValueRowsLabels } from './chunk-Q7WKCU2U.js';
100
100
  export { LAYERS_LIST_LABELS, LayersList } from './chunk-TEOUMHAI.js';
101
101
  export { AutoGrid, Inline, Spacer, Stack } from './chunk-ZAC7SKUN.js';
@@ -109,14 +109,14 @@ export { IndicatorAnchor } from './chunk-27MJPU7G.js';
109
109
  export { INLINE_EDITOR_LABELS, InlineEditor } from './chunk-WMZ2MROV.js';
110
110
  export { InlineRef } from './chunk-ACXYNJZR.js';
111
111
  export { MARKDOWN_CALLOUT_NAMES, MARKDOWN_CALLOUT_TONES, markdownBreaks, markdownClosesFence, markdownCodeText, markdownFenceOf, markdownHeadingOf, markdownInline, markdownLines, parseMarkdown, parseMarkdownSpans, safeHref } from './chunk-KBZO4B33.js';
112
- 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-UGEFJGJ7.js';
112
+ 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';
113
113
  export { SIZE_EPSILON, TYPE_AHEAD_RESET_MS, createTreeModel, isTypeAheadKey, layoutConnectors, layoutForest, placeGroups, treeAllExpandable, treeAncestors, treeCollapseOrAscend, treeExpandOrDescend, treeExpandTo, treeExpandable, treeFirst, treeFirstChild, treeItemAction, treeLast, treeLevel, treeNext, treeParent, treePosInSet, treePrevious, treeSetSize, treeStep, treeTypeAhead, treeVisible, typeAheadBuffer, useLayoutAnchor, useMeasuredSizes, useTreeState } from './chunk-MY374UUD.js';
114
114
  export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscreen, useIdle } from './chunk-3JLG6KRU.js';
115
115
  export { Highlight, highlightRanges, highlightTerms } from './chunk-H6VKCIWV.js';
116
116
  import './chunk-MICRGE3J.js';
117
117
  import './chunk-FFMCMSJB.js';
118
- export { IconTile } from './chunk-VRVNLJUA.js';
119
118
  export { ImageUpload } from './chunk-K6Y6CDEZ.js';
119
+ export { IconTile } from './chunk-VRVNLJUA.js';
120
120
  export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from './chunk-XF5PDUDH.js';
121
121
  export { FileList } from './chunk-FQBSYMEW.js';
122
122
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from './chunk-L6HUVA33.js';
@@ -141,8 +141,8 @@ export { EditingStatus } from './chunk-KRF3GQ63.js';
141
141
  export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from './chunk-3DGNF2EH.js';
142
142
  export { PageHeader } from './chunk-FPDIHEM4.js';
143
143
  export { FILTER_PILL_LABELS, FILTER_PILL_WORDS_CLASS, FilterPill, filterPillSentence } from './chunk-E4QX4VET.js';
144
- export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from './chunk-AQZPZYSY.js';
145
144
  export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from './chunk-OHXOUHTX.js';
145
+ export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from './chunk-AQZPZYSY.js';
146
146
  export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from './chunk-JLOZE7QG.js';
147
147
  export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from './chunk-EHD4CEHK.js';
148
148
  export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from './chunk-MXOT2CWL.js';
@@ -155,8 +155,8 @@ export { ContrastHelp } from './chunk-SIL5WE55.js';
155
155
  export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from './chunk-3YOLD7WG.js';
156
156
  export { CursorFlag } from './chunk-MMCYH5LB.js';
157
157
  export { PresenceRing, presenceHueClass } from './chunk-EFX2YC5T.js';
158
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from './chunk-Y7FPSBCN.js';
159
158
  export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from './chunk-CPWSBK3F.js';
159
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from './chunk-Y7FPSBCN.js';
160
160
  export { ColorSwatch } from './chunk-SG2M6SBD.js';
161
161
  export { Combobox } from './chunk-WUJ54OTI.js';
162
162
  export { CommandPalette } from './chunk-XYZA7OSE.js';
@@ -181,17 +181,17 @@ export { useOutcome } from './chunk-DTIW4CHZ.js';
181
181
  export { ColorChip } from './chunk-C6T4VBEY.js';
182
182
  export { ColorField } from './chunk-UQA7SV3B.js';
183
183
  import './chunk-3L5NHASN.js';
184
- export { ChatDay, ChatDayPill } from './chunk-RBQOS3JC.js';
185
184
  export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COLOR_OTHER, Histogram, Legend, Sparkline, StackedBar, StackedColumns, StackedRing, TimeSeries, dataColor, histogramTicks, niceScale, useChartHover } from './chunk-TQ6ZPQI4.js';
185
+ export { ChatDay, ChatDayPill } from './chunk-RBQOS3JC.js';
186
186
  export { ChatDivider } from './chunk-EI242VTX.js';
187
187
  import './chunk-5QJNA7KD.js';
188
188
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-KTKPC3CV.js';
189
189
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from './chunk-Y3EV3Q2U.js';
190
190
  export { CheckGrid } from './chunk-AYLFZW27.js';
191
- export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from './chunk-NNMI7FAI.js';
191
+ export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from './chunk-QM2QFKIA.js';
192
192
  export { Note } from './chunk-YJPQJVRJ.js';
193
193
  export { CanvasSchematic } from './chunk-NBWNLYWZ.js';
194
- export { CanvasToolbar, toolForKey } from './chunk-N47PA4V4.js';
194
+ export { CanvasToolbar, toolForKey } from './chunk-AKCIF6XN.js';
195
195
  export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from './chunk-NPEI2QAN.js';
196
196
  export { CatalogTile } from './chunk-JKEGFDBG.js';
197
197
  export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from './chunk-NB53SAL4.js';
@@ -200,23 +200,23 @@ export { ChangeMark } from './chunk-TYQJRTTK.js';
200
200
  export { LONGTEXT_MAX_DEFAULT, RATING_MAX_CEILING, RATING_MAX_DEFAULT, SHEET_COLUMN_BOUNDS, SHEET_COLUMN_TYPES, SHEET_COLUMN_WIDTHS, SHEET_FIT_SAMPLES, SHEET_LABELS, SHEET_ROW_HEIGHT, SHEET_ROW_NUMBER_WIDTH, SheetPendingEdits, TEXT_MAX_DEFAULT, URL_MAX, cellDescription, cellKey, cellSpeech, changeText, changeTime, checkValue, columnOffsets, columnWidth, compareValues, displayText, drawnColumns, editText, editorSide, findOption, findPerson, fitSamples, fittedWidth, flagText, hasPrevious, inRange, isEmptyValue, isMod, isMultiCell, isSheetColumnType, isTypingKey, liveOptions, moveFrom, nextSort, normalizeValue, optionHue, parseOptionList, parseTSV, parseText, planClear, planPaste, presenceByCell, presenceByColumn, presenceByRow, rangeOf, ratingMax, refusalText, retypeColumn, rowName, sameValue, scrollToRow, sheetLabels, sortRows, spokenText, statusTone, textMax, toTSV, visibleRows } from './chunk-LFSIKGRQ.js';
201
201
  export { PRESENCE_ACTIVITIES, PRESENCE_HUES, PRESENCE_LABELS, assignPresenceHues, collapseSessions, joinNames, presenceLabels, presenceOrder } from './chunk-Z7JYG5TF.js';
202
202
  export { BrandSample } from './chunk-IJCMOAM3.js';
203
- export { Breadcrumb } from './chunk-NKCLA6RG.js';
204
- export { KeyChip } from './chunk-HBDA76EZ.js';
205
203
  export { BrandScope, brandScopeInputs } from './chunk-X7WEE3EK.js';
206
204
  import './chunk-5SGHW42B.js';
207
205
  import './chunk-7W3LYIOC.js';
206
+ export { Breadcrumb } from './chunk-NKCLA6RG.js';
207
+ export { KeyChip } from './chunk-HBDA76EZ.js';
208
208
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from './chunk-K6YVJS5T.js';
209
209
  export { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
210
210
  import './chunk-6C7GQOBV.js';
211
211
  export { StatusCard } from './chunk-X227R7IP.js';
212
212
  export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from './chunk-EE3DJMSQ.js';
213
213
  export { Callout } from './chunk-RCQLXOGS.js';
214
- export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from './chunk-ELZSD6FJ.js';
214
+ export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from './chunk-MNVIIZQP.js';
215
215
  import './chunk-X4HBZSXA.js';
216
216
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from './chunk-7UQQEUOT.js';
217
- export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-NKB2ORTZ.js';
218
217
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from './chunk-GZSEIFWB.js';
219
218
  export { Tag } from './chunk-SJ3EUCFD.js';
219
+ export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-NKB2ORTZ.js';
220
220
  export { AuthLayout } from './chunk-VPQX3EQQ.js';
221
221
  export { AvatarPicker } from './chunk-O43SIR3W.js';
222
222
  export { HuePicker, HueSwatch } from './chunk-PFTUWDZN.js';
@@ -225,7 +225,7 @@ export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from './chunk-ZIL6MTMZ.js';
225
225
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from './chunk-AYKXMIOR.js';
226
226
  export { BrandChip } from './chunk-UH44L7OJ.js';
227
227
  export { BrandLockup } from './chunk-KXWJJWBD.js';
228
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-XZB53C7U.js';
228
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-4FKHPUVR.js';
229
229
  export { Skeleton } from './chunk-WFAJYBLX.js';
230
230
  export { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-HF5L56YQ.js';
231
231
  export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from './chunk-GBKBME7Q.js';
@@ -237,8 +237,8 @@ import './chunk-WSIJDWUG.js';
237
237
  export { DashboardCover, DocCover, SHEET_COVER_COLUMNS, SHEET_COVER_ROWS, SheetCover } from './chunk-MMV7NEAC.js';
238
238
  export { Document, DocumentTitle, DocumentTitleField } from './chunk-I4PBFJGX.js';
239
239
  export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile } from './chunk-W3A6NBUM.js';
240
- export { ArtifactMakeRow } from './chunk-A3SQWUWG.js';
241
240
  export { ArtifactNameCell } from './chunk-3SCASXQH.js';
241
+ export { ArtifactMakeRow } from './chunk-A3SQWUWG.js';
242
242
  export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from './chunk-V47JOO72.js';
243
243
  export { afterMotion, releaseFocus, runningMotion, usePresence } from './chunk-SNKQNAJI.js';
244
244
  import './chunk-JLOESTT2.js';
@@ -250,7 +250,6 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from './chunk-XVKTZ2AC.js';
250
250
  export { Switch } from './chunk-6YYRFGXO.js';
251
251
  export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists } from './chunk-JMBPMSNI.js';
252
252
  export { Checkbox, CheckboxGroup } from './chunk-KFTVPWG2.js';
253
- export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from './chunk-DOY3KC6I.js';
254
253
  export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from './chunk-NLGRDKCK.js';
255
254
  import './chunk-7U4V36SB.js';
256
255
  export { SegmentedControl } from './chunk-V2FD4RPS.js';
@@ -260,15 +259,16 @@ export { StatusDot } from './chunk-QRE6JCHS.js';
260
259
  export { ARTIFACT_ICON_WORDS, ArtifactIcon, artifactIconGlyph } from './chunk-AVL52EME.js';
261
260
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
262
261
  export { Menu } from './chunk-EGHOU7U2.js';
262
+ export { ARTIFACT_ACCESSES, ARTIFACT_ACCESS_LABELS, ArtifactAccessGlyph, ArtifactAccessLabel } from './chunk-DOY3KC6I.js';
263
263
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from './chunk-QTMUKRTN.js';
264
264
  export { EmptyState } from './chunk-PPUR46MK.js';
265
265
  export { Accordion, AccordionItem } from './chunk-3QEAANRP.js';
266
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
266
267
  export { ActivityLine } from './chunk-FNJCCVQX.js';
267
268
  export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from './chunk-OYKQVTJB.js';
268
269
  export { AvatarStack, avatarStackLabel } from './chunk-ARZGEHWE.js';
269
270
  export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from './chunk-XZY6S3UC.js';
270
271
  export { ADD_PILL_MS, AddPill } from './chunk-5W3EYO5Q.js';
271
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
272
272
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from './chunk-NZFYX5UF.js';
273
273
  export { Timeline, TimelineItem } from './chunk-XDUXAQIS.js';
274
274
  export { Section } from './chunk-WFCWPXJN.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.129.0",
3
+ "version": "0.129.1",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "clean": "rm -rf dist src/generated"
43
43
  },
44
44
  "dependencies": {
45
- "@crewlethq/icons": "0.129.0",
46
- "@crewlethq/tokens": "0.129.0",
45
+ "@crewlethq/icons": "0.129.1",
46
+ "@crewlethq/tokens": "0.129.1",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,5 +1,5 @@
1
- import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
2
1
  import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
+ import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.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';
@@ -4,8 +4,8 @@ import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { Card } from './chunk-RABEMWTA.js';
5
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
- import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
7
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
8
+ import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
9
9
  import { AvatarStack } from './chunk-ARZGEHWE.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';