@estiva-app/ui 0.95.0 → 0.96.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 (173) hide show
  1. package/dist/AppShell.d.ts +25 -7
  2. package/dist/AppShell.d.ts.map +1 -1
  3. package/dist/ArchivedNotice.d.ts +28 -0
  4. package/dist/ArchivedNotice.d.ts.map +1 -0
  5. package/dist/Button.d.ts +4 -3
  6. package/dist/Button.d.ts.map +1 -1
  7. package/dist/Card.d.ts.map +1 -1
  8. package/dist/CommentBox.d.ts.map +1 -1
  9. package/dist/ConversationActions.d.ts +24 -0
  10. package/dist/ConversationActions.d.ts.map +1 -0
  11. package/dist/ConversationCard.d.ts +88 -0
  12. package/dist/ConversationCard.d.ts.map +1 -0
  13. package/dist/ConversationLayout.d.ts +50 -0
  14. package/dist/ConversationLayout.d.ts.map +1 -0
  15. package/dist/ConversationMenu.d.ts +24 -0
  16. package/dist/ConversationMenu.d.ts.map +1 -0
  17. package/dist/Divider.d.ts +23 -4
  18. package/dist/Divider.d.ts.map +1 -1
  19. package/dist/EditedMarker.d.ts +11 -0
  20. package/dist/EditedMarker.d.ts.map +1 -0
  21. package/dist/IconButton.d.ts +3 -3
  22. package/dist/IconButton.d.ts.map +1 -1
  23. package/dist/LinkParts.d.ts +3 -1
  24. package/dist/LinkParts.d.ts.map +1 -1
  25. package/dist/ListColumn.d.ts +3 -1
  26. package/dist/ListColumn.d.ts.map +1 -1
  27. package/dist/MetaText.d.ts +22 -0
  28. package/dist/MetaText.d.ts.map +1 -0
  29. package/dist/NavItem.d.ts.map +1 -1
  30. package/dist/PageHeader.d.ts +50 -0
  31. package/dist/PageHeader.d.ts.map +1 -0
  32. package/dist/Panel.d.ts +6 -0
  33. package/dist/Panel.d.ts.map +1 -1
  34. package/dist/PinnedComment.d.ts +17 -0
  35. package/dist/PinnedComment.d.ts.map +1 -0
  36. package/dist/QuotedLine.d.ts +16 -0
  37. package/dist/QuotedLine.d.ts.map +1 -0
  38. package/dist/ReactionHorizon.d.ts +14 -0
  39. package/dist/ReactionHorizon.d.ts.map +1 -0
  40. package/dist/RepliesRow.d.ts +26 -0
  41. package/dist/RepliesRow.d.ts.map +1 -0
  42. package/dist/ResolveDialog.d.ts +13 -0
  43. package/dist/ResolveDialog.d.ts.map +1 -0
  44. package/dist/Select.d.ts +1 -1
  45. package/dist/Select.d.ts.map +1 -1
  46. package/dist/Skeleton.d.ts +8 -4
  47. package/dist/Skeleton.d.ts.map +1 -1
  48. package/dist/Thread.d.ts +38 -0
  49. package/dist/Thread.d.ts.map +1 -0
  50. package/dist/TopBar.d.ts +3 -2
  51. package/dist/TopBar.d.ts.map +1 -1
  52. package/dist/UrgentMark.d.ts +6 -0
  53. package/dist/UrgentMark.d.ts.map +1 -0
  54. package/dist/commentBoxFrame.d.ts +3 -1
  55. package/dist/commentBoxFrame.d.ts.map +1 -1
  56. package/dist/conversation.examples.d.ts +52 -0
  57. package/dist/conversation.examples.d.ts.map +1 -0
  58. package/dist/editor.js +32 -24
  59. package/dist/editor.js.map +2 -2
  60. package/dist/eslint/index.js +2 -1
  61. package/dist/eslint/index.js.map +2 -2
  62. package/dist/eslint/no-native-title.d.ts +1 -1
  63. package/dist/eslint/no-native-title.d.ts.map +1 -1
  64. package/dist/eslint/no-restyled-part.d.ts.map +1 -1
  65. package/dist/index.d.ts +18 -2
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +1376 -433
  68. package/dist/index.js.map +4 -4
  69. package/dist/looks.d.ts +13 -1
  70. package/dist/looks.d.ts.map +1 -1
  71. package/dist/threadCard.d.ts +46 -0
  72. package/dist/threadCard.d.ts.map +1 -0
  73. package/package.json +1 -1
  74. package/registry.json +1873 -546
  75. package/src/AppShell.mdx +24 -10
  76. package/src/AppShell.stories.tsx +65 -31
  77. package/src/AppShell.test.tsx +92 -10
  78. package/src/AppShell.tsx +108 -18
  79. package/src/ArchivedNotice.mdx +46 -0
  80. package/src/ArchivedNotice.stories.tsx +52 -0
  81. package/src/ArchivedNotice.test.tsx +42 -0
  82. package/src/ArchivedNotice.tsx +71 -0
  83. package/src/Button.mdx +2 -2
  84. package/src/Button.tsx +8 -6
  85. package/src/Card.test.tsx +4 -4
  86. package/src/Card.tsx +6 -2
  87. package/src/CommentBox.test.tsx +2 -1
  88. package/src/CommentBox.tsx +14 -7
  89. package/src/ConfirmDialog.stories.tsx +12 -0
  90. package/src/ConversationActions.mdx +47 -0
  91. package/src/ConversationActions.stories.tsx +39 -0
  92. package/src/ConversationActions.tsx +96 -0
  93. package/src/ConversationCard.mdx +72 -0
  94. package/src/ConversationCard.states.test.tsx +330 -0
  95. package/src/ConversationCard.stories.tsx +135 -0
  96. package/src/ConversationCard.test.tsx +159 -0
  97. package/src/ConversationCard.tsx +522 -0
  98. package/src/ConversationLayout.mdx +61 -0
  99. package/src/ConversationLayout.stories.tsx +161 -0
  100. package/src/ConversationLayout.test.tsx +240 -0
  101. package/src/ConversationLayout.tsx +233 -0
  102. package/src/ConversationMenu.mdx +47 -0
  103. package/src/ConversationMenu.stories.tsx +42 -0
  104. package/src/ConversationMenu.test.tsx +47 -0
  105. package/src/ConversationMenu.tsx +57 -0
  106. package/src/Divider.mdx +36 -1
  107. package/src/Divider.stories.tsx +57 -0
  108. package/src/Divider.test.tsx +24 -1
  109. package/src/Divider.tsx +49 -9
  110. package/src/EditedMarker.mdx +36 -0
  111. package/src/EditedMarker.stories.tsx +24 -0
  112. package/src/EditedMarker.tsx +20 -0
  113. package/src/IconButton.mdx +2 -1
  114. package/src/IconButton.tsx +8 -5
  115. package/src/LinkParts.mdx +4 -0
  116. package/src/LinkParts.stories.tsx +10 -0
  117. package/src/LinkParts.tsx +5 -1
  118. package/src/ListColumn.tsx +9 -3
  119. package/src/MetaText.mdx +41 -0
  120. package/src/MetaText.stories.tsx +29 -0
  121. package/src/MetaText.tsx +38 -0
  122. package/src/NavItem.tsx +2 -11
  123. package/src/PageHeader.mdx +123 -0
  124. package/src/PageHeader.stories.tsx +174 -0
  125. package/src/PageHeader.test.tsx +99 -0
  126. package/src/PageHeader.tsx +105 -0
  127. package/src/Panel.mdx +12 -0
  128. package/src/Panel.stories.tsx +47 -5
  129. package/src/Panel.test.tsx +40 -0
  130. package/src/Panel.tsx +8 -2
  131. package/src/PinnedComment.mdx +40 -0
  132. package/src/PinnedComment.stories.tsx +21 -0
  133. package/src/PinnedComment.tsx +40 -0
  134. package/src/QuotedLine.mdx +44 -0
  135. package/src/QuotedLine.stories.tsx +30 -0
  136. package/src/QuotedLine.test.tsx +34 -0
  137. package/src/QuotedLine.tsx +33 -0
  138. package/src/ReactionHorizon.mdx +36 -0
  139. package/src/ReactionHorizon.stories.tsx +27 -0
  140. package/src/ReactionHorizon.tsx +27 -0
  141. package/src/RepliesRow.mdx +45 -0
  142. package/src/RepliesRow.stories.tsx +33 -0
  143. package/src/RepliesRow.test.tsx +47 -0
  144. package/src/RepliesRow.tsx +86 -0
  145. package/src/ReplyCard.mdx +50 -0
  146. package/src/ReplyCard.stories.tsx +68 -0
  147. package/src/ResolveDialog.mdx +44 -0
  148. package/src/ResolveDialog.stories.tsx +23 -0
  149. package/src/ResolveDialog.test.tsx +53 -0
  150. package/src/ResolveDialog.tsx +58 -0
  151. package/src/Select.tsx +12 -2
  152. package/src/Skeleton.stories.tsx +4 -1
  153. package/src/Skeleton.tsx +33 -4
  154. package/src/Thread.mdx +53 -0
  155. package/src/Thread.stories.tsx +167 -0
  156. package/src/Thread.test.tsx +83 -0
  157. package/src/Thread.tsx +113 -0
  158. package/src/TopBar.mdx +8 -6
  159. package/src/TopBar.stories.tsx +4 -3
  160. package/src/TopBar.tsx +8 -3
  161. package/src/UrgentMark.mdx +37 -0
  162. package/src/UrgentMark.stories.tsx +27 -0
  163. package/src/UrgentMark.tsx +15 -0
  164. package/src/commentBoxFrame.tsx +8 -4
  165. package/src/conversation.examples.tsx +135 -0
  166. package/src/eslint/no-native-title.ts +1 -1
  167. package/src/eslint/no-restyled-part.ts +1 -0
  168. package/src/index.ts +19 -2
  169. package/src/looks.ts +18 -2
  170. package/src/registry/registry.test.ts +7 -6
  171. package/src/threadCard.ts +84 -0
  172. package/stories/Choosing.mdx +21 -1
  173. package/tokens.css +14 -10
package/dist/Panel.d.ts CHANGED
@@ -30,6 +30,12 @@ export interface PanelProps {
30
30
  chevron?: boolean;
31
31
  /** The panel's own actions, at the header's right — a `Toolbar` of `ToolbarButton`s, or one `IconButton`. */
32
32
  actions?: ReactNode;
33
+ /**
34
+ * A page's own bar, in place of the one `title`, `chevron` and `actions` draw: a `PageHeader`, where the panel is
35
+ * the page (Peek's file pages, Leaf's documents), so the page's bar and its scrolling body are one panel. `title`
36
+ * still names the panel if it breaks.
37
+ */
38
+ header?: ReactNode;
33
39
  /** The body. It scrolls when it is taller than the panel. */
34
40
  children: ReactNode;
35
41
  /** A row fixed under the body that never scrolls — a reply box. */
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,iGAAiG;IACjG,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sHAAsH;IACtH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BActC"}
1
+ {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,iGAAiG;IACjG,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sHAAsH;IACtH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BActC"}
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ConversationPerson } from './ConversationCard';
3
+ export interface PinnedCommentProps {
4
+ author: ConversationPerson;
5
+ /** When it was written, in the app's words, with its day: no day line stands above it here. */
6
+ time: ReactNode;
7
+ /** Its words, cut to one line: plain words read best. */
8
+ words: ReactNode;
9
+ /** It was deleted; its replies stay. */
10
+ deleted?: boolean;
11
+ }
12
+ /**
13
+ * The comment a thread answers, pinned at the top of the replies column: who, when, and its first line, on a raised
14
+ * card. Peek's pinned message, moved with the conversation.
15
+ */
16
+ export declare function PinnedComment({ author, time, words, deleted }: PinnedCommentProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=PinnedComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PinnedComment.d.ts","sourceRoot":"","sources":["../src/PinnedComment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAG5D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,+FAA+F;IAC/F,IAAI,EAAE,SAAS,CAAA;IACf,yDAAyD;IACzD,KAAK,EAAE,SAAS,CAAA;IAChB,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE,kBAAkB,+BAmBzF"}
@@ -0,0 +1,16 @@
1
+ export interface QuotedLineProps {
2
+ /** The words the comment is on, as they were quoted. */
3
+ words?: string;
4
+ /** `here`: still in the text. `reworded`: changed since. `gone`: their part was deleted from the page. */
5
+ state?: 'here' | 'reworded' | 'gone';
6
+ /** A part with no words, a picture or a whole block: what it is, in the app's words ("Picture: plan.png"). */
7
+ label?: string;
8
+ }
9
+ /**
10
+ * What a comment on a part of the page is on: its words, two lines at most, in the page's own highlight, so the two
11
+ * read as one. ConversationCard puts it under the name, above the comment's words ("above the message, not above the
12
+ * person": Katerina, 1 November). Words changed since or deleted lose the highlight and say so; a part with no words
13
+ * gives its name.
14
+ */
15
+ export declare function QuotedLine({ words, state, label }: QuotedLineProps): import("react").JSX.Element;
16
+ //# sourceMappingURL=QuotedLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuotedLine.d.ts","sourceRoot":"","sources":["../src/QuotedLine.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAA;IACpC,8GAA8G;IAC9G,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAc,EAAE,KAAK,EAAE,EAAE,eAAe,+BAY3E"}
@@ -0,0 +1,14 @@
1
+ export interface ReactionHorizonProps {
2
+ /** How many comments and replies back reactions are read for. */
3
+ limit: number;
4
+ /** How many older ones were not checked. */
5
+ omitted: number;
6
+ /** Some reactions may be missing: the read was cut short. */
7
+ cut?: boolean;
8
+ }
9
+ /**
10
+ * The line that says reactions are read only so far back, and how many older comments were not checked. Nothing is
11
+ * drawn when every one was. Peek's, moved with the conversation.
12
+ */
13
+ export declare function ReactionHorizon({ limit, omitted, cut }: ReactionHorizonProps): import("react").JSX.Element | null;
14
+ //# sourceMappingURL=ReactionHorizon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactionHorizon.d.ts","sourceRoot":"","sources":["../src/ReactionHorizon.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAA;IACf,6DAA6D;IAC7D,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAW,EAAE,EAAE,oBAAoB,sCAapF"}
@@ -0,0 +1,26 @@
1
+ export interface RepliesRowProps {
2
+ /** How many replies. */
3
+ count: number;
4
+ /** Who replied: their faces. */
5
+ faces?: readonly {
6
+ name: string;
7
+ picture?: string;
8
+ }[];
9
+ /** The last reply's time, in the app's words. */
10
+ last?: string;
11
+ /** "1 new": a reply you have not read. */
12
+ isNew?: boolean;
13
+ /** The "1 new" chip in the warning colour, for an urgent thread. */
14
+ urgent?: boolean;
15
+ /** Opens the thread. Absent, the row only says how many (the card around it opens the thread). */
16
+ onOpen?: () => void;
17
+ /** Its thread is open under it, in one column: the chevron turns down and the row stays marked; a press closes it (Katerina, 31 October). */
18
+ open?: boolean;
19
+ }
20
+ /**
21
+ * The way into a thread, under its comment: who replied, "2 replies", the last reply's time, and "1 new" until it is
22
+ * read. Peek's, moved with the conversation; in every app the row a thread opens from, the same in every theme
23
+ * (Katerina, 31 October), each in its own colours.
24
+ */
25
+ export declare function RepliesRow({ count, faces, last, isNew, urgent, onOpen, open }: RepliesRowProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=RepliesRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepliesRow.d.ts","sourceRoot":"","sources":["../src/RepliesRow.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACrD,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,6IAA6I;IAC7I,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAQD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAa,EAAE,MAAc,EAAE,MAAM,EAAE,IAAY,EAAE,EAAE,eAAe,+BAmDtH"}
@@ -0,0 +1,13 @@
1
+ export interface ResolveDialogProps {
2
+ /** Resolve, with what was written (an empty string for none). Answer `false` when it was refused: the dialog stays, with `refused` under the field. */
3
+ onResolve: (note: string) => Promise<boolean | void> | boolean | void;
4
+ onCancel: () => void;
5
+ /** Why the last resolve was refused, in plain words. */
6
+ refused?: string;
7
+ }
8
+ /**
9
+ * Resolve, with an optional note: the same dialog in every app (Katerina, 31 October). Ctrl+Enter resolves from the
10
+ * note; Enter there is a new line. Peek's, moved with the conversation.
11
+ */
12
+ export declare function ResolveDialog({ onResolve, onCancel, refused }: ResolveDialogProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=ResolveDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResolveDialog.d.ts","sourceRoot":"","sources":["../src/ResolveDialog.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,uJAAuJ;IACvJ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,+BAsCjF"}
package/dist/Select.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Peek's Select (2026-08-28), verbatim, plus what Ship added: an option may
4
4
  * carry a `leading` node — an avatar beside a person's name — shown in the
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,YAAY;IAC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AE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAOD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAgB,EAAE,IAAc,EAAE,SAAS,EAAE,WAAuB,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BA0JnL"}
@@ -1,9 +1,9 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  /**
3
- * Peek's Skeleton (2026-08-28), the generic parts only: the bar, a row
4
- * shaped like a list row, and a list of them. Peek's placeholders shaped
5
- * like a conversation card or a huddle card know what those are and stay
6
- * in Peek, built from the bar.
3
+ * Peek's Skeleton (2026-08-28): the bar, a row shaped like a list row, a
4
+ * list of them, and the conversation's placeholder, moved with the
5
+ * conversation (Katerina, 31 October). Placeholders of an app's own cards
6
+ * stay in the app, built from the bar.
7
7
  *
8
8
  * A list reveals after 150ms (`animate-skeleton-in`, in the preset) so a
9
9
  * fast load never flashes a skeleton — Peek's rule.
@@ -32,5 +32,9 @@ export declare function SkeletonList({ rows, className }: {
32
32
  rows?: number;
33
33
  className?: string;
34
34
  }): import("react").JSX.Element;
35
+ /** Comments still coming: three placeholders shaped like `ConversationCard`, revealed after 150ms. Peek's, moved with the conversation. */
36
+ export declare function SkeletonConversation({ className }: {
37
+ className?: string;
38
+ }): import("react").JSX.Element;
35
39
  export {};
36
40
  //# sourceMappingURL=Skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc;;;;CAA+E,CAAA;AAEnG;;;mEAGmE;AACnE,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAc,EAAE,KAAa,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAAC,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,OAAO,cAAc,CAAA;CAAE,+BAE5L;AAID,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,EAAE,QAAc,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,+BAOpE;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,EAAE,IAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQ1F"}
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc;;;;CAA+E,CAAA;AAEnG;;;mEAGmE;AACnE,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAc,EAAE,KAAa,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAAC,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,OAAO,cAAc,CAAA;CAAE,+BAE5L;AAID,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,EAAE,QAAc,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,+BAOpE;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,EAAE,IAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQ1F;AAoBD,2IAA2I;AAC3I,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQzE"}
@@ -0,0 +1,38 @@
1
+ import { type ReactNode, type Ref } from 'react';
2
+ import { type PinnedCommentProps } from './PinnedComment';
3
+ /** The comment a thread answers, pinned at the top of its column. */
4
+ export type ThreadStart = PinnedCommentProps;
5
+ export interface ThreadProps {
6
+ /** `beside`: in the right column, beside the comments, under its own header. `under`: open under its comment, in a one-column conversation: its replies hang from a line, quiet, and the box is under them; ConversationLayout makes the comment and its thread one card. */
7
+ place?: 'beside' | 'under';
8
+ /** The comment it answers, pinned at the top of the column. Under its comment it is not repeated. */
9
+ start?: ThreadStart;
10
+ /** Its replies, in time order: `ReplyCard`s. How it was resolved is said on its comment, not among them (Katerina, 1 November). */
11
+ children?: ReactNode;
12
+ /** Still reading the replies: placeholders in their place. */
13
+ loading?: boolean;
14
+ /** Resolved: "Resolved" at the top of the column, in green. */
15
+ resolved?: boolean;
16
+ /** The box a reply is written in: the app's `CommentBox`. */
17
+ box?: ReactNode;
18
+ /** Said in place of the box: why no reply can be written (an archived page, a deleted comment). */
19
+ notice?: ReactNode;
20
+ /** The column's own actions, before Close: a `MembersPill`, an `IconButton` to where it was first said. */
21
+ actions?: ReactNode;
22
+ /** Closes the column. */
23
+ onClose?: () => void;
24
+ /** The column's name. */
25
+ title?: ReactNode;
26
+ /** The column's scrolling box, for opening at the newest reply. */
27
+ bodyRef?: Ref<HTMLDivElement>;
28
+ /** Placement only. */
29
+ className?: string;
30
+ }
31
+ /**
32
+ * A comment's replies, with the box to write one. In the right column (two columns: Peek's file pages), under its
33
+ * own header with the comment pinned at the top, "Replies", and the box fixed at the bottom. Under its comment (one
34
+ * column: Ship's and Leaf's), the replies hung from a line, quiet, and the box under them, all one card with the
35
+ * comment (Ship's way). Peek's replies column, moved with the conversation.
36
+ */
37
+ export declare function Thread({ place, start, children, loading, resolved, box, notice, actions, onClose, title, bodyRef, className }: ThreadProps): import("react").JSX.Element;
38
+ //# sourceMappingURL=Thread.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../src/Thread.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAA;AAQ1D,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAKxE,qEAAqE;AACrE,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAE5C,MAAM,WAAW,WAAW;IAC1B,6QAA6Q;IAC7Q,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC1B,qGAAqG;IACrG,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,mIAAmI;IACnI,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,mGAAmG;IACnG,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mEAAmE;IACnE,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAWD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAe,EAAE,QAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,WAAW,+BAsDjL"}
package/dist/TopBar.d.ts CHANGED
@@ -14,7 +14,8 @@ import { type ReactNode } from 'react';
14
14
  * (Katerina, 28 September).
15
15
  *
16
16
  * Geometry both apps agreed on before extraction: 52px tall, `pl-5
17
- * pr-[26px]`, right cluster `gap-[6px]`. The left region is two slots
17
+ * pr-[26px]`, right cluster `gap-[6px]`; with a menu button over a
18
+ * Sidebar (solid, inset), `pl-3.5`, so its icon lines up with the rows'. The left region is two slots
18
19
  * side by side — `menu` (the menu button, in an app whose navigation
19
20
  * collapses) and `logo` (the mark or name beside it; Katerina,
20
21
  * 2026-09-02). This component does not know who you are or what is being
@@ -34,7 +35,7 @@ import { type ReactNode } from 'react';
34
35
  */
35
36
  export interface TopBarProps {
36
37
  variant?: 'solid' | 'floating' | 'inset';
37
- /** Far left: the menu button, in an app whose navigation collapses. Stays the caller's — the bar only places it. */
38
+ /** Far left: the menu button, in an app whose navigation folds. Inside an `AppShell`, the frame's own fold. */
38
39
  menu?: ReactNode;
39
40
  /** Beside the menu button: the app's logo mark, or its name as text. */
40
41
  logo?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../src/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,S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K,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,MAAM,CAAC,EAAE,OAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAA6B,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,+BAoDvI"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Urgent and new: a 12px warning mark on its tint, in the unread dot's 24px slot. A row of the navigation that is
3
+ * urgent and unread, and a comment or reply that is urgent and new, draw this one mark.
4
+ */
5
+ export declare function UrgentMark(): import("react").JSX.Element;
6
+ //# sourceMappingURL=UrgentMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UrgentMark.d.ts","sourceRoot":"","sources":["../src/UrgentMark.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,UAAU,gCAQzB"}
@@ -55,11 +55,13 @@ export interface BoxFrameProps {
55
55
  attachments?: ReactNode;
56
56
  /** The row under it all: the tools and Send, or the keys and Cancel/Save. */
57
57
  footer: ReactNode;
58
+ /** Signal's focus ring. Off for the edit box, whose edge only darkens on focus, as in Ship. Default on. */
59
+ ring?: boolean;
58
60
  /** On the box itself. */
59
61
  className?: string;
60
62
  }
61
63
  /** The one frame both boxes draw: the bordered box, its text in a `ScrollArea`, what is attached, the footer. */
62
- export declare function BoxFrame({ editor, marked, selection, placeholder, empty, attachments, footer, className }: BoxFrameProps): import("react").JSX.Element;
64
+ export declare function BoxFrame({ editor, marked, selection, placeholder, empty, attachments, footer, ring, className }: BoxFrameProps): import("react").JSX.Element;
63
65
  export interface SendBoxProps {
64
66
  /** The box's editor. `null` while it loads. */
65
67
  editor: Editor | null;
@@ -1 +1 @@
1
- {"version":3,"file":"commentBoxFrame.d.ts","sourceRoot":"","sources":["../src/commentBoxFrame.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACxE,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DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,qFAAqF;IACrF,SAAS,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;IACrE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,KAAa,EAAE,OAAe,EAAE,MAAc,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,YAAY,+BA8E9J"}
@@ -0,0 +1,52 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { ReactionCount, ReactionRowProps } from './ReactionRow';
3
+ export declare const OPTIONS: {
4
+ emoji: string;
5
+ label: string;
6
+ }[];
7
+ export declare const ME = "me";
8
+ export declare const nameOf: (id: string) => string;
9
+ export declare const ONE: {
10
+ name: string;
11
+ };
12
+ export declare const TWO: {
13
+ name: string;
14
+ };
15
+ export declare const THREE: {
16
+ name: string;
17
+ };
18
+ export declare const YOU: {
19
+ name: string;
20
+ };
21
+ export declare const WORDS = "A comment says what its author wrote. Its replies sit in the thread under it, and anyone here can react.";
22
+ export declare const SHORT = "A reply answers the comment above it.";
23
+ export declare const LONG = "A long comment keeps its whole text. It runs on for several lines so the card can be seen at its full height: the face and the name stay at the top, the words wrap under them, and the strip of actions stays in the top right corner while the card is pointed at. Nothing is cut, and the reactions and the replies row sit under the last line, as they do under a short one.";
24
+ /** Yours on or off, as the relay would count it. */
25
+ export declare function toggled(reactions: readonly ReactionCount[], emoji: string): ReactionCount[];
26
+ export declare const SOME: ReactionCount[];
27
+ /** Reactions that answer a press, as an app's would. */
28
+ export declare function useReactions(start?: readonly ReactionCount[]): ReactionRowProps;
29
+ /** Pictures and files under the words. */
30
+ export declare function Files(): import("react").JSX.Element;
31
+ /** Words with a person named in them, and a link. */
32
+ export declare function Mentions(): import("react").JSX.Element;
33
+ /** Words, and a card its author attached. */
34
+ export declare function WithCard(): import("react").JSX.Element;
35
+ /** Words, and a block quoted from something else. */
36
+ export declare function WithBlock(): import("react").JSX.Element;
37
+ /** The box a comment is edited in: the kit's CommentBox, as an app hands it to the card. */
38
+ export declare function EditBox({ text, done, refuse }: {
39
+ text: string;
40
+ done: () => void;
41
+ refuse?: boolean;
42
+ }): import("react").JSX.Element;
43
+ /** The box a reply or a comment is written in, with its tools as an app gives them: the paperclip. */
44
+ export declare function WriteBox({ label, closed }: {
45
+ label?: string;
46
+ closed?: string;
47
+ }): import("react").JSX.Element;
48
+ /** A column's width: 384px, every app's right column. */
49
+ export declare function Column({ children }: {
50
+ children: ReactNode;
51
+ }): import("react").JSX.Element;
52
+ //# sourceMappingURL=conversation.examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.examples.d.ts","sourceRoot":"","sources":["../src/conversation.examples.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAShD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGpE,eAAO,MAAM,OAAO;;;GAMnB,CAAA;AAED,eAAO,MAAM,EAAE,OAAO,CAAA;AAEtB,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,WAA2B,CAAA;AAE5D,eAAO,MAAM,GAAG;;CAAyB,CAAA;AACzC,eAAO,MAAM,GAAG;;CAAyB,CAAA;AACzC,eAAO,MAAM,KAAK;;CAA2B,CAAA;AAC7C,eAAO,MAAM,GAAG;;CAAkB,CAAA;AAElC,eAAO,MAAM,KAAK,6GAA6G,CAAA;AAC/H,eAAO,MAAM,KAAK,0CAA0C,CAAA;AAC5D,eAAO,MAAM,IAAI,sXACoW,CAAA;AAErX,oDAAoD;AACpD,wBAAgB,OAAO,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAM3F;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,EAG/B,CAAA;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,KAAK,GAAE,SAAS,aAAa,EAAO,GAAG,gBAAgB,CAGnF;AAED,0CAA0C;AAC1C,wBAAgB,KAAK,gCAOpB;AAED,qDAAqD;AACrD,wBAAgB,QAAQ,gCAMvB;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,gCAOvB;AAID,qDAAqD;AACrD,wBAAgB,SAAS,gCASxB;AAMD,4FAA4F;AAC5F,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAc,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,+BAkB3G;AAKD,sGAAsG;AACtG,wBAAgB,QAAQ,CAAC,EAAE,KAAe,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,+BAExF;AAED,yDAAyD;AACzD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAE3D"}
package/dist/editor.js CHANGED
@@ -298,7 +298,7 @@ function SelectionToolbar({ editor, marks = ["bold", "italic", "underline"], lin
298
298
  }
299
299
 
300
300
  // src/CommentBox.tsx
301
- import { Fragment as Fragment2, useCallback as useCallback4, useEffect as useEffect4, useLayoutEffect, useRef as useRef3, useState as useState3 } from "react";
301
+ import { Fragment as Fragment2, useCallback as useCallback4, useContext, useEffect as useEffect4, useLayoutEffect, useRef as useRef3, useState as useState3 } from "react";
302
302
  import { Extension as Extension10, nodePasteRule } from "@tiptap/core";
303
303
  import { Editor } from "@tiptap/react";
304
304
  import { IconLock, IconPaperclip, IconSquareRounded } from "@tabler/icons-react";
@@ -1584,7 +1584,9 @@ import { ScrollArea } from "@estiva-app/ui";
1584
1584
 
1585
1585
  // src/looks.ts
1586
1586
  var FLOATING_SURFACE_CLASSES = "rounded-lg border border-border-default bg-bg-elevated shadow-lg";
1587
- var WRITING_BOX_CLASSES = "relative bg-bg-inset border border-border-default rounded-lg p-3 flex flex-col gap-4 signal:transition-shadow signal:focus-within:border-border-focus signal:focus-within:shadow-focus-ring";
1587
+ var WRITING_BOX_CLASSES = "relative bg-bg-field border border-border-field rounded-lg p-3 flex flex-col gap-4";
1588
+ var BOX_HINT_CLASSES = "min-w-0 truncate select-none text-caption text-text-muted signal:font-mono signal:text-menu signal:font-normal signal:tracking-wider";
1589
+ var WRITING_RING_CLASSES = "signal:transition-shadow signal:focus-within:border-border-focus signal:focus-within:shadow-focus-ring";
1588
1590
  var LINK_UNDERLINE_CLASSES = "no-underline bg-[linear-gradient(currentColor,currentColor)] bg-[length:100%_1px] bg-bottom bg-no-repeat";
1589
1591
  var WEB_LINK_CLASSES = `${LINK_UNDERLINE_CLASSES} before:content-[''] before:inline-block before:size-[1em] before:mr-0.5 before:align-[-0.125em] before:bg-current before:[mask:url(data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2015l6%20-6%27%2F%3E%3Cpath%20d%3D%27M11%206l.463%20-.536a5%205%200%200%201%207.071%207.072l-.534%20.464%27%2F%3E%3Cpath%20d%3D%27M13%2018l-.397%20.534a5.068%205.068%200%200%201%20-7.127%200a4.972%204.972%200%200%201%200%20-7.071l.524%20-.463%27%2F%3E%3C%2Fsvg%3E)_center/contain_no-repeat]`;
1590
1592
 
@@ -1630,16 +1632,20 @@ function isEmptyDoc(editor) {
1630
1632
  });
1631
1633
  return empty;
1632
1634
  }
1633
- function BoxFrame({ editor, marked = false, selection, placeholder, empty = false, attachments, footer, className }) {
1634
- return /* @__PURE__ */ jsxs3("div", { className: cn(WRITING_BOX_CLASSES, "focus-within:border-border-strong transition-colors", className), children: [
1635
- /* @__PURE__ */ jsxs3("div", { "data-composer-editor": true, "data-marked": marked || void 0, className: cn("relative min-h-[20px] transition-all", marked && "border-l-4 border-border-strong pl-2"), children: [
1636
- /* @__PURE__ */ jsx5(ScrollArea, { className: COMPOSE_SCROLL_CLASSES.area, viewportClassName: COMPOSE_SCROLL_CLASSES.viewport, contentClassName: COMPOSE_SCROLL_CLASSES.content, children: /* @__PURE__ */ jsx5(EditorContent, { editor }) }),
1637
- selection && /* @__PURE__ */ jsx5(SelectionToolbar, { editor, ...selection }),
1638
- empty && placeholder != null && /* @__PURE__ */ jsx5("div", { className: "pointer-events-none absolute inset-0 flex flex-wrap items-center gap-1 text-body-2 text-text-muted", children: placeholder })
1639
- ] }),
1640
- attachments && /* @__PURE__ */ jsx5("div", { className: "flex flex-wrap gap-2", children: attachments }),
1641
- footer
1642
- ] });
1635
+ function BoxFrame({ editor, marked = false, selection, placeholder, empty = false, attachments, footer, ring = true, className }) {
1636
+ return (
1637
+ // Focused, the edge darkens (the send box in Signal takes the accent and its glow instead). In Leaf, the edge every
1638
+ // field takes, in the send box and the edit box alike (Katerina, 31 October); never the accent on Peek's edit box (1 November).
1639
+ /* @__PURE__ */ jsxs3("div", { className: cn(WRITING_BOX_CLASSES, ring && WRITING_RING_CLASSES, "focus-within:border-border-strong leaf:focus-within:border-border-focus transition-colors", className), children: [
1640
+ /* @__PURE__ */ jsxs3("div", { "data-composer-editor": true, "data-marked": marked || void 0, className: cn("relative min-h-[20px] transition-all", marked && "border-l-4 border-border-strong pl-2"), children: [
1641
+ /* @__PURE__ */ jsx5(ScrollArea, { className: COMPOSE_SCROLL_CLASSES.area, viewportClassName: COMPOSE_SCROLL_CLASSES.viewport, contentClassName: COMPOSE_SCROLL_CLASSES.content, children: /* @__PURE__ */ jsx5(EditorContent, { editor }) }),
1642
+ selection && /* @__PURE__ */ jsx5(SelectionToolbar, { editor, ...selection }),
1643
+ empty && placeholder != null && /* @__PURE__ */ jsx5("div", { className: "pointer-events-none absolute inset-0 flex flex-wrap items-center gap-1 text-body-2 text-text-muted", children: placeholder })
1644
+ ] }),
1645
+ attachments && /* @__PURE__ */ jsx5("div", { className: "flex flex-wrap gap-2", children: attachments }),
1646
+ footer
1647
+ ] })
1648
+ );
1643
1649
  }
1644
1650
  function SendBox({ editor, onSend, placeholder, tools, attachments, ready = false, holding = false, marked = false, selection, className }) {
1645
1651
  const [empty, setEmpty] = useState2(true);
@@ -1683,7 +1689,7 @@ function SendBox({ editor, onSend, placeholder, tools, attachments, ready = fals
1683
1689
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
1684
1690
  tools ? /* @__PURE__ */ jsx5(Toolbar2, { "aria-label": "Compose tools", surface: false, className: "flex items-center gap-1", children: tools }) : /* @__PURE__ */ jsx5("span", {}),
1685
1691
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2.5", children: [
1686
- /* @__PURE__ */ jsx5("span", { className: "hidden select-none font-mono text-menu font-normal tracking-wider text-text-muted signal:inline", children: "Enter to send \xB7 Shift+Enter new line" }),
1692
+ /* @__PURE__ */ jsx5("span", { className: BOX_HINT_CLASSES, children: "Enter to send \xB7 Shift+Enter new line" }),
1687
1693
  /* @__PURE__ */ jsx5(
1688
1694
  IconButton,
1689
1695
  {
@@ -2101,7 +2107,6 @@ var SlashCommands = Extension7.create({
2101
2107
  // src/CommentBox.tsx
2102
2108
  import { FieldLine } from "@estiva-app/ui";
2103
2109
  import { FilePicker } from "@estiva-app/ui";
2104
- import { Kbd } from "@estiva-app/ui";
2105
2110
  import { inTheBox } from "@estiva-app/ui";
2106
2111
  import { LinkedIcon } from "@estiva-app/ui";
2107
2112
 
@@ -2270,6 +2275,7 @@ var PastedImages = Extension9.create({
2270
2275
 
2271
2276
  // src/CommentBox.tsx
2272
2277
  import { ToolbarButton as ToolbarButton2 } from "@estiva-app/ui";
2278
+ import { caretOnOpen } from "@estiva-app/ui";
2273
2279
  import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
2274
2280
  var ATTACH_EVENT = "commentbox:attach";
2275
2281
  var askForFile = (editor) => editor.view.dom.dispatchEvent(new CustomEvent(ATTACH_EVENT, { bubbles: true }));
@@ -2554,6 +2560,12 @@ function CommentBox({
2554
2560
  const frame = requestAnimationFrame(() => editor.commands.focus("end"));
2555
2561
  return () => cancelAnimationFrame(frame);
2556
2562
  }, [editor]);
2563
+ const caret = useContext(caretOnOpen);
2564
+ useEffect4(() => {
2565
+ if (!editor || !caret) return;
2566
+ const frame = requestAnimationFrame(() => editor.commands.focus("end", { scrollIntoView: false }));
2567
+ return () => cancelAnimationFrame(frame);
2568
+ }, [editor, caret]);
2557
2569
  useEffect4(() => {
2558
2570
  const box = root.current;
2559
2571
  if (!box || !takesFiles) return;
@@ -2685,20 +2697,16 @@ function CommentBox({
2685
2697
  editor,
2686
2698
  marked: marking,
2687
2699
  selection: { link: true },
2700
+ ring: false,
2688
2701
  attachments: attached,
2689
2702
  className: cn2(sending && "[&_.ProseMirror]:text-text-muted"),
2690
- footer: /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between gap-2", children: [
2691
- /* @__PURE__ */ jsxs5("span", { className: "flex items-center gap-1 text-caption text-text-muted", children: [
2692
- /* @__PURE__ */ jsx7(Kbd, { children: "Esc" }),
2693
- " to cancel \xB7 ",
2694
- /* @__PURE__ */ jsx7(Kbd, { children: "Enter" }),
2695
- " to save"
2696
- ] }),
2697
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
2703
+ footer: (
2704
+ // No keys written under the edit box: Cancel and Save say it (Katerina, 1 November).
2705
+ /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-end gap-2", children: /* @__PURE__ */ jsxs5("div", { className: "flex shrink-0 items-center gap-2", children: [
2698
2706
  /* @__PURE__ */ jsx7(Button, { variant: "outlined", size: "small", onClick: edit.onCancel, children: "Cancel" }),
2699
2707
  /* @__PURE__ */ jsx7(Button, { variant: "primary", size: "small", disabled: uploading || failed > 0 || sending, onClick: () => save.current(), children: "Save" })
2700
- ] })
2701
- ] })
2708
+ ] }) })
2709
+ )
2702
2710
  }
2703
2711
  ),
2704
2712
  takesFiles && /* @__PURE__ */ jsx7(FilePicker, { ref: picker, multiple: true, accept, onPick: attachFiles }),