@crewlethq/ui 0.117.0 → 0.118.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 (50) hide show
  1. package/dist/AgentHandoffPanel/index.js +5 -2
  2. package/dist/AppShell/index.js +3 -3
  3. package/dist/ArrangeList/index.js +2 -2
  4. package/dist/CommentThread/index.js +5 -2
  5. package/dist/Composer/Composer.d.ts +21 -16
  6. package/dist/Composer/index.js +4 -1
  7. package/dist/{Composer-AVBJS6U4.css → Composer-ZCCW2U6T.css} +0 -8
  8. package/dist/ContrastBadge/index.js +2 -2
  9. package/dist/ContrastHelp/index.js +3 -3
  10. package/dist/DataGrid/index.js +3 -3
  11. package/dist/DocTabsEditor/index.js +2 -2
  12. package/dist/DockColumn/index.js +1 -1
  13. package/dist/ListInput/index.js +2 -2
  14. package/dist/LogoSlot/index.js +3 -3
  15. package/dist/MarkdownEditor/MarkdownEditor.d.ts +4 -1
  16. package/dist/OrgTable/index.js +5 -5
  17. package/dist/RailList/index.js +2 -2
  18. package/dist/RichEditor/index.js +1 -1
  19. package/dist/SendKeys/SendKeysHint.d.ts +17 -0
  20. package/dist/SendKeys/index.d.ts +7 -0
  21. package/dist/SendKeys/index.js +9 -0
  22. package/dist/SendKeys/sendKeys.d.ts +57 -0
  23. package/dist/SendKeys/useSendOnEnter.d.ts +35 -0
  24. package/dist/SendKeys-QVR5TSNA.css +12 -0
  25. package/dist/SetupWizard/index.js +3 -3
  26. package/dist/ShareDialog/index.js +2 -2
  27. package/dist/SlideFilmstrip/index.js +1 -1
  28. package/dist/Switcher/index.js +3 -3
  29. package/dist/TreeGrid/index.js +4 -4
  30. package/dist/{chunk-JKGSPQUX.js → chunk-4QBXC7RB.js} +2 -2
  31. package/dist/{chunk-2JNBDAOE.js → chunk-67CZRI6E.js} +13 -17
  32. package/dist/{chunk-CUUDIFBU.js → chunk-RMGBLCZR.js} +1 -1
  33. package/dist/{chunk-EAC357YC.js → chunk-S4WQLDRZ.js} +1 -1
  34. package/dist/{chunk-RWBBTGCK.js → chunk-SGLB4HTQ.js} +1 -1
  35. package/dist/{chunk-7NMJ32PY.js → chunk-TCNTMTPI.js} +1 -1
  36. package/dist/{chunk-FWIKDACZ.js → chunk-TP7PRSGX.js} +1 -1
  37. package/dist/chunk-UZMXC5T6.js +68 -0
  38. package/dist/{chunk-62TEKYMP.js → chunk-VHBJTP34.js} +1 -1
  39. package/dist/generated/index.d.ts +1 -0
  40. package/dist/generated/index.js +46 -45
  41. package/dist/index.js +46 -45
  42. package/dist/styles.css +16 -9
  43. package/package.json +3 -3
  44. package/dist/{Editor-YITN2DWX.js → Editor-XT73VTSJ.js} +1 -1
  45. package/dist/{chunk-XDBCWSM5.js → chunk-33NGH63Z.js} +0 -0
  46. package/dist/{chunk-F7NHMBGJ.js → chunk-3YOLD7WG.js} +1 -1
  47. package/dist/{chunk-73OCFZN7.js → chunk-HPAPWGCC.js} +1 -1
  48. package/dist/{chunk-VLU3FMJD.js → chunk-MW2MGP3O.js} +1 -1
  49. package/dist/{chunk-PWB2LWBE.js → chunk-TOAIPMFT.js} +1 -1
  50. package/dist/{chunk-YXY6B5VB.js → chunk-WLL3PFI3.js} +1 -1
@@ -1,7 +1,8 @@
1
- export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-EAC357YC.js';
1
+ export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-S4WQLDRZ.js';
2
2
  import '../chunk-XDUXAQIS.js';
3
3
  import '../chunk-WFCWPXJN.js';
4
- import '../chunk-2JNBDAOE.js';
4
+ import '../chunk-67CZRI6E.js';
5
+ import '../chunk-UZMXC5T6.js';
5
6
  import '../chunk-D5O64CVE.js';
6
7
  import '../chunk-LWZAXQBR.js';
7
8
  import '../chunk-7L446LBC.js';
@@ -12,6 +13,8 @@ import '../chunk-NICEDVZM.js';
12
13
  import '../chunk-JLKO7PSK.js';
13
14
  import '../chunk-PJV5HVZY.js';
14
15
  import '../chunk-TEXK4RK6.js';
16
+ import '../chunk-SK4BIFTG.js';
17
+ import '../chunk-COS6LJ4K.js';
15
18
  import '../chunk-VBBLHS2Y.js';
16
19
  import '../chunk-NPPPQSRU.js';
17
20
  import '../chunk-XSPCITPN.js';
@@ -1,11 +1,11 @@
1
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-PWB2LWBE.js';
1
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-TOAIPMFT.js';
2
2
  import '../chunk-SNKQNAJI.js';
3
3
  import '../chunk-JLOESTT2.js';
4
- import '../chunk-SK4BIFTG.js';
5
- import '../chunk-COS6LJ4K.js';
6
4
  import '../chunk-QHUKJN33.js';
7
5
  export { useAppShellAside, useAppShellPeek } from '../chunk-MBEZOURR.js';
8
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
9
  import '../chunk-VBBLHS2Y.js';
10
10
  import '../chunk-NPPPQSRU.js';
11
11
  import '../chunk-XSPCITPN.js';
@@ -2,13 +2,13 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-CTIJTW4R.js';
2
2
  import '../chunk-6YYRFGXO.js';
3
3
  import '../chunk-JMBPMSNI.js';
4
4
  import '../chunk-DTEDUAEW.js';
5
- import '../chunk-SK4BIFTG.js';
6
- import '../chunk-COS6LJ4K.js';
7
5
  import '../chunk-TE3OMB3Z.js';
8
6
  import '../chunk-NICEDVZM.js';
9
7
  import '../chunk-JLKO7PSK.js';
10
8
  import '../chunk-PJV5HVZY.js';
11
9
  import '../chunk-TEXK4RK6.js';
10
+ import '../chunk-SK4BIFTG.js';
11
+ import '../chunk-COS6LJ4K.js';
12
12
  import '../chunk-BF2BXM6V.js';
13
13
  import '../chunk-TDFLCUBE.js';
14
14
  import '../chunk-HXVMXH6U.js';
@@ -1,16 +1,19 @@
1
- export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-62TEKYMP.js';
1
+ export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-VHBJTP34.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
6
  import '../chunk-5SMYKL3D.js';
7
7
  import '../chunk-XZY6S3UC.js';
8
- import '../chunk-2JNBDAOE.js';
8
+ import '../chunk-67CZRI6E.js';
9
+ import '../chunk-UZMXC5T6.js';
9
10
  import '../chunk-TE3OMB3Z.js';
10
11
  import '../chunk-NICEDVZM.js';
11
12
  import '../chunk-JLKO7PSK.js';
12
13
  import '../chunk-PJV5HVZY.js';
13
14
  import '../chunk-TEXK4RK6.js';
15
+ import '../chunk-SK4BIFTG.js';
16
+ import '../chunk-COS6LJ4K.js';
14
17
  import '../chunk-VBBLHS2Y.js';
15
18
  import '../chunk-NPPPQSRU.js';
16
19
  import '../chunk-XSPCITPN.js';
@@ -1,25 +1,28 @@
1
1
  import { type ReactNode, type TextareaHTMLAttributes } from 'react';
2
+ import { type SendKeysLabels } from '../SendKeys/index.js';
2
3
  /** The share of `maxLength` at which the counter appears. */
3
4
  export declare const COMPOSER_COUNTER_AT = 0.8;
4
- /**
5
- * Which key sends. `mod-enter` (Command+Enter, Control+Enter elsewhere) is for
6
- * a brief or a reply that is often several lines, where Enter writes a line;
7
- * `enter` is for a question, which is one line far more often than not, as
8
- * every chat surface sends it: Enter sends and Shift+Enter writes a line.
9
- */
10
- export type ComposerSubmitKey = 'mod-enter' | 'enter';
11
5
  /** The box's look: `default`, a form's field, or `chat`, a conversation's message box. */
12
6
  export type ComposerAppearance = 'default' | 'chat';
13
7
  export interface ComposerProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onSubmit' | 'children'> {
14
8
  value: string;
15
9
  onChange: (value: string) => void;
16
10
  /**
17
- * Called on the send key (`submitOn`). Never while the composer is
18
- * disabled, and never on an Enter that ends an input method's composition.
11
+ * Called on the send key: Enter, or Command+Enter (Control+Enter
12
+ * elsewhere), while Shift+Enter writes a line (`isSendPress` is the rule).
13
+ * Never while the composer is disabled or holds only blank space, never
14
+ * mid composition, and never on a touch keyboard's Return.
19
15
  */
20
16
  onSubmit?: (() => void) | undefined;
21
- /** Which key sends. `mod-enter` by default; see `ComposerSubmitKey`. */
22
- submitOn?: ComposerSubmitKey | undefined;
17
+ /**
18
+ * Draws the send hint in the footer, "Enter to send, Shift+Enter for a new
19
+ * line". True by default; a box whose send button and placement already say
20
+ * it (a chat box, a question to the assistant) turns it off. The field's
21
+ * description names the keys either way.
22
+ */
23
+ sendHint?: boolean | undefined;
24
+ /** The send hint's words, for a box whose Enter saves rather than sends. */
25
+ sendLabels?: SendKeysLabels | undefined;
23
26
  /** Names the field for a screen reader, since it carries no visible label. */
24
27
  label: string;
25
28
  /**
@@ -76,11 +79,13 @@ export interface ComposerProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
76
79
  * actions, in one box that takes the focus ring as a whole. A formatting row
77
80
  * (`toolbar`) may stand along the box's top, above the words it acts on.
78
81
  *
79
- * THE FOOTER IS DRAWN ONLY WITH SOMETHING IN IT. With no shortcut, counter or
80
- * actions there is no strip at all, and one holding only the shortcut's hint
81
- * goes on a phone, where the hint is not drawn, rather than stand there empty.
82
- * A composer that sends on Enter draws no hint: Enter is what every chat field
83
- * already does, and the send button beside the field says the rest.
82
+ * ENTER SENDS AND SHIFT+ENTER WRITES A LINE, as in every message box in the
83
+ * system (`useSendOnEnter`); on a touch keyboard Return writes a line and the
84
+ * send button sends.
85
+ *
86
+ * THE FOOTER IS DRAWN ONLY WITH SOMETHING IN IT. With no hint, counter or
87
+ * actions there is no strip at all, and one holding only the hint goes on a
88
+ * phone, where the hint is not drawn, rather than stand there empty.
84
89
  *
85
90
  * THE COUNTER IS DRAWN ONLY NEAR THE LIMIT, from [COMPOSER_COUNTER_AT] of
86
91
  * `maxLength`: a count under every short reply is noise, and a field that
@@ -1,9 +1,12 @@
1
- export { COMPOSER_COUNTER_AT, Composer } from '../chunk-2JNBDAOE.js';
1
+ export { COMPOSER_COUNTER_AT, Composer } from '../chunk-67CZRI6E.js';
2
+ import '../chunk-UZMXC5T6.js';
2
3
  import '../chunk-TE3OMB3Z.js';
3
4
  import '../chunk-NICEDVZM.js';
4
5
  import '../chunk-JLKO7PSK.js';
5
6
  import '../chunk-PJV5HVZY.js';
6
7
  import '../chunk-TEXK4RK6.js';
8
+ import '../chunk-SK4BIFTG.js';
9
+ import '../chunk-COS6LJ4K.js';
7
10
  import '../chunk-VBBLHS2Y.js';
8
11
  import '../chunk-BF2BXM6V.js';
9
12
  import '../chunk-TDFLCUBE.js';
@@ -206,14 +206,6 @@
206
206
  border-radius: var(--crewlet-composer-nested-radius);
207
207
  }
208
208
 
209
- .crewlet-composer__hint {
210
- display: inline-flex;
211
- align-items: center;
212
- gap: var(--spacing-1);
213
- font-size: var(--font-size-2xs);
214
- color: var(--color-text-tertiary);
215
- }
216
-
217
209
  .crewlet-composer__counter {
218
210
  font-family: var(--font-family-mono);
219
211
  font-size: var(--font-size-2xs);
@@ -1,6 +1,6 @@
1
- export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-F7NHMBGJ.js';
2
- import '../chunk-SJ3EUCFD.js';
1
+ export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-3YOLD7WG.js';
3
2
  import '../chunk-7W3LYIOC.js';
3
+ import '../chunk-SJ3EUCFD.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-RRRK2KB6.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,8 +1,8 @@
1
- export { ContrastHelp } from '../chunk-FWIKDACZ.js';
2
- import '../chunk-F7NHMBGJ.js';
1
+ export { ContrastHelp } from '../chunk-TP7PRSGX.js';
2
+ import '../chunk-3YOLD7WG.js';
3
+ import '../chunk-7W3LYIOC.js';
3
4
  import '../chunk-SJ3EUCFD.js';
4
5
  import '../chunk-KDRJZWE3.js';
5
- import '../chunk-7W3LYIOC.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-BF2BXM6V.js';
8
8
  import '../chunk-TDFLCUBE.js';
@@ -1,16 +1,16 @@
1
- export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-73OCFZN7.js';
1
+ export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-HPAPWGCC.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-WSIJDWUG.js';
4
4
  import '../chunk-JMBPMSNI.js';
5
5
  import '../chunk-DTEDUAEW.js';
6
- import '../chunk-SK4BIFTG.js';
7
- import '../chunk-COS6LJ4K.js';
8
6
  import '../chunk-PPUR46MK.js';
9
7
  import '../chunk-TE3OMB3Z.js';
10
8
  import '../chunk-NICEDVZM.js';
11
9
  import '../chunk-JLKO7PSK.js';
12
10
  import '../chunk-PJV5HVZY.js';
13
11
  import '../chunk-TEXK4RK6.js';
12
+ import '../chunk-SK4BIFTG.js';
13
+ import '../chunk-COS6LJ4K.js';
14
14
  import '../chunk-NPPPQSRU.js';
15
15
  import '../chunk-XSPCITPN.js';
16
16
  import '../chunk-BF2BXM6V.js';
@@ -1,13 +1,13 @@
1
1
  export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-7TLM7E5N.js';
2
2
  import '../chunk-JMBPMSNI.js';
3
- import '../chunk-SK4BIFTG.js';
4
- import '../chunk-COS6LJ4K.js';
5
3
  import '../chunk-QHUKJN33.js';
6
4
  import '../chunk-TE3OMB3Z.js';
7
5
  import '../chunk-NICEDVZM.js';
8
6
  import '../chunk-JLKO7PSK.js';
9
7
  import '../chunk-PJV5HVZY.js';
10
8
  import '../chunk-TEXK4RK6.js';
9
+ import '../chunk-SK4BIFTG.js';
10
+ import '../chunk-COS6LJ4K.js';
11
11
  import '../chunk-NPPPQSRU.js';
12
12
  import '../chunk-XSPCITPN.js';
13
13
  import '../chunk-BF2BXM6V.js';
@@ -1,8 +1,8 @@
1
1
  export { DockColumn } from '../chunk-UXTW4GOT.js';
2
2
  import '../chunk-SNKQNAJI.js';
3
+ import '../chunk-FQ6J4DK7.js';
3
4
  import '../chunk-SK4BIFTG.js';
4
5
  import '../chunk-COS6LJ4K.js';
5
- import '../chunk-FQ6J4DK7.js';
6
6
  import '../chunk-2YTOOH3A.js';
7
7
  import '../chunk-HTS5RJ7S.js';
8
8
  import '../chunk-4ITETIGZ.js';
@@ -1,12 +1,12 @@
1
1
  export { ListInput, withDraft } from '../chunk-5G3KASPV.js';
2
2
  import '../chunk-JMBPMSNI.js';
3
- import '../chunk-SK4BIFTG.js';
4
- import '../chunk-COS6LJ4K.js';
5
3
  import '../chunk-TE3OMB3Z.js';
6
4
  import '../chunk-NICEDVZM.js';
7
5
  import '../chunk-JLKO7PSK.js';
8
6
  import '../chunk-PJV5HVZY.js';
9
7
  import '../chunk-TEXK4RK6.js';
8
+ import '../chunk-SK4BIFTG.js';
9
+ import '../chunk-COS6LJ4K.js';
10
10
  import '../chunk-VBBLHS2Y.js';
11
11
  import '../chunk-NPPPQSRU.js';
12
12
  import '../chunk-XSPCITPN.js';
@@ -1,8 +1,8 @@
1
- export { LogoSlot, LogoSlotGroup } from '../chunk-7NMJ32PY.js';
1
+ export { LogoSlot, LogoSlotGroup } from '../chunk-TCNTMTPI.js';
2
2
  import '../chunk-BLFHFMXQ.js';
3
- import '../chunk-F7NHMBGJ.js';
4
- import '../chunk-SJ3EUCFD.js';
3
+ import '../chunk-3YOLD7WG.js';
5
4
  import '../chunk-7W3LYIOC.js';
5
+ import '../chunk-SJ3EUCFD.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-NPPPQSRU.js';
8
8
  import '../chunk-XSPCITPN.js';
@@ -57,7 +57,10 @@ export interface MarkdownEditorProps {
57
57
  actions?: ((editor: MarkdownEditorApi) => ReactNode) | undefined;
58
58
  /** The strip under the field: a word count, a size against a limit. */
59
59
  footer?: ReactNode;
60
- /** Command+Enter (Control+Enter elsewhere), the shortcut every composer in the system saves on. */
60
+ /**
61
+ * Command+Enter (Control+Enter elsewhere): a long-form editor saves on it,
62
+ * since its Enter writes a line. A message box sends on Enter instead (`Composer`).
63
+ */
61
64
  onSubmit?: (() => void) | undefined;
62
65
  disabled?: boolean | undefined;
63
66
  /** Draws the field as refused, for a body over its limit. */
@@ -1,15 +1,13 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-CUUDIFBU.js';
2
- import '../chunk-JKGSPQUX.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-RMGBLCZR.js';
2
+ import '../chunk-4QBXC7RB.js';
3
3
  import '../chunk-MY374UUD.js';
4
4
  import '../chunk-DEVO45TG.js';
5
- import '../chunk-73OCFZN7.js';
5
+ import '../chunk-HPAPWGCC.js';
6
6
  import '../chunk-X4HBZSXA.js';
7
7
  import '../chunk-WFAJYBLX.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
9
  import '../chunk-JMBPMSNI.js';
10
10
  import '../chunk-DTEDUAEW.js';
11
- import '../chunk-SK4BIFTG.js';
12
- import '../chunk-COS6LJ4K.js';
13
11
  import '../chunk-PPUR46MK.js';
14
12
  import '../chunk-5SMYKL3D.js';
15
13
  import '../chunk-XZY6S3UC.js';
@@ -19,6 +17,8 @@ import '../chunk-NICEDVZM.js';
19
17
  import '../chunk-JLKO7PSK.js';
20
18
  import '../chunk-PJV5HVZY.js';
21
19
  import '../chunk-TEXK4RK6.js';
20
+ import '../chunk-SK4BIFTG.js';
21
+ import '../chunk-COS6LJ4K.js';
22
22
  import '../chunk-NPPPQSRU.js';
23
23
  import '../chunk-XSPCITPN.js';
24
24
  import '../chunk-BF2BXM6V.js';
@@ -2,15 +2,15 @@ export { RAIL_LIST_LABELS, RailList } from '../chunk-3AUFRPG3.js';
2
2
  import '../chunk-JUZOMYOZ.js';
3
3
  import '../chunk-7GUZSA5U.js';
4
4
  import '../chunk-6KWNXIDE.js';
5
- import '../chunk-TODOBUXO.js';
6
5
  import '../chunk-KW7T23RT.js';
6
+ import '../chunk-TODOBUXO.js';
7
7
  import '../chunk-HBDA76EZ.js';
8
8
  import '../chunk-3C3TSWRR.js';
9
9
  import '../chunk-AV2DXAEL.js';
10
10
  import '../chunk-XLMURU75.js';
11
11
  import '../chunk-WSIJDWUG.js';
12
- import '../chunk-COS6LJ4K.js';
13
12
  import '../chunk-JLKO7PSK.js';
13
+ import '../chunk-COS6LJ4K.js';
14
14
  import '../chunk-NPPPQSRU.js';
15
15
  import '../chunk-XSPCITPN.js';
16
16
  import '../chunk-2YTOOH3A.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-RWBBTGCK.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-SGLB4HTQ.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KBZO4B33.js';
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import { type SendKeysLabels } from './sendKeys.js';
3
+ export interface SendKeysHintProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /** The words around the keys; "to send" and "for a new line" by default. */
5
+ labels?: SendKeysLabels | undefined;
6
+ /** Overrides platform detection, for a suite or a screenshot. */
7
+ apple?: boolean | undefined;
8
+ }
9
+ /**
10
+ * The send keys, drawn: "Enter to send, Shift+Enter for a new line", each
11
+ * chord a keycap in the platform's own notation. ONE HINT FOR EVERY MESSAGE
12
+ * BOX, so no box teaches a key another box does not answer.
13
+ *
14
+ * Drawn only where there is a keyboard to press them: on a touch keyboard
15
+ * Enter writes a line and the Send button sends, so there is nothing to say.
16
+ */
17
+ export declare function SendKeysHint({ labels, apple, className, ...rest }: SendKeysHintProps): import("react").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import './SendKeys.css';
2
+ export { COARSE_POINTER_QUERY, FINE_POINTER_QUERY, SEND_KEYS_LABELS, isSendPress, sendKeysLabels, sendKeysWords, useTouchKeyboard, } from './sendKeys.js';
3
+ export type { SendKeyEvent, SendKeysLabels } from './sendKeys.js';
4
+ export { useSendOnEnter } from './useSendOnEnter.js';
5
+ export type { SendOnEnter, SendOnEnterOptions } from './useSendOnEnter.js';
6
+ export { SendKeysHint } from './SendKeysHint.js';
7
+ export type { SendKeysHintProps } from './SendKeysHint.js';
@@ -0,0 +1,9 @@
1
+ export { COARSE_POINTER_QUERY, FINE_POINTER_QUERY, SEND_KEYS_LABELS, SendKeysHint, isSendPress, sendKeysLabels, sendKeysWords, useSendOnEnter, useTouchKeyboard } from '../chunk-UZMXC5T6.js';
2
+ import '../chunk-SK4BIFTG.js';
3
+ import '../chunk-COS6LJ4K.js';
4
+ import '../chunk-VBBLHS2Y.js';
5
+ import '../chunk-FIX72ZEC.js';
6
+ import '../chunk-EDPMHSLZ.js';
7
+ import '../chunk-4ITETIGZ.js';
8
+ import '../chunk-RRRK2KB6.js';
9
+ import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,57 @@
1
+ /**
2
+ * THE TWO QUERIES A TOUCH KEYBOARD IS TOLD BY, written once. The primary
3
+ * pointer is a finger and no pointer anywhere is fine: a phone or a tablet on
4
+ * its own. A laptop with a touch screen, or a tablet with a trackpad, still
5
+ * has a fine pointer, and so a keyboard of its own.
6
+ */
7
+ export declare const COARSE_POINTER_QUERY = "(pointer: coarse)";
8
+ export declare const FINE_POINTER_QUERY = "(any-pointer: fine)";
9
+ /**
10
+ * Whether the only keyboard is on the screen, read during render and again
11
+ * when it changes. There the Return key writes a new line and the Send button
12
+ * sends, because a keyboard that covers half the screen is no place to guess
13
+ * whether a press meant "send" or "next line".
14
+ */
15
+ export declare function useTouchKeyboard(): boolean;
16
+ /** The keydown fields the send rule reads; a React or a DOM event both have them. */
17
+ export interface SendKeyEvent {
18
+ key: string;
19
+ shiftKey: boolean;
20
+ altKey: boolean;
21
+ metaKey: boolean;
22
+ ctrlKey: boolean;
23
+ defaultPrevented: boolean;
24
+ isComposing?: boolean;
25
+ keyCode?: number;
26
+ nativeEvent?: unknown;
27
+ }
28
+ /**
29
+ * Whether a press in a message box sends it: THE ONE RULE every message and
30
+ * reply box follows.
31
+ *
32
+ * - Enter sends; Shift+Enter is the field's own new line.
33
+ * - Command+Enter (Control+Enter elsewhere) sends too, for the habit.
34
+ * - Never while an input method is composing: that Enter picks a word.
35
+ * - Never a press something else has claimed (`defaultPrevented`): an open
36
+ * mention, emoji or command list takes its Enter first.
37
+ * - On a touch keyboard Enter is a new line; Command+Enter still sends,
38
+ * since only a keyboard of its own can press it.
39
+ * - Alt+Enter is left to the field.
40
+ */
41
+ export declare function isSendPress(event: SendKeyEvent, touch: boolean): boolean;
42
+ /** The words of the send hint, around its keys. */
43
+ export interface SendKeysLabels {
44
+ /** After Enter: "to send", or "to save" for a rewrite. */
45
+ send?: string | undefined;
46
+ /** After Shift+Enter. */
47
+ line?: string | undefined;
48
+ }
49
+ export declare const SEND_KEYS_LABELS: Required<SendKeysLabels>;
50
+ /**
51
+ * The hint as one sentence a screen reader is told: "Return to send, Shift
52
+ * plus Return for a new line" on an Apple platform. Spoken from the keycap's
53
+ * own names, so the description and the drawn hint cannot disagree.
54
+ */
55
+ export declare function sendKeysWords(labels: SendKeysLabels | undefined, apple: boolean): string;
56
+ /** The hint's words, each one given or the default. */
57
+ export declare function sendKeysLabels(labels: SendKeysLabels | undefined): Required<SendKeysLabels>;
@@ -0,0 +1,35 @@
1
+ import { type KeyboardEvent, type ReactNode } from 'react';
2
+ import { type SendKeysLabels } from './sendKeys.js';
3
+ export interface SendOnEnterOptions {
4
+ /** Sends what is in the box. Absent, the box sends nothing and says no keys. */
5
+ onSend?: (() => void) | undefined;
6
+ /**
7
+ * Whether a send would be taken now: there is something to send and sending
8
+ * is allowed. When it is not, the send key does nothing at all: it neither
9
+ * sends nor writes a line.
10
+ */
11
+ canSend?: boolean | undefined;
12
+ /** The description's words; "to send" and "for a new line" by default. */
13
+ labels?: SendKeysLabels | undefined;
14
+ }
15
+ export interface SendOnEnter {
16
+ /** The field's keydown, after the caller's own (an open list claims its Enter first). */
17
+ onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
18
+ /** Whether the only keyboard is on the screen, where Enter is a new line. */
19
+ touch: boolean;
20
+ /** The id naming the keys, for the field's `aria-describedby`; absent when there are none to name. */
21
+ describedBy: string | undefined;
22
+ /** The element that id names, to render anywhere beside the field. */
23
+ description: ReactNode;
24
+ }
25
+ /**
26
+ * Enter sends and Shift+Enter writes a line, in any message or reply box
27
+ * (`isSendPress` is the rule). The kit's `Composer` is built on it; a box that
28
+ * is not a `Composer` uses it directly, so every box sends the same way.
29
+ *
30
+ * THE FIELD'S DESCRIPTION NAMES THE KEYS, in words rather than glyphs, so a
31
+ * screen reader learns them on reaching the field whether or not a hint is
32
+ * drawn. It is a hidden element, which a description may still name. On a
33
+ * touch keyboard there are no keys to name, and none is given.
34
+ */
35
+ export declare function useSendOnEnter({ onSend, canSend, labels }: SendOnEnterOptions): SendOnEnter;
@@ -0,0 +1,12 @@
1
+ /*
2
+ * The send hint: a quiet line of small type beside or under a message box,
3
+ * its two chords drawn as subtle keycaps.
4
+ */
5
+ .crewlet-send-keys {
6
+ display: inline-flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: var(--spacing-1);
10
+ font-size: var(--font-size-2xs);
11
+ color: var(--color-text-tertiary);
12
+ }
@@ -1,10 +1,10 @@
1
- export { SetupWizard } from '../chunk-YXY6B5VB.js';
1
+ export { SetupWizard } from '../chunk-WLL3PFI3.js';
2
2
  import '../chunk-EHD4CEHK.js';
3
3
  import '../chunk-FPDIHEM4.js';
4
- import '../chunk-SK4BIFTG.js';
5
- import '../chunk-COS6LJ4K.js';
6
4
  import '../chunk-QRE6JCHS.js';
7
5
  import '../chunk-D5O64CVE.js';
6
+ import '../chunk-SK4BIFTG.js';
7
+ import '../chunk-COS6LJ4K.js';
8
8
  import '../chunk-XSPCITPN.js';
9
9
  import '../chunk-ODN2TPIG.js';
10
10
  import '../chunk-Y5CMDLQM.js';
@@ -7,11 +7,11 @@ import '../chunk-STJ7QBC3.js';
7
7
  import '../chunk-DTIW4CHZ.js';
8
8
  import '../chunk-BPCY7ZID.js';
9
9
  import '../chunk-HF5L56YQ.js';
10
- import '../chunk-SK4BIFTG.js';
11
- import '../chunk-COS6LJ4K.js';
12
10
  import '../chunk-5SMYKL3D.js';
13
11
  import '../chunk-XZY6S3UC.js';
14
12
  import '../chunk-JLKO7PSK.js';
13
+ import '../chunk-SK4BIFTG.js';
14
+ import '../chunk-COS6LJ4K.js';
15
15
  import '../chunk-NPPPQSRU.js';
16
16
  import '../chunk-XSPCITPN.js';
17
17
  import '../chunk-2YTOOH3A.js';
@@ -1,9 +1,9 @@
1
1
  export { SlideFilmstrip } from '../chunk-DRI6OXWY.js';
2
2
  import '../chunk-7O53SWKI.js';
3
3
  import '../chunk-JMBPMSNI.js';
4
+ import '../chunk-QHUKJN33.js';
4
5
  import '../chunk-SK4BIFTG.js';
5
6
  import '../chunk-COS6LJ4K.js';
6
- import '../chunk-QHUKJN33.js';
7
7
  import '../chunk-VBBLHS2Y.js';
8
8
  import '../chunk-NPPPQSRU.js';
9
9
  import '../chunk-XSPCITPN.js';
@@ -1,4 +1,4 @@
1
- export { Switcher } from '../chunk-VLU3FMJD.js';
1
+ export { Switcher } from '../chunk-MW2MGP3O.js';
2
2
  import '../chunk-A2TYEOB4.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-HBDA76EZ.js';
@@ -6,13 +6,13 @@ import '../chunk-KDRJZWE3.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-XLMURU75.js';
8
8
  import '../chunk-WSIJDWUG.js';
9
- import '../chunk-SK4BIFTG.js';
10
- import '../chunk-COS6LJ4K.js';
11
9
  import '../chunk-TE3OMB3Z.js';
12
10
  import '../chunk-NICEDVZM.js';
13
11
  import '../chunk-JLKO7PSK.js';
14
12
  import '../chunk-PJV5HVZY.js';
15
13
  import '../chunk-TEXK4RK6.js';
14
+ import '../chunk-SK4BIFTG.js';
15
+ import '../chunk-COS6LJ4K.js';
16
16
  import '../chunk-NPPPQSRU.js';
17
17
  import '../chunk-XSPCITPN.js';
18
18
  import '../chunk-BF2BXM6V.js';
@@ -1,19 +1,19 @@
1
- export { TreeGrid } from '../chunk-JKGSPQUX.js';
1
+ export { TreeGrid } from '../chunk-4QBXC7RB.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-73OCFZN7.js';
3
+ import '../chunk-HPAPWGCC.js';
4
4
  import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-WSIJDWUG.js';
7
7
  import '../chunk-JMBPMSNI.js';
8
8
  import '../chunk-DTEDUAEW.js';
9
- import '../chunk-SK4BIFTG.js';
10
- import '../chunk-COS6LJ4K.js';
11
9
  import '../chunk-PPUR46MK.js';
12
10
  import '../chunk-TE3OMB3Z.js';
13
11
  import '../chunk-NICEDVZM.js';
14
12
  import '../chunk-JLKO7PSK.js';
15
13
  import '../chunk-PJV5HVZY.js';
16
14
  import '../chunk-TEXK4RK6.js';
15
+ import '../chunk-SK4BIFTG.js';
16
+ import '../chunk-COS6LJ4K.js';
17
17
  import '../chunk-NPPPQSRU.js';
18
18
  import '../chunk-XSPCITPN.js';
19
19
  import '../chunk-BF2BXM6V.js';
@@ -1,9 +1,9 @@
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-73OCFZN7.js';
2
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-HPAPWGCC.js';
3
3
  import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
4
4
  import { Checkbox } from './chunk-DTEDUAEW.js';
5
- import { useMediaMatch } from './chunk-COS6LJ4K.js';
6
5
  import { EmptyState } from './chunk-PPUR46MK.js';
6
+ import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
7
  import { IconButton } from './chunk-BF2BXM6V.js';
8
8
  import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
9
9
  import { focusables } from './chunk-EDPMHSLZ.js';