@crewlethq/ui 0.104.0 → 0.106.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 (108) hide show
  1. package/dist/ActivityLine/index.js +1 -1
  2. package/dist/AgentHandoffPanel/index.js +6 -5
  3. package/dist/AppShell/index.js +3 -2
  4. package/dist/ArtifactCard/index.js +3 -3
  5. package/dist/ArtifactPanel/index.js +4 -3
  6. package/dist/ChatDay/index.js +2 -2
  7. package/dist/{ChatDay-CTX2VI6P.css → ChatDay-523C65KY.css} +8 -5
  8. package/dist/ChatDivider/ChatDivider.d.ts +8 -2
  9. package/dist/ChatDivider/index.js +1 -1
  10. package/dist/{ChatDivider-7ZNDL2PZ.css → ChatDivider-7SPCQXUQ.css} +27 -2
  11. package/dist/ChatMessage/index.js +1 -1
  12. package/dist/{ChatScale-L4SIHSKL.css → ChatScale-AP237LJQ.css} +10 -2
  13. package/dist/ChatThread/index.js +1 -1
  14. package/dist/{ChatThread-XANOIJXN.css → ChatThread-MKAN2Q4H.css} +4 -0
  15. package/dist/CommandPalette/index.js +2 -2
  16. package/dist/CommentThread/index.js +2 -2
  17. package/dist/Composer/index.js +1 -1
  18. package/dist/DataGrid/index.js +2 -2
  19. package/dist/DataTable/index.js +2 -2
  20. package/dist/DataView/index.js +3 -3
  21. package/dist/DeliveryReceipt/index.js +1 -1
  22. package/dist/DockColumn/DockColumn.d.ts +31 -1
  23. package/dist/DockColumn/index.d.ts +3 -1
  24. package/dist/DockColumn/index.js +3 -1
  25. package/dist/{DockColumn-SMJCXHS4.css → DockColumn-OVAA5PLL.css} +38 -8
  26. package/dist/EmojiPicker/EmojiPicker.d.ts +7 -1
  27. package/dist/EmojiPicker/index.js +1 -1
  28. package/dist/{EmojiPicker-FMWYN2WX.css → EmojiPicker-W722WJ5M.css} +43 -1
  29. package/dist/LinkCard/index.js +1 -1
  30. package/dist/LinkInterstitial/index.js +2 -2
  31. package/dist/MentionMenu/MentionMenu.d.ts +8 -1
  32. package/dist/MentionMenu/index.js +1 -1
  33. package/dist/{MentionMenu-4NAQ45S4.css → MentionMenu-77P7C4F7.css} +7 -0
  34. package/dist/MessageActions/index.js +2 -2
  35. package/dist/Modal/Modal.d.ts +6 -0
  36. package/dist/Modal/index.js +1 -1
  37. package/dist/{Modal-GKUOO7PZ.css → Modal-3KGLG5UU.css} +17 -0
  38. package/dist/OrgTable/index.js +4 -4
  39. package/dist/PeekRail/index.js +3 -2
  40. package/dist/RailList/index.js +2 -2
  41. package/dist/ReactionBar/index.js +2 -2
  42. package/dist/{ResizeHandle-2UNSZ4ZQ.css → ResizeHandle-W6GA5OO6.css} +9 -0
  43. package/dist/RichEditor/index.js +2 -2
  44. package/dist/RoomRow/index.js +1 -1
  45. package/dist/SandboxedFrame/index.js +2 -2
  46. package/dist/SectionFrame/index.js +2 -2
  47. package/dist/ShareDialog/index.js +2 -2
  48. package/dist/SidePanel/index.js +4 -3
  49. package/dist/SidebarNav/SidebarNav.d.ts +17 -8
  50. package/dist/SidebarNav/index.js +1 -1
  51. package/dist/{SidebarNav-IKBKGXW4.css → SidebarNav-VXDUW6W5.css} +141 -27
  52. package/dist/Skeleton/index.js +1 -1
  53. package/dist/Switcher/index.js +3 -3
  54. package/dist/ThreadSummary/ThreadSummary.d.ts +10 -7
  55. package/dist/ThreadSummary/index.js +1 -1
  56. package/dist/ThreadSummary-CFAHYY57.css +114 -0
  57. package/dist/TimeRangePicker/index.js +2 -2
  58. package/dist/TreeGrid/index.js +3 -3
  59. package/dist/WidgetFrame/index.js +2 -2
  60. package/dist/{chunk-UDJVDRFY.js → chunk-2OK6PQ7W.js} +2 -2
  61. package/dist/{chunk-TBJP22E4.js → chunk-3AD6HSUB.js} +1 -1
  62. package/dist/{chunk-IBMZNQ34.js → chunk-466HHUK4.js} +1 -1
  63. package/dist/{chunk-6YQRCPJ3.js → chunk-4GBEQZQ4.js} +22 -8
  64. package/dist/{chunk-K774LUN3.js → chunk-5HHDVJBY.js} +2 -2
  65. package/dist/{chunk-5AHNW5CP.js → chunk-5N3G7TK6.js} +1 -1
  66. package/dist/{chunk-H4MWPZRS.js → chunk-6HMPYTZB.js} +1 -1
  67. package/dist/{chunk-GIE7KH3D.js → chunk-6ZCW2TV7.js} +1 -1
  68. package/dist/{chunk-INREAF4Z.js → chunk-7DMD3U7S.js} +1 -1
  69. package/dist/{chunk-C47JZ6HR.js → chunk-ALL5B5YW.js} +1 -1
  70. package/dist/{chunk-OSPZN4OE.js → chunk-ASVV2T3A.js} +1 -1
  71. package/dist/{chunk-6QOW3WT2.js → chunk-DR7TJL55.js} +1 -1
  72. package/dist/{chunk-5KAADF4G.js → chunk-EIHPORS4.js} +2 -1
  73. package/dist/{chunk-ZHQZZ3IX.js → chunk-EJRA2SYP.js} +1 -1
  74. package/dist/chunk-EKWLQFL2.js +92 -0
  75. package/dist/{chunk-PIYJNCN7.js → chunk-FQ6J4DK7.js} +2 -10
  76. package/dist/{chunk-XQQN2NZB.js → chunk-FTSPBN7P.js} +2 -4
  77. package/dist/{chunk-FXXJL3G3.js → chunk-G33ND472.js} +1 -1
  78. package/dist/{chunk-LDFVJSKZ.js → chunk-GELMY4I7.js} +3 -1
  79. package/dist/{chunk-JZV4RD4L.js → chunk-GKP2DWNQ.js} +2 -2
  80. package/dist/{chunk-QQMVLDKT.js → chunk-H7LRSZ3A.js} +1 -1
  81. package/dist/{chunk-H5XYPVZ7.js → chunk-I7S7JJMM.js} +2 -2
  82. package/dist/{chunk-O2UTMKCD.js → chunk-IDBIU5IK.js} +1 -1
  83. package/dist/{chunk-7ZXUUDWL.js → chunk-KBUV24VV.js} +7 -5
  84. package/dist/{chunk-ASNOL5SF.js → chunk-L5FI327J.js} +2 -2
  85. package/dist/{chunk-NODLQBQ4.js → chunk-LBODOY3E.js} +1 -1
  86. package/dist/{chunk-SZMBO3QU.js → chunk-LQBSCXVY.js} +1 -1
  87. package/dist/{chunk-V3PIY2B2.js → chunk-M5L5APY2.js} +1 -1
  88. package/dist/chunk-MBEZOURR.js +13 -0
  89. package/dist/{chunk-NOG3W26H.js → chunk-MHNISUNZ.js} +1 -1
  90. package/dist/{chunk-62WELD77.js → chunk-OC4FHCP4.js} +1 -1
  91. package/dist/{chunk-T5P3K2TM.js → chunk-PFNTWGQB.js} +3 -2
  92. package/dist/{chunk-AGJBHLPE.js → chunk-QQPF5SBJ.js} +4 -4
  93. package/dist/{chunk-BINHWCBP.js → chunk-RW6HXWJD.js} +1 -1
  94. package/dist/{chunk-4EZOLSUO.js → chunk-SKMTVBJT.js} +3 -2
  95. package/dist/{chunk-2ES6LAV2.js → chunk-U4YG5KBN.js} +2 -2
  96. package/dist/{chunk-6NGLJRSJ.js → chunk-VOT7YIFH.js} +1 -1
  97. package/dist/{chunk-KRAZYXAA.js → chunk-VWZECTOJ.js} +1 -1
  98. package/dist/{chunk-SSYHV4QE.js → chunk-VZ7DNXCW.js} +15 -3
  99. package/dist/{chunk-SI7QLYPB.js → chunk-WFZ7EPOQ.js} +1 -1
  100. package/dist/{chunk-T6NV4SKG.js → chunk-WIVLOR42.js} +1 -1
  101. package/dist/{chunk-UJJG2ME5.js → chunk-XGX3UMHU.js} +2 -2
  102. package/dist/{chunk-TRPYEDZM.js → chunk-YBO5PGUG.js} +39 -4
  103. package/dist/generated/index.js +59 -58
  104. package/dist/index.js +59 -58
  105. package/dist/styles.css +362 -79
  106. package/package.json +3 -3
  107. package/dist/ThreadSummary-AGR4NDMD.css +0 -90
  108. package/dist/chunk-5JPOFAVN.js +0 -58
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.104.0",
3
+ "version": "0.106.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.104.0",
46
- "@crewlethq/tokens": "0.104.0",
45
+ "@crewlethq/icons": "0.106.0",
46
+ "@crewlethq/tokens": "0.106.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,90 +0,0 @@
1
- /*
2
- * The line under a message that has replies, and the working line under it.
3
- */
4
-
5
- .crewlet-thread-summary-wrap {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: flex-start;
9
- gap: var(--spacing-1);
10
- max-width: 100%;
11
- }
12
-
13
- /* No piece is wider than the column: a long working line truncates. */
14
- .crewlet-thread-summary-wrap > * {
15
- max-width: 100%;
16
- }
17
-
18
- /* The faces sit on the content edge: the line's 1px edge and its inset are
19
- taken back by the same amount outside it. */
20
- .crewlet-thread-summary {
21
- --crewlet-thread-summary-inset: var(--spacing-1);
22
- display: inline-flex;
23
- align-items: center;
24
- gap: var(--spacing-2);
25
- max-width: 100%;
26
- height: var(--size-control-md);
27
- box-sizing: border-box;
28
- margin-inline-start: calc((var(--crewlet-thread-summary-inset) + 1px) * -1);
29
- padding: 0 var(--crewlet-thread-summary-inset);
30
- border: 1px solid transparent;
31
- border-radius: var(--radius-sm);
32
- background: transparent;
33
- color: var(--color-text-secondary);
34
- font: inherit;
35
- font-size: var(--font-size-compact);
36
- line-height: 1;
37
- text-align: start;
38
- cursor: pointer;
39
- }
40
-
41
- /* Lifted onto the transcript's own ground inside a hairline, under the
42
- pointer or the keyboard, and while the thread is open. */
43
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) {
44
- border-color: var(--color-edge-hairline);
45
- background: var(--crewlet-chat-ground);
46
- }
47
-
48
- .crewlet-thread-summary:focus-visible {
49
- outline: 2px solid var(--color-focus);
50
- outline-offset: var(--size-focus-ring-inset-offset);
51
- }
52
-
53
- .crewlet-thread-summary__count {
54
- color: var(--color-brand-accent-ink);
55
- font-weight: var(--font-weight-medium);
56
- white-space: nowrap;
57
- }
58
-
59
- /* "Last reply 1h ago" and "View thread" share one cell, so the line keeps
60
- its width when one gives way to the other under the pointer. */
61
- .crewlet-thread-summary__tail {
62
- display: inline-grid;
63
- min-width: 0;
64
- padding-inline-end: var(--spacing-1);
65
- white-space: nowrap;
66
- }
67
-
68
- .crewlet-thread-summary__last,
69
- .crewlet-thread-summary__view {
70
- grid-area: 1 / 1;
71
- }
72
-
73
- .crewlet-thread-summary__last {
74
- color: var(--color-text-tertiary);
75
- }
76
-
77
- .crewlet-thread-summary__view {
78
- justify-self: end;
79
- visibility: hidden;
80
- color: var(--color-text-secondary);
81
- font-weight: var(--font-weight-regular);
82
- }
83
-
84
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__last {
85
- visibility: hidden;
86
- }
87
-
88
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__view {
89
- visibility: visible;
90
- }
@@ -1,58 +0,0 @@
1
- import { usePresence, releaseFocus } from './chunk-PCAT2EFB.js';
2
- import { cx } from './chunk-ODEQTPFM.js';
3
- import './DockColumn-SMJCXHS4.css';
4
- import { useRef, useCallback, useLayoutEffect } from 'react';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- var DOCK_MOTION = { transitions: ["width"] };
8
- function DockColumn({
9
- open,
10
- width,
11
- side = "start",
12
- divider = true,
13
- focusOnClose,
14
- className,
15
- style,
16
- children,
17
- ...rest
18
- }) {
19
- const column = useRef(null);
20
- const { present, leaving } = usePresence(open, column, DOCK_MOTION);
21
- const closed = useRef(!open);
22
- closed.current = !open;
23
- const isClosed = useCallback(() => closed.current, []);
24
- return /* @__PURE__ */ jsx(
25
- "div",
26
- {
27
- ...rest,
28
- ref: column,
29
- className: cx("crewlet-dock-column", divider && "crewlet-dock-column--divider", className),
30
- "data-side": side,
31
- "data-open": open ? "" : void 0,
32
- style: { ...style, "--crewlet-dock-column-width": typeof width === "number" ? `${width}px` : width },
33
- children: present ? /* @__PURE__ */ jsx(DockPanel, { leaving, isClosed, focusOnClose, children }) : null
34
- }
35
- );
36
- }
37
- function DockPanel({
38
- leaving,
39
- isClosed,
40
- focusOnClose,
41
- children
42
- }) {
43
- const panel = useRef(null);
44
- const target = useRef(focusOnClose);
45
- target.current = focusOnClose;
46
- useLayoutEffect(() => {
47
- if (leaving) releaseFocus(panel.current, target.current?.());
48
- }, [leaving]);
49
- useLayoutEffect(() => {
50
- const element = panel.current;
51
- return () => {
52
- if (isClosed()) releaseFocus(element, target.current?.());
53
- };
54
- }, [isClosed]);
55
- return /* @__PURE__ */ jsx("div", { ref: panel, className: "crewlet-dock-column__panel", inert: leaving || void 0, children });
56
- }
57
-
58
- export { DockColumn };