@coolms/ui-react 0.1.0-alpha.16 → 0.1.0-alpha.18

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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
4
 
5
+ ## 0.1.0-alpha.18 (2026-11-20)
6
+
7
+ A sender's own initials when a service sent on their behalf.
8
+
9
+ - `Avatar` / `initialsOf`: a trailing "via <service>" is left out before the initials are taken, so a message sent on someone's behalf shows the sender's own: "Valentina Zagnetova via LinkedIn" is VZ, not VL. Only a lowercase "via", as relays write it: "Maria Via Rossi" stays MR. Each initial is the word's first letter or digit, so a name in quotes ("'Anna Kowalska' via Partners") is AK.
10
+
11
+ ## 0.1.0-alpha.17 (2026-11-19)
12
+
13
+ The pane toolbar always reaches More, and two icons of their own.
14
+
15
+ - `PaneToolbar`: More is always reached. In a row too narrow for its pinned actions and More, after the overflow, the pinned go behind More too, from the end of the row, and its menu lists them after the overflow; no action is cut off at the row's edge. One action alone goes behind More when no other can go with it and that alone lets the row fit (one keeping its label, without an icon).
16
+ - Icons: `envelope-open` draws an open envelope (`mail-open`), apart from `envelope`, and `clipboard` draws a clipboard (`copy`), so Show message and Copy source have their own icons.
17
+
5
18
  ## 0.1.0-alpha.16 (2026-11-19)
6
19
 
7
20
  The design tokens 0.8.0 with their control heights, and the kit covering every entry of their contract 0.3.0.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  /** The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. */
3
- export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh' | 'file-code';
3
+ export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh' | 'file-code' | 'mail-open' | 'copy';
4
4
  export interface IconProps {
5
5
  readonly name: IconName;
6
6
  readonly size?: number;
@@ -13,8 +13,8 @@ export interface PaneToolbarAction {
13
13
  readonly group: string;
14
14
  /**
15
15
  * When it goes behind ... as the row narrows: lower first; actions of the same priority go together (a toggle's
16
- * pair). Without one it is pinned: it never goes behind .... 0: menu only, behind ... at every width and never in
17
- * the row.
16
+ * pair). Without one it is pinned: it goes behind ... only in a row too narrow to hold it with the rest, the last in
17
+ * the row first, so that nothing is cut off. 0: menu only, behind ... at every width and never in the row.
18
18
  */
19
19
  readonly overflow?: number;
20
20
  /** Shown, kept in the focus order, and doing nothing when chosen; `reason` is its tooltip. */
@@ -45,8 +45,10 @@ export interface PaneToolbarProps {
45
45
  * width as its pane resizes:
46
46
  * every label shows while all fit; then labels hide one by one in the overflow order (lower first, a priority's actions
47
47
  * together), the pinned last, from the end of the row; only once every label is hidden do actions go behind ..., in
48
- * the same order, the fewest that let the rest and ... fit, never one alone. They come back in the reverse order. One
49
- * Tab stop; Left and Right, Home and End move inside it.
48
+ * the same order, the fewest that let the rest and ... fit, never one alone while another can go with it. Where the
49
+ * pinned and ... still do not fit, the pinned go behind ... too, from the end of the row: no action is ever cut off,
50
+ * and ... is always reached. They come back in the reverse order. One Tab stop; Left and Right, Home and End move
51
+ * inside it.
50
52
  *
51
53
  * Menu-only actions (overflow 0) are behind ... at every width, first in its menu, and take no part in the giving way:
52
54
  * their labels are not counted, and "never one alone" counts only the actions that could have stayed in the row. ...
@@ -40,7 +40,10 @@ export interface AvatarProps {
40
40
  readonly presence?: 'online' | 'away' | 'offline';
41
41
  readonly size?: number;
42
42
  }
43
- /** Up to two initials from a name: "Ada Lovelace" -> "AL", "ada" -> "A". */
43
+ /**
44
+ * Up to two initials from a name: "Ada Lovelace" -> "AL", "ada" -> "A". A sender named for the service that sent on
45
+ * their behalf keeps their own: "Valentina Zagnetova via LinkedIn" -> "VZ".
46
+ */
44
47
  export declare function initialsOf(name: string): string;
45
48
  /** Which of the six avatar tints a name takes: the same name always the same tint. */
46
49
  export declare function tintOf(name: string): number;