@crewlethq/ui 0.126.3 → 0.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +16 -0
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AgentHandoffPanel/index.js +7 -7
  4. package/dist/AppShell/index.js +3 -3
  5. package/dist/ArtifactCard/index.js +3 -3
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CRSLRUVT.css → Avatar-RHFI55UZ.css} +14 -0
  8. package/dist/{AvatarStack-GNEJHEU6.css → AvatarStack-UNBXFHTZ.css} +14 -1
  9. package/dist/Canvas/Canvas.d.ts +12 -1
  10. package/dist/Canvas/index.d.ts +1 -1
  11. package/dist/Canvas/index.js +1 -1
  12. package/dist/CanvasBoard/index.js +3 -3
  13. package/dist/CanvasToolbar/index.js +2 -2
  14. package/dist/ChatThread/index.js +3 -3
  15. package/dist/Clamp/Clamp.d.ts +50 -0
  16. package/dist/Clamp/index.d.ts +3 -0
  17. package/dist/Clamp/index.js +12 -0
  18. package/dist/Clamp-Q5WKCGWY.css +60 -0
  19. package/dist/Combobox/index.js +2 -2
  20. package/dist/CommandPalette/index.js +5 -5
  21. package/dist/CommentThread/index.js +7 -7
  22. package/dist/Composer/index.js +3 -3
  23. package/dist/DataGrid/index.js +3 -3
  24. package/dist/DataTable/index.js +4 -4
  25. package/dist/DataView/index.js +6 -6
  26. package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +37 -24
  27. package/dist/DeliveryReceipt/index.js +1 -2
  28. package/dist/{DeliveryReceipt-G55ILD6O.css → DeliveryReceipt-BILVVNTO.css} +11 -14
  29. package/dist/DocTabsEditor/index.js +4 -4
  30. package/dist/DockColumn/index.js +1 -1
  31. package/dist/EntityChip/index.js +1 -1
  32. package/dist/GraphCanvas/GraphCanvas.d.ts +35 -6
  33. package/dist/GraphCanvas/index.d.ts +1 -1
  34. package/dist/GraphCanvas/index.js +3 -3
  35. package/dist/{GraphCanvas-V4VJADVF.css → GraphCanvas-R242DSDH.css} +17 -0
  36. package/dist/ImageUpload/index.js +1 -1
  37. package/dist/KeyValueRows/index.js +3 -3
  38. package/dist/ListInput/index.js +4 -4
  39. package/dist/OrgLabel/index.js +1 -1
  40. package/dist/OrgNode/index.js +1 -1
  41. package/dist/OrgTable/index.js +6 -6
  42. package/dist/PeopleRail/index.js +1 -1
  43. package/dist/PresenceStack/index.js +1 -1
  44. package/dist/Principal/index.js +1 -1
  45. package/dist/PrincipalPicker/index.js +4 -4
  46. package/dist/ProposalCard/index.js +3 -3
  47. package/dist/RailList/index.js +5 -5
  48. package/dist/RichEditor/index.js +1 -1
  49. package/dist/SectionFrame/index.js +3 -3
  50. package/dist/Select/index.js +2 -2
  51. package/dist/SendKeys/index.js +2 -2
  52. package/dist/SetupWizard/index.js +1 -1
  53. package/dist/ShareDialog/index.js +6 -6
  54. package/dist/SheetColumnEditor/index.js +7 -7
  55. package/dist/SheetGrid/index.js +1 -1
  56. package/dist/SidebarNav/index.js +2 -2
  57. package/dist/SlideFilmstrip/index.js +4 -4
  58. package/dist/Switcher/index.js +2 -2
  59. package/dist/TableCells/index.js +1 -1
  60. package/dist/ThreadSummary/ThreadSummary.d.ts +24 -16
  61. package/dist/ThreadSummary/index.js +2 -2
  62. package/dist/{ThreadSummary-2AFEU6NH.css → ThreadSummary-3AODTHAM.css} +44 -35
  63. package/dist/TimeRangePicker/index.js +4 -4
  64. package/dist/TimeWindowPicker/index.js +5 -5
  65. package/dist/TreeCanvas/index.js +4 -4
  66. package/dist/TreeGrid/index.js +4 -4
  67. package/dist/ValueField/index.js +4 -4
  68. package/dist/VersionTimeline/index.js +1 -1
  69. package/dist/WorkingLine/index.js +2 -2
  70. package/dist/{chunk-C7BHAZVR.js → chunk-26TNM64L.js} +2 -2
  71. package/dist/{chunk-ZJQNN7ZJ.js → chunk-556M2A4S.js} +1 -1
  72. package/dist/{chunk-4QDFH4AA.js → chunk-56WQTRIW.js} +1 -1
  73. package/dist/{chunk-YNREHSBZ.js → chunk-66TVD3RU.js} +1 -1
  74. package/dist/{chunk-P47YVFX6.js → chunk-6LG6JJSW.js} +2 -2
  75. package/dist/{chunk-DL6Y7SVB.js → chunk-7GGX7TDB.js} +2 -2
  76. package/dist/{chunk-5UNIA2VJ.js → chunk-7VBZDGOS.js} +2 -2
  77. package/dist/{chunk-5SMYKL3D.js → chunk-ARZGEHWE.js} +2 -2
  78. package/dist/{chunk-NZFYX5UF.js → chunk-AVH6XN2O.js} +1 -1
  79. package/dist/{chunk-VCFV7FTE.js → chunk-BZVQ7KTX.js} +1 -1
  80. package/dist/{chunk-GKHZSNIV.js → chunk-CVNJ6VHK.js} +7 -3
  81. package/dist/{chunk-GQPKDPMS.js → chunk-ELV2BL4R.js} +2 -2
  82. package/dist/{chunk-BG4GI5W3.js → chunk-FNJCCVQX.js} +1 -1
  83. package/dist/chunk-GTNXDLYH.js +146 -0
  84. package/dist/{chunk-T2FJN6C6.js → chunk-GVDV4X43.js} +1 -1
  85. package/dist/{chunk-2S3J5LEN.js → chunk-ICIJUGKK.js} +3 -3
  86. package/dist/chunk-IZGB6SQE.js +89 -0
  87. package/dist/{chunk-NSUMHNUS.js → chunk-LETSZEMX.js} +1 -1
  88. package/dist/{chunk-EFY7R766.js → chunk-LPP2PMKP.js} +1 -1
  89. package/dist/{chunk-VIS6DKGQ.js → chunk-NB2QYDYA.js} +1 -1
  90. package/dist/{chunk-SFO4KY65.js → chunk-OYKQVTJB.js} +1 -1
  91. package/dist/{chunk-5GIBHRCS.js → chunk-PAK2FUDN.js} +2 -2
  92. package/dist/{chunk-QDXSBVZR.js → chunk-PCSIMBUQ.js} +2 -2
  93. package/dist/{chunk-CWHFC7FS.js → chunk-R4LHYCZN.js} +36 -32
  94. package/dist/{chunk-I5HJ6Y6E.js → chunk-U4HA6LRQ.js} +8 -14
  95. package/dist/{chunk-BF3PFRBE.js → chunk-Y54H5NJO.js} +1 -1
  96. package/dist/generated/index.d.ts +1 -0
  97. package/dist/generated/index.js +79 -78
  98. package/dist/index.js +79 -78
  99. package/dist/styles.css +168 -55
  100. package/package.json +3 -3
  101. package/dist/chunk-WNPKXYDJ.js +0 -141
  102. package/dist/{Editor-CTZXT2FC.js → Editor-UIBCHECM.js} +2 -2
  103. package/dist/{chunk-QV3WVNRA.js → chunk-2KUAO2CX.js} +0 -0
  104. package/dist/{chunk-Z64KEJ3N.js → chunk-2ZO7WP3T.js} +2 -2
  105. package/dist/{chunk-PYF5DNOK.js → chunk-6RMR2YYQ.js} +1 -1
  106. package/dist/{chunk-4OKNZZ5E.js → chunk-7AAM3PCB.js} +1 -1
  107. package/dist/{chunk-SM2MM4DQ.js → chunk-BS5DASEB.js} +1 -1
  108. package/dist/{chunk-CPWSBK3F.js → chunk-COPAHZHK.js} +1 -1
  109. package/dist/{chunk-KTKPC3CV.js → chunk-CRXNGDYG.js} +1 -1
  110. package/dist/{chunk-WUJ54OTI.js → chunk-CWGZE3JW.js} +1 -1
  111. package/dist/{chunk-3R7AB45M.js → chunk-FXKRSBUM.js} +1 -1
  112. package/dist/{chunk-TLZ7NG6T.js → chunk-HGL7HMBZ.js} +1 -1
  113. package/dist/{chunk-EOMLCNC4.js → chunk-LLPDEZT5.js} +1 -1
  114. package/dist/{chunk-TU6IC2XD.js → chunk-RE6MXNIM.js} +1 -1
  115. package/dist/{chunk-Q7WKCU2U.js → chunk-U56B2BAX.js} +1 -1
  116. package/dist/{chunk-6ZFQ6TAM.js → chunk-YKCLV77Z.js} +1 -1
  117. package/dist/{chunk-UZMXC5T6.js → chunk-YUVQUJND.js} +1 -1
@@ -1,11 +1,11 @@
1
- export { NavDivider, NavGroup, NavItem, SidebarNav } from '../chunk-SM2MM4DQ.js';
1
+ export { NavDivider, NavGroup, NavItem, SidebarNav } from '../chunk-BS5DASEB.js';
2
2
  import '../chunk-6KWNXIDE.js';
3
3
  import '../chunk-TODOBUXO.js';
4
4
  import '../chunk-HBDA76EZ.js';
5
- import '../chunk-COS6LJ4K.js';
6
5
  import '../chunk-M2M6ZD7P.js';
7
6
  import '../chunk-XSPCITPN.js';
8
7
  import '../chunk-2YTOOH3A.js';
8
+ import '../chunk-COS6LJ4K.js';
9
9
  import '../chunk-TDFLCUBE.js';
10
10
  import '../chunk-HXVMXH6U.js';
11
11
  import '../chunk-L72URIHR.js';
@@ -1,12 +1,12 @@
1
- export { SlideFilmstrip } from '../chunk-4OKNZZ5E.js';
1
+ export { SlideFilmstrip } from '../chunk-7AAM3PCB.js';
2
2
  import '../chunk-7O53SWKI.js';
3
- import '../chunk-JMBPMSNI.js';
4
3
  import '../chunk-FIQGLZ5Q.js';
5
- import '../chunk-SK4BIFTG.js';
6
- import '../chunk-COS6LJ4K.js';
4
+ import '../chunk-JMBPMSNI.js';
7
5
  import '../chunk-VBBLHS2Y.js';
8
6
  import '../chunk-M2M6ZD7P.js';
9
7
  import '../chunk-XSPCITPN.js';
8
+ import '../chunk-SK4BIFTG.js';
9
+ import '../chunk-COS6LJ4K.js';
10
10
  import '../chunk-X5YI6E5X.js';
11
11
  import '../chunk-TDFLCUBE.js';
12
12
  import '../chunk-HXVMXH6U.js';
@@ -6,6 +6,8 @@ import '../chunk-KDRJZWE3.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-475DOAWF.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
+ import '../chunk-M2M6ZD7P.js';
10
+ import '../chunk-XSPCITPN.js';
9
11
  import '../chunk-NN44J7BP.js';
10
12
  import '../chunk-NICEDVZM.js';
11
13
  import '../chunk-JLKO7PSK.js';
@@ -13,8 +15,6 @@ import '../chunk-PJV5HVZY.js';
13
15
  import '../chunk-TEXK4RK6.js';
14
16
  import '../chunk-SK4BIFTG.js';
15
17
  import '../chunk-COS6LJ4K.js';
16
- import '../chunk-M2M6ZD7P.js';
17
- import '../chunk-XSPCITPN.js';
18
18
  import '../chunk-X5YI6E5X.js';
19
19
  import '../chunk-TDFLCUBE.js';
20
20
  import '../chunk-HXVMXH6U.js';
@@ -6,7 +6,7 @@ import '../chunk-WGLOH33S.js';
6
6
  import '../chunk-475DOAWF.js';
7
7
  import '../chunk-WSIJDWUG.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
- import '../chunk-5SMYKL3D.js';
9
+ import '../chunk-ARZGEHWE.js';
10
10
  import '../chunk-XZY6S3UC.js';
11
11
  import '../chunk-RRRK2KB6.js';
12
12
  import '../chunk-ODEQTPFM.js';
@@ -5,15 +5,15 @@ export interface ThreadSummaryLabels {
5
5
  replies: (count: number) => string;
6
6
  /** The replies the reader has not read: "2 new". */
7
7
  fresh: (count: number) => string;
8
- /** When the last reply came, given the caller's words for it: "Last reply 12m ago". */
8
+ /**
9
+ * When the last reply came, in the line's accessible name, given the
10
+ * caller's words for it: "last reply 12m ago". The line itself shows the
11
+ * caller's words alone ("12m ago"), after the count.
12
+ */
9
13
  last: (when: string) => string;
10
- /** At the line's end under the pointer, beside the chevron that says it opens. */
11
- view: string;
12
- /** Shown in its place while the thread is open beside the room. */
13
- open: string;
14
14
  }
15
- /** The repliers' faces, in px: side by side, a step apart, in a 34px line. */
16
- export declare const THREAD_SUMMARY_FACE = 24;
15
+ /** The repliers' faces, the avatar's smallest step (20px), overlapped on the small control's line. */
16
+ export declare const THREAD_SUMMARY_FACE: "xs";
17
17
  export declare const THREAD_SUMMARY_LABELS: ThreadSummaryLabels;
18
18
  export interface ThreadSummaryProps {
19
19
  /** How many replies the thread holds. */
@@ -34,15 +34,23 @@ export interface ThreadSummaryProps {
34
34
  }
35
35
  /**
36
36
  * The line under a message that has replies: the repliers' faces, "4
37
- * replies" at the medium weight in the accent's ink, and how many are new.
38
- * It opens the thread, from anywhere on the line.
37
+ * replies" at the medium weight in the accent's ink, how many are new, and
38
+ * when the last came: "4 replies · 12m ago". It opens the thread, from
39
+ * anywhere on the line.
39
40
  *
40
- * QUIET AT REST, so a room of threads stays calm: faces and the count. UNDER
41
- * THE POINTER OR THE KEYBOARD it is set into the transcript's own ground inside
42
- * a hairline, when the last reply came fades in, and "View thread" with a
43
- * chevron stands at its end. Every part is always laid out, so nothing moves.
44
- * While the thread is open beside the room, the message it hangs off wears the
45
- * selected surface and the line's end says so. Its faces sit on the content
46
- * edge: the line's inset and edge are taken back outside it.
41
+ * AS LONG AS WHAT IT SAYS. It hugs its faces and its words, so a room of
42
+ * threads reads as short facts under their messages rather than as a column
43
+ * of bars. Nothing is hidden at rest: under the pointer only the hairline,
44
+ * its ground and the chevron that says it opens come in, and the chevron's
45
+ * place is always laid out, so the line never changes length.
46
+ *
47
+ * OPEN IS A STATE, NOT WORDS. While the thread is open beside the room the
48
+ * line wears the selected surface inside its hairline, and the message it
49
+ * hangs off wears it too; the chevron, which says "opens", is gone. A screen
50
+ * reader hears the state as the button's `aria-expanded`, and its name keeps
51
+ * every fact the line shows: "4 replies, 2 new, last reply 12m ago".
52
+ *
53
+ * Its faces sit on the content edge: the line's inset and edge are taken back
54
+ * outside it.
47
55
  */
48
56
  export declare function ThreadSummary({ replies, participants, last, unread, working, open, onOpen, labels: overrides, className, }: ThreadSummaryProps): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
- export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-I5HJ6Y6E.js';
1
+ export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-U4HA6LRQ.js';
2
2
  import '../chunk-SJ3EUCFD.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
- import '../chunk-5SMYKL3D.js';
4
+ import '../chunk-ARZGEHWE.js';
5
5
  import '../chunk-XZY6S3UC.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -2,7 +2,8 @@
2
2
  * The line under a message that has replies, and the working line under it.
3
3
  */
4
4
 
5
- /* The column's width, so the line's own cap (below) is what bounds it. */
5
+ /* A column under the message: the line hugs its own content, and the working
6
+ line under it may run the column's width. */
6
7
  .crewlet-thread-summary-wrap {
7
8
  display: flex;
8
9
  flex-direction: column;
@@ -17,18 +18,25 @@
17
18
  max-width: 100%;
18
19
  }
19
20
 
20
- /* The faces sit on the content edge: the line's 1px edge and its inset are
21
- taken back by the same amount outside it. It runs the content column's
22
- width up to a reading cap, so the whole line is the target and its end
23
- stands at one place down a room. */
21
+ /*
22
+ * AS LONG AS WHAT IT SAYS: the faces, the count, how many are new, when the
23
+ * last reply came and the chevron's place, and no more. It was a bar the
24
+ * content column's width up to 37.5rem, with "View thread" or "Thread open"
25
+ * at its far end, which turned a two-word fact into the heaviest thing under
26
+ * a message.
27
+ *
28
+ * The faces sit on the content edge: the line's 1px edge and its inset are
29
+ * taken back by the same amount outside it.
30
+ */
24
31
  .crewlet-thread-summary {
25
32
  --crewlet-thread-summary-inset: var(--spacing-1);
26
- display: flex;
33
+ display: inline-flex;
27
34
  align-items: center;
28
- gap: var(--spacing-2);
29
- width: min(100%, 37.5rem);
30
- /* The 24px faces with 5px of air above and below. */
31
- height: calc(var(--size-control-md) + var(--spacing-1));
35
+ gap: var(--spacing-1);
36
+ /* The small control's height: the 20px faces with a little air inside the
37
+ hairline. */
38
+ height: var(--size-control-sm);
39
+ min-width: 0;
32
40
  box-sizing: border-box;
33
41
  margin-inline-start: calc((var(--crewlet-thread-summary-inset) + 1px) * -1);
34
42
  padding: 0 var(--crewlet-thread-summary-inset);
@@ -40,6 +48,7 @@
40
48
  font-size: var(--font-size-compact);
41
49
  line-height: 1;
42
50
  text-align: start;
51
+ white-space: nowrap;
43
52
  cursor: pointer;
44
53
  }
45
54
 
@@ -55,47 +64,53 @@
55
64
  outline-offset: var(--size-focus-ring-inset-offset);
56
65
  }
57
66
 
67
+ /* A step between the faces and the words, wider than the one between the
68
+ words themselves. */
69
+ .crewlet-thread-summary > .crewlet-avatar-stack {
70
+ margin-inline-end: var(--spacing-1);
71
+ }
72
+
58
73
  .crewlet-thread-summary__count {
59
74
  flex: none;
60
75
  color: var(--color-brand-accent-ink);
61
76
  font-weight: var(--font-weight-medium);
62
- white-space: nowrap;
63
77
  }
64
78
 
65
- /* When the last reply came, laid out at rest and shown on the line's hover:
66
- the part that gives way first where the column is narrow. */
79
+ /* When the last reply came, after the count and a middle dot the eye reads
80
+ between them, in the quiet ink: always shown, and the part that gives way
81
+ first where the column is narrow. */
67
82
  .crewlet-thread-summary__last {
68
83
  min-width: 0;
69
84
  overflow: hidden;
70
85
  color: var(--color-text-tertiary);
71
86
  text-overflow: ellipsis;
72
- white-space: nowrap;
73
- opacity: 0;
74
- transition: opacity var(--motion-duration-moderate) var(--motion-easing-default);
75
87
  }
76
88
 
77
- /* "View thread" and the chevron that says the line opens, at its end. */
78
- .crewlet-thread-summary__end {
79
- display: inline-flex;
80
- flex: none;
81
- align-items: center;
82
- gap: var(--spacing-1);
83
- margin-inline-start: auto;
84
- color: var(--color-text-secondary);
85
- white-space: nowrap;
86
- opacity: 0;
89
+ .crewlet-thread-summary__last::before {
90
+ content: '\00b7\00a0';
87
91
  }
88
92
 
93
+ /* The chevron that says the line opens: its place always laid out, shown
94
+ under the pointer or the keyboard. */
89
95
  .crewlet-thread-summary__chevron {
96
+ flex: none;
90
97
  color: var(--color-text-tertiary);
98
+ opacity: 0;
91
99
  }
92
100
 
93
- .crewlet-thread-summary:is(:hover, :focus-visible) .crewlet-thread-summary__last,
94
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__end {
101
+ .crewlet-thread-summary:is(:hover, :focus-visible) .crewlet-thread-summary__chevron {
95
102
  opacity: 1;
96
103
  }
97
104
 
98
- /* OPEN, the end says so and opens nothing new. */
105
+ /* OPEN, the line is the selected surface inside its hairline, and opens
106
+ nothing new: no chevron. */
107
+ .crewlet-thread-summary.is-open,
108
+ .crewlet-thread-summary.is-open:is(:hover, :focus-visible) {
109
+ border-color: var(--color-edge-hairline);
110
+ background: var(--color-surface-selected);
111
+ color: var(--color-text-primary);
112
+ }
113
+
99
114
  .crewlet-thread-summary.is-open .crewlet-thread-summary__chevron {
100
115
  visibility: hidden;
101
116
  }
@@ -107,9 +122,3 @@
107
122
  .crewlet-chat-message:has(.crewlet-thread-summary.is-open):hover {
108
123
  background: var(--color-surface-selected);
109
124
  }
110
-
111
- @media (prefers-reduced-motion: reduce) {
112
- .crewlet-thread-summary__last {
113
- transition: none;
114
- }
115
- }
@@ -1,4 +1,4 @@
1
- export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-3R7AB45M.js';
1
+ export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-FXKRSBUM.js';
2
2
  import '../chunk-IU7QVXHA.js';
3
3
  import '../chunk-RCQLXOGS.js';
4
4
  import '../chunk-7U4V36SB.js';
@@ -7,14 +7,14 @@ import '../chunk-L2N7SZFY.js';
7
7
  import '../chunk-7F3OPUM5.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-FIQGLZ5Q.js';
10
+ import '../chunk-M2M6ZD7P.js';
11
+ import '../chunk-XSPCITPN.js';
12
+ import '../chunk-2YTOOH3A.js';
10
13
  import '../chunk-NN44J7BP.js';
11
14
  import '../chunk-NICEDVZM.js';
12
15
  import '../chunk-JLKO7PSK.js';
13
16
  import '../chunk-PJV5HVZY.js';
14
17
  import '../chunk-TEXK4RK6.js';
15
- import '../chunk-M2M6ZD7P.js';
16
- import '../chunk-XSPCITPN.js';
17
- import '../chunk-2YTOOH3A.js';
18
18
  import '../chunk-X5YI6E5X.js';
19
19
  import '../chunk-TDFLCUBE.js';
20
20
  import '../chunk-HXVMXH6U.js';
@@ -1,16 +1,16 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-GQPKDPMS.js';
2
- import '../chunk-6ZFQ6TAM.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-ELV2BL4R.js';
2
+ import '../chunk-YKCLV77Z.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
5
  import '../chunk-KDRJZWE3.js';
6
+ import '../chunk-M2M6ZD7P.js';
7
+ import '../chunk-XSPCITPN.js';
8
+ import '../chunk-2YTOOH3A.js';
6
9
  import '../chunk-NN44J7BP.js';
7
10
  import '../chunk-NICEDVZM.js';
8
11
  import '../chunk-JLKO7PSK.js';
9
12
  import '../chunk-PJV5HVZY.js';
10
13
  import '../chunk-TEXK4RK6.js';
11
- import '../chunk-M2M6ZD7P.js';
12
- import '../chunk-XSPCITPN.js';
13
- import '../chunk-2YTOOH3A.js';
14
14
  import '../chunk-X5YI6E5X.js';
15
15
  import '../chunk-TDFLCUBE.js';
16
16
  import '../chunk-HXVMXH6U.js';
@@ -1,12 +1,12 @@
1
- export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-ZJQNN7ZJ.js';
1
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-556M2A4S.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-GKHZSNIV.js';
3
+ import '../chunk-CVNJ6VHK.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
- import '../chunk-SK4BIFTG.js';
6
- import '../chunk-COS6LJ4K.js';
7
5
  import '../chunk-VBBLHS2Y.js';
8
6
  import '../chunk-M2M6ZD7P.js';
9
7
  import '../chunk-XSPCITPN.js';
8
+ import '../chunk-SK4BIFTG.js';
9
+ import '../chunk-COS6LJ4K.js';
10
10
  import '../chunk-X5YI6E5X.js';
11
11
  import '../chunk-TDFLCUBE.js';
12
12
  import '../chunk-HXVMXH6U.js';
@@ -1,12 +1,14 @@
1
- export { TreeGrid } from '../chunk-VIS6DKGQ.js';
1
+ export { TreeGrid } from '../chunk-NB2QYDYA.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-CPWSBK3F.js';
3
+ import '../chunk-COPAHZHK.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-WSIJDWUG.js';
7
7
  import '../chunk-JMBPMSNI.js';
8
8
  import '../chunk-KFTVPWG2.js';
9
9
  import '../chunk-PPUR46MK.js';
10
+ import '../chunk-M2M6ZD7P.js';
11
+ import '../chunk-XSPCITPN.js';
10
12
  import '../chunk-NN44J7BP.js';
11
13
  import '../chunk-NICEDVZM.js';
12
14
  import '../chunk-JLKO7PSK.js';
@@ -14,8 +16,6 @@ import '../chunk-PJV5HVZY.js';
14
16
  import '../chunk-TEXK4RK6.js';
15
17
  import '../chunk-SK4BIFTG.js';
16
18
  import '../chunk-COS6LJ4K.js';
17
- import '../chunk-M2M6ZD7P.js';
18
- import '../chunk-XSPCITPN.js';
19
19
  import '../chunk-X5YI6E5X.js';
20
20
  import '../chunk-TDFLCUBE.js';
21
21
  import '../chunk-HXVMXH6U.js';
@@ -1,13 +1,13 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-QDXSBVZR.js';
2
- import '../chunk-6ZFQ6TAM.js';
3
- import '../chunk-WUJ54OTI.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-PCSIMBUQ.js';
2
+ import '../chunk-YKCLV77Z.js';
3
+ import '../chunk-CWGZE3JW.js';
4
4
  import '../chunk-KW7T23RT.js';
5
+ import '../chunk-2YTOOH3A.js';
5
6
  import '../chunk-NN44J7BP.js';
6
7
  import '../chunk-NICEDVZM.js';
7
8
  import '../chunk-JLKO7PSK.js';
8
9
  import '../chunk-PJV5HVZY.js';
9
10
  import '../chunk-TEXK4RK6.js';
10
- import '../chunk-2YTOOH3A.js';
11
11
  import '../chunk-X5YI6E5X.js';
12
12
  import '../chunk-TDFLCUBE.js';
13
13
  import '../chunk-HXVMXH6U.js';
@@ -2,7 +2,7 @@ export { VersionTimeline } from '../chunk-RM5RKPFV.js';
2
2
  import '../chunk-HF5L56YQ.js';
3
3
  import '../chunk-GBKBME7Q.js';
4
4
  import '../chunk-WGLOH33S.js';
5
- import '../chunk-5SMYKL3D.js';
5
+ import '../chunk-ARZGEHWE.js';
6
6
  import '../chunk-XZY6S3UC.js';
7
7
  import '../chunk-XDUXAQIS.js';
8
8
  import '../chunk-M2M6ZD7P.js';
@@ -1,5 +1,5 @@
1
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-SFO4KY65.js';
2
- import '../chunk-5SMYKL3D.js';
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-OYKQVTJB.js';
2
+ import '../chunk-ARZGEHWE.js';
3
3
  import '../chunk-XZY6S3UC.js';
4
4
  import '../chunk-RRRK2KB6.js';
5
5
  import '../chunk-ODEQTPFM.js';
@@ -1,15 +1,15 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-E4QX4VET.js';
3
3
  import { DateTimePicker } from './chunk-AQZPZYSY.js';
4
- import { DataTable } from './chunk-EOMLCNC4.js';
4
+ import { DataTable } from './chunk-LLPDEZT5.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-KDRJZWE3.js';
8
8
  import { RelativeTime } from './chunk-GBKBME7Q.js';
9
9
  import { Menu } from './chunk-FIQGLZ5Q.js';
10
- import { Input } from './chunk-NN44J7BP.js';
11
10
  import { Kbd } from './chunk-VBBLHS2Y.js';
12
11
  import { Button } from './chunk-M2M6ZD7P.js';
12
+ import { Input } from './chunk-NN44J7BP.js';
13
13
  import { IconButton } from './chunk-X5YI6E5X.js';
14
14
  import { Count } from './chunk-Y5CMDLQM.js';
15
15
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -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-GKHZSNIV.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-CVNJ6VHK.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';
@@ -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-CTZXT2FC.js').then(
12
+ loading ??= import('./Editor-UIBCHECM.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,4 +1,4 @@
1
- import { useSendOnEnter, SendKeysHint } from './chunk-UZMXC5T6.js';
1
+ import { useSendOnEnter, SendKeysHint } from './chunk-YUVQUJND.js';
2
2
  import { Textarea } from './chunk-NN44J7BP.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,10 +1,10 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
2
  import { Modal } from './chunk-IU7QVXHA.js';
3
3
  import { CopyButton } from './chunk-AVK7RRQ4.js';
4
4
  import { Callout } from './chunk-RCQLXOGS.js';
5
5
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
6
- import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
6
  import { Button } from './chunk-M2M6ZD7P.js';
7
+ import { useMediaMatch } from './chunk-COS6LJ4K.js';
8
8
  import { IconButton } from './chunk-X5YI6E5X.js';
9
9
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
2
- import { SidebarNav, NavItem } from './chunk-SM2MM4DQ.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
+ import { SidebarNav, NavItem } from './chunk-BS5DASEB.js';
3
3
  import { Card } from './chunk-RABEMWTA.js';
4
4
  import { Text } from './chunk-475DOAWF.js';
5
5
  import './RailList-N2ZBPRM2.css';
@@ -1,6 +1,6 @@
1
1
  import { Note } from './chunk-YJPQJVRJ.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-T2FJN6C6.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-GKHZSNIV.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-GVDV4X43.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-CVNJ6VHK.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './CanvasBoard-U6LR5F6H.css';
@@ -1,7 +1,7 @@
1
1
  import { AVATAR_SIZES, Avatar } from './chunk-XZY6S3UC.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Avatar-CRSLRUVT.css';
4
- import './AvatarStack-GNEJHEU6.css';
3
+ import './Avatar-RHFI55UZ.css';
4
+ import './AvatarStack-UNBXFHTZ.css';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
7
  function counted(count, one, many) {
@@ -1,6 +1,6 @@
1
1
  import { Timeline } from './chunk-XDUXAQIS.js';
2
2
  import { Section } from './chunk-WFCWPXJN.js';
3
- import { Composer } from './chunk-YNREHSBZ.js';
3
+ import { Composer } from './chunk-66TVD3RU.js';
4
4
  import { Disclosure } from './chunk-D5O64CVE.js';
5
5
  import { ArtifactPanel } from './chunk-6IBFWV6U.js';
6
6
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -1,4 +1,4 @@
1
- import { TreeGrid } from './chunk-VIS6DKGQ.js';
1
+ import { TreeGrid } from './chunk-NB2QYDYA.js';
2
2
  import { OrgLabel } from './chunk-SYMLWDV6.js';
3
3
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';
@@ -286,12 +286,16 @@ function Canvas({
286
286
  announceReady.current = onReady;
287
287
  useLayoutEffect(() => {
288
288
  if (ready || !content || size.width <= 0 || size.height <= 0) return;
289
- const opening = initialNow.current;
289
+ const fit = fitOf(content, size);
290
+ const asked = initialNow.current;
291
+ const { top, bottom } = bandNow.current;
292
+ const room2 = { x: 0, y: top, width: size.width, height: Math.max(0, size.height - top - bottom) };
293
+ const opening = typeof asked === "function" ? asked(room2, fit) : asked;
290
294
  const first = opening ? clampPan(
291
- { ...opening, k: Math.min(limits.max, Math.max(Math.min(limits.min, fitOf(content, size).k), opening.k)) },
295
+ { ...opening, k: Math.min(limits.max, Math.max(Math.min(limits.min, fit.k), opening.k)) },
292
296
  content,
293
297
  size
294
- ) : fitOf(content, size);
298
+ ) : fit;
295
299
  viewNow.current = first;
296
300
  fitted.current = opening ? null : first;
297
301
  setView(first);
@@ -1,8 +1,8 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
2
  import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
3
3
  import { Popover } from './chunk-KDRJZWE3.js';
4
- import { Input } from './chunk-NN44J7BP.js';
5
4
  import { Button } from './chunk-M2M6ZD7P.js';
5
+ import { Input } from './chunk-NN44J7BP.js';
6
6
  import { IconButton } from './chunk-X5YI6E5X.js';
7
7
  import { isComposing } from './chunk-EDPMHSLZ.js';
8
8
  import { useFocusModality } from './chunk-4ITETIGZ.js';
@@ -1,4 +1,4 @@
1
- import { BouncingDots, WorkingLine } from './chunk-SFO4KY65.js';
1
+ import { BouncingDots, WorkingLine } from './chunk-OYKQVTJB.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ChatScale-LGESYXCO.css';
4
4
  import './ActivityLine-6RZHUYAC.css';