@crewlethq/ui 0.98.0 → 0.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
- /** How close to the end, in pixels, still counts as reading the latest. */
2
+ /** How close to the end, in pixels, a reader scrolling down is taken back to it. */
3
3
  export declare const CHAT_THREAD_FOLLOW_WITHIN = 48;
4
4
  export interface ChatThreadLabels {
5
5
  /** The pill that returns to the end. */
@@ -39,10 +39,16 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
39
39
  /** A request is running: the log is `aria-busy` until it settles. */
40
40
  busy?: boolean | undefined;
41
41
  /**
42
- * Keeps the end in view while the reader is at it (within 48px). `true` by
43
- * default; `false` never moves the scroll on its own.
42
+ * Keeps the end in view while the reader is at it. `true` by default;
43
+ * `false` never moves the scroll on its own.
44
44
  */
45
45
  follow?: boolean | undefined;
46
+ /**
47
+ * Called when the reader leaves the end or comes back to it: the one
48
+ * answer to "is the reader at the latest", for a host that counts what
49
+ * arrives meanwhile rather than reading the scroll position a second way.
50
+ */
51
+ onFollowChange?: ((following: boolean) => void) | undefined;
46
52
  /**
47
53
  * Draws the Jump to latest row under the log while the reader is scrolled
48
54
  * away from the end. `true` by default; `false` for a log that offers its
@@ -71,11 +77,19 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
71
77
  * `Announcer`, when an answer completes. It is focusable, so a keyboard
72
78
  * reader can scroll it, and `aria-busy` while a request runs.
73
79
  *
74
- * IT STICKS TO THE END ONLY WHILE THE READER IS THERE. Within 48px of the end
75
- * it follows whatever arrives; scrolled up, it stays put and a "Jump to
76
- * latest" pill counts what arrived since. The browser's own scroll anchoring
77
- * is turned off (it fights a last child that keeps growing), and the
78
- * anchoring is done here instead.
80
+ * IT STICKS TO THE END ONLY WHILE THE READER IS THERE. At the end it follows
81
+ * whatever arrives, and a view that shrinks under it (a composer growing a
82
+ * line) keeps the latest in sight. The reader leaves the end with the first
83
+ * upward move, however small: it used to count anywhere within 48px as the
84
+ * end and pull them back on the next render, so a slow wheel or a trackpad
85
+ * near the end could not scroll up at all. Scrolling down to within 48px
86
+ * takes them back. Scrolled up, a "Jump to latest" pill counts what arrived.
87
+ *
88
+ * AND THE READER'S PLACE HOLDS WHILE THEY ARE AWAY. The browser's own scroll
89
+ * anchoring is turned off (it fights a last child that keeps growing), so the
90
+ * thread anchors itself: the item at the top of the view stays where it
91
+ * stood while what is above it changes height (an older page, a row drawn
92
+ * at its real height, a preview that loads), before the change is painted.
79
93
  *
80
94
  * A JUMP HOLDS UNTIL IT LANDS. A smooth scroll passes through positions short
81
95
  * of the end, and each one read as the reader leaving: the pill came back and
@@ -1,4 +1,4 @@
1
- export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-RPCIU4S5.js';
1
+ export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-3NCIQO2P.js';
2
2
  import '../chunk-YJQXESOJ.js';
3
3
  import '../chunk-6KUOHUY5.js';
4
4
  import '../chunk-XSPCITPN.js';
@@ -14,7 +14,8 @@
14
14
  /*
15
15
  * THE BROWSER'S SCROLL ANCHORING IS OFF: it pins the content above the
16
16
  * reader's view, which fights a last child that keeps growing as an answer
17
- * streams in. ChatThread.tsx anchors to the end itself.
17
+ * streams in. ChatThread.tsx anchors itself: to the end while the reader is
18
+ * there, and to the item at the top of the view while they are away.
18
19
  *
19
20
  * THE SCROLLER IS THE CONTAINING BLOCK for everything positioned inside it.
20
21
  * It was not, so an absolutely positioned descendant with no positioned
@@ -1,6 +1,6 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-NKNG6YER.js';
2
- import '../chunk-BRK3HXGZ.js';
1
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-G44KKOMB.js';
3
2
  import '../chunk-IAR2ULSK.js';
3
+ import '../chunk-BRK3HXGZ.js';
4
4
  import '../chunk-O5CEG7TQ.js';
5
5
  import '../chunk-YGRTX67J.js';
6
6
  import '../chunk-TEV5REGB.js';
@@ -2,7 +2,7 @@ import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-YJQXESOJ.js';
2
2
  import { Button } from './chunk-6KUOHUY5.js';
3
3
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
- import './ChatThread-HAECJMP6.css';
5
+ import './ChatThread-XANOIJXN.css';
6
6
  import { forwardRef, useRef, Children, useState, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
7
7
  import { ArrowDownGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -12,7 +12,18 @@ var CHAT_THREAD_LABELS = {
12
12
  jumpToLatest: "Jump to latest",
13
13
  newItems: (count) => count === 1 ? "1 new item" : `${count.toLocaleString()} new items`
14
14
  };
15
- var ChatThread = forwardRef(function ChatThread2({ label, busy = false, follow = true, jump = true, rest: restAt = "start", children, labels: overrides, className, ...rest }, ref) {
15
+ var ChatThread = forwardRef(function ChatThread2({
16
+ label,
17
+ busy = false,
18
+ follow = true,
19
+ onFollowChange,
20
+ jump = true,
21
+ rest: restAt = "start",
22
+ children,
23
+ labels: overrides,
24
+ className,
25
+ ...rest
26
+ }, ref) {
16
27
  const labels = overrides ? { ...CHAT_THREAD_LABELS, ...overrides } : CHAT_THREAD_LABELS;
17
28
  const scroller = useRef(null);
18
29
  const items = useRef(null);
@@ -20,12 +31,25 @@ var ChatThread = forwardRef(function ChatThread2({ label, busy = false, follow =
20
31
  const count = Children.toArray(children).length;
21
32
  const atEnd = useRef(true);
22
33
  const jumping = useRef(false);
34
+ const jumpedFor = useRef(0);
35
+ const last = useRef(0);
36
+ const anchor = useRef(null);
37
+ const followChange = useRef(onFollowChange);
38
+ followChange.current = onFollowChange;
23
39
  const [detachedAt, setDetachedAt] = useState(null);
24
40
  const countRef = useRef(count);
25
41
  countRef.current = count;
26
42
  const rowShown = useRef(false);
27
43
  rowShown.current = jump && detachedAt !== null;
28
44
  const revealing = useRef(null);
45
+ const settle = useCallback((el) => {
46
+ last.current = el.scrollTop;
47
+ }, []);
48
+ const setFollowing = useCallback((following) => {
49
+ if (atEnd.current === following) return;
50
+ atEnd.current = following;
51
+ followChange.current?.(following);
52
+ }, []);
29
53
  const toEnd = useCallback(
30
54
  (smooth) => {
31
55
  const el = scroller.current;
@@ -33,27 +57,53 @@ var ChatThread = forwardRef(function ChatThread2({ label, busy = false, follow =
33
57
  const top = el.scrollHeight - el.clientHeight;
34
58
  if (smooth && !reduced && typeof el.scrollTo === "function") {
35
59
  jumping.current = true;
60
+ jumpedFor.current = el.scrollHeight;
36
61
  el.scrollTo({ top, behavior: "smooth" });
37
62
  } else {
38
63
  jumping.current = false;
39
64
  el.scrollTop = top;
40
65
  }
41
- atEnd.current = true;
66
+ settle(el);
67
+ anchor.current = null;
68
+ setFollowing(true);
42
69
  setDetachedAt(null);
43
70
  },
44
- [reduced]
71
+ [reduced, settle, setFollowing]
45
72
  );
46
73
  const onScroll = useCallback(() => {
47
74
  const el = scroller.current;
48
75
  if (!el) return;
49
- const end = el.scrollHeight - el.scrollTop - el.clientHeight <= CHAT_THREAD_FOLLOW_WITHIN;
76
+ const was = last.current;
77
+ settle(el);
78
+ const distance = el.scrollHeight - el.scrollTop - el.clientHeight;
50
79
  if (jumping.current) {
51
- if (end) jumping.current = false;
80
+ if (distance <= CHAT_THREAD_FOLLOW_WITHIN) jumping.current = false;
52
81
  return;
53
82
  }
54
- atEnd.current = end;
55
- setDetachedAt((prior) => end ? null : prior ?? countRef.current);
56
- }, []);
83
+ const moved = el.scrollTop - was;
84
+ let following = atEnd.current;
85
+ if (distance < 1) following = true;
86
+ else if (moved < 0) following = false;
87
+ else if (moved > 0) following = distance <= CHAT_THREAD_FOLLOW_WITHIN;
88
+ setFollowing(following);
89
+ anchor.current = following ? null : anchorIn(el, items.current);
90
+ setDetachedAt((prior) => following ? null : prior ?? countRef.current);
91
+ }, [settle, setFollowing]);
92
+ const hold = useCallback(() => {
93
+ const el = scroller.current;
94
+ const mark = anchor.current;
95
+ if (!el || !mark || atEnd.current || jumping.current) return;
96
+ if (!mark.element.isConnected) {
97
+ anchor.current = anchorIn(el, items.current);
98
+ return;
99
+ }
100
+ const at = depthIn(el, mark.element);
101
+ const delta = at - mark.at;
102
+ if (Math.abs(delta) < 0.5) return;
103
+ mark.at = at;
104
+ el.scrollTop += delta;
105
+ settle(el);
106
+ }, [settle]);
57
107
  useEffect(() => {
58
108
  const el = scroller.current;
59
109
  if (!el) return;
@@ -71,18 +121,22 @@ var ChatThread = forwardRef(function ChatThread2({ label, busy = false, follow =
71
121
  for (const intent of intents) el.removeEventListener(intent, interrupt);
72
122
  };
73
123
  }, [toEnd]);
74
- useLayoutEffect(() => {
75
- if (follow && atEnd.current) toEnd(false);
76
- }, [children, follow, toEnd]);
124
+ const keep = useCallback(() => {
125
+ const el = scroller.current;
126
+ if (!el) return;
127
+ if (!atEnd.current) hold();
128
+ else if (follow && !(jumping.current && el.scrollHeight === jumpedFor.current)) toEnd(false);
129
+ }, [follow, hold, toEnd]);
130
+ useLayoutEffect(keep);
77
131
  useEffect(() => {
78
- const el = items.current;
79
- if (!follow || !el || typeof ResizeObserver !== "function") return;
80
- const observer = new ResizeObserver(() => {
81
- if (atEnd.current) toEnd(false);
82
- });
83
- observer.observe(el);
132
+ const view = scroller.current;
133
+ const content = items.current;
134
+ if (!view || !content || typeof ResizeObserver !== "function") return;
135
+ const observer = new ResizeObserver(keep);
136
+ observer.observe(content);
137
+ observer.observe(view);
84
138
  return () => observer.disconnect();
85
- }, [follow, toEnd]);
139
+ }, [keep]);
86
140
  const place = useCallback(
87
141
  (element) => {
88
142
  const el = scroller.current;
@@ -144,5 +198,29 @@ var ChatThread = forwardRef(function ChatThread2({ label, busy = false, follow =
144
198
  ] }) })
145
199
  ] });
146
200
  });
201
+ function depthIn(view, element) {
202
+ return element.getBoundingClientRect().top - view.getBoundingClientRect().top + view.scrollTop;
203
+ }
204
+ function anchorIn(view, content) {
205
+ const top = view.getBoundingClientRect().top;
206
+ let found = null;
207
+ let parent = content;
208
+ for (let depth = 0; parent && depth < ANCHOR_DEPTH; depth++) {
209
+ let next = null;
210
+ for (const child of Array.from(parent.children)) {
211
+ const box = child.getBoundingClientRect();
212
+ if (box.height === 0 || box.bottom <= top) continue;
213
+ const position = getComputedStyle(child).position;
214
+ if (position === "sticky" || position === "fixed" || position === "absolute") continue;
215
+ next = child;
216
+ break;
217
+ }
218
+ if (!next) break;
219
+ found = next;
220
+ parent = next.getBoundingClientRect().top < top ? next : null;
221
+ }
222
+ return found ? { element: found, at: depthIn(view, found) } : null;
223
+ }
224
+ var ANCHOR_DEPTH = 4;
147
225
 
148
226
  export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread };
@@ -7,8 +7,8 @@ export { ElementToPngError, elementToPng, parseCsv, serializeElement, toCsv } fr
7
7
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from '../chunk-MIQNKO2R.js';
8
8
  export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-UUDQEDHQ.js';
9
9
  export { TypeSpecimen } from '../chunk-JKAFEFFC.js';
10
- export { DensitySwitcher, ThemeSwitcher } from '../chunk-7IW4BVZF.js';
11
10
  export { ThemeToggle } from '../chunk-LYVWOAUN.js';
11
+ export { DensitySwitcher, ThemeSwitcher } from '../chunk-7IW4BVZF.js';
12
12
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
13
13
  export { THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-JXDJVUWN.js';
14
14
  export { TileGrid } from '../chunk-UFID3DSP.js';
@@ -26,41 +26,41 @@ export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from '../chunk-PW57R4BN.j
26
26
  export { StatCard } from '../chunk-G5IZGAWS.js';
27
27
  export { StatGroup } from '../chunk-OUD75UB2.js';
28
28
  export { Statement } from '../chunk-MZJKPTA5.js';
29
+ export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-OAKECTYH.js';
30
+ export { TagGroup } from '../chunk-UEOEBOBR.js';
29
31
  export { matchesShortcut, useShortcut } from '../chunk-LZNPL266.js';
30
32
  import '../chunk-5AHNW5CP.js';
31
- export { SettingsTable, SettingsTableRow } from '../chunk-SOYPCCSJ.js';
32
33
  export { SLIDE_COMPARE_LABELS, SlideCompare } from '../chunk-GBBRSZ2J.js';
33
34
  export { SlideFilmstrip } from '../chunk-E23AXDKL.js';
34
- export { SectionFrame, SectionFrameBody, SectionFrameNav } from '../chunk-7BDBO2NP.js';
35
+ export { SegmentedMeter, segmentedMeterLabel } from '../chunk-4AK52VHB.js';
35
36
  export { SelectionBar } from '../chunk-3QBQY2XK.js';
36
37
  export { SEND_BUTTON_LABELS, SendButton } from '../chunk-C34CKBKF.js';
37
- export { SetupWizard } from '../chunk-IX6CHGM4.js';
38
+ export { SettingsTable, SettingsTableRow } from '../chunk-SOYPCCSJ.js';
38
39
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-MTKHMGJH.js';
40
+ export { SetupWizard } from '../chunk-IX6CHGM4.js';
39
41
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-5KJOG5YP.js';
40
- export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-OAKECTYH.js';
41
- export { TagGroup } from '../chunk-UEOEBOBR.js';
42
42
  export { canonicalMarkdown, roundTripMarkdown } from '../chunk-GBASM5EV.js';
43
43
  import '../chunk-7CSTEH5I.js';
44
44
  export { RoomRow } from '../chunk-PQDQ64KY.js';
45
+ export { RUN_STATES, RunChip } from '../chunk-MYFSVZKZ.js';
45
46
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-SF6FUU42.js';
46
47
  export { SearchTrigger } from '../chunk-ERNT3UTB.js';
47
- export { RUN_STATES, RunChip } from '../chunk-MYFSVZKZ.js';
48
- export { SegmentedMeter, segmentedMeterLabel } from '../chunk-4AK52VHB.js';
48
+ export { SectionFrame, SectionFrameBody, SectionFrameNav } from '../chunk-7BDBO2NP.js';
49
49
  export { RecordChip, RecordChipList } from '../chunk-QH2YJDRI.js';
50
+ export { RelatedRow } from '../chunk-CL3FWLDO.js';
50
51
  export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-GKBH5JHE.js';
51
52
  export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-TAWPKNNZ.js';
52
53
  export { Table } from '../chunk-75NQV4R4.js';
53
54
  export { ReviewList } from '../chunk-AGVGX52B.js';
54
- export { RelatedRow } from '../chunk-CL3FWLDO.js';
55
55
  export { RichEditor, preloadRichEditor } from '../chunk-FBNGCPKZ.js';
56
56
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
57
57
  export { PropertyList } from '../chunk-ZKC3QFDX.js';
58
58
  export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-YEQTGPCE.js';
59
59
  export { Prose } from '../chunk-DVVP27OD.js';
60
60
  export { QR_DARK, QR_LIGHT, QR_QUIET_ZONE, QrCode, qrModulePath, qrModules } from '../chunk-Y56FM3K4.js';
61
- export { RAIL_LIST_LABELS, RailList } from '../chunk-NKNG6YER.js';
62
- export { NavGroup, NavItem, SidebarNav } from '../chunk-BRK3HXGZ.js';
61
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-G44KKOMB.js';
63
62
  export { Select } from '../chunk-IAR2ULSK.js';
63
+ export { NavGroup, NavItem, SidebarNav } from '../chunk-BRK3HXGZ.js';
64
64
  export { Text } from '../chunk-O5CEG7TQ.js';
65
65
  export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from '../chunk-5JGEEUWQ.js';
66
66
  export { READING_PANE_ENTER, ReadingPane, ReadingPaneByline, ReadingPaneLead, ReadingPaneOutcome, ReadingPaneQuote, ReadingPaneReasoning, ReadingPaneSection, ReadingPaneTitle } from '../chunk-64JNKLLP.js';
@@ -70,41 +70,42 @@ export { SLIDE_HEIGHT, SLIDE_WIDTH, SlideStage, useSlideKeys } from '../chunk-O6
70
70
  export { PresenceStack } from '../chunk-F7HZYTZT.js';
71
71
  export { PricingCard } from '../chunk-O2XAJDK6.js';
72
72
  export { PrincipalPicker } from '../chunk-L72GPZ56.js';
73
+ export { Outline, scrollToHeading, useActiveHeading } from '../chunk-7QCSISHM.js';
73
74
  export { PageNote } from '../chunk-CV4NES3P.js';
74
75
  export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from '../chunk-XHQ2JJCB.js';
75
76
  export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from '../chunk-MJ73YBP2.js';
76
77
  import '../chunk-CENOOTAV.js';
77
78
  export { PinTile } from '../chunk-NBOHNPZB.js';
78
79
  export { NewItemsNotice } from '../chunk-463DNZXI.js';
79
- export { MessageBubble } from '../chunk-KAQ2L74F.js';
80
80
  export { FactLine, ObjectHeader, SetByLine } from '../chunk-TVGTMKYO.js';
81
81
  export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-CTNQOSQF.js';
82
- export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-JQCKRABK.js';
83
82
  export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-Z6E3WOWS.js';
84
83
  export { TreeGrid } from '../chunk-ROFAWLFS.js';
85
84
  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';
85
+ export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-JQCKRABK.js';
86
86
  export { OrgLabel } from '../chunk-4XYKBZJE.js';
87
- export { Outline, scrollToHeading, useActiveHeading } from '../chunk-7QCSISHM.js';
88
87
  export { MEMBER_PICKER_LABELS, MemberPicker, chosenMembers } from '../chunk-AAP7A6WV.js';
89
88
  export { MentionChip } from '../chunk-PX5BOALQ.js';
90
89
  export { MENTION_MENU_LABELS, MentionMenu, mentionQuery } from '../chunk-G7SAFRSJ.js';
91
90
  export { PersonRow } from '../chunk-6TD2PCZB.js';
92
91
  export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-VULZ4FAA.js';
93
92
  export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../chunk-HMXTZKAI.js';
94
- export { ListInput, withDraft } from '../chunk-JZADK2FT.js';
93
+ export { MessageBubble } from '../chunk-KAQ2L74F.js';
95
94
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from '../chunk-DPNVKWJX.js';
96
95
  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';
97
96
  export { LogoSlot, LogoSlotGroup } from '../chunk-CQIODINH.js';
98
97
  export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-EF3CJDZO.js';
99
98
  export { LAYERS_LIST_LABELS, LayersList } from '../chunk-VUYNNILP.js';
100
- export { Link } from '../chunk-2PB5D4TI.js';
101
99
  export { AutoGrid, Inline, Spacer, Stack } from '../chunk-ZAC7SKUN.js';
100
+ export { Link } from '../chunk-2PB5D4TI.js';
102
101
  export { LinkCard } from '../chunk-O3MYBNRO.js';
103
102
  import '../chunk-KOJPDCGQ.js';
104
103
  export { LinkInterstitial, openExternal } from '../chunk-RBR4AHBT.js';
105
104
  export { List, ListItem } from '../chunk-F2ZSFDJZ.js';
106
105
  export { ListDetail } from '../chunk-P33VNG7Q.js';
106
+ export { ListInput, withDraft } from '../chunk-JZADK2FT.js';
107
107
  export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-M6EVTMTK.js';
108
+ export { IndicatorAnchor } from '../chunk-27MJPU7G.js';
108
109
  export { InlineRef } from '../chunk-JGDCVLD4.js';
109
110
  export { MARKDOWN_CALLOUT_NAMES, MARKDOWN_CALLOUT_TONES, markdownBreaks, markdownClosesFence, markdownCodeText, markdownFenceOf, markdownHeadingOf, markdownInline, markdownLines, parseMarkdown, parseMarkdownSpans, safeHref } from '../chunk-KBZO4B33.js';
110
111
  export { KeyValueRows, keyValueRowsLabels } from '../chunk-HU5PAZMU.js';
@@ -113,10 +114,9 @@ import '../chunk-MICRGE3J.js';
113
114
  import '../chunk-FFMCMSJB.js';
114
115
  export { IconTile } from '../chunk-3LI4TRUR.js';
115
116
  export { ImageUpload } from '../chunk-K6Y6CDEZ.js';
116
- export { IndicatorAnchor } from '../chunk-27MJPU7G.js';
117
117
  export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-VKNZQB2G.js';
118
- export { FileList } from '../chunk-5WRWBDML.js';
119
118
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from '../chunk-IWZG7NPV.js';
119
+ export { FileList } from '../chunk-5WRWBDML.js';
120
120
  export { FindingList } from '../chunk-LSRQ2A6B.js';
121
121
  export { FolderTile, describeFolderContents, folderContentsParts } from '../chunk-R2QBQ6NO.js';
122
122
  export { FollowBanner } from '../chunk-ZUWEVSDP.js';
@@ -132,9 +132,9 @@ export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from '../chunk-N7
132
132
  export { Divider } from '../chunk-6KWNXIDE.js';
133
133
  export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-AP6SM6BL.js';
134
134
  export { DockColumn } from '../chunk-5JPOFAVN.js';
135
- export { EditingStatus } from '../chunk-OU6ZSWEJ.js';
136
135
  export { DownloadButton } from '../chunk-52UBOSNQ.js';
137
136
  export { downloadBlob, downloadText, safeFilename, useDownload } from '../chunk-YNRKVY7X.js';
137
+ export { EditingStatus } from '../chunk-OU6ZSWEJ.js';
138
138
  export { EMOJI_GROUPS, EMOJI_PICKER_COLUMNS, EMOJI_PICKER_LABELS, EmojiPicker, emojiName, searchEmoji } from '../chunk-D4MMW2NF.js';
139
139
  export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-C2HIMGFI.js';
140
140
  export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-4FNAPCCK.js';
@@ -155,16 +155,16 @@ export { PageHeader } from '../chunk-FPDIHEM4.js';
155
155
  export { FILTER_PILL_LABELS, FILTER_PILL_WORDS_CLASS, FilterPill, filterPillSentence } from '../chunk-AEFR4M2W.js';
156
156
  export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from '../chunk-63NRTOGO.js';
157
157
  export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-RSI6EJSH.js';
158
- export { Combobox } from '../chunk-AC255TMQ.js';
159
158
  export { CommandPalette } from '../chunk-GA773IOZ.js';
160
159
  export { ConfirmModal, Modal } from '../chunk-EMDRNB23.js';
160
+ export { Combobox } from '../chunk-AC255TMQ.js';
161
161
  export { HIGHLIGHT_REST_MS, TYPE_AHEAD_WINDOW, useHighlightRest, useListbox, useOptionKeys } from '../chunk-YGRTX67J.js';
162
162
  export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-PMO6W5NE.js';
163
- export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from '../chunk-FMOYO5OO.js';
164
- export { LockedLabel } from '../chunk-TEV5REGB.js';
165
163
  export { ConfirmField, confirmMatches } from '../chunk-BCZQDB3U.js';
166
164
  export { InlineCode } from '../chunk-OBFEL5KH.js';
167
165
  export { CONFLICT_NOTE_LABELS, ConflictNote } from '../chunk-YYKLPEOS.js';
166
+ export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from '../chunk-FMOYO5OO.js';
167
+ export { LockedLabel } from '../chunk-TEV5REGB.js';
168
168
  export { Container } from '../chunk-HJO4WCH6.js';
169
169
  export { CHIP_FIELD_LABELS, ChipField } from '../chunk-LPQLJHLI.js';
170
170
  export { ChoiceButtons } from '../chunk-RVSNBUIU.js';
@@ -182,8 +182,8 @@ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COL
182
182
  export { ChatDay, ChatDayPill } from '../chunk-ONHYFU7D.js';
183
183
  export { ChatDivider } from '../chunk-K774LUN3.js';
184
184
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from '../chunk-5KKZCSER.js';
185
+ export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-3NCIQO2P.js';
185
186
  export { CheckGrid } from '../chunk-IGECN5B6.js';
186
- export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-RPCIU4S5.js';
187
187
  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-V7WDP3HR.js';
188
188
  export { Note } from '../chunk-5SZGKSGL.js';
189
189
  export { CanvasSchematic } from '../chunk-NBWNLYWZ.js';
@@ -201,25 +201,25 @@ import '../chunk-5SGHW42B.js';
201
201
  import '../chunk-7W3LYIOC.js';
202
202
  export { Breadcrumb } from '../chunk-M52HLPOG.js';
203
203
  export { KeyChip } from '../chunk-HBDA76EZ.js';
204
+ export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from '../chunk-EE3DJMSQ.js';
205
+ export { Callout } from '../chunk-BPCY7ZID.js';
206
+ 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-33632WEN.js';
207
+ import '../chunk-X4HBZSXA.js';
204
208
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-AEUZU5SA.js';
205
209
  export { SuggestionList, SuggestionRow } from '../chunk-Y7PVLEZJ.js';
206
210
  import '../chunk-6C7GQOBV.js';
207
211
  export { StatusCard } from '../chunk-4BEMS6Q7.js';
208
- export { Callout } from '../chunk-BPCY7ZID.js';
209
- export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from '../chunk-EE3DJMSQ.js';
210
- 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-33632WEN.js';
211
- import '../chunk-X4HBZSXA.js';
212
212
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from '../chunk-7UQQEUOT.js';
213
213
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from '../chunk-MTDISM7I.js';
214
214
  export { Tag } from '../chunk-SJ3EUCFD.js';
215
- export { AuthLayout } from '../chunk-BN5FEJL5.js';
216
215
  export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-QPRTTTUN.js';
217
- export { BrandChip } from '../chunk-UH44L7OJ.js';
216
+ export { AuthLayout } from '../chunk-BN5FEJL5.js';
218
217
  export { AvatarPicker } from '../chunk-DBH7ORCH.js';
219
218
  export { HuePicker, HueSwatch } from '../chunk-PJMDZEWY.js';
220
219
  export { Popover } from '../chunk-LCAKSEMB.js';
221
220
  export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-LNQSNXGJ.js';
222
221
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
222
+ export { BrandChip } from '../chunk-UH44L7OJ.js';
223
223
  export { BrandLockup } from '../chunk-KXWJJWBD.js';
224
224
  export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-7L6JJ7VJ.js';
225
225
  export { Skeleton } from '../chunk-I4IUX3JF.js';
@@ -239,8 +239,8 @@ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRail
239
239
  export { afterMotion, releaseFocus, runningMotion, usePresence } from '../chunk-PCAT2EFB.js';
240
240
  import '../chunk-JLOESTT2.js';
241
241
  export { ArrangeBoard } from '../chunk-QO7QEQKV.js';
242
- export { ArrangeGrid } from '../chunk-QBA5B2Z5.js';
243
242
  export { ArrangeFrame, useGridResize } from '../chunk-TKAERQQF.js';
243
+ export { ArrangeGrid } from '../chunk-QBA5B2Z5.js';
244
244
  export { ArrangeGroup } from '../chunk-7U6PK242.js';
245
245
  export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-2W4US3JO.js';
246
246
  export { Switch } from '../chunk-CZKEABMI.js';
@@ -260,9 +260,9 @@ export { Menu } from '../chunk-JK6WLRYP.js';
260
260
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from '../chunk-QTMUKRTN.js';
261
261
  export { EmptyState } from '../chunk-PPUR46MK.js';
262
262
  export { Accordion, AccordionItem } from '../chunk-E2QPZGLG.js';
263
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
263
264
  export { ActivityLine } from '../chunk-V7N5XWZ6.js';
264
265
  export { ThinkingIndicator } from '../chunk-3OIVYHAA.js';
265
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from '../chunk-OM2LABPS.js';
266
266
  export { ADD_PILL_MS, AddPill } from '../chunk-SSN7Y3UY.js';
267
267
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-EMXUREKE.js';
268
268
  export { Timeline, TimelineItem } from '../chunk-ZDJQQ4LU.js';
package/dist/index.js CHANGED
@@ -7,8 +7,8 @@ export { ElementToPngError, elementToPng, parseCsv, serializeElement, toCsv } fr
7
7
  export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from './chunk-MIQNKO2R.js';
8
8
  export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './chunk-UUDQEDHQ.js';
9
9
  export { TypeSpecimen } from './chunk-JKAFEFFC.js';
10
- export { DensitySwitcher, ThemeSwitcher } from './chunk-7IW4BVZF.js';
11
10
  export { ThemeToggle } from './chunk-LYVWOAUN.js';
11
+ export { DensitySwitcher, ThemeSwitcher } from './chunk-7IW4BVZF.js';
12
12
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from './chunk-Z24ZUSTX.js';
13
13
  export { THREAD_SUMMARY_LABELS, ThreadSummary } from './chunk-JXDJVUWN.js';
14
14
  export { TileGrid } from './chunk-UFID3DSP.js';
@@ -26,41 +26,41 @@ export { SOURCE_EDITOR_KEYS, SourceEditor, lineStart } from './chunk-PW57R4BN.js
26
26
  export { StatCard } from './chunk-G5IZGAWS.js';
27
27
  export { StatGroup } from './chunk-OUD75UB2.js';
28
28
  export { Statement } from './chunk-MZJKPTA5.js';
29
+ export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-OAKECTYH.js';
30
+ export { TagGroup } from './chunk-UEOEBOBR.js';
29
31
  export { matchesShortcut, useShortcut } from './chunk-LZNPL266.js';
30
32
  import './chunk-5AHNW5CP.js';
31
- export { SettingsTable, SettingsTableRow } from './chunk-SOYPCCSJ.js';
32
33
  export { SLIDE_COMPARE_LABELS, SlideCompare } from './chunk-GBBRSZ2J.js';
33
34
  export { SlideFilmstrip } from './chunk-E23AXDKL.js';
34
- export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-7BDBO2NP.js';
35
+ export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
35
36
  export { SelectionBar } from './chunk-3QBQY2XK.js';
36
37
  export { SEND_BUTTON_LABELS, SendButton } from './chunk-C34CKBKF.js';
37
- export { SetupWizard } from './chunk-IX6CHGM4.js';
38
+ export { SettingsTable, SettingsTableRow } from './chunk-SOYPCCSJ.js';
38
39
  export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from './chunk-MTKHMGJH.js';
40
+ export { SetupWizard } from './chunk-IX6CHGM4.js';
39
41
  export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from './chunk-5KJOG5YP.js';
40
- export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from './chunk-OAKECTYH.js';
41
- export { TagGroup } from './chunk-UEOEBOBR.js';
42
42
  export { canonicalMarkdown, roundTripMarkdown } from './chunk-GBASM5EV.js';
43
43
  import './chunk-7CSTEH5I.js';
44
44
  export { RoomRow } from './chunk-PQDQ64KY.js';
45
+ export { RUN_STATES, RunChip } from './chunk-MYFSVZKZ.js';
45
46
  export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from './chunk-SF6FUU42.js';
46
47
  export { SearchTrigger } from './chunk-ERNT3UTB.js';
47
- export { RUN_STATES, RunChip } from './chunk-MYFSVZKZ.js';
48
- export { SegmentedMeter, segmentedMeterLabel } from './chunk-4AK52VHB.js';
48
+ export { SectionFrame, SectionFrameBody, SectionFrameNav } from './chunk-7BDBO2NP.js';
49
49
  export { RecordChip, RecordChipList } from './chunk-QH2YJDRI.js';
50
+ export { RelatedRow } from './chunk-CL3FWLDO.js';
50
51
  export { REFUSAL_CARD_LABELS, RefusalCard } from './chunk-GKBH5JHE.js';
51
52
  export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from './chunk-TAWPKNNZ.js';
52
53
  export { Table } from './chunk-75NQV4R4.js';
53
54
  export { ReviewList } from './chunk-AGVGX52B.js';
54
- export { RelatedRow } from './chunk-CL3FWLDO.js';
55
55
  export { RichEditor, preloadRichEditor } from './chunk-FBNGCPKZ.js';
56
56
  export { RICH_EDITOR_LABELS, richEditorLabels } from './chunk-2DMTW2Y3.js';
57
57
  export { PropertyList } from './chunk-ZKC3QFDX.js';
58
58
  export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from './chunk-YEQTGPCE.js';
59
59
  export { Prose } from './chunk-DVVP27OD.js';
60
60
  export { QR_DARK, QR_LIGHT, QR_QUIET_ZONE, QrCode, qrModulePath, qrModules } from './chunk-Y56FM3K4.js';
61
- export { RAIL_LIST_LABELS, RailList } from './chunk-NKNG6YER.js';
62
- export { NavGroup, NavItem, SidebarNav } from './chunk-BRK3HXGZ.js';
61
+ export { RAIL_LIST_LABELS, RailList } from './chunk-G44KKOMB.js';
63
62
  export { Select } from './chunk-IAR2ULSK.js';
63
+ export { NavGroup, NavItem, SidebarNav } from './chunk-BRK3HXGZ.js';
64
64
  export { Text } from './chunk-O5CEG7TQ.js';
65
65
  export { AddReaction, REACTION_BAR_LABELS, ReactionBar, reactionWho } from './chunk-5JGEEUWQ.js';
66
66
  export { READING_PANE_ENTER, ReadingPane, ReadingPaneByline, ReadingPaneLead, ReadingPaneOutcome, ReadingPaneQuote, ReadingPaneReasoning, ReadingPaneSection, ReadingPaneTitle } from './chunk-64JNKLLP.js';
@@ -70,41 +70,42 @@ export { SLIDE_HEIGHT, SLIDE_WIDTH, SlideStage, useSlideKeys } from './chunk-O6E
70
70
  export { PresenceStack } from './chunk-F7HZYTZT.js';
71
71
  export { PricingCard } from './chunk-O2XAJDK6.js';
72
72
  export { PrincipalPicker } from './chunk-L72GPZ56.js';
73
+ export { Outline, scrollToHeading, useActiveHeading } from './chunk-7QCSISHM.js';
73
74
  export { PageNote } from './chunk-CV4NES3P.js';
74
75
  export { PEEK_RAIL_LABELS, PEEK_RAIL_MAX_WIDTH, PEEK_RAIL_MIN_WIDTH, PEEK_RAIL_WIDTH, PeekHost, PeekNeighbours, PeekRail, isPlainPress, peekClickHandler, peekRowActivation, usePeekNeighbours, usePeekOrder, usePeekStep } from './chunk-XHQ2JJCB.js';
75
76
  export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from './chunk-MJ73YBP2.js';
76
77
  import './chunk-CENOOTAV.js';
77
78
  export { PinTile } from './chunk-NBOHNPZB.js';
78
79
  export { NewItemsNotice } from './chunk-463DNZXI.js';
79
- export { MessageBubble } from './chunk-KAQ2L74F.js';
80
80
  export { FactLine, ObjectHeader, SetByLine } from './chunk-TVGTMKYO.js';
81
81
  export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from './chunk-CTNQOSQF.js';
82
- export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from './chunk-JQCKRABK.js';
83
82
  export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from './chunk-Z6E3WOWS.js';
84
83
  export { TreeGrid } from './chunk-ROFAWLFS.js';
85
84
  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';
85
+ export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from './chunk-JQCKRABK.js';
86
86
  export { OrgLabel } from './chunk-4XYKBZJE.js';
87
- export { Outline, scrollToHeading, useActiveHeading } from './chunk-7QCSISHM.js';
88
87
  export { MEMBER_PICKER_LABELS, MemberPicker, chosenMembers } from './chunk-AAP7A6WV.js';
89
88
  export { MentionChip } from './chunk-PX5BOALQ.js';
90
89
  export { MENTION_MENU_LABELS, MentionMenu, mentionQuery } from './chunk-G7SAFRSJ.js';
91
90
  export { PersonRow } from './chunk-6TD2PCZB.js';
92
91
  export { MERGE_CONFLICTS_LABELS, MergeConflicts } from './chunk-VULZ4FAA.js';
93
92
  export { ActionDivider, MessageAction, MessageActions, QuickReaction } from './chunk-HMXTZKAI.js';
94
- export { ListInput, withDraft } from './chunk-JZADK2FT.js';
93
+ export { MessageBubble } from './chunk-KAQ2L74F.js';
95
94
  export { LIVE_CURSOR_HIDE_MS, LIVE_CURSOR_REST_MS, LiveCursor } from './chunk-DPNVKWJX.js';
96
95
  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';
97
96
  export { LogoSlot, LogoSlotGroup } from './chunk-CQIODINH.js';
98
97
  export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from './chunk-EF3CJDZO.js';
99
98
  export { LAYERS_LIST_LABELS, LayersList } from './chunk-VUYNNILP.js';
100
- export { Link } from './chunk-2PB5D4TI.js';
101
99
  export { AutoGrid, Inline, Spacer, Stack } from './chunk-ZAC7SKUN.js';
100
+ export { Link } from './chunk-2PB5D4TI.js';
102
101
  export { LinkCard } from './chunk-O3MYBNRO.js';
103
102
  import './chunk-KOJPDCGQ.js';
104
103
  export { LinkInterstitial, openExternal } from './chunk-RBR4AHBT.js';
105
104
  export { List, ListItem } from './chunk-F2ZSFDJZ.js';
106
105
  export { ListDetail } from './chunk-P33VNG7Q.js';
106
+ export { ListInput, withDraft } from './chunk-JZADK2FT.js';
107
107
  export { INLINE_EDITOR_LABELS, InlineEditor } from './chunk-M6EVTMTK.js';
108
+ export { IndicatorAnchor } from './chunk-27MJPU7G.js';
108
109
  export { InlineRef } from './chunk-JGDCVLD4.js';
109
110
  export { MARKDOWN_CALLOUT_NAMES, MARKDOWN_CALLOUT_TONES, markdownBreaks, markdownClosesFence, markdownCodeText, markdownFenceOf, markdownHeadingOf, markdownInline, markdownLines, parseMarkdown, parseMarkdownSpans, safeHref } from './chunk-KBZO4B33.js';
110
111
  export { KeyValueRows, keyValueRowsLabels } from './chunk-HU5PAZMU.js';
@@ -113,10 +114,9 @@ import './chunk-MICRGE3J.js';
113
114
  import './chunk-FFMCMSJB.js';
114
115
  export { IconTile } from './chunk-3LI4TRUR.js';
115
116
  export { ImageUpload } from './chunk-K6Y6CDEZ.js';
116
- export { IndicatorAnchor } from './chunk-27MJPU7G.js';
117
117
  export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from './chunk-VKNZQB2G.js';
118
- export { FileList } from './chunk-5WRWBDML.js';
119
118
  export { FILTER_CHIP_ATTRIBUTE, FilterChip, FilterChipGroup } from './chunk-IWZG7NPV.js';
119
+ export { FileList } from './chunk-5WRWBDML.js';
120
120
  export { FindingList } from './chunk-LSRQ2A6B.js';
121
121
  export { FolderTile, describeFolderContents, folderContentsParts } from './chunk-R2QBQ6NO.js';
122
122
  export { FollowBanner } from './chunk-ZUWEVSDP.js';
@@ -132,9 +132,9 @@ export { FileDrop, FilePickButton, droppedFiles, pickedFiles } from './chunk-N7H
132
132
  export { Divider } from './chunk-6KWNXIDE.js';
133
133
  export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from './chunk-AP6SM6BL.js';
134
134
  export { DockColumn } from './chunk-5JPOFAVN.js';
135
- export { EditingStatus } from './chunk-OU6ZSWEJ.js';
136
135
  export { DownloadButton } from './chunk-52UBOSNQ.js';
137
136
  export { downloadBlob, downloadText, safeFilename, useDownload } from './chunk-YNRKVY7X.js';
137
+ export { EditingStatus } from './chunk-OU6ZSWEJ.js';
138
138
  export { EMOJI_GROUPS, EMOJI_PICKER_COLUMNS, EMOJI_PICKER_LABELS, EmojiPicker, emojiName, searchEmoji } from './chunk-D4MMW2NF.js';
139
139
  export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from './chunk-C2HIMGFI.js';
140
140
  export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from './chunk-4FNAPCCK.js';
@@ -155,16 +155,16 @@ export { PageHeader } from './chunk-FPDIHEM4.js';
155
155
  export { FILTER_PILL_LABELS, FILTER_PILL_WORDS_CLASS, FilterPill, filterPillSentence } from './chunk-AEFR4M2W.js';
156
156
  export { DEFAULT_DATE_TIME_PICKER_LABELS, DateTimePicker } from './chunk-63NRTOGO.js';
157
157
  export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from './chunk-RSI6EJSH.js';
158
- export { Combobox } from './chunk-AC255TMQ.js';
159
158
  export { CommandPalette } from './chunk-GA773IOZ.js';
160
159
  export { ConfirmModal, Modal } from './chunk-EMDRNB23.js';
160
+ export { Combobox } from './chunk-AC255TMQ.js';
161
161
  export { HIGHLIGHT_REST_MS, TYPE_AHEAD_WINDOW, useHighlightRest, useListbox, useOptionKeys } from './chunk-YGRTX67J.js';
162
162
  export { COMMENT_THREAD_LABELS, CommentThread } from './chunk-PMO6W5NE.js';
163
- export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from './chunk-FMOYO5OO.js';
164
- export { LockedLabel } from './chunk-TEV5REGB.js';
165
163
  export { ConfirmField, confirmMatches } from './chunk-BCZQDB3U.js';
166
164
  export { InlineCode } from './chunk-OBFEL5KH.js';
167
165
  export { CONFLICT_NOTE_LABELS, ConflictNote } from './chunk-YYKLPEOS.js';
166
+ export { CompactNav, CompactNavGroup, CompactNavItem, CompactNavSeparator, groupBadge, placeFlyout } from './chunk-FMOYO5OO.js';
167
+ export { LockedLabel } from './chunk-TEV5REGB.js';
168
168
  export { Container } from './chunk-HJO4WCH6.js';
169
169
  export { CHIP_FIELD_LABELS, ChipField } from './chunk-LPQLJHLI.js';
170
170
  export { ChoiceButtons } from './chunk-RVSNBUIU.js';
@@ -182,8 +182,8 @@ export { ActivityStrip, BarList, ChartEmpty, ChartTooltip, DATA_COLORS, DATA_COL
182
182
  export { ChatDay, ChatDayPill } from './chunk-ONHYFU7D.js';
183
183
  export { ChatDivider } from './chunk-K774LUN3.js';
184
184
  export { CHAT_MESSAGE_CLASS, CHAT_MESSAGE_FAILURE_LABELS, ChatMessage, ChatMessageFailure } from './chunk-5KKZCSER.js';
185
+ export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-3NCIQO2P.js';
185
186
  export { CheckGrid } from './chunk-IGECN5B6.js';
186
- export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from './chunk-RPCIU4S5.js';
187
187
  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-V7WDP3HR.js';
188
188
  export { Note } from './chunk-5SZGKSGL.js';
189
189
  export { CanvasSchematic } from './chunk-NBWNLYWZ.js';
@@ -201,25 +201,25 @@ import './chunk-5SGHW42B.js';
201
201
  import './chunk-7W3LYIOC.js';
202
202
  export { Breadcrumb } from './chunk-M52HLPOG.js';
203
203
  export { KeyChip } from './chunk-HBDA76EZ.js';
204
+ export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from './chunk-EE3DJMSQ.js';
205
+ export { Callout } from './chunk-BPCY7ZID.js';
206
+ 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-33632WEN.js';
207
+ import './chunk-X4HBZSXA.js';
204
208
  export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from './chunk-AEUZU5SA.js';
205
209
  export { SuggestionList, SuggestionRow } from './chunk-Y7PVLEZJ.js';
206
210
  import './chunk-6C7GQOBV.js';
207
211
  export { StatusCard } from './chunk-4BEMS6Q7.js';
208
- export { Callout } from './chunk-BPCY7ZID.js';
209
- export { CalendarGrid, compareDays, daysInMonth, sameDay, shiftDay, shiftMonth, today } from './chunk-EE3DJMSQ.js';
210
- 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-33632WEN.js';
211
- import './chunk-X4HBZSXA.js';
212
212
  export { ASIDE_LAYOUT_SPLIT_REM, AsideLayout } from './chunk-7UQQEUOT.js';
213
213
  export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from './chunk-MTDISM7I.js';
214
214
  export { Tag } from './chunk-SJ3EUCFD.js';
215
- export { AuthLayout } from './chunk-BN5FEJL5.js';
216
215
  export { ATTENTION_LIST_LABELS, AttentionList } from './chunk-QPRTTTUN.js';
217
- export { BrandChip } from './chunk-UH44L7OJ.js';
216
+ export { AuthLayout } from './chunk-BN5FEJL5.js';
218
217
  export { AvatarPicker } from './chunk-DBH7ORCH.js';
219
218
  export { HuePicker, HueSwatch } from './chunk-PJMDZEWY.js';
220
219
  export { Popover } from './chunk-LCAKSEMB.js';
221
220
  export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from './chunk-LNQSNXGJ.js';
222
221
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from './chunk-AYKXMIOR.js';
222
+ export { BrandChip } from './chunk-UH44L7OJ.js';
223
223
  export { BrandLockup } from './chunk-KXWJJWBD.js';
224
224
  export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from './chunk-7L6JJ7VJ.js';
225
225
  export { Skeleton } from './chunk-I4IUX3JF.js';
@@ -239,8 +239,8 @@ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRail
239
239
  export { afterMotion, releaseFocus, runningMotion, usePresence } from './chunk-PCAT2EFB.js';
240
240
  import './chunk-JLOESTT2.js';
241
241
  export { ArrangeBoard } from './chunk-QO7QEQKV.js';
242
- export { ArrangeGrid } from './chunk-QBA5B2Z5.js';
243
242
  export { ArrangeFrame, useGridResize } from './chunk-TKAERQQF.js';
243
+ export { ArrangeGrid } from './chunk-QBA5B2Z5.js';
244
244
  export { ArrangeGroup } from './chunk-7U6PK242.js';
245
245
  export { ArrangeList, DEFAULT_ARRANGE_LABELS } from './chunk-2W4US3JO.js';
246
246
  export { Switch } from './chunk-CZKEABMI.js';
@@ -260,9 +260,9 @@ export { Menu } from './chunk-JK6WLRYP.js';
260
260
  export { ACCESS_DENIED_REASONS, AccessDeniedCard } from './chunk-QTMUKRTN.js';
261
261
  export { EmptyState } from './chunk-PPUR46MK.js';
262
262
  export { Accordion, AccordionItem } from './chunk-E2QPZGLG.js';
263
+ export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
263
264
  export { ActivityLine } from './chunk-V7N5XWZ6.js';
264
265
  export { ThinkingIndicator } from './chunk-3OIVYHAA.js';
265
- export { ACTION_CARD_GROUND, ActionCard, ActionCardRow } from './chunk-OM2LABPS.js';
266
266
  export { ADD_PILL_MS, AddPill } from './chunk-SSN7Y3UY.js';
267
267
  export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from './chunk-EMXUREKE.js';
268
268
  export { Timeline, TimelineItem } from './chunk-ZDJQQ4LU.js';
package/dist/styles.css CHANGED
@@ -11326,7 +11326,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11326
11326
  }
11327
11327
 
11328
11328
 
11329
- /* ChatThread-HAECJMP6.css */
11329
+ /* ChatThread-XANOIJXN.css */
11330
11330
  /*
11331
11331
  * A conversation as it grows: the scroller, the items a spacing step and a
11332
11332
  * half apart on the panel's 16px inset, and the Jump to latest pill in a row
@@ -11343,7 +11343,8 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11343
11343
  /*
11344
11344
  * THE BROWSER'S SCROLL ANCHORING IS OFF: it pins the content above the
11345
11345
  * reader's view, which fights a last child that keeps growing as an answer
11346
- * streams in. ChatThread.tsx anchors to the end itself.
11346
+ * streams in. ChatThread.tsx anchors itself: to the end while the reader is
11347
+ * there, and to the item at the top of the view while they are away.
11347
11348
  *
11348
11349
  * THE SCROLLER IS THE CONTAINING BLOCK for everything positioned inside it.
11349
11350
  * It was not, so an absolutely positioned descendant with no positioned
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.98.0",
3
+ "version": "0.99.0",
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.98.0",
46
- "@crewlethq/tokens": "0.98.0",
45
+ "@crewlethq/icons": "0.99.0",
46
+ "@crewlethq/tokens": "0.99.0",
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 { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
2
1
  import { Select } from './chunk-IAR2ULSK.js';
2
+ import { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
3
3
  import { Text } from './chunk-O5CEG7TQ.js';
4
4
  import { Card } from './chunk-U2IQNDDR.js';
5
5
  import './RailList-N2ZBPRM2.css';