@estiva-app/ui 0.97.0 → 0.98.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.
@@ -15,6 +15,8 @@ export interface ConversationEntryProps {
15
15
  time: ReactNode;
16
16
  /** A link to it: the time is then the link, "Link to this", as a reply's is. */
17
17
  timeHref?: string;
18
+ /** The time's tooltip when it is a link, in the app's words: "Link to this" by default; Peek's "Link to this message". */
19
+ timeLabel?: string;
18
20
  /** When it was last edited, in the app's words for the tooltip ("Edited 11:20 AM"): draws "(edited)". */
19
21
  edited?: string;
20
22
  /** The words, as the app draws them: text, mentions, links, attached cards, quoted blocks. */
@@ -41,10 +43,19 @@ export interface ConversationEntryProps {
41
43
  onEditingChange?: (editing: boolean) => void;
42
44
  /** Delete, after the card has asked. */
43
45
  onDelete?: () => Promise<boolean | void> | boolean | void;
44
- /** The app's sentence in the delete question, what deleting does there. Absent: "It is deleted for everyone." */
46
+ /**
47
+ * The app's own words under the delete question, what deleting does there, in place of the kit's: "It is deleted for
48
+ * everyone.", and on a comment how many replies stay. A string is one paragraph; a node is drawn as given.
49
+ */
45
50
  deleteNote?: ReactNode;
46
- /** The app's own rows in the ⋯ menu: `MenuItem`s. */
51
+ /** The app's own rows in the ⋯ menu, after Resolve: `MenuItem`s. */
47
52
  menu?: ReactNode;
53
+ /** The app's own rows in the ⋯ menu after Edit, before Delete: Peek's "View details". */
54
+ menuAfter?: ReactNode;
55
+ /** A heading over the menu's first rows, in the app's words: Peek's "Utilities". */
56
+ menuLabel?: string;
57
+ /** Edit's words in the ⋯ menu: "Edit" by default; Peek's "Edit message". */
58
+ editLabel?: string;
48
59
  /** Placement only. */
49
60
  className?: string;
50
61
  }
@@ -56,15 +67,22 @@ export interface ConversationCardProps extends ConversationEntryProps {
56
67
  /** Reply: offered on the strip. */
57
68
  onReply?: () => void;
58
69
  /**
59
- * Resolved, by whom, with what note and when (`at`, in the app's words). Folded (Katerina, 1 November): "✓ Resolved"
60
- * by the time, who and the note on hover; "Person two → the note · time" above the replies row. While its thread is
61
- * closed, the words fold to their first line, without files or reactions; open, it is whole.
70
+ * Resolved, by whom, with what note and when (`at`, in the app's words): "✓ Resolved" by the time, who and the note on
71
+ * hover; "Person two → the note · time" above the replies row. Nothing of the comment is hidden: its words, cards,
72
+ * files and reactions stay (Katerina, 1 November: nothing folds, in any app).
62
73
  */
63
74
  resolved?: {
64
75
  by: string;
65
76
  note?: string;
66
77
  at?: string;
67
78
  };
79
+ /**
80
+ * What the comment is called in the delete question: "Delete this comment?" by default. A direct message says
81
+ * `message` (Katerina, 1 November: "comment" reads wrong in a private chat).
82
+ */
83
+ noun?: string;
84
+ /** Beside Resolve in the ⋯ menu, how the app's box resolves too, as its key hint: Peek's "->". */
85
+ resolveHint?: string;
68
86
  /** Resolve, with the note written in the dialog the card opens. Offered on the strip and in the menu. */
69
87
  onResolve?: (note: string) => Promise<boolean | void> | boolean | void;
70
88
  /** Why the last resolve was refused, in plain words: said under the note, while the dialog stays open (`onResolve` answered `false`). */
@@ -78,7 +96,7 @@ export interface ConversationCardProps extends ConversationEntryProps {
78
96
  export type ReplyCardProps = ConversationEntryProps;
79
97
  /**
80
98
  * One comment: who, when, the words, files, cards, reactions, and the way into its replies, with the strip on hover
81
- * and the ⋯ menu. Resolved, it folds while its thread is closed and says who resolved it and the note.
99
+ * and the ⋯ menu. Resolved, it says who resolved it and the note; nothing of it is hidden.
82
100
  * The same card in every app, each in its own colours (the record that makes one conversation). Peek's, moved.
83
101
  */
84
102
  export declare function ConversationCard(props: ConversationCardProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationCard.d.ts","sourceRoot":"","sources":["../src/ConversationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAYrF,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAc,KAAK,eAAe,EAAE,MAA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L5D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BA2F9C"}
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import { type ReactNode, type Ref, type UIEventHandler } from 'react';
2
2
  /** One comment in the list, and its thread when it is open. */
3
3
  export interface ConversationItem {
4
4
  id: string;
@@ -10,6 +10,10 @@ export interface ConversationItem {
10
10
  resolved?: boolean;
11
11
  /** What it was on was deleted from the page. In one column it waits under "On deleted blocks", closed, before "Resolved"; a resolved one is under "Resolved". */
12
12
  gone?: boolean;
13
+ /** Two columns: the day it was written, in the app's words ("Today", "Monday"). Comments of one day are one stretch under a line naming it, which stays at the top while its stretch scrolls under it. */
14
+ day?: string;
15
+ /** Two columns: drawn just above it, 8px off, inside its day: the app's "New" line over the first comment not read. */
16
+ before?: ReactNode;
13
17
  }
14
18
  export interface ConversationLayoutProps {
15
19
  /** Where an open thread stands. `beside`, two columns: the comments fill the page, the thread stands in the 384px column beside them. `under`, one column: the comments are the 384px column beside the page, and a thread opens under its comment. */
@@ -25,15 +29,23 @@ export interface ConversationLayoutProps {
25
29
  onOpenChange?: (id: string | undefined) => void;
26
30
  /** The box a new comment is written in, under the comments. */
27
31
  box?: ReactNode;
28
- /** Above the comments, inside their list: a `ReactionHorizon`, a note. */
32
+ /** Above the comments, inside their list: placeholders while older comments are read, a note. */
29
33
  above?: ReactNode;
34
+ /** Two columns: under the comments, inside their list, or under the empty line: a `ReactionHorizon`. Not while the comments are read. */
35
+ below?: ReactNode;
36
+ /** Two columns: at the top of the column however few the comments are, over the room a short conversation leaves: an `ArchivedNotice`. */
37
+ top?: ReactNode;
30
38
  /** Still reading the comments. */
31
39
  loading?: boolean;
32
- /** What an empty conversation says. */
33
- empty?: string;
40
+ /** What an empty conversation says: words, or the app's own `EmptyState` (a read that failed says so). `null`: nothing. */
41
+ empty?: ReactNode;
42
+ /** Two columns: the comments' scrolling box, for an app that keeps its own place in it (where it was left, its "New" line, following what arrives). */
43
+ bodyRef?: Ref<HTMLDivElement>;
44
+ /** Two columns: the comments' box scrolled. */
45
+ onBodyScroll?: UIEventHandler<HTMLDivElement>;
34
46
  /** Two columns: the comments' own header, a `PageHeader`, over their column only, so the thread beside them runs the page's full height (Peek's way). */
35
47
  header?: ReactNode;
36
- /** One column: its name, in its header. */
48
+ /** Its name: one column's, in its header. Two columns, said with the message if the column breaks (the page's own bar is `header`). */
37
49
  title?: ReactNode;
38
50
  /** One column: its header's actions, as a `Panel`'s. */
39
51
  actions?: ReactNode;
@@ -46,5 +58,5 @@ export interface ConversationLayoutProps {
46
58
  * comments are the 384px column beside the page, and a thread opens under its comment, the two one card. The right column is 384px in
47
59
  * every app (Katerina, 31 October). With two columns the thread runs the full height, beside the comments' header.
48
60
  */
49
- export declare function ConversationLayout({ threads, items, open, onOpenChange, box, above, loading, empty, header, title, actions, className }: ConversationLayoutProps): import("react").JSX.Element;
61
+ export declare function ConversationLayout({ threads, items, open, onOpenChange, box, above, below, top, loading, empty, header, title, actions, bodyRef, onBodyScroll, className, }: ConversationLayoutProps): import("react").JSX.Element;
50
62
  //# sourceMappingURL=ConversationLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationLayout.d.ts","sourceRoot":"","sources":["../src/ConversationLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAWpF,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,IAAI,EAAE,SAAS,CAAA;IACf,qMAAqM;IACrM,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,mHAAmH;IACnH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iKAAiK;IACjK,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,uPAAuP;IACvP,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC3B,KA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AAM,EACN,KAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,SAAS,GACV,EAAE,uBAAuB,+BA4EzB"}
@@ -4,10 +4,18 @@ export interface ConversationMenuProps {
4
4
  resolved?: boolean;
5
5
  onResolve?: () => void;
6
6
  onReopen?: () => void;
7
- /** The app's own rows, between Resolve and Edit: `MenuItem`s. */
7
+ /** Beside Resolve, how the app's box resolves too, as its key hint: Peek's "->". */
8
+ resolveHint?: string;
9
+ /** The app's own rows, after Resolve: `MenuItem`s. */
8
10
  children?: ReactNode;
11
+ /** A heading over Resolve and the app's rows, in the app's words: Peek's "Utilities". */
12
+ label?: string;
9
13
  /** Offered on your own only. */
10
14
  onEdit?: () => void;
15
+ /** Edit's words: "Edit" by default; Peek's "Edit message". */
16
+ editLabel?: string;
17
+ /** The app's own rows after Edit, before Delete: Peek's "View details". */
18
+ after?: ReactNode;
11
19
  /** Offered on your own only; the card asks before it deletes. */
12
20
  onDelete?: () => void;
13
21
  open?: boolean;
@@ -16,9 +24,10 @@ export interface ConversationMenuProps {
16
24
  trigger?: ReactElement;
17
25
  }
18
26
  /**
19
- * The ⋯ menu of a comment or a reply: Resolve or Reopen and the app's own rows, then Edit and Delete on your own.
20
- * A card offers it only when it has a row to show.
21
- * Peek's, moved with the conversation; its "Utilities" heading went, as the kit names no app's furniture.
27
+ * The ⋯ menu of a comment or a reply, in up to three groups: Resolve or Reopen and the app's rows; Edit on your own
28
+ * and the app's rows after it; Delete on your own, apart, as it is destructive. A card offers it only when it has a
29
+ * row to show. Peek's, moved with the conversation; what is Peek's own (its heading, its hint, its words, its rows)
30
+ * Peek passes in, so its menu reads as it did (Katerina, 1 November).
22
31
  */
23
- export declare function ConversationMenu({ resolved, onResolve, onReopen, children, onEdit, onDelete, open, onOpenChange, trigger }: ConversationMenuProps): import("react").JSX.Element;
32
+ export declare function ConversationMenu({ resolved, onResolve, onReopen, resolveHint, children, label, onEdit, editLabel, after, onDelete, open, onOpenChange, trigger }: ConversationMenuProps): import("react").JSX.Element;
24
33
  //# sourceMappingURL=ConversationMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationMenu.d.ts","sourceRoot":"","sources":["../src/ConversationMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKpD,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,yGAAyG;IACzG,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,+BA6BzJ"}
1
+ {"version":3,"file":"ConversationMenu.d.ts","sourceRoot":"","sources":["../src/ConversationMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKpD,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,yGAAyG;IACzG,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAkB,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,+BAyCxM"}
package/dist/Thread.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { type ReactNode, type Ref } from 'react';
2
2
  import { type PinnedCommentProps } from './PinnedComment';
3
3
  /** The comment a thread answers, pinned at the top of its column. */
4
- export type ThreadStart = PinnedCommentProps;
4
+ export interface ThreadStart extends PinnedCommentProps {
5
+ /** Its id, on the pinned comment as `data-thread-start`, as each comment of a ConversationLayout carries `data-conversation-item`: what an app scrolls to when a link names the comment. */
6
+ id?: string;
7
+ }
5
8
  export interface ThreadProps {
6
9
  /** `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
10
  place?: 'beside' | 'under';
@@ -21,6 +24,10 @@ export interface ThreadProps {
21
24
  actions?: ReactNode;
22
25
  /** Closes the column. */
23
26
  onClose?: () => void;
27
+ /** Close's name for a screen reader, in the app's words ("Close thread"). Its tooltip still says "Close". */
28
+ closeLabel?: string;
29
+ /** Beside: what an empty thread says, words or the app's own `EmptyState`. `null`: nothing, for an app whose thread stood empty and silent. Under its comment an empty thread is only its box. */
30
+ empty?: ReactNode;
24
31
  /** The column's name. */
25
32
  title?: ReactNode;
26
33
  /** The column's scrolling box, for opening at the newest reply. */
@@ -34,5 +41,5 @@ export interface ThreadProps {
34
41
  * column: Ship's and Leaf's), the replies hung from a line, quiet, and the box under them, all one card with the
35
42
  * comment (Ship's way). Peek's replies column, moved with the conversation.
36
43
  */
37
- export declare function Thread({ place, start, children, loading, resolved, box, notice, actions, onClose, title, bodyRef, className }: ThreadProps): import("react").JSX.Element;
44
+ export declare function Thread({ place, start, children, loading, resolved, box, notice, actions, onClose, closeLabel, empty, title, bodyRef, className, }: ThreadProps): import("react").JSX.Element;
38
45
  //# sourceMappingURL=Thread.d.ts.map
@@ -1 +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,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