@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
package/README.md CHANGED
@@ -208,6 +208,22 @@ places:
208
208
  - A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
209
209
  when the content beneath it moves, and every panel anchored inside follows.
210
210
 
211
+ ## Changes in 0.127.0
212
+
213
+ ### A map opens fitted to its view
214
+
215
+ `GraphCanvas` opened a map too large to fit at half size on its top left corner at 75%, so on a laptop a few dozen entries and on a phone almost any map ran off the canvas, and a reader pressed Fit by hand. That rule was there because under half size a card was a blank box; since 0.126.0 tiles and marks keep a signal at every zoom, so a map now opens on the whole of itself, centred, at the zoom that fits it and at the level of detail that zoom draws (story: `GraphCanvas` Two Thousand). No other view is painted first.
216
+
217
+ - **It fits again when its first entries arrive.** A map placed while it holds no entries was fitted to its empty lanes; its first entries now fit it again, once. A later refresh of the same map keeps the view a reader made.
218
+ - **It refits when its box is resized while nobody has moved the view** (`Canvas`'s `refitOnResize`, which the map now turns on): a sheet opening beside the page, fullscreen, the narrow layout's foot. Once a reader has zoomed or panned, a resize keeps their view.
219
+ - **`initialNode` opens a map on one entry**, such as the one a link names: that entry in the middle of the view at up to `GRAPH_CANVAS_FOCUS_ZOOM` (75%), or less where the window is narrower than its card and padding; its closed group's card where it stands in one. A map whose fit already draws the entry that large opens on the fit (story: `GraphCanvas` Opened On One Entry). `graphFocusView` is that view, as a pure function.
220
+ - **Under half size an empty lane is its dashed outline**, under its title and its count of none, which hold their size. Its words, scaled with the map, were a few pixels of grey texture there, and a link among them a target nobody could see; they come back with the cards. The lane stays a stop of the walk.
221
+ - **`fitKey` names what is drawn.** Its documentation now says so: a key taken from the question still being asked fits the map the answer is about to replace.
222
+
223
+ **`Canvas`'s `initialView` takes a `CanvasOpening`**: a function asked once, when the first content is placed, with the room the canvas's bars leave and the fit, for an opening that depends on the viewport's size. Answering null opens on the fit, which then counts as an untouched fit.
224
+
225
+ **Breaking: `GRAPH_CANVAS_OPEN_ZOOM` is removed**, since no map opens at it any more. Use `GRAPH_CANVAS_FOCUS_ZOOM` for the zoom a map opened on one entry draws it at.
226
+
211
227
  ## Changes in 0.126.0
212
228
 
213
229
  ### A map keeps a readable signal as it zooms out
@@ -1,6 +1,6 @@
1
- export { ActivityLine } from '../chunk-BG4GI5W3.js';
2
- import '../chunk-SFO4KY65.js';
3
- import '../chunk-5SMYKL3D.js';
1
+ export { ActivityLine } from '../chunk-FNJCCVQX.js';
2
+ import '../chunk-OYKQVTJB.js';
3
+ import '../chunk-ARZGEHWE.js';
4
4
  import '../chunk-XZY6S3UC.js';
5
5
  import '../chunk-RRRK2KB6.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,13 +1,17 @@
1
- export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-NZFYX5UF.js';
1
+ export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-AVH6XN2O.js';
2
2
  import '../chunk-XDUXAQIS.js';
3
3
  import '../chunk-WFCWPXJN.js';
4
- import '../chunk-YNREHSBZ.js';
5
- import '../chunk-UZMXC5T6.js';
4
+ import '../chunk-66TVD3RU.js';
5
+ import '../chunk-YUVQUJND.js';
6
6
  import '../chunk-D5O64CVE.js';
7
7
  import '../chunk-6IBFWV6U.js';
8
8
  import '../chunk-O7V5AHLU.js';
9
9
  import '../chunk-MBEZOURR.js';
10
10
  import '../chunk-FQ6J4DK7.js';
11
+ import '../chunk-VBBLHS2Y.js';
12
+ import '../chunk-M2M6ZD7P.js';
13
+ import '../chunk-XSPCITPN.js';
14
+ import '../chunk-2YTOOH3A.js';
11
15
  import '../chunk-NN44J7BP.js';
12
16
  import '../chunk-NICEDVZM.js';
13
17
  import '../chunk-JLKO7PSK.js';
@@ -15,10 +19,6 @@ import '../chunk-PJV5HVZY.js';
15
19
  import '../chunk-TEXK4RK6.js';
16
20
  import '../chunk-SK4BIFTG.js';
17
21
  import '../chunk-COS6LJ4K.js';
18
- import '../chunk-VBBLHS2Y.js';
19
- import '../chunk-M2M6ZD7P.js';
20
- import '../chunk-XSPCITPN.js';
21
- import '../chunk-2YTOOH3A.js';
22
22
  import '../chunk-X5YI6E5X.js';
23
23
  import '../chunk-TDFLCUBE.js';
24
24
  import '../chunk-HXVMXH6U.js';
@@ -1,15 +1,15 @@
1
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-TU6IC2XD.js';
1
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-RE6MXNIM.js';
2
2
  import '../chunk-SNKQNAJI.js';
3
3
  import '../chunk-JLOESTT2.js';
4
4
  import '../chunk-FIQGLZ5Q.js';
5
5
  export { useAppShellAside, useAppShellPeek } from '../chunk-MBEZOURR.js';
6
6
  export { RESIZE_HANDLE_LARGE_STEP, RESIZE_HANDLE_STEP, ResizeHandle, clampSize } from '../chunk-FQ6J4DK7.js';
7
- import '../chunk-SK4BIFTG.js';
8
- import '../chunk-COS6LJ4K.js';
9
7
  import '../chunk-VBBLHS2Y.js';
10
8
  import '../chunk-M2M6ZD7P.js';
11
9
  import '../chunk-XSPCITPN.js';
12
10
  import '../chunk-2YTOOH3A.js';
11
+ import '../chunk-SK4BIFTG.js';
12
+ import '../chunk-COS6LJ4K.js';
13
13
  import '../chunk-X5YI6E5X.js';
14
14
  import '../chunk-TDFLCUBE.js';
15
15
  import '../chunk-HXVMXH6U.js';
@@ -1,4 +1,4 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-5GIBHRCS.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-PAK2FUDN.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-HF5L56YQ.js';
4
4
  import '../chunk-GBKBME7Q.js';
@@ -8,10 +8,10 @@ import '../chunk-AV2DXAEL.js';
8
8
  import '../chunk-475DOAWF.js';
9
9
  import '../chunk-WSIJDWUG.js';
10
10
  import '../chunk-W3A6NBUM.js';
11
- import '../chunk-KFTVPWG2.js';
12
11
  import '../chunk-DOY3KC6I.js';
13
12
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
14
- import '../chunk-5SMYKL3D.js';
13
+ import '../chunk-KFTVPWG2.js';
14
+ import '../chunk-ARZGEHWE.js';
15
15
  import '../chunk-XZY6S3UC.js';
16
16
  import '../chunk-NN44J7BP.js';
17
17
  import '../chunk-NICEDVZM.js';
@@ -1,3 +1,3 @@
1
- export { AvatarStack, avatarStackLabel } from '../chunk-5SMYKL3D.js';
1
+ export { AvatarStack, avatarStackLabel } from '../chunk-ARZGEHWE.js';
2
2
  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';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -66,6 +66,20 @@
66
66
  box-sizing: border-box;
67
67
  }
68
68
 
69
+ /*
70
+ * ONE PLACE ON A LINE, WHATEVER THE FACE HOLDS. An inline flex box takes its
71
+ * baseline from its first item, so a face standing in a line of text or in an
72
+ * inline wrapper (a title tooltip's span) sat on its initials' baseline when
73
+ * it held initials and on its picture's foot when it held a character: a
74
+ * person beside two agents stood 2px lower at 20px, measured. Centred on the
75
+ * line, every face lands on the same middle. A face in a sentence
76
+ * (`size="text"`) is placed by the sentence that holds it (InlineRef.css), so
77
+ * it is left out here.
78
+ */
79
+ .crewlet-avatar:not(.crewlet-avatar--text) {
80
+ vertical-align: middle;
81
+ }
82
+
69
83
  /*
70
84
  * The four steps. Each pairs its box with a type step, so two initials sit
71
85
  * inside the outline at every one of them. A numeric size sets the same
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  /*
41
- * THE RING IS THE ONLY EDGE A STACKED FACE NEEDS. A face's own hairline inside
41
+ * THE RING IS THE ONLY EDGE A PLATED FACE NEEDS. A face's own hairline inside
42
42
  * the ring drew each face as a framed tile, two edges a pixel apart, so a
43
43
  * stacked face (a member, or the face a member wraps) draws its border in no
44
44
  * colour. The border keeps its width, so the face keeps its box.
@@ -48,6 +48,19 @@
48
48
  border-color: transparent;
49
49
  }
50
50
 
51
+ /*
52
+ * EXCEPT A FACE WITH NO PLATE OF ITS OWN. The neutral badge (a person's
53
+ * initials, an agent nobody gave a hue) is the raised rung, which on the
54
+ * light sheet is a step of 1.03:1, so with its hairline gone it had no edge
55
+ * at all: a person's initials stood bare between agents' tinted plates and
56
+ * read as a smaller face. Its hairline is its plate's only edge, and it keeps
57
+ * it inside the ring.
58
+ */
59
+ .crewlet-avatar-stack > .crewlet-avatar-stack__member.crewlet-avatar--neutral,
60
+ .crewlet-avatar-stack > .crewlet-avatar-stack__member > .crewlet-avatar--neutral {
61
+ border-color: var(--color-edge-hairline);
62
+ }
63
+
51
64
  /*
52
65
  * A BADGE IN FRONT HIDES THE ONE BEHIND IT. A hue's plate is a tint, 12% of
53
66
  * the hue over whatever the badge stands on, and in a stack that is partly
@@ -85,6 +85,15 @@ import { type CanvasPoint, type CanvasRect, type CanvasSize, type CanvasView } f
85
85
  * chart travelling somewhere else. See the state that holds it, below.
86
86
  */
87
87
  export type CanvasEase = 'near' | 'travel';
88
+ /**
89
+ * AN OPENING WORKED OUT FROM THE VIEWPORT, for a view that cannot be known
90
+ * before the canvas has its size, such as one item drawn in the middle of it.
91
+ * Asked once, when the first content is placed, with `room` (the part of the
92
+ * viewport the canvas's own bars leave, in viewport coordinates) and `fit`
93
+ * (the view that shows all of the content there). Answering null opens on the
94
+ * fit, which then counts as one: see `refitOnResize`.
95
+ */
96
+ export type CanvasOpening = (room: CanvasRect, fit: CanvasView) => CanvasView | null;
88
97
  /** What a screen can ask of a canvas it holds a ref to. */
89
98
  export interface CanvasHandle {
90
99
  /** Show all of the content. Eases, unless reduced motion is set. */
@@ -327,8 +336,10 @@ export interface CanvasProps {
327
336
  /**
328
337
  * The view to open on instead of the fit, such as one a reader left and came
329
338
  * back to: read once, when the first content is placed, and kept reachable.
339
+ * An opening that depends on the viewport's size is a [CanvasOpening],
340
+ * asked at that moment.
330
341
  */
331
- initialView?: CanvasView | undefined;
342
+ initialView?: CanvasView | CanvasOpening | undefined;
332
343
  ref?: Ref<CanvasHandle> | undefined;
333
344
  className?: string | undefined;
334
345
  }
@@ -1,6 +1,6 @@
1
1
  import './Canvas.css';
2
2
  export { Canvas, gridOf } from './Canvas.js';
3
- export type { CanvasCursor, CanvasGround, CanvasHandle, CanvasLabels, CanvasProps } from './Canvas.js';
3
+ export type { CanvasCursor, CanvasGround, CanvasHandle, CanvasLabels, CanvasOpening, CanvasProps } from './Canvas.js';
4
4
  export { ShortcutTip } from './ShortcutTip.js';
5
5
  export type { ShortcutTipProps } from './ShortcutTip.js';
6
6
  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, IDENTITY_VIEW, anchorView, beyondSlop, clampPan, clampZoom, fitView, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits, } from './geometry.js';
@@ -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-GKHZSNIV.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-CVNJ6VHK.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-5UNIA2VJ.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-7VBZDGOS.js';
2
2
  import '../chunk-YJPQJVRJ.js';
3
- import '../chunk-T2FJN6C6.js';
3
+ import '../chunk-GVDV4X43.js';
4
4
  import '../chunk-NPEI2QAN.js';
5
- import '../chunk-GKHZSNIV.js';
5
+ import '../chunk-CVNJ6VHK.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-T2FJN6C6.js';
1
+ export { CanvasToolbar, toolForKey } from '../chunk-GVDV4X43.js';
2
2
  import '../chunk-NPEI2QAN.js';
3
- import '../chunk-GKHZSNIV.js';
3
+ import '../chunk-CVNJ6VHK.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-VBBLHS2Y.js';
6
6
  import '../chunk-M2M6ZD7P.js';
@@ -1,9 +1,9 @@
1
- export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-KTKPC3CV.js';
1
+ export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-CRXNGDYG.js';
2
2
  import '../chunk-Y3EV3Q2U.js';
3
- import '../chunk-SK4BIFTG.js';
4
- import '../chunk-COS6LJ4K.js';
5
3
  import '../chunk-M2M6ZD7P.js';
6
4
  import '../chunk-XSPCITPN.js';
5
+ import '../chunk-SK4BIFTG.js';
6
+ import '../chunk-COS6LJ4K.js';
7
7
  import '../chunk-TDFLCUBE.js';
8
8
  import '../chunk-HXVMXH6U.js';
9
9
  import '../chunk-L72URIHR.js';
@@ -0,0 +1,50 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface ClampLabels {
3
+ /** The press that opens a folded block. */
4
+ more: string;
5
+ /** The press that folds it again. */
6
+ less: string;
7
+ }
8
+ export declare const CLAMP_LABELS: ClampLabels;
9
+ /**
10
+ * How much longer than its fold a block must be before it is folded: a
11
+ * quarter. A block a few lines past the fold would cost a press to read a
12
+ * few lines, and the fade alone would take most of what it hides.
13
+ */
14
+ export declare const CLAMP_SLACK = 1.25;
15
+ export interface ClampProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
16
+ /**
17
+ * The folded height, a CSS length: `20rem` by default, about fifteen lines
18
+ * of body text. A block that fits it, with a quarter to spare, is drawn
19
+ * whole and gets no control at all.
20
+ */
21
+ height?: string | undefined;
22
+ /** Controlled open state. */
23
+ open?: boolean | undefined;
24
+ /** Uncontrolled initial state; folded by default. */
25
+ defaultOpen?: boolean | undefined;
26
+ onOpenChange?: ((open: boolean) => void) | undefined;
27
+ labels?: Partial<ClampLabels> | undefined;
28
+ children?: ReactNode;
29
+ }
30
+ /**
31
+ * A long block folded to a height, with Show more under it: a comment, a
32
+ * report or a message that would otherwise make a reader scroll past the
33
+ * whole of it to reach the next one.
34
+ *
35
+ * ONLY WHAT IS LONG IS FOLDED. The block is measured as it renders and as it
36
+ * reflows, and folded only while it is more than a quarter longer than the
37
+ * fold; anything shorter is drawn whole, with no control and no fade.
38
+ *
39
+ * THE FOLD FADES, IT DOES NOT CUT. The last lines above the fold fade out
40
+ * through a mask, which needs no colour of the ground it stands on, so the
41
+ * same block folds on a card, on the sheet or in a panel.
42
+ *
43
+ * NOTHING IS HIDDEN FROM WHAT READS IT. The folded part stays in the
44
+ * document, so a screen reader and find in page reach all of it, and a focus
45
+ * that lands inside it (a link tabbed onto) opens the block, so the keyboard
46
+ * never stands on something out of sight. The control says whether the block
47
+ * is open (`aria-expanded`) and names what it controls. Printed, every block
48
+ * is whole.
49
+ */
50
+ export declare function Clamp({ height, open: controlled, defaultOpen, onOpenChange, labels: overrides, className, style, onFocusCapture, children, ...rest }: ClampProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './Clamp.css';
2
+ export { CLAMP_LABELS, Clamp } from './Clamp.js';
3
+ export type { ClampLabels, ClampProps } from './Clamp.js';
@@ -0,0 +1,12 @@
1
+ export { CLAMP_LABELS, Clamp } from '../chunk-IZGB6SQE.js';
2
+ import '../chunk-M2M6ZD7P.js';
3
+ import '../chunk-XSPCITPN.js';
4
+ import '../chunk-TDFLCUBE.js';
5
+ import '../chunk-HXVMXH6U.js';
6
+ import '../chunk-L72URIHR.js';
7
+ import '../chunk-HTS5RJ7S.js';
8
+ import '../chunk-FIX72ZEC.js';
9
+ import '../chunk-EDPMHSLZ.js';
10
+ import '../chunk-4ITETIGZ.js';
11
+ import '../chunk-RRRK2KB6.js';
12
+ import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,60 @@
1
+ /*
2
+ * A long block folded to a height, with Show more under it (Clamp.tsx).
3
+ */
4
+ .crewlet-clamp {
5
+ --crewlet-clamp-height: 20rem;
6
+ /* How far above the fold the last lines fade out. */
7
+ --crewlet-clamp-fade: var(--spacing-10);
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
12
+ gap: var(--spacing-1);
13
+ min-width: 0;
14
+ }
15
+
16
+ /* The body runs the block's width; only the control hugs its words. */
17
+ .crewlet-clamp__body {
18
+ align-self: stretch;
19
+ min-width: 0;
20
+ }
21
+
22
+ /* The fold, measured: an empty box as tall as it, out of the flow and unseen,
23
+ so the block can tell whether it is long enough to fold. */
24
+ .crewlet-clamp__fold {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ width: 0;
29
+ height: var(--crewlet-clamp-height);
30
+ visibility: hidden;
31
+ pointer-events: none;
32
+ }
33
+
34
+ /*
35
+ * FOLDED, the body stops at the fold and its last lines fade out. The fade is
36
+ * a MASK: it takes the block's own ground away rather than painting one over
37
+ * it, so it needs no colour of whatever the block stands on. Any opaque ink
38
+ * draws a mask; only its alpha is read.
39
+ */
40
+ .crewlet-clamp[data-state='folded'] > .crewlet-clamp__body {
41
+ max-height: var(--crewlet-clamp-height);
42
+ overflow: hidden;
43
+ mask-image: linear-gradient(
44
+ to bottom,
45
+ var(--color-text-primary) calc(100% - var(--crewlet-clamp-fade)),
46
+ transparent
47
+ );
48
+ }
49
+
50
+ @media print {
51
+ .crewlet-clamp[data-state='folded'] > .crewlet-clamp__body {
52
+ max-height: none;
53
+ overflow: visible;
54
+ mask-image: none;
55
+ }
56
+
57
+ .crewlet-clamp > .crewlet-clamp__toggle {
58
+ display: none;
59
+ }
60
+ }
@@ -1,11 +1,11 @@
1
- export { Combobox } from '../chunk-WUJ54OTI.js';
1
+ export { Combobox } from '../chunk-CWGZE3JW.js';
2
2
  import '../chunk-KW7T23RT.js';
3
+ import '../chunk-2YTOOH3A.js';
3
4
  import '../chunk-NN44J7BP.js';
4
5
  import '../chunk-NICEDVZM.js';
5
6
  import '../chunk-JLKO7PSK.js';
6
7
  import '../chunk-PJV5HVZY.js';
7
8
  import '../chunk-TEXK4RK6.js';
8
- import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-X5YI6E5X.js';
10
10
  import '../chunk-TDFLCUBE.js';
11
11
  import '../chunk-HXVMXH6U.js';
@@ -1,15 +1,15 @@
1
- export { CommandPalette } from '../chunk-PYF5DNOK.js';
1
+ export { CommandPalette } from '../chunk-6RMR2YYQ.js';
2
2
  import '../chunk-IU7QVXHA.js';
3
3
  import '../chunk-KW7T23RT.js';
4
+ import '../chunk-VBBLHS2Y.js';
5
+ import '../chunk-M2M6ZD7P.js';
6
+ import '../chunk-XSPCITPN.js';
7
+ import '../chunk-2YTOOH3A.js';
4
8
  import '../chunk-NN44J7BP.js';
5
9
  import '../chunk-NICEDVZM.js';
6
10
  import '../chunk-JLKO7PSK.js';
7
11
  import '../chunk-PJV5HVZY.js';
8
12
  import '../chunk-TEXK4RK6.js';
9
- import '../chunk-VBBLHS2Y.js';
10
- import '../chunk-M2M6ZD7P.js';
11
- import '../chunk-XSPCITPN.js';
12
- import '../chunk-2YTOOH3A.js';
13
13
  import '../chunk-X5YI6E5X.js';
14
14
  import '../chunk-TDFLCUBE.js';
15
15
  import '../chunk-HXVMXH6U.js';
@@ -1,12 +1,15 @@
1
- export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-BF3PFRBE.js';
1
+ export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-Y54H5NJO.js';
2
2
  import '../chunk-HF5L56YQ.js';
3
3
  import '../chunk-GBKBME7Q.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-I4PBFJGX.js';
6
- import '../chunk-5SMYKL3D.js';
6
+ import '../chunk-ARZGEHWE.js';
7
7
  import '../chunk-XZY6S3UC.js';
8
- import '../chunk-YNREHSBZ.js';
9
- import '../chunk-UZMXC5T6.js';
8
+ import '../chunk-66TVD3RU.js';
9
+ import '../chunk-YUVQUJND.js';
10
+ import '../chunk-VBBLHS2Y.js';
11
+ import '../chunk-M2M6ZD7P.js';
12
+ import '../chunk-XSPCITPN.js';
10
13
  import '../chunk-NN44J7BP.js';
11
14
  import '../chunk-NICEDVZM.js';
12
15
  import '../chunk-JLKO7PSK.js';
@@ -14,9 +17,6 @@ import '../chunk-PJV5HVZY.js';
14
17
  import '../chunk-TEXK4RK6.js';
15
18
  import '../chunk-SK4BIFTG.js';
16
19
  import '../chunk-COS6LJ4K.js';
17
- import '../chunk-VBBLHS2Y.js';
18
- import '../chunk-M2M6ZD7P.js';
19
- import '../chunk-XSPCITPN.js';
20
20
  import '../chunk-X5YI6E5X.js';
21
21
  import '../chunk-TDFLCUBE.js';
22
22
  import '../chunk-HXVMXH6U.js';
@@ -1,5 +1,6 @@
1
- export { COMPOSER_COUNTER_AT, Composer } from '../chunk-YNREHSBZ.js';
2
- import '../chunk-UZMXC5T6.js';
1
+ export { COMPOSER_COUNTER_AT, Composer } from '../chunk-66TVD3RU.js';
2
+ import '../chunk-YUVQUJND.js';
3
+ import '../chunk-VBBLHS2Y.js';
3
4
  import '../chunk-NN44J7BP.js';
4
5
  import '../chunk-NICEDVZM.js';
5
6
  import '../chunk-JLKO7PSK.js';
@@ -7,7 +8,6 @@ import '../chunk-PJV5HVZY.js';
7
8
  import '../chunk-TEXK4RK6.js';
8
9
  import '../chunk-SK4BIFTG.js';
9
10
  import '../chunk-COS6LJ4K.js';
10
- import '../chunk-VBBLHS2Y.js';
11
11
  import '../chunk-X5YI6E5X.js';
12
12
  import '../chunk-TDFLCUBE.js';
13
13
  import '../chunk-HXVMXH6U.js';
@@ -1,9 +1,11 @@
1
- export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-CPWSBK3F.js';
1
+ export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-COPAHZHK.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-WSIJDWUG.js';
4
4
  import '../chunk-JMBPMSNI.js';
5
5
  import '../chunk-KFTVPWG2.js';
6
6
  import '../chunk-PPUR46MK.js';
7
+ import '../chunk-M2M6ZD7P.js';
8
+ import '../chunk-XSPCITPN.js';
7
9
  import '../chunk-NN44J7BP.js';
8
10
  import '../chunk-NICEDVZM.js';
9
11
  import '../chunk-JLKO7PSK.js';
@@ -11,8 +13,6 @@ import '../chunk-PJV5HVZY.js';
11
13
  import '../chunk-TEXK4RK6.js';
12
14
  import '../chunk-SK4BIFTG.js';
13
15
  import '../chunk-COS6LJ4K.js';
14
- import '../chunk-M2M6ZD7P.js';
15
- import '../chunk-XSPCITPN.js';
16
16
  import '../chunk-X5YI6E5X.js';
17
17
  import '../chunk-TDFLCUBE.js';
18
18
  import '../chunk-HXVMXH6U.js';
@@ -1,18 +1,18 @@
1
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-EOMLCNC4.js';
1
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-LLPDEZT5.js';
2
2
  import '../chunk-IU7QVXHA.js';
3
3
  import '../chunk-STJ7QBC3.js';
4
4
  import '../chunk-DTIW4CHZ.js';
5
5
  import '../chunk-WGLOH33S.js';
6
6
  import '../chunk-AV2DXAEL.js';
7
- import '../chunk-KFTVPWG2.js';
8
7
  import '../chunk-FIQGLZ5Q.js';
8
+ import '../chunk-KFTVPWG2.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';
12
14
  import '../chunk-PJV5HVZY.js';
13
15
  import '../chunk-TEXK4RK6.js';
14
- import '../chunk-M2M6ZD7P.js';
15
- import '../chunk-XSPCITPN.js';
16
16
  import '../chunk-X5YI6E5X.js';
17
17
  import '../chunk-TDFLCUBE.js';
18
18
  import '../chunk-HXVMXH6U.js';
@@ -1,8 +1,8 @@
1
- export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-C7BHAZVR.js';
1
+ export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-26TNM64L.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-E4QX4VET.js';
4
4
  import '../chunk-AQZPZYSY.js';
5
- import '../chunk-EOMLCNC4.js';
5
+ import '../chunk-LLPDEZT5.js';
6
6
  import '../chunk-IU7QVXHA.js';
7
7
  import '../chunk-KW7T23RT.js';
8
8
  import '../chunk-STJ7QBC3.js';
@@ -13,16 +13,16 @@ import '../chunk-KDRJZWE3.js';
13
13
  import '../chunk-GBKBME7Q.js';
14
14
  import '../chunk-WGLOH33S.js';
15
15
  import '../chunk-AV2DXAEL.js';
16
- import '../chunk-KFTVPWG2.js';
17
16
  import '../chunk-FIQGLZ5Q.js';
17
+ import '../chunk-KFTVPWG2.js';
18
+ import '../chunk-VBBLHS2Y.js';
19
+ import '../chunk-M2M6ZD7P.js';
20
+ import '../chunk-XSPCITPN.js';
18
21
  import '../chunk-NN44J7BP.js';
19
22
  import '../chunk-NICEDVZM.js';
20
23
  import '../chunk-JLKO7PSK.js';
21
24
  import '../chunk-PJV5HVZY.js';
22
25
  import '../chunk-TEXK4RK6.js';
23
- import '../chunk-VBBLHS2Y.js';
24
- import '../chunk-M2M6ZD7P.js';
25
- import '../chunk-XSPCITPN.js';
26
26
  import '../chunk-X5YI6E5X.js';
27
27
  import '../chunk-TDFLCUBE.js';
28
28
  import '../chunk-HXVMXH6U.js';