@crewlethq/ui 0.102.2 → 0.103.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/AgentHandoffPanel/index.js +2 -2
- package/dist/ArtifactCard/index.js +2 -2
- package/dist/CanvasBoard/index.js +3 -3
- package/dist/CanvasToolbar/index.js +2 -2
- package/dist/ChatThread/ChatThread.d.ts +3 -0
- package/dist/ChatThread/index.js +1 -1
- package/dist/CommentThread/index.js +2 -2
- package/dist/Composer/index.js +1 -1
- package/dist/{Composer-ZEGHEAFE.css → Composer-XVQFBCIB.css} +38 -6
- package/dist/DataView/index.js +3 -3
- package/dist/{Editor-EWIMNQUZ.js → Editor-EIEWKSDE.js} +2 -2
- package/dist/MarkdownEditor/index.js +2 -2
- package/dist/MessageActions/index.js +2 -2
- package/dist/RailList/index.js +1 -1
- package/dist/RichEditor/index.js +1 -1
- package/dist/SelectionBar/index.js +2 -2
- package/dist/ShareDialog/index.js +1 -1
- package/dist/Toolbar/Toolbar.d.ts +22 -4
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-HUOSMNTH.css → Toolbar-DRFD6TQW.css} +29 -0
- package/dist/{chunk-WYZMETET.js → chunk-5QKNXTIC.js} +1 -1
- package/dist/{chunk-VVIT4AIE.js → chunk-H4MWPZRS.js} +2 -1
- package/dist/{chunk-OPWSOIAW.js → chunk-JZV4RD4L.js} +1 -1
- package/dist/{chunk-VJSTBDIB.js → chunk-K6HBEWRI.js} +1 -1
- package/dist/{chunk-OIM3CIA2.js → chunk-NPEI2QAN.js} +22 -4
- package/dist/{chunk-Y4OWRIQ3.js → chunk-OJ7NHII2.js} +1 -1
- package/dist/{chunk-EHZP27H5.js → chunk-QNDZY2CZ.js} +1 -1
- package/dist/{chunk-AHTIZ7RU.js → chunk-QQMVLDKT.js} +1 -1
- package/dist/{chunk-JEHW3FEB.js → chunk-SI7QLYPB.js} +1 -1
- package/dist/{chunk-ASU2MEI3.js → chunk-UDJVDRFY.js} +1 -1
- package/dist/{chunk-PPQELBN3.js → chunk-V464L4IL.js} +1 -1
- package/dist/{chunk-YWGLYDET.js → chunk-XQQN2NZB.js} +8 -10
- package/dist/generated/index.js +44 -44
- package/dist/index.js +44 -44
- package/dist/styles.css +69 -8
- package/package.json +3 -3
- package/dist/{chunk-3Q75RQOT.js → chunk-R7UQRR25.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-UDJVDRFY.js';
|
|
2
2
|
import '../chunk-XDUXAQIS.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-H4MWPZRS.js';
|
|
5
5
|
import '../chunk-D5O64CVE.js';
|
|
6
6
|
import '../chunk-2ES6LAV2.js';
|
|
7
7
|
import '../chunk-5KAADF4G.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-R7UQRR25.js';
|
|
2
2
|
import '../chunk-P5VPD4YZ.js';
|
|
3
3
|
import '../chunk-HF5L56YQ.js';
|
|
4
4
|
import '../chunk-GBKBME7Q.js';
|
|
5
5
|
import '../chunk-WGLOH33S.js';
|
|
6
|
-
import '../chunk-W3A6NBUM.js';
|
|
7
6
|
import '../chunk-3C3TSWRR.js';
|
|
8
7
|
import '../chunk-AV2DXAEL.js';
|
|
9
8
|
import '../chunk-XLMURU75.js';
|
|
10
9
|
import '../chunk-WSIJDWUG.js';
|
|
11
10
|
import '../chunk-WUCRLA25.js';
|
|
12
11
|
import '../chunk-XZY6S3UC.js';
|
|
12
|
+
import '../chunk-W3A6NBUM.js';
|
|
13
13
|
import '../chunk-AR4K6L4X.js';
|
|
14
14
|
import '../chunk-DOY3KC6I.js';
|
|
15
15
|
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-V464L4IL.js';
|
|
2
2
|
import '../chunk-5SZGKSGL.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-OJ7NHII2.js';
|
|
4
|
+
import '../chunk-NPEI2QAN.js';
|
|
5
5
|
import '../chunk-KAHTBXQ7.js';
|
|
6
6
|
import '../chunk-X4HBZSXA.js';
|
|
7
7
|
import '../chunk-VBBLHS2Y.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CanvasToolbar, toolForKey } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CanvasToolbar, toolForKey } from '../chunk-OJ7NHII2.js';
|
|
2
|
+
import '../chunk-NPEI2QAN.js';
|
|
3
3
|
import '../chunk-KAHTBXQ7.js';
|
|
4
4
|
import '../chunk-X4HBZSXA.js';
|
|
5
5
|
import '../chunk-VBBLHS2Y.js';
|
|
@@ -90,6 +90,9 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
|
|
|
90
90
|
* thread anchors itself: the item at the top of the view stays where it
|
|
91
91
|
* stood while what is above it changes height (an older page, a row drawn
|
|
92
92
|
* at its real height, a preview that loads), before the change is painted.
|
|
93
|
+
* The anchor is read again after every layout pass, so a jump that lands on
|
|
94
|
+
* a part a windowed host has not drawn yet (a spacer) anchors on the rows the
|
|
95
|
+
* host then draws there, never on the day that holds them.
|
|
93
96
|
*
|
|
94
97
|
* A JUMP HOLDS UNTIL IT LANDS. A smooth scroll passes through positions short
|
|
95
98
|
* of the end, and each one read as the reader leaving: the pill came back and
|
package/dist/ChatThread/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-
|
|
1
|
+
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-XQQN2NZB.js';
|
|
2
2
|
import '../chunk-YJQXESOJ.js';
|
|
3
3
|
import '../chunk-RTHWXAXT.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-
|
|
1
|
+
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-QQMVLDKT.js';
|
|
2
2
|
import '../chunk-HF5L56YQ.js';
|
|
3
3
|
import '../chunk-GBKBME7Q.js';
|
|
4
4
|
import '../chunk-WGLOH33S.js';
|
|
5
5
|
import '../chunk-WUCRLA25.js';
|
|
6
6
|
import '../chunk-XZY6S3UC.js';
|
|
7
7
|
import '../chunk-I4PBFJGX.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-H4MWPZRS.js';
|
|
9
9
|
import '../chunk-DKFBBOVE.js';
|
|
10
10
|
import '../chunk-NICEDVZM.js';
|
|
11
11
|
import '../chunk-JLKO7PSK.js';
|
package/dist/Composer/index.js
CHANGED
|
@@ -256,15 +256,42 @@
|
|
|
256
256
|
box-shadow: var(--shadow-xs);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
/* One line to start, a line's height per line after it, and at most
|
|
260
|
+
fourteen lines or half the window, whichever is less, before the words
|
|
261
|
+
scroll inside the field and the rows above and below stay put. Stated on
|
|
262
|
+
the textarea's own class so its auto-resize inset cannot outrank it. */
|
|
263
|
+
.crewlet-composer--chat .crewlet-composer__field.crewlet-textarea {
|
|
264
|
+
--crewlet-composer-line: calc(var(--crewlet-chat-line) * var(--crewlet-chat-text));
|
|
265
|
+
|
|
260
266
|
min-height: 0;
|
|
267
|
+
max-height: min(calc(var(--crewlet-composer-line) * 14 + 2 * var(--spacing-2)), 50dvh);
|
|
261
268
|
padding: var(--spacing-2) var(--spacing-3);
|
|
262
269
|
font-size: var(--crewlet-chat-text);
|
|
263
270
|
line-height: var(--crewlet-chat-line);
|
|
264
271
|
}
|
|
265
272
|
|
|
273
|
+
/* The placeholder names where the words go on one line, cut rather than
|
|
274
|
+
wrapped, so it never makes an empty box taller. */
|
|
275
|
+
.crewlet-composer--chat .crewlet-composer__field::placeholder {
|
|
276
|
+
overflow: hidden;
|
|
277
|
+
text-overflow: ellipsis;
|
|
278
|
+
white-space: nowrap;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* THE FORMATTING ROW AS A BAND the height of the footer, its glyphs on the
|
|
282
|
+
footer's inset from the box's edge, the controls a step apart, as the
|
|
283
|
+
footer's tools are. */
|
|
284
|
+
.crewlet-composer--chat .crewlet-composer__toolbar {
|
|
285
|
+
padding-block-start: calc(var(--spacing-1) + (var(--size-control-md) - var(--size-control-sm)) / 2);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.crewlet-composer--chat .crewlet-composer__toolbar .crewlet-toolbar {
|
|
289
|
+
gap: var(--spacing-1);
|
|
290
|
+
padding: 0;
|
|
291
|
+
}
|
|
292
|
+
|
|
266
293
|
.crewlet-composer--chat .crewlet-composer__footer {
|
|
267
|
-
gap:
|
|
294
|
+
gap: var(--spacing-1);
|
|
268
295
|
padding: var(--spacing-1);
|
|
269
296
|
padding-inline-start: var(--spacing-3);
|
|
270
297
|
border-top: 0;
|
|
@@ -277,9 +304,14 @@
|
|
|
277
304
|
color: var(--color-text-primary);
|
|
278
305
|
}
|
|
279
306
|
|
|
280
|
-
/* The formatting row's glyphs rest in the tertiary ink while the box is
|
|
281
|
-
in use, so the row reads as part of the field rather than as
|
|
282
|
-
competing with the conversation
|
|
283
|
-
|
|
307
|
+
/* The formatting row's glyphs rest in the tertiary ink while the box is
|
|
308
|
+
empty and not in use, so the row reads as part of the field rather than as
|
|
309
|
+
a toolbar competing with the conversation. Focus or words bring their own
|
|
310
|
+
ink back; the footer's tools never dim. */
|
|
311
|
+
.crewlet-composer--chat.is-empty:not(:focus-within) .crewlet-composer__toolbar :is(button, [role='button']):not(:hover) {
|
|
284
312
|
color: var(--color-text-tertiary);
|
|
285
313
|
}
|
|
314
|
+
|
|
315
|
+
.crewlet-composer--chat .crewlet-composer__tools {
|
|
316
|
+
gap: var(--spacing-1);
|
|
317
|
+
}
|
package/dist/DataView/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
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-SI7QLYPB.js';
|
|
2
2
|
import '../chunk-FPDIHEM4.js';
|
|
3
3
|
import '../chunk-J76ZZ6U2.js';
|
|
4
4
|
import '../chunk-KPB4ZUBI.js';
|
|
5
5
|
import '../chunk-BINHWCBP.js';
|
|
6
6
|
import '../chunk-LDFVJSKZ.js';
|
|
7
|
-
import '../chunk-KW7T23RT.js';
|
|
8
7
|
import '../chunk-STJ7QBC3.js';
|
|
9
8
|
import '../chunk-DTIW4CHZ.js';
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-KW7T23RT.js';
|
|
11
10
|
import '../chunk-EE3DJMSQ.js';
|
|
11
|
+
import '../chunk-NPEI2QAN.js';
|
|
12
12
|
import '../chunk-VYUEAMA4.js';
|
|
13
13
|
import '../chunk-GBKBME7Q.js';
|
|
14
14
|
import '../chunk-WGLOH33S.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
2
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
|
+
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
3
3
|
import './chunk-KOJPDCGQ.js';
|
|
4
4
|
import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
|
|
5
|
-
import { Toolbar } from './chunk-
|
|
5
|
+
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
6
6
|
import { Menu } from './chunk-B7WZADFX.js';
|
|
7
7
|
import { FormField, Input } from './chunk-DKFBBOVE.js';
|
|
8
8
|
import './chunk-NICEDVZM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-K6HBEWRI.js';
|
|
2
|
+
import '../chunk-NPEI2QAN.js';
|
|
3
3
|
import '../chunk-XOVSHJTZ.js';
|
|
4
4
|
import '../chunk-VJ4OGNS7.js';
|
|
5
5
|
import '../chunk-Y7KBBP2M.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../chunk-
|
|
1
|
+
export { ActionDivider, MessageAction, MessageActions, QuickReaction } from '../chunk-JZV4RD4L.js';
|
|
2
2
|
import '../chunk-6YQRCPJ3.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-NPEI2QAN.js';
|
|
4
4
|
import '../chunk-VYUEAMA4.js';
|
|
5
5
|
import '../chunk-DKFBBOVE.js';
|
|
6
6
|
import '../chunk-NICEDVZM.js';
|
package/dist/RailList/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { RAIL_LIST_LABELS, RailList } from '../chunk-INREAF4Z.js';
|
|
2
2
|
import '../chunk-JUZOMYOZ.js';
|
|
3
3
|
import '../chunk-TRPYEDZM.js';
|
|
4
|
-
import '../chunk-KW7T23RT.js';
|
|
5
4
|
import '../chunk-TODOBUXO.js';
|
|
5
|
+
import '../chunk-KW7T23RT.js';
|
|
6
6
|
import '../chunk-HBDA76EZ.js';
|
|
7
7
|
import '../chunk-3C3TSWRR.js';
|
|
8
8
|
import '../chunk-AV2DXAEL.js';
|
package/dist/RichEditor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RichEditor, preloadRichEditor } from '../chunk-
|
|
1
|
+
export { RichEditor, preloadRichEditor } from '../chunk-QNDZY2CZ.js';
|
|
2
2
|
export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
|
|
3
3
|
import '../chunk-KOJPDCGQ.js';
|
|
4
4
|
import '../chunk-KBZO4B33.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SelectionBar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SelectionBar } from '../chunk-5QKNXTIC.js';
|
|
2
|
+
import '../chunk-NPEI2QAN.js';
|
|
3
3
|
import '../chunk-RTHWXAXT.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
5
5
|
import '../chunk-TDFLCUBE.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-6QOW3WT2.js';
|
|
2
2
|
import '../chunk-JUZOMYOZ.js';
|
|
3
3
|
import '../chunk-LDFVJSKZ.js';
|
|
4
|
-
import '../chunk-KW7T23RT.js';
|
|
5
4
|
import '../chunk-NNO5GSIB.js';
|
|
6
5
|
import '../chunk-STJ7QBC3.js';
|
|
7
6
|
import '../chunk-DTIW4CHZ.js';
|
|
7
|
+
import '../chunk-KW7T23RT.js';
|
|
8
8
|
import '../chunk-BPCY7ZID.js';
|
|
9
9
|
import '../chunk-HF5L56YQ.js';
|
|
10
10
|
import '../chunk-WUCRLA25.js';
|
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
25
25
|
export type ToolbarMode = 'toolbar' | 'group';
|
|
26
|
+
/**
|
|
27
|
+
* Where `Toolbar.Wide` folds into `Toolbar.Overflow`. `screen`: at the shell's
|
|
28
|
+
* breakpoint, as a page's toolbar folds with the shell. `container`: where the
|
|
29
|
+
* row itself is narrower than [TOOLBAR_FOLD_WIDTH], for a row inside a box
|
|
30
|
+
* whose width is not the window's (a composer in a side panel).
|
|
31
|
+
*/
|
|
32
|
+
export type ToolbarFold = 'screen' | 'container';
|
|
33
|
+
/** The row width under which a `fold="container"` toolbar folds, as its stylesheet states it. */
|
|
34
|
+
export declare const TOOLBAR_FOLD_WIDTH = "20rem";
|
|
26
35
|
export interface ToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
|
|
27
36
|
/**
|
|
28
37
|
* Names the row. REQUIRED: a toolbar is announced by its name, and a page
|
|
@@ -37,12 +46,15 @@ export interface ToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role
|
|
|
37
46
|
mode?: ToolbarMode | undefined;
|
|
38
47
|
/** Sticks under the top of the scroller, so filters stay reachable in a long list. */
|
|
39
48
|
sticky?: boolean | undefined;
|
|
49
|
+
/** Where `Toolbar.Wide` folds into `Toolbar.Overflow`; see `ToolbarFold`. */
|
|
50
|
+
fold?: ToolbarFold | undefined;
|
|
40
51
|
children?: ReactNode;
|
|
41
52
|
}
|
|
42
|
-
export declare function Toolbar({ label, mode, sticky, className, children, ...rest }: ToolbarProps): import("react").JSX.Element;
|
|
53
|
+
export declare function Toolbar({ label, mode, sticky, fold, className, children, ...rest }: ToolbarProps): import("react").JSX.Element;
|
|
43
54
|
export declare namespace Toolbar {
|
|
44
55
|
var Wide: typeof ToolbarWide;
|
|
45
56
|
var Overflow: typeof ToolbarOverflow;
|
|
57
|
+
var Separator: typeof ToolbarSeparator;
|
|
46
58
|
}
|
|
47
59
|
export interface ToolbarSlotProps extends HTMLAttributes<HTMLDivElement> {
|
|
48
60
|
children?: ReactNode;
|
|
@@ -55,8 +67,14 @@ export declare function ToolbarWide({ className, children, ...rest }: ToolbarSlo
|
|
|
55
67
|
/**
|
|
56
68
|
* What stands in for them: a Menu holding the same actions, drawn only below
|
|
57
69
|
* the breakpoint. Two elements rather than one that measures itself, because a
|
|
58
|
-
* row whose contents change as it is measured is a row that can oscillate
|
|
59
|
-
*
|
|
60
|
-
*
|
|
70
|
+
* row whose contents change as it is measured is a row that can oscillate. The
|
|
71
|
+
* width that decides is the shell's breakpoint, or with `fold="container"` the
|
|
72
|
+
* row's own, which its contents cannot move: the row takes its width from the
|
|
73
|
+
* box it stands in.
|
|
61
74
|
*/
|
|
62
75
|
export declare function ToolbarOverflow({ className, children, ...rest }: ToolbarSlotProps): import("react").JSX.Element;
|
|
76
|
+
/**
|
|
77
|
+
* A thin upright rule between groups of controls. Decorative: the controls
|
|
78
|
+
* each carry their own name, and a separator is not a stop the arrows land on.
|
|
79
|
+
*/
|
|
80
|
+
export declare function ToolbarSeparator({ className, ...rest }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './Toolbar.css';
|
|
2
|
-
export { Toolbar, ToolbarOverflow, ToolbarWide } from './Toolbar.js';
|
|
3
|
-
export type { ToolbarMode, ToolbarProps, ToolbarSlotProps } from './Toolbar.js';
|
|
2
|
+
export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from './Toolbar.js';
|
|
3
|
+
export type { ToolbarFold, ToolbarMode, ToolbarProps, ToolbarSlotProps } from './Toolbar.js';
|
package/dist/Toolbar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Toolbar, ToolbarOverflow, ToolbarWide } from '../chunk-
|
|
1
|
+
export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide } from '../chunk-NPEI2QAN.js';
|
|
2
2
|
import '../chunk-FIX72ZEC.js';
|
|
3
3
|
import '../chunk-EDPMHSLZ.js';
|
|
4
4
|
import '../chunk-4ITETIGZ.js';
|
|
@@ -40,6 +40,25 @@
|
|
|
40
40
|
/* Under the shell's breakpoint, strictly, as the shell switches: the wide
|
|
41
41
|
controls fold into the overflow where the rail becomes a drawer. */
|
|
42
42
|
@media (width < 1024px) {
|
|
43
|
+
:where(.crewlet-toolbar:not(.crewlet-toolbar--fold-container)) .crewlet-toolbar__wide {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.crewlet-toolbar:not(.crewlet-toolbar--fold-container)) .crewlet-toolbar__overflow {
|
|
48
|
+
display: flex;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* FOLDED BY ITS OWN WIDTH: the row is its own query container and takes the
|
|
53
|
+
width of the box it stands in, so what folds never changes what decides.
|
|
54
|
+
The width is TOOLBAR_FOLD_WIDTH (Toolbar.tsx). */
|
|
55
|
+
.crewlet-toolbar--fold-container {
|
|
56
|
+
container: crewlet-toolbar / inline-size;
|
|
57
|
+
flex: 1 1 auto;
|
|
58
|
+
flex-wrap: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@container crewlet-toolbar (width < 20rem) {
|
|
43
62
|
.crewlet-toolbar__wide {
|
|
44
63
|
display: none;
|
|
45
64
|
}
|
|
@@ -48,3 +67,13 @@
|
|
|
48
67
|
display: flex;
|
|
49
68
|
}
|
|
50
69
|
}
|
|
70
|
+
|
|
71
|
+
/* A thin upright rule between groups, a small control's half height. */
|
|
72
|
+
.crewlet-toolbar__separator {
|
|
73
|
+
flex: none;
|
|
74
|
+
align-self: center;
|
|
75
|
+
width: 1px;
|
|
76
|
+
height: var(--spacing-5);
|
|
77
|
+
margin: 0 var(--spacing-1);
|
|
78
|
+
background: var(--color-border-default);
|
|
79
|
+
}
|
|
@@ -4,7 +4,7 @@ import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
|
4
4
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './ChatScale-L4SIHSKL.css';
|
|
7
|
-
import './Composer-
|
|
7
|
+
import './Composer-XVQFBCIB.css';
|
|
8
8
|
import { forwardRef, useId } from 'react';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
@@ -55,6 +55,7 @@ var Composer = forwardRef(function Composer2({
|
|
|
55
55
|
"crewlet-composer",
|
|
56
56
|
appearance === "chat" && "crewlet-composer--chat",
|
|
57
57
|
inline && "crewlet-composer--inline",
|
|
58
|
+
value === "" && "is-empty",
|
|
58
59
|
disabled && "is-disabled",
|
|
59
60
|
className
|
|
60
61
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emojiName } from './chunk-6YQRCPJ3.js';
|
|
2
|
-
import { Toolbar } from './chunk-
|
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Toolbar-
|
|
3
|
+
import './Toolbar-DRFD6TQW.css';
|
|
4
4
|
import { useRef, useState, useEffect, useCallback } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -52,7 +52,16 @@ function stopHolding(stops, active) {
|
|
|
52
52
|
if (!active) return -1;
|
|
53
53
|
return stops.findIndex((stop) => stop.owned.some((el) => el === active || el.contains(active)));
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
var TOOLBAR_FOLD_WIDTH = "20rem";
|
|
56
|
+
function Toolbar({
|
|
57
|
+
label,
|
|
58
|
+
mode = "toolbar",
|
|
59
|
+
sticky = false,
|
|
60
|
+
fold = "screen",
|
|
61
|
+
className,
|
|
62
|
+
children,
|
|
63
|
+
...rest
|
|
64
|
+
}) {
|
|
56
65
|
const root = useRef(null);
|
|
57
66
|
const [at, setAt] = useState(0);
|
|
58
67
|
const roving = mode === "toolbar";
|
|
@@ -113,7 +122,12 @@ function Toolbar({ label, mode = "toolbar", sticky = false, className, children,
|
|
|
113
122
|
{
|
|
114
123
|
...rest,
|
|
115
124
|
ref: root,
|
|
116
|
-
className: cx(
|
|
125
|
+
className: cx(
|
|
126
|
+
"crewlet-toolbar",
|
|
127
|
+
sticky && "crewlet-toolbar--sticky",
|
|
128
|
+
fold === "container" && "crewlet-toolbar--fold-container",
|
|
129
|
+
className
|
|
130
|
+
),
|
|
117
131
|
role: roving ? "toolbar" : "group",
|
|
118
132
|
"aria-label": label,
|
|
119
133
|
"aria-orientation": roving ? "horizontal" : void 0,
|
|
@@ -129,7 +143,11 @@ function ToolbarWide({ className, children, ...rest }) {
|
|
|
129
143
|
function ToolbarOverflow({ className, children, ...rest }) {
|
|
130
144
|
return /* @__PURE__ */ jsx("div", { ...rest, className: cx("crewlet-toolbar__overflow", className), children });
|
|
131
145
|
}
|
|
146
|
+
function ToolbarSeparator({ className, ...rest }) {
|
|
147
|
+
return /* @__PURE__ */ jsx("span", { ...rest, "aria-hidden": "true", className: cx("crewlet-toolbar__separator", className) });
|
|
148
|
+
}
|
|
132
149
|
Toolbar.Wide = ToolbarWide;
|
|
133
150
|
Toolbar.Overflow = ToolbarOverflow;
|
|
151
|
+
Toolbar.Separator = ToolbarSeparator;
|
|
134
152
|
|
|
135
|
-
export { Toolbar, ToolbarOverflow, ToolbarWide };
|
|
153
|
+
export { TOOLBAR_FOLD_WIDTH, Toolbar, ToolbarOverflow, ToolbarSeparator, ToolbarWide };
|
|
@@ -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-
|
|
12
|
+
loading ??= import('./Editor-EIEWKSDE.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -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-H4MWPZRS.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';
|
|
@@ -3,7 +3,7 @@ import { FilterPill } from './chunk-J76ZZ6U2.js';
|
|
|
3
3
|
import { DateTimePicker } from './chunk-KPB4ZUBI.js';
|
|
4
4
|
import { DataTable } from './chunk-BINHWCBP.js';
|
|
5
5
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
6
|
-
import { Toolbar } from './chunk-
|
|
6
|
+
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
7
7
|
import { Popover } from './chunk-VYUEAMA4.js';
|
|
8
8
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
9
9
|
import { Menu } from './chunk-B7WZADFX.js';
|
|
@@ -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-
|
|
3
|
+
import { Composer } from './chunk-H4MWPZRS.js';
|
|
4
4
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
5
5
|
import { ArtifactPanel } from './chunk-2ES6LAV2.js';
|
|
6
6
|
import { Button } from './chunk-RTHWXAXT.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Note } from './chunk-5SZGKSGL.js';
|
|
2
|
-
import { CanvasToolbar, toolForKey } from './chunk-
|
|
2
|
+
import { CanvasToolbar, toolForKey } from './chunk-OJ7NHII2.js';
|
|
3
3
|
import { IDENTITY_VIEW, Canvas } from './chunk-KAHTBXQ7.js';
|
|
4
4
|
import { IconButton } from './chunk-PNYANWZ6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -92,17 +92,15 @@ var ChatThread = forwardRef(function ChatThread2({
|
|
|
92
92
|
const hold = useCallback(() => {
|
|
93
93
|
const el = scroller.current;
|
|
94
94
|
const mark = anchor.current;
|
|
95
|
-
if (!el ||
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
if (!el || atEnd.current || jumping.current) return;
|
|
96
|
+
if (mark?.element.isConnected) {
|
|
97
|
+
const delta = depthIn(el, mark.element) - mark.at;
|
|
98
|
+
if (Math.abs(delta) >= 0.5) {
|
|
99
|
+
el.scrollTop += delta;
|
|
100
|
+
settle(el);
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
|
-
|
|
101
|
-
const delta = at - mark.at;
|
|
102
|
-
if (Math.abs(delta) < 0.5) return;
|
|
103
|
-
mark.at = at;
|
|
104
|
-
el.scrollTop += delta;
|
|
105
|
-
settle(el);
|
|
103
|
+
anchor.current = anchorIn(el, items.current);
|
|
106
104
|
}, [settle]);
|
|
107
105
|
useEffect(() => {
|
|
108
106
|
const el = scroller.current;
|