@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.
- package/dist/ActivityLine/index.js +1 -1
- package/dist/AgentHandoffPanel/index.js +6 -5
- package/dist/AppShell/index.js +3 -2
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/ArtifactPanel/index.js +4 -3
- package/dist/ChatDay/index.js +2 -2
- package/dist/{ChatDay-CTX2VI6P.css → ChatDay-523C65KY.css} +8 -5
- package/dist/ChatDivider/ChatDivider.d.ts +8 -2
- package/dist/ChatDivider/index.js +1 -1
- package/dist/{ChatDivider-7ZNDL2PZ.css → ChatDivider-7SPCQXUQ.css} +27 -2
- package/dist/ChatMessage/index.js +1 -1
- package/dist/{ChatScale-L4SIHSKL.css → ChatScale-AP237LJQ.css} +10 -2
- package/dist/ChatThread/index.js +1 -1
- package/dist/{ChatThread-XANOIJXN.css → ChatThread-MKAN2Q4H.css} +4 -0
- package/dist/CommandPalette/index.js +2 -2
- package/dist/CommentThread/index.js +2 -2
- package/dist/Composer/index.js +1 -1
- package/dist/DataGrid/index.js +2 -2
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DeliveryReceipt/index.js +1 -1
- package/dist/DockColumn/DockColumn.d.ts +31 -1
- package/dist/DockColumn/index.d.ts +3 -1
- package/dist/DockColumn/index.js +3 -1
- package/dist/{DockColumn-SMJCXHS4.css → DockColumn-OVAA5PLL.css} +38 -8
- package/dist/EmojiPicker/EmojiPicker.d.ts +7 -1
- package/dist/EmojiPicker/index.js +1 -1
- package/dist/{EmojiPicker-FMWYN2WX.css → EmojiPicker-W722WJ5M.css} +43 -1
- package/dist/LinkCard/index.js +1 -1
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/MentionMenu/MentionMenu.d.ts +8 -1
- package/dist/MentionMenu/index.js +1 -1
- package/dist/{MentionMenu-4NAQ45S4.css → MentionMenu-77P7C4F7.css} +7 -0
- package/dist/MessageActions/index.js +2 -2
- package/dist/Modal/Modal.d.ts +6 -0
- package/dist/Modal/index.js +1 -1
- package/dist/{Modal-GKUOO7PZ.css → Modal-3KGLG5UU.css} +17 -0
- package/dist/OrgTable/index.js +4 -4
- package/dist/PeekRail/index.js +3 -2
- package/dist/RailList/index.js +2 -2
- package/dist/ReactionBar/index.js +2 -2
- package/dist/{ResizeHandle-2UNSZ4ZQ.css → ResizeHandle-W6GA5OO6.css} +9 -0
- package/dist/RichEditor/index.js +2 -2
- package/dist/RoomRow/index.js +1 -1
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SectionFrame/index.js +2 -2
- package/dist/ShareDialog/index.js +2 -2
- package/dist/SidePanel/index.js +4 -3
- package/dist/SidebarNav/SidebarNav.d.ts +17 -8
- package/dist/SidebarNav/index.js +1 -1
- package/dist/{SidebarNav-IKBKGXW4.css → SidebarNav-VXDUW6W5.css} +141 -27
- package/dist/Skeleton/index.js +1 -1
- package/dist/Switcher/index.js +3 -3
- package/dist/ThreadSummary/ThreadSummary.d.ts +10 -7
- package/dist/ThreadSummary/index.js +1 -1
- package/dist/ThreadSummary-CFAHYY57.css +114 -0
- package/dist/TimeRangePicker/index.js +2 -2
- package/dist/TreeGrid/index.js +3 -3
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{chunk-UDJVDRFY.js → chunk-2OK6PQ7W.js} +2 -2
- package/dist/{chunk-TBJP22E4.js → chunk-3AD6HSUB.js} +1 -1
- package/dist/{chunk-IBMZNQ34.js → chunk-466HHUK4.js} +1 -1
- package/dist/{chunk-6YQRCPJ3.js → chunk-4GBEQZQ4.js} +22 -8
- package/dist/{chunk-K774LUN3.js → chunk-5HHDVJBY.js} +2 -2
- package/dist/{chunk-5AHNW5CP.js → chunk-5N3G7TK6.js} +1 -1
- package/dist/{chunk-H4MWPZRS.js → chunk-6HMPYTZB.js} +1 -1
- package/dist/{chunk-GIE7KH3D.js → chunk-6ZCW2TV7.js} +1 -1
- package/dist/{chunk-INREAF4Z.js → chunk-7DMD3U7S.js} +1 -1
- package/dist/{chunk-C47JZ6HR.js → chunk-ALL5B5YW.js} +1 -1
- package/dist/{chunk-OSPZN4OE.js → chunk-ASVV2T3A.js} +1 -1
- package/dist/{chunk-6QOW3WT2.js → chunk-DR7TJL55.js} +1 -1
- package/dist/{chunk-5KAADF4G.js → chunk-EIHPORS4.js} +2 -1
- package/dist/{chunk-ZHQZZ3IX.js → chunk-EJRA2SYP.js} +1 -1
- package/dist/chunk-EKWLQFL2.js +92 -0
- package/dist/{chunk-PIYJNCN7.js → chunk-FQ6J4DK7.js} +2 -10
- package/dist/{chunk-XQQN2NZB.js → chunk-FTSPBN7P.js} +2 -4
- package/dist/{chunk-FXXJL3G3.js → chunk-G33ND472.js} +1 -1
- package/dist/{chunk-LDFVJSKZ.js → chunk-GELMY4I7.js} +3 -1
- package/dist/{chunk-JZV4RD4L.js → chunk-GKP2DWNQ.js} +2 -2
- package/dist/{chunk-QQMVLDKT.js → chunk-H7LRSZ3A.js} +1 -1
- package/dist/{chunk-H5XYPVZ7.js → chunk-I7S7JJMM.js} +2 -2
- package/dist/{chunk-O2UTMKCD.js → chunk-IDBIU5IK.js} +1 -1
- package/dist/{chunk-7ZXUUDWL.js → chunk-KBUV24VV.js} +7 -5
- package/dist/{chunk-ASNOL5SF.js → chunk-L5FI327J.js} +2 -2
- package/dist/{chunk-NODLQBQ4.js → chunk-LBODOY3E.js} +1 -1
- package/dist/{chunk-SZMBO3QU.js → chunk-LQBSCXVY.js} +1 -1
- package/dist/{chunk-V3PIY2B2.js → chunk-M5L5APY2.js} +1 -1
- package/dist/chunk-MBEZOURR.js +13 -0
- package/dist/{chunk-NOG3W26H.js → chunk-MHNISUNZ.js} +1 -1
- package/dist/{chunk-62WELD77.js → chunk-OC4FHCP4.js} +1 -1
- package/dist/{chunk-T5P3K2TM.js → chunk-PFNTWGQB.js} +3 -2
- package/dist/{chunk-AGJBHLPE.js → chunk-QQPF5SBJ.js} +4 -4
- package/dist/{chunk-BINHWCBP.js → chunk-RW6HXWJD.js} +1 -1
- package/dist/{chunk-4EZOLSUO.js → chunk-SKMTVBJT.js} +3 -2
- package/dist/{chunk-2ES6LAV2.js → chunk-U4YG5KBN.js} +2 -2
- package/dist/{chunk-6NGLJRSJ.js → chunk-VOT7YIFH.js} +1 -1
- package/dist/{chunk-KRAZYXAA.js → chunk-VWZECTOJ.js} +1 -1
- package/dist/{chunk-SSYHV4QE.js → chunk-VZ7DNXCW.js} +15 -3
- package/dist/{chunk-SI7QLYPB.js → chunk-WFZ7EPOQ.js} +1 -1
- package/dist/{chunk-T6NV4SKG.js → chunk-WIVLOR42.js} +1 -1
- package/dist/{chunk-UJJG2ME5.js → chunk-XGX3UMHU.js} +2 -2
- package/dist/{chunk-TRPYEDZM.js → chunk-YBO5PGUG.js} +39 -4
- package/dist/generated/index.js +59 -58
- package/dist/index.js +59 -58
- package/dist/styles.css +362 -79
- package/package.json +3 -3
- package/dist/ThreadSummary-AGR4NDMD.css +0 -90
- package/dist/chunk-5JPOFAVN.js +0 -58
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Timeline } from './chunk-XDUXAQIS.js';
|
|
2
2
|
import { Section } from './chunk-WFCWPXJN.js';
|
|
3
|
-
import { Composer } from './chunk-
|
|
3
|
+
import { Composer } from './chunk-6HMPYTZB.js';
|
|
4
4
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
5
|
-
import { ArtifactPanel } from './chunk-
|
|
5
|
+
import { ArtifactPanel } from './chunk-U4YG5KBN.js';
|
|
6
6
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './AgentHandoffPanel-AIU7YWWB.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThinkingIndicator } from './chunk-DX7ZHO47.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-
|
|
3
|
+
import './ChatScale-AP237LJQ.css';
|
|
4
4
|
import './ActivityLine-AMSERTOB.css';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
2
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './ChatScale-
|
|
4
|
+
import './ChatScale-AP237LJQ.css';
|
|
5
5
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
6
6
|
import './LinkCard-5I4MYU6I.css';
|
|
7
7
|
import { useId } from 'react';
|
|
@@ -2,10 +2,11 @@ import { Popover } from './chunk-VYUEAMA4.js';
|
|
|
2
2
|
import { Input } from './chunk-DKFBBOVE.js';
|
|
3
3
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
4
4
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
5
|
-
import './
|
|
5
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
+
import './EmojiPicker-W722WJ5M.css';
|
|
6
7
|
import { useId, useState, useRef, useMemo } from 'react';
|
|
7
8
|
import { SearchGlyph } from '@crewlethq/icons/glyphs';
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
10
|
|
|
10
11
|
// src/EmojiPicker/emoji.ts
|
|
11
12
|
var entries = (rows) => rows.map(([emoji, name, shortcode]) => ({ emoji, name, shortcode }));
|
|
@@ -109,7 +110,8 @@ var EMOJI_PICKER_COLUMNS = 8;
|
|
|
109
110
|
var EMOJI_PICKER_LABELS = {
|
|
110
111
|
search: "Search emoji",
|
|
111
112
|
results: "Results",
|
|
112
|
-
none: (query) => `No emoji match \u201C${query}\u201D
|
|
113
|
+
none: (query) => `No emoji match \u201C${query}\u201D.`,
|
|
114
|
+
idle: "Pick an emoji"
|
|
113
115
|
};
|
|
114
116
|
function layout(groups) {
|
|
115
117
|
let index = 0;
|
|
@@ -142,6 +144,7 @@ function EmojiPicker({
|
|
|
142
144
|
const id = useId();
|
|
143
145
|
const [query, setQuery] = useState("");
|
|
144
146
|
const [at, setAt] = useState(0);
|
|
147
|
+
const [pointed, setPointed] = useState(null);
|
|
145
148
|
const field = useRef(null);
|
|
146
149
|
const grid = useRef(null);
|
|
147
150
|
const found = useMemo(() => searchEmoji(query, groups), [query, groups]);
|
|
@@ -150,6 +153,8 @@ function EmojiPicker({
|
|
|
150
153
|
[found, groups, labels.results]
|
|
151
154
|
);
|
|
152
155
|
const stop = Math.min(at, Math.max(0, cells.length - 1));
|
|
156
|
+
const chosen = found && found.length > 0 ? cells[stop] : void 0;
|
|
157
|
+
const shown = pointed ?? chosen?.entry ?? null;
|
|
153
158
|
const focusCell = (index) => {
|
|
154
159
|
setAt(index);
|
|
155
160
|
grid.current?.querySelector(`[data-emoji-index="${index}"]`)?.focus();
|
|
@@ -159,9 +164,9 @@ function EmojiPicker({
|
|
|
159
164
|
if (event.key === "ArrowDown" && cells.length > 0) {
|
|
160
165
|
event.preventDefault();
|
|
161
166
|
focusCell(0);
|
|
162
|
-
} else if (event.key === "Enter" &&
|
|
167
|
+
} else if (event.key === "Enter" && chosen) {
|
|
163
168
|
event.preventDefault();
|
|
164
|
-
onPick(
|
|
169
|
+
onPick(chosen.entry.emoji);
|
|
165
170
|
close();
|
|
166
171
|
}
|
|
167
172
|
}
|
|
@@ -199,6 +204,7 @@ function EmojiPicker({
|
|
|
199
204
|
if (!open) {
|
|
200
205
|
setQuery("");
|
|
201
206
|
setAt(0);
|
|
207
|
+
setPointed(null);
|
|
202
208
|
}
|
|
203
209
|
onOpenChange?.(open);
|
|
204
210
|
},
|
|
@@ -233,12 +239,13 @@ function EmojiPicker({
|
|
|
233
239
|
"button",
|
|
234
240
|
{
|
|
235
241
|
type: "button",
|
|
236
|
-
className: "crewlet-emoji-picker__cell",
|
|
242
|
+
className: cx("crewlet-emoji-picker__cell", cell === chosen && "is-chosen"),
|
|
237
243
|
"aria-label": cell.entry.name,
|
|
238
|
-
title: cell.entry.name,
|
|
239
244
|
"data-emoji-index": cell.index,
|
|
240
245
|
tabIndex: cell.index === stop ? 0 : -1,
|
|
241
246
|
onFocus: () => setAt(cell.index),
|
|
247
|
+
onPointerEnter: () => setPointed(cell.entry),
|
|
248
|
+
onPointerLeave: () => setPointed((now) => now === cell.entry ? null : now),
|
|
242
249
|
onKeyDown: (event) => onCellKeys(event, cell),
|
|
243
250
|
onClick: () => {
|
|
244
251
|
onPick(cell.entry.emoji);
|
|
@@ -253,7 +260,14 @@ function EmojiPicker({
|
|
|
253
260
|
found && found.length === 0 ? /* @__PURE__ */ jsx("p", { className: "crewlet-emoji-picker__none", role: "status", children: labels.none(query.trim()) }) : null
|
|
254
261
|
]
|
|
255
262
|
}
|
|
256
|
-
)
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-emoji-picker__preview", "aria-hidden": "true", children: shown ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
265
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-emoji-picker__preview-emoji", children: shown.emoji }),
|
|
266
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-emoji-picker__preview-words", children: [
|
|
267
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-emoji-picker__preview-name", children: shown.name }),
|
|
268
|
+
shown.shortcode ? /* @__PURE__ */ jsx("span", { className: "crewlet-emoji-picker__preview-code", children: shown.shortcode }) : null
|
|
269
|
+
] })
|
|
270
|
+
] }) : /* @__PURE__ */ jsx("span", { className: "crewlet-emoji-picker__preview-idle", children: labels.idle }) })
|
|
257
271
|
] })
|
|
258
272
|
}
|
|
259
273
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
-
import './ChatScale-
|
|
3
|
-
import './ChatDivider-
|
|
2
|
+
import './ChatScale-AP237LJQ.css';
|
|
3
|
+
import './ChatDivider-7SPCQXUQ.css';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
function ChatDivider({ variant, label, className, ...rest }) {
|
|
@@ -3,7 +3,7 @@ import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
|
3
3
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
|
-
import './ChatScale-
|
|
6
|
+
import './ChatScale-AP237LJQ.css';
|
|
7
7
|
import './Composer-XVQFBCIB.css';
|
|
8
8
|
import { forwardRef, useId } from 'react';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.js';
|
|
2
|
-
import { SidebarNav, NavItem } from './chunk-
|
|
2
|
+
import { SidebarNav, NavItem } from './chunk-YBO5PGUG.js';
|
|
3
3
|
import { Card } from './chunk-3C3TSWRR.js';
|
|
4
4
|
import { Text } from './chunk-XLMURU75.js';
|
|
5
5
|
import './RailList-N2ZBPRM2.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-
|
|
3
|
+
import './ChatScale-AP237LJQ.css';
|
|
4
4
|
import './DeliveryReceipt-G55ILD6O.css';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { CheckGlyph, TriangleAlertGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ListItem } from './chunk-VY37HWFV.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-
|
|
3
|
+
import './ChatScale-AP237LJQ.css';
|
|
4
4
|
import './RoomRow-O53P7Z5I.css';
|
|
5
5
|
import { Fragment as Fragment$1 } from 'react';
|
|
6
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Select } from './chunk-JUZOMYOZ.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-GELMY4I7.js';
|
|
3
3
|
import { CopyButton } from './chunk-NNO5GSIB.js';
|
|
4
4
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
5
5
|
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useAppShellAside
|
|
1
|
+
import { useAppShellAside } from './chunk-MBEZOURR.js';
|
|
2
|
+
import { ResizeHandle } from './chunk-FQ6J4DK7.js';
|
|
2
3
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
3
4
|
import { useEscapeWithin, useModalLayer } from './chunk-EDPMHSLZ.js';
|
|
4
5
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { frameThemeMessage, readFrameHello, frameOriginMatches, negotiateBridge, FRAME_MESSAGE, portTargetOrigin, checkFrameSandbox, httpOrigin, isFrameNonce, frameFragment, readOpenLink, externalUrl, isFocusExit } from './chunk-F6V2PTN6.js';
|
|
2
2
|
import { Callout } from './chunk-BPCY7ZID.js';
|
|
3
|
-
import { Skeleton } from './chunk-
|
|
3
|
+
import { Skeleton } from './chunk-MHNISUNZ.js';
|
|
4
4
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './SandboxedFrame-P5NASXB7.css';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { usePresence, releaseFocus } from './chunk-PCAT2EFB.js';
|
|
2
|
+
import { ResizeHandle } from './chunk-FQ6J4DK7.js';
|
|
3
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
+
import './HitArea-QUOS6ZDJ.css';
|
|
5
|
+
import './ResizeHandle-W6GA5OO6.css';
|
|
6
|
+
import './DockColumn-OVAA5PLL.css';
|
|
7
|
+
import { useRef, useCallback, useState, useLayoutEffect } from 'react';
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var DOCK_MOTION = { transitions: ["width"] };
|
|
11
|
+
function DockColumn({
|
|
12
|
+
open,
|
|
13
|
+
width,
|
|
14
|
+
side = "start",
|
|
15
|
+
divider = true,
|
|
16
|
+
focusOnClose,
|
|
17
|
+
resize,
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
...rest
|
|
22
|
+
}) {
|
|
23
|
+
const column = useRef(null);
|
|
24
|
+
const drawn = useDrawnWidth(column, resize !== void 0 && typeof width !== "number");
|
|
25
|
+
const { present, leaving } = usePresence(open, column, DOCK_MOTION);
|
|
26
|
+
const closed = useRef(!open);
|
|
27
|
+
closed.current = !open;
|
|
28
|
+
const isClosed = useCallback(() => closed.current, []);
|
|
29
|
+
return /* @__PURE__ */ jsxs(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
...rest,
|
|
33
|
+
ref: column,
|
|
34
|
+
className: cx("crewlet-dock-column", divider && "crewlet-dock-column--divider", className),
|
|
35
|
+
"data-side": side,
|
|
36
|
+
"data-open": open ? "" : void 0,
|
|
37
|
+
style: { ...style, "--crewlet-dock-column-width": typeof width === "number" ? `${width}px` : width },
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-dock-column__clip", children: present ? /* @__PURE__ */ jsx(DockPanel, { leaving, isClosed, focusOnClose, children }) : null }),
|
|
40
|
+
resize && open && !leaving ? /* @__PURE__ */ jsx(
|
|
41
|
+
ResizeHandle,
|
|
42
|
+
{
|
|
43
|
+
className: "crewlet-dock-column__handle",
|
|
44
|
+
label: resize.label,
|
|
45
|
+
edge: side === "start" ? "right" : "left",
|
|
46
|
+
value: typeof width === "number" ? width : drawn,
|
|
47
|
+
min: resize.min,
|
|
48
|
+
max: resize.max,
|
|
49
|
+
onValueChange: resize.onValueChange,
|
|
50
|
+
onValueCommit: resize.onValueCommit,
|
|
51
|
+
defaultValue: resize.defaultValue
|
|
52
|
+
}
|
|
53
|
+
) : null
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function useDrawnWidth(column, needed) {
|
|
59
|
+
const [drawn, setDrawn] = useState(0);
|
|
60
|
+
useLayoutEffect(() => {
|
|
61
|
+
const element = column.current;
|
|
62
|
+
if (!needed || !element || typeof ResizeObserver === "undefined") return;
|
|
63
|
+
const measure = () => setDrawn(Math.round(element.getBoundingClientRect().width));
|
|
64
|
+
measure();
|
|
65
|
+
const observer = new ResizeObserver(measure);
|
|
66
|
+
observer.observe(element);
|
|
67
|
+
return () => observer.disconnect();
|
|
68
|
+
}, [column, needed]);
|
|
69
|
+
return drawn;
|
|
70
|
+
}
|
|
71
|
+
function DockPanel({
|
|
72
|
+
leaving,
|
|
73
|
+
isClosed,
|
|
74
|
+
focusOnClose,
|
|
75
|
+
children
|
|
76
|
+
}) {
|
|
77
|
+
const panel = useRef(null);
|
|
78
|
+
const target = useRef(focusOnClose);
|
|
79
|
+
target.current = focusOnClose;
|
|
80
|
+
useLayoutEffect(() => {
|
|
81
|
+
if (leaving) releaseFocus(panel.current, target.current?.());
|
|
82
|
+
}, [leaving]);
|
|
83
|
+
useLayoutEffect(() => {
|
|
84
|
+
const element = panel.current;
|
|
85
|
+
return () => {
|
|
86
|
+
if (isClosed()) releaseFocus(element, target.current?.());
|
|
87
|
+
};
|
|
88
|
+
}, [isClosed]);
|
|
89
|
+
return /* @__PURE__ */ jsx("div", { ref: panel, className: "crewlet-dock-column__panel", inert: leaving || void 0, children });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { DockColumn };
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import {
|
|
3
|
+
import { useState, useRef, useCallback } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var AsideContext = createContext(null);
|
|
7
|
-
var PeekContext = createContext(null);
|
|
8
|
-
function useAppShellAside() {
|
|
9
|
-
return useContext(AsideContext);
|
|
10
|
-
}
|
|
11
|
-
function useAppShellPeek() {
|
|
12
|
-
return useContext(PeekContext);
|
|
13
|
-
}
|
|
14
6
|
var RESIZE_HANDLE_STEP = 16;
|
|
15
7
|
var RESIZE_HANDLE_LARGE_STEP = 64;
|
|
16
8
|
function clampSize(value, min, max) {
|
|
@@ -121,4 +113,4 @@ function ResizeHandle({
|
|
|
121
113
|
);
|
|
122
114
|
}
|
|
123
115
|
|
|
124
|
-
export {
|
|
116
|
+
export { RESIZE_HANDLE_LARGE_STEP, RESIZE_HANDLE_STEP, ResizeHandle, clampSize };
|
|
@@ -2,7 +2,7 @@ import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-YJQXESOJ.js';
|
|
|
2
2
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './ChatThread-
|
|
5
|
+
import './ChatThread-MKAN2Q4H.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';
|
|
@@ -206,7 +206,6 @@ function anchorIn(view, content) {
|
|
|
206
206
|
let parent = content;
|
|
207
207
|
for (let depth = 0; parent && depth < ANCHOR_DEPTH; depth++) {
|
|
208
208
|
let next = null;
|
|
209
|
-
let whole = false;
|
|
210
209
|
for (const child of Array.from(parent.children)) {
|
|
211
210
|
const box = child.getBoundingClientRect();
|
|
212
211
|
if (box.height === 0 || box.bottom <= top || box.top >= bottom) continue;
|
|
@@ -214,12 +213,11 @@ function anchorIn(view, content) {
|
|
|
214
213
|
if (style.position === "sticky" || style.position === "fixed" || style.position === "absolute") continue;
|
|
215
214
|
if (style.overflowAnchor === "none") continue;
|
|
216
215
|
next = child;
|
|
217
|
-
whole = box.top >= top && box.bottom <= bottom;
|
|
218
216
|
break;
|
|
219
217
|
}
|
|
220
218
|
if (!next) break;
|
|
221
219
|
found = next;
|
|
222
|
-
parent =
|
|
220
|
+
parent = next;
|
|
223
221
|
}
|
|
224
222
|
return found ? { element: found, at: depthIn(view, found) } : null;
|
|
225
223
|
}
|
|
@@ -5,7 +5,7 @@ import { useLayerContainer } from './chunk-FIX72ZEC.js';
|
|
|
5
5
|
import { focusables, useModalLayer, useBodyScrollLock } from './chunk-EDPMHSLZ.js';
|
|
6
6
|
import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
|
-
import './Modal-
|
|
8
|
+
import './Modal-3KGLG5UU.css';
|
|
9
9
|
import { useId, useRef, useCallback } from 'react';
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import { ChevronLeftGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -52,6 +52,7 @@ function ModalFrame({
|
|
|
52
52
|
showCloseButton = true,
|
|
53
53
|
stackBody = false,
|
|
54
54
|
flush = false,
|
|
55
|
+
fill = false,
|
|
55
56
|
className,
|
|
56
57
|
ariaLabel,
|
|
57
58
|
describedBy,
|
|
@@ -158,6 +159,7 @@ function ModalFrame({
|
|
|
158
159
|
"crewlet-modal__body",
|
|
159
160
|
stackBody ? "crewlet-modal__body--stacked" : void 0,
|
|
160
161
|
flush ? "crewlet-modal__body--flush" : void 0,
|
|
162
|
+
fill ? "crewlet-modal__body--fill" : void 0,
|
|
161
163
|
sheet ? "crewlet-modal__body--sheet" : void 0
|
|
162
164
|
),
|
|
163
165
|
children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { emojiName } from './chunk-
|
|
1
|
+
import { emojiName } from './chunk-4GBEQZQ4.js';
|
|
2
2
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
3
3
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
4
4
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
5
5
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
-
import './ChatScale-
|
|
7
|
+
import './ChatScale-AP237LJQ.css';
|
|
8
8
|
import './MessageActions-Q4F5UH3S.css';
|
|
9
9
|
import { forwardRef } from 'react';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
2
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
3
3
|
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
|
-
import { Composer } from './chunk-
|
|
4
|
+
import { Composer } from './chunk-6HMPYTZB.js';
|
|
5
5
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
6
6
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
7
7
|
import { Count } from './chunk-Y5CMDLQM.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-
|
|
1
|
+
import { emojiOfShortcode, emojiName, EmojiPicker } from './chunk-4GBEQZQ4.js';
|
|
2
2
|
import { heldHint } from './chunk-TDFLCUBE.js';
|
|
3
3
|
import { Tooltip } from './chunk-4SKN3BLH.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './ChatScale-
|
|
5
|
+
import './ChatScale-AP237LJQ.css';
|
|
6
6
|
import './ReactionBar-XXI4V7XG.css';
|
|
7
7
|
import { FaceSlightlySmilingPlusGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
2
2
|
import { AvatarStack } from './chunk-WUCRLA25.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './ChatScale-
|
|
5
|
-
import './ThreadSummary-
|
|
4
|
+
import './ChatScale-AP237LJQ.css';
|
|
5
|
+
import './ThreadSummary-CFAHYY57.css';
|
|
6
|
+
import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
|
|
6
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
9
|
var THREAD_SUMMARY_LABELS = {
|
|
@@ -40,9 +41,10 @@ function ThreadSummary({
|
|
|
40
41
|
/* @__PURE__ */ jsx(AvatarStack, { members: participants, size: "xs", max: 3, decorative: true }),
|
|
41
42
|
/* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__count", children: count }),
|
|
42
43
|
fresh ? /* @__PURE__ */ jsx(Tag, { size: "xs", variant: "brand", children: fresh }) : null,
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__view", children: open ? labels.open : labels.view })
|
|
44
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__last", "aria-hidden": "true", children: when }),
|
|
45
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-thread-summary__end", "aria-hidden": "true", children: [
|
|
46
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__view", children: open ? labels.open : labels.view }),
|
|
47
|
+
/* @__PURE__ */ jsx(ChevronRightGlyph, { size: "sm", className: "crewlet-thread-summary__chevron" })
|
|
46
48
|
] })
|
|
47
49
|
]
|
|
48
50
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-GELMY4I7.js';
|
|
2
2
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
3
3
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Popover } from './chunk-VYUEAMA4.js';
|
|
5
|
-
import { Skeleton } from './chunk-
|
|
5
|
+
import { Skeleton } from './chunk-MHNISUNZ.js';
|
|
6
6
|
import { Text } from './chunk-XLMURU75.js';
|
|
7
7
|
import { useMediaMatch } from './chunk-YJQXESOJ.js';
|
|
8
8
|
import { Input } from './chunk-DKFBBOVE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-
|
|
3
|
+
import './ChatScale-AP237LJQ.css';
|
|
4
4
|
import './ChatMessage-FH7VRVCH.css';
|
|
5
5
|
import { forwardRef, useState, useCallback } from 'react';
|
|
6
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/AppShell/regions.ts
|
|
4
|
+
var AsideContext = createContext(null);
|
|
5
|
+
var PeekContext = createContext(null);
|
|
6
|
+
function useAppShellAside() {
|
|
7
|
+
return useContext(AsideContext);
|
|
8
|
+
}
|
|
9
|
+
function useAppShellPeek() {
|
|
10
|
+
return useContext(PeekContext);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AsideContext, PeekContext, useAppShellAside, useAppShellPeek };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tokenMs } from './chunk-HTS5RJ7S.js';
|
|
2
2
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './ChatScale-
|
|
4
|
+
import './ChatScale-AP237LJQ.css';
|
|
5
5
|
import './Skeleton-UNQQWMV5.css';
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
7
|
import { motion } from '@crewlethq/tokens';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
|
|
2
|
-
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-
|
|
2
|
+
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-G33ND472.js';
|
|
3
3
|
import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
|
|
4
4
|
import { Checkbox } from './chunk-AR4K6L4X.js';
|
|
5
5
|
import { useMediaMatch } from './chunk-YJQXESOJ.js';
|
|
@@ -2,7 +2,8 @@ import { releaseFocus, usePresence } from './chunk-PCAT2EFB.js';
|
|
|
2
2
|
import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOESTT2.js';
|
|
3
3
|
import { useMediaMatch } from './chunk-YJQXESOJ.js';
|
|
4
4
|
import { Menu } from './chunk-B7WZADFX.js';
|
|
5
|
-
import { PeekContext, AsideContext
|
|
5
|
+
import { PeekContext, AsideContext } from './chunk-MBEZOURR.js';
|
|
6
|
+
import { ResizeHandle, clampSize } from './chunk-FQ6J4DK7.js';
|
|
6
7
|
import { isApplePlatform, ariaKeyshortcuts, Kbd } from './chunk-VBBLHS2Y.js';
|
|
7
8
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
8
9
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
@@ -13,7 +14,7 @@ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
|
13
14
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
14
15
|
import './HitArea-QUOS6ZDJ.css';
|
|
15
16
|
import './AppShell-S5FHXWNS.css';
|
|
16
|
-
import './ResizeHandle-
|
|
17
|
+
import './ResizeHandle-W6GA5OO6.css';
|
|
17
18
|
import { createContext, forwardRef, useContext, useSyncExternalStore, useCallback, useId, useState, useRef, useEffect, useLayoutEffect } from 'react';
|
|
18
19
|
import { breakpoint } from '@crewlethq/tokens';
|
|
19
20
|
import { ChevronUpGlyph, ChevronsUpDownGlyph, ChevronRightGlyph, ChevronsRightGlyph, ChevronsLeftGlyph, MenuGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChatDivider } from './chunk-
|
|
1
|
+
import { ChatDivider } from './chunk-5HHDVJBY.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-
|
|
4
|
-
import './ChatDivider-
|
|
5
|
-
import './ChatDay-
|
|
3
|
+
import './ChatScale-AP237LJQ.css';
|
|
4
|
+
import './ChatDivider-7SPCQXUQ.css';
|
|
5
|
+
import './ChatDay-523C65KY.css';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useAppShellPeek
|
|
1
|
+
import { useAppShellPeek } from './chunk-MBEZOURR.js';
|
|
2
|
+
import { ResizeHandle } from './chunk-FQ6J4DK7.js';
|
|
2
3
|
import { ButtonLink } from './chunk-RTHWXAXT.js';
|
|
3
4
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
4
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
6
|
-
import './ResizeHandle-
|
|
7
|
+
import './ResizeHandle-W6GA5OO6.css';
|
|
7
8
|
import './PeekRail-4L5YUQMW.css';
|
|
8
9
|
import { createContext, useRef, useEffect, useState, useMemo, useContext, Fragment as Fragment$1 } from 'react';
|
|
9
10
|
import { ChevronUpGlyph, ChevronDownGlyph, ArrowUpRightGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SidePanelBase, SidePanelFrameBase } from './chunk-
|
|
1
|
+
import { SidePanelBase, SidePanelFrameBase } from './chunk-EIHPORS4.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
3
|
import './HitArea-QUOS6ZDJ.css';
|
|
4
|
-
import './ResizeHandle-
|
|
4
|
+
import './ResizeHandle-W6GA5OO6.css';
|
|
5
5
|
import './SidePanel-BKWT6Q6Z.css';
|
|
6
6
|
import './ArtifactPanel-MR5Z5AVN.css';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|