@estiva-app/ui 0.96.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.
- package/dist/Avatar.d.ts +6 -1
- package/dist/Avatar.d.ts.map +1 -1
- package/dist/AvatarGroup.d.ts +2 -0
- package/dist/AvatarGroup.d.ts.map +1 -1
- package/dist/ComposerTriggers.d.ts +2 -0
- package/dist/ComposerTriggers.d.ts.map +1 -1
- package/dist/ConversationCard.d.ts +26 -6
- package/dist/ConversationCard.d.ts.map +1 -1
- package/dist/ConversationLayout.d.ts +18 -6
- package/dist/ConversationLayout.d.ts.map +1 -1
- package/dist/ConversationMenu.d.ts +14 -5
- package/dist/ConversationMenu.d.ts.map +1 -1
- package/dist/LinkParts.d.ts +1 -0
- package/dist/LinkParts.d.ts.map +1 -1
- package/dist/MembersDialog.d.ts +4 -0
- package/dist/MembersDialog.d.ts.map +1 -1
- package/dist/Person.d.ts +3 -1
- package/dist/Person.d.ts.map +1 -1
- package/dist/PersonTrigger.d.ts +1 -1
- package/dist/PersonTrigger.d.ts.map +1 -1
- package/dist/RepliesRow.d.ts +1 -0
- package/dist/RepliesRow.d.ts.map +1 -1
- package/dist/Thread.d.ts +9 -2
- package/dist/Thread.d.ts.map +1 -1
- package/dist/editor.js +1 -1
- package/dist/editor.js.map +2 -2
- package/dist/index.js +196 -92
- package/dist/index.js.map +3 -3
- package/dist/linked.d.ts +4 -0
- package/dist/linked.d.ts.map +1 -1
- package/dist/linkedFrom.d.ts +2 -0
- package/dist/linkedFrom.d.ts.map +1 -1
- package/package.json +1 -1
- package/registry.json +153 -19
- package/src/Avatar.agent.test.tsx +63 -0
- package/src/Avatar.mdx +25 -0
- package/src/Avatar.stories.tsx +13 -0
- package/src/Avatar.tsx +51 -3
- package/src/AvatarGroup.tsx +3 -1
- package/src/ComposerTriggers.stories.tsx +2 -0
- package/src/ComposerTriggers.tsx +3 -1
- package/src/ConversationCard.mdx +3 -2
- package/src/ConversationCard.states.test.tsx +25 -5
- package/src/ConversationCard.stories.tsx +3 -3
- package/src/ConversationCard.test.tsx +4 -4
- package/src/ConversationCard.tsx +60 -38
- package/src/ConversationLayout.mdx +12 -0
- package/src/ConversationLayout.stories.tsx +47 -0
- package/src/ConversationLayout.test.tsx +100 -0
- package/src/ConversationLayout.tsx +98 -20
- package/src/ConversationMenu.mdx +5 -2
- package/src/ConversationMenu.stories.tsx +19 -1
- package/src/ConversationMenu.test.tsx +17 -4
- package/src/ConversationMenu.tsx +37 -16
- package/src/LinkCard.tsx +3 -3
- package/src/LinkChip.tsx +1 -1
- package/src/LinkParts.tsx +4 -4
- package/src/LinkRow.tsx +1 -1
- package/src/MembersDialog.stories.tsx +11 -0
- package/src/MembersDialog.tsx +7 -3
- package/src/Person.tsx +4 -2
- package/src/PersonTrigger.tsx +3 -3
- package/src/PinnedComment.tsx +1 -1
- package/src/RepliesRow.tsx +2 -2
- package/src/Thread.mdx +2 -0
- package/src/Thread.test.tsx +17 -0
- package/src/Thread.tsx +32 -8
- package/src/linked.ts +4 -0
- package/src/linkedFrom.test.tsx +18 -0
- package/src/linkedFrom.ts +7 -5
- package/src/registry/registry.test.ts +2 -1
- package/stories/Choosing.mdx +1 -1
package/dist/Avatar.d.ts
CHANGED
|
@@ -30,7 +30,12 @@ export interface AvatarProps {
|
|
|
30
30
|
* of a name, not text, and a screen reader was reading them as text.
|
|
31
31
|
*/
|
|
32
32
|
label?: string;
|
|
33
|
+
/**
|
|
34
|
+
* **An agent's face**: a robot in place of the initials, for a profile that says it is an agent (NIP-24's `bot`).
|
|
35
|
+
* Its picture still wins when it has one. Never worked out from the name: "steered by" is a name, not a marker.
|
|
36
|
+
*/
|
|
37
|
+
bot?: boolean;
|
|
33
38
|
className?: string;
|
|
34
39
|
}
|
|
35
|
-
export declare function Avatar({ src, name, alt, size, label: spoken, className }: AvatarProps): import("react").JSX.Element;
|
|
40
|
+
export declare function Avatar({ src, name, alt, size, label: spoken, bot, className }: AvatarProps): import("react").JSX.Element;
|
|
36
41
|
//# sourceMappingURL=Avatar.d.ts.map
|
package/dist/Avatar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../src/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../src/Avatar.tsx"],"names":[],"mappings":"AAiCA;;4EAE4E;AAC5E,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,WAIjC,CAAA;AAKD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAIvC,CAAA;AAED,MAAM,WAAW,WAAW;IAC1B,0JAA0J;IAC1J,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uGAAuG;IACvG,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAuCD,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAQ,EAAE,IAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAW,EAAE,SAAS,EAAE,EAAE,WAAW,+BAsF5G"}
|
package/dist/AvatarGroup.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface AvatarGroupMember {
|
|
|
18
18
|
name: string;
|
|
19
19
|
/** Resolved by the caller. Absent draws the initials. */
|
|
20
20
|
picture?: string;
|
|
21
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
22
|
+
bot?: boolean;
|
|
21
23
|
}
|
|
22
24
|
export interface AvatarGroupProps {
|
|
23
25
|
members: AvatarGroupMember[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../src/AvatarGroup.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../src/AvatarGroup.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;CACtC;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,IAAS,EAAE,EAAc,EAAE,EAAE,gBAAgB,+BAkCnF"}
|
|
@@ -15,6 +15,8 @@ export interface MentionPerson {
|
|
|
15
15
|
pubkey?: string | null;
|
|
16
16
|
/** The face at the row's start. Default: the package `Avatar` for the name. */
|
|
17
17
|
avatar?: ReactNode;
|
|
18
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
19
|
+
bot?: boolean;
|
|
18
20
|
}
|
|
19
21
|
/** How many people the list shows. */
|
|
20
22
|
export declare const PEOPLE_LIMIT = 6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerTriggers.d.ts","sourceRoot":"","sources":["../src/ComposerTriggers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA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AO,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAA;AAElJ,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mGAAmG;IACnG,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,SAAS,EAQvC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,SAAS,EAIhD,CAAA;AAED,gEAAgE;AAChE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,GAAE,UAAqB,GAAG,OAAO,CA2D9F;AAgBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,GAAE,UAAqB,GAAG,YAAY,CAavE;AAED,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,CAM9D;AAMD,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,EAAE,CAGpG;AAED,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;CAClC;AAID;;;;GAIG;AACH,eAAO,MAAM,aAAa,sCAgCxB,CAAA"}
|
|
@@ -5,6 +5,8 @@ import { type RepliesRowProps } from './RepliesRow';
|
|
|
5
5
|
export interface ConversationPerson {
|
|
6
6
|
name: string;
|
|
7
7
|
picture?: string;
|
|
8
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
9
|
+
bot?: boolean;
|
|
8
10
|
}
|
|
9
11
|
/** What a comment and a reply share. */
|
|
10
12
|
export interface ConversationEntryProps {
|
|
@@ -13,6 +15,8 @@ export interface ConversationEntryProps {
|
|
|
13
15
|
time: ReactNode;
|
|
14
16
|
/** A link to it: the time is then the link, "Link to this", as a reply's is. */
|
|
15
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;
|
|
16
20
|
/** When it was last edited, in the app's words for the tooltip ("Edited 11:20 AM"): draws "(edited)". */
|
|
17
21
|
edited?: string;
|
|
18
22
|
/** The words, as the app draws them: text, mentions, links, attached cards, quoted blocks. */
|
|
@@ -39,10 +43,19 @@ export interface ConversationEntryProps {
|
|
|
39
43
|
onEditingChange?: (editing: boolean) => void;
|
|
40
44
|
/** Delete, after the card has asked. */
|
|
41
45
|
onDelete?: () => Promise<boolean | void> | boolean | void;
|
|
42
|
-
/**
|
|
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
|
+
*/
|
|
43
50
|
deleteNote?: ReactNode;
|
|
44
|
-
/** The app's own rows in the ⋯ menu: `MenuItem`s. */
|
|
51
|
+
/** The app's own rows in the ⋯ menu, after Resolve: `MenuItem`s. */
|
|
45
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;
|
|
46
59
|
/** Placement only. */
|
|
47
60
|
className?: string;
|
|
48
61
|
}
|
|
@@ -54,15 +67,22 @@ export interface ConversationCardProps extends ConversationEntryProps {
|
|
|
54
67
|
/** Reply: offered on the strip. */
|
|
55
68
|
onReply?: () => void;
|
|
56
69
|
/**
|
|
57
|
-
* Resolved, by whom, with what note and when (`at`, in the app's words)
|
|
58
|
-
*
|
|
59
|
-
*
|
|
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).
|
|
60
73
|
*/
|
|
61
74
|
resolved?: {
|
|
62
75
|
by: string;
|
|
63
76
|
note?: string;
|
|
64
77
|
at?: string;
|
|
65
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;
|
|
66
86
|
/** Resolve, with the note written in the dialog the card opens. Offered on the strip and in the menu. */
|
|
67
87
|
onResolve?: (note: string) => Promise<boolean | void> | boolean | void;
|
|
68
88
|
/** Why the last resolve was refused, in plain words: said under the note, while the dialog stays open (`onResolve` answered `false`). */
|
|
@@ -76,7 +96,7 @@ export interface ConversationCardProps extends ConversationEntryProps {
|
|
|
76
96
|
export type ReplyCardProps = ConversationEntryProps;
|
|
77
97
|
/**
|
|
78
98
|
* One comment: who, when, the words, files, cards, reactions, and the way into its replies, with the strip on hover
|
|
79
|
-
* and the ⋯ menu. Resolved, it
|
|
99
|
+
* and the ⋯ menu. Resolved, it says who resolved it and the note; nothing of it is hidden.
|
|
80
100
|
* The same card in every app, each in its own colours (the record that makes one conversation). Peek's, moved.
|
|
81
101
|
*/
|
|
82
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,MAAM,cAAc,CAAA;AAQ/D,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;
|
|
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,MAAM,cAAc,CAAA;AAQ/D,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED,wCAAwC;AACxC,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,4DAA4D;IAC5D,IAAI,EAAE,SAAS,CAAA;IACf,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0HAA0H;IAC1H,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8FAA8F;IAC9F,QAAQ,EAAE,SAAS,CAAA;IACnB,6GAA6G;IAC7G,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAA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AC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACrD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yGAAyG;IACzG,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;IACtE,yIAAyI;IACzI,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAA;AAiJnD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAwL5D;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:
|
|
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?:
|
|
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
|
-
/**
|
|
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,
|
|
1
|
+
{"version":3,"file":"ConversationLayout.d.ts","sourceRoot":"","sources":["../src/ConversationLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAc7H,+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;IACd,0MAA0M;IAC1M,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uHAAuH;IACvH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,uPAAuP;IACvP,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC3B,KAAK,EAAE,SAAS,gB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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
|
|
20
|
-
* A card offers it only when it has a
|
|
21
|
-
* Peek's, moved with the conversation; its
|
|
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,
|
|
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,SA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C1D,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAmB5E;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAAE,YAAY,EAAE,IAAiB,EAAE,EAAE;IAAE,YAAY,EAAE,kBAAkB,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BA+BpH;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2GAA2G;IAC3G,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAQD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,UAAoB,EAAE,QAAgB,EAAE,cAAc,EAAE,EAAE,gBAAgB,+BAgDtH"}
|
package/dist/MembersDialog.d.ts
CHANGED
|
@@ -6,12 +6,16 @@ export interface MembersDialogMember {
|
|
|
6
6
|
name: string;
|
|
7
7
|
/** A picture URL, resolved by the caller, as `Avatar` takes its `src`. */
|
|
8
8
|
picture?: string;
|
|
9
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
10
|
+
bot?: boolean;
|
|
9
11
|
/** The line under the name: a role, a relation ("Assignee"), or a state. */
|
|
10
12
|
caption?: string;
|
|
11
13
|
}
|
|
12
14
|
/** Somebody who can be added: a `ChipInput` option with a face. */
|
|
13
15
|
export interface MembersDialogCandidate extends ChipInputOption {
|
|
14
16
|
picture?: string;
|
|
17
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
18
|
+
bot?: boolean;
|
|
15
19
|
}
|
|
16
20
|
/** What the viewer's own row offers: in when they are out, out when they are in. */
|
|
17
21
|
export type MembersDialogSelfAction = 'join' | 'leave';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MembersDialog.d.ts","sourceRoot":"","sources":["../src/MembersDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKvD,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,aAAa,CAAA;AAO7D,0EAA0E;AAC1E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,mEAAmE;AACnE,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"MembersDialog.d.ts","sourceRoot":"","sources":["../src/MembersDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKvD,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,aAAa,CAAA;AAO7D,0EAA0E;AAC1E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,mEAAmE;AACnE,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED,oFAAoF;AACpF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,MAAM,WAAW,kBAAkB;IACjC,iGAAiG;IACjG,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,EAAE,uBAAuB,CAAA;QAC/B,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;QACvC,gFAAgF;QAChF,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IACD,+DAA+D;IAC/D,UAAU,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAA;IACtF,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAKD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,UAAe,EAAE,KAAK,EAAE,IAAI,EAAE,WAAoB,EAAE,OAAO,EAAE,EAAE,kBAAkB,+BA0HtI"}
|
package/dist/Person.d.ts
CHANGED
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
export interface PersonProps {
|
|
18
18
|
name?: string;
|
|
19
19
|
picture?: string;
|
|
20
|
+
/** An agent: its face is a robot, as Avatar's `bot`. */
|
|
21
|
+
bot?: boolean;
|
|
20
22
|
/** Shown in place of a missing name. */
|
|
21
23
|
fallback?: string;
|
|
22
24
|
size?: number;
|
|
23
25
|
className?: string;
|
|
24
26
|
}
|
|
25
|
-
export declare function Person({ name, picture, fallback, size, className }: PersonProps): import("react").JSX.Element;
|
|
27
|
+
export declare function Person({ name, picture, bot, fallback, size, className }: PersonProps): import("react").JSX.Element;
|
|
26
28
|
//# sourceMappingURL=Person.d.ts.map
|
package/dist/Person.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../src/Person.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAc,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE,WAAW,+
|
|
1
|
+
{"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../src/Person.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAc,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE,WAAW,+BAU/F"}
|
package/dist/PersonTrigger.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export interface PersonTriggerProps extends Omit<PersonProps, 'className'>, Omit
|
|
|
20
20
|
/** Face only — no chevron, no hover fill. Defaults the face to 36px; the row shape to 22px. */
|
|
21
21
|
compact?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare function PersonTrigger({ name, picture, fallback, size, open, compact, className, ...props }: PersonTriggerProps): import("react").JSX.Element;
|
|
23
|
+
export declare function PersonTrigger({ name, picture, bot, fallback, size, open, compact, className, ...props }: PersonTriggerProps): import("react").JSX.Element;
|
|
24
24
|
//# sourceMappingURL=PersonTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonTrigger.d.ts","sourceRoot":"","sources":["../src/PersonTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAMlD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAEnD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,EACpC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACnD,mFAAmF;IACnF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAY,EAAE,OAAe,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"PersonTrigger.d.ts","sourceRoot":"","sources":["../src/PersonTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAMlD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAEnD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,EACpC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACnD,mFAAmF;IACnF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAY,EAAE,OAAe,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAqD3I"}
|
package/dist/RepliesRow.d.ts
CHANGED
package/dist/RepliesRow.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
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,CAAC;QAAC,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;IACpE,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"}
|
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
|
|
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
|
package/dist/Thread.d.ts.map
CHANGED
|
@@ -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,
|
|
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,WAAW,WAAY,SAAQ,kBAAkB;IACrD,4LAA4L;IAC5L,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,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,6GAA6G;IAC7G,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kMAAkM;IAClM,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,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,EACrB,KAAgB,EAChB,KAAK,EACL,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,GAAG,EACH,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAoB,EACpB,KAAyB,EACzB,KAAiB,EACjB,OAAO,EACP,SAAS,GACV,EAAE,WAAW,+BAwDb"}
|
package/dist/editor.js
CHANGED
|
@@ -1744,7 +1744,7 @@ function peopleMenu(urgent) {
|
|
|
1744
1744
|
row: (person) => ({
|
|
1745
1745
|
label: person.name,
|
|
1746
1746
|
description: person.description,
|
|
1747
|
-
leading: person.avatar ?? /* @__PURE__ */ jsx6(Avatar, { size: 32, alt: person.name }),
|
|
1747
|
+
leading: person.avatar ?? /* @__PURE__ */ jsx6(Avatar, { size: 32, alt: person.name, bot: person.bot }),
|
|
1748
1748
|
hint: /* @__PURE__ */ jsx6(EnterHint, {}),
|
|
1749
1749
|
size: "tall"
|
|
1750
1750
|
})
|