@notis_ai/cli 0.2.33 → 0.2.34
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/README.md +1 -2
- package/dist/agent-hooks/notis-agent-hook.mjs +82 -19
- package/dist/base-skills/notis-cli/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-cli/SKILL.md +1 -1
- package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/references/comments.md +11 -3
- package/dist/sdk/src/components/NotisSelectionBoundary.tsx +13 -5
- package/dist/sdk/src/components/SelectionActionBar.tsx +3 -1
- package/dist/sdk/src/components/SpaceTextComments.tsx +13 -4
- package/dist/sdk/src/components/selectionRange.ts +65 -0
- package/dist/sdk/src/config.ts +1 -1
- package/dist/sdk/src/functions.ts +17 -2
- package/dist/sdk/src/hooks/useCollectionInteractions.ts +59 -7
- package/dist/sdk/src/index.ts +4 -3
- package/dist/sdk/src/interactions/shortcuts.tsx +6 -1
- package/dist/sdk/src/interactions/swipeDownToDismiss.ts +158 -0
- package/dist/sdk/src/interactions/textBoxTwoState.ts +174 -0
- package/dist/sdk/src/interactions.ts +17 -0
- package/dist/sdk/src/space.ts +73 -5
- package/dist/skill-sync/index.js +23 -1
- package/dist/skill-sync-worker.mjs +62 -3
- package/dist/space-harness/host.js +351 -237
- package/dist/space-sdk/dist/chunk-3NPBCE6E.js +3 -0
- package/dist/space-sdk/dist/index.js +2 -2
- package/dist/space-sdk/dist/ui.js +16 -12
- package/dist/space-sdk/src/config.ts +1 -1
- package/dist/space-sdk/src/functions.ts +17 -2
- package/dist/space-sdk/src/hooks/useCollectionInteractions.d.ts +5 -0
- package/dist/space-sdk/src/index.d.ts +3 -3
- package/dist/space-sdk/src/interactions/shortcuts.d.ts +5 -0
- package/dist/space-sdk/src/space.ts +73 -5
- package/dist/space-sdk/src/tailwind-candidates.d.ts +234 -71
- package/dist/space-sdk/src/ui/comments/CommentPane.d.ts +86 -14
- package/dist/space-sdk/src/ui/comments/PassageComments.d.ts +4 -1
- package/dist/space-sdk/src/ui/comments/agentRuntime.d.ts +0 -6
- package/dist/space-sdk/src/ui/comments/commentDrafts.d.ts +63 -0
- package/dist/space-sdk/src/ui/comments/commentModel.d.ts +4 -0
- package/dist/space-sdk/src/ui/comments/commentWords.d.ts +23 -1
- package/dist/space-sdk/src/ui/comments/handover.d.ts +34 -0
- package/dist/space-sdk/src/ui/comments/hostPanel.d.ts +113 -0
- package/dist/space-sdk/src/ui/comments/index.d.ts +6 -1
- package/dist/space-sdk/src/ui/comments/paneOutlet.d.ts +33 -0
- package/dist/space-sdk/src/ui/comments/paneParts.d.ts +54 -32
- package/dist/space-sdk/src/ui/comments/reviewRun.d.ts +190 -0
- package/dist/space-sdk/src/ui/comments/useComments.d.ts +52 -3
- package/dist/view-renderer/dist/host.js +413 -299
- package/package.json +3 -3
- package/skills/notis-cli/AGENT_INSTRUCTIONS.md +1 -1
- package/src/runtime/agent-identity.js +3 -4
- package/src/runtime/app-platform.js +1 -1
- package/src/runtime/profiles.js +59 -2
- package/src/runtime/skill-sync/cloud-client.ts +33 -3
- package/src/runtime/skill-sync/index.ts +1 -1
- package/src/runtime/skill-sync/types.ts +4 -1
- package/src/runtime/space-functions.js +5 -3
- package/dist/space-sdk/dist/chunk-4GWS2IFO.js +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The comment pane and its pieces, rendered from a `useComments` controller:
|
|
3
3
|
*
|
|
4
|
-
* - `CommentPane`: the comments of the view in the host Comments panel beside the chat (
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* - `CommentPane`: the comments of the view in the host Comments panel beside the chat (one header row with New comment,
|
|
5
|
+
* the filter and the "..." menu holding Copy changes, the new comment box with its To chip, the thread cards and the
|
|
6
|
+
* Undo toast). It draws nothing inside the Space, and nothing at all while the host shows no
|
|
7
7
|
* comments (`hostComments`). Threads come flat, newest first; on the Space home (no scope) they group by page. Pass
|
|
8
8
|
* `order` and `groupBy` to list them your way.
|
|
9
9
|
* - `CommentPins`: the numbered pins and zones on the anchor element. Put it inside the element the comments sit on (a
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* - `CommentThreadCard`, `NewCommentBox` and `CommentAvatar`: the pane's own pieces, also drawn by the passage pane.
|
|
15
15
|
*
|
|
16
16
|
* A card archives (E) and unarchives (Shift+E) with an Undo toast (Z), edits your own comments in place and deletes at
|
|
17
|
-
* once with Undo, as the viewer's rights allow.
|
|
18
|
-
* the
|
|
19
|
-
*
|
|
17
|
+
* once with Undo, as the viewer's rights allow. It starts with where it sits (the quoted words, or "Whole page", a point,
|
|
18
|
+
* the items, a moment), with Done and "..." at its top right. Each comment names who wrote it on two lines beside the
|
|
19
|
+
* avatar; an agent's avatar carries its app's logo, and its name opens a card with what it ran on. A band name reads
|
|
20
|
+
* "Fred And The Machine" (`agentDisplayName`). Where a reply goes is said once, by the reply box.
|
|
20
21
|
*
|
|
21
22
|
* Files: with an Attachments files column and a host that uploads (`runtime.spaceFiles`), a new comment and a reply take
|
|
22
23
|
* pictures and files: paste, drop on the box or the paperclip (`commentFiles`). Otherwise the boxes take text only.
|
|
@@ -28,8 +29,9 @@
|
|
|
28
29
|
import React, { type KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
29
30
|
import type { KeySpec } from '../../words';
|
|
30
31
|
import { type CommentRecord, type CommentThread } from './commentModel';
|
|
32
|
+
import { type CommentFilesState } from './commentFiles';
|
|
31
33
|
import { type CommentListOptions } from './paneParts';
|
|
32
|
-
import type { CommentController } from './useComments';
|
|
34
|
+
import type { CommentController, CommentFile } from './useComments';
|
|
33
35
|
export interface CommentAvatarProps {
|
|
34
36
|
author: string;
|
|
35
37
|
/** The person using the Space: their avatar is filled, everyone else's is quiet. */
|
|
@@ -54,19 +56,89 @@ export declare function sendsOnEnter(event: ReactKeyboardEvent<HTMLTextAreaEleme
|
|
|
54
56
|
export interface CommentThreadCardProps {
|
|
55
57
|
controller: CommentController;
|
|
56
58
|
thread: CommentThread;
|
|
57
|
-
/** Name the anchor
|
|
59
|
+
/** Name the anchor where the card says where it sits (when the pane lists every anchor). */
|
|
58
60
|
showAnchor?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
+
/** The words a passage pane quotes for this thread (default: the comment's own passage), and whether they are gone. */
|
|
62
|
+
passageQuote?: string | null;
|
|
63
|
+
passageGone?: boolean;
|
|
64
|
+
/** Where the thread sits when it quotes no words (default: its point, its moment, its items or "Whole page"). */
|
|
65
|
+
placeLabel?: string | null;
|
|
66
|
+
/** A press on the card. Default: `controller.selectThread(thread)`. */
|
|
67
|
+
onSelect?(thread: CommentThread): void;
|
|
61
68
|
}
|
|
62
|
-
|
|
63
|
-
export
|
|
69
|
+
/** The options of the first question of a thread still waiting for a pick, for the card's Enter and 1 to 9 keys. */
|
|
70
|
+
export declare function commentWaitingChoices(thread: CommentThread): {
|
|
71
|
+
comment: CommentRecord;
|
|
72
|
+
options: string[];
|
|
73
|
+
recommended: string | null;
|
|
74
|
+
} | null;
|
|
75
|
+
/**
|
|
76
|
+
* Who holds a comment thread, as its reply box names it ("Reply to Claude"): the agent outside Notis that holds it, else
|
|
77
|
+
* what runs the thread a reply goes to. Null while that is not known or names nothing (the box then reads "Reply").
|
|
78
|
+
*/
|
|
79
|
+
export declare function commentThreadHolder(controller: CommentController, thread: CommentThread): {
|
|
80
|
+
who: string;
|
|
81
|
+
outside: boolean;
|
|
82
|
+
harness: string | null;
|
|
83
|
+
to: string;
|
|
84
|
+
} | null;
|
|
85
|
+
/**
|
|
86
|
+
* One comment thread as a card, the same in every comments list:
|
|
87
|
+
*
|
|
88
|
+
* - First, where it sits: the quoted words on one or two lines ("Passage changed" once they are gone from the page), or
|
|
89
|
+
* "Whole page", "Point 1 on <item>", the items, the moment.
|
|
90
|
+
* - Done (a check; Unarchive on an archived thread) and "..." at the top right: Copy link, Change who it goes to, Edit
|
|
91
|
+
* and Delete. Quiet until the card is hovered, focused or selected; always shown on a touch screen.
|
|
92
|
+
* - Each comment starts with two lines beside its avatar: the name, then the agent's thread and the time in a quieter
|
|
93
|
+
* line. Its words, pictures and question take the card's full width under that block. A reply keeps Copy link, Edit
|
|
94
|
+
* and Delete in one "..." of its own.
|
|
95
|
+
* - No mark on a comment not read yet. The person's latest word in a thread an agent outside Notis holds carries the
|
|
96
|
+
* chat bubble's check after its time: one until that agent has read it, two after.
|
|
97
|
+
* - Where a reply goes is said once, by the reply box ("Reply to The Paper Lanterns").
|
|
98
|
+
*
|
|
99
|
+
* While the card is selected and a question of it waits, Enter picks the recommended option and 1 to 9 an option by
|
|
100
|
+
* its position (the number after the last option is Other).
|
|
101
|
+
*/
|
|
102
|
+
export declare function CommentThreadCard({ controller, thread, showAnchor, passageQuote, passageGone, placeLabel, onSelect }: CommentThreadCardProps): React.JSX.Element;
|
|
103
|
+
export interface NewCommentFrameProps {
|
|
64
104
|
controller: CommentController;
|
|
105
|
+
/** The box's accessible name: what the new comment is on ("New comment on Slide 2"). */
|
|
106
|
+
label: string;
|
|
107
|
+
/** The words it quotes, or where it sits when it quotes none ("Whole page", the items, a moment). */
|
|
108
|
+
quote: string | null;
|
|
109
|
+
place: string | null;
|
|
110
|
+
/** Changes when the box starts another comment: it takes the caret and scrolls into view again. */
|
|
111
|
+
where: string | null;
|
|
112
|
+
body: string;
|
|
113
|
+
setBody(text: string): void;
|
|
114
|
+
files: CommentFilesState;
|
|
115
|
+
/** Saves the comment with its uploaded files. True once saved. */
|
|
116
|
+
save(text: string, files: CommentFile[]): Promise<boolean>;
|
|
117
|
+
/** Drops the new comment. */
|
|
118
|
+
cancel(): void;
|
|
119
|
+
/** The last save failed: the box says so. */
|
|
120
|
+
failed?: boolean;
|
|
121
|
+
sending?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Where the box's draft is kept (`commentDrafts`): the files the host's composer holds are kept there too, so they
|
|
124
|
+
* come back after the pane was away or a save failed. Without it they live in the composer only.
|
|
125
|
+
*/
|
|
126
|
+
draftKey?: string | null;
|
|
65
127
|
}
|
|
66
128
|
/**
|
|
67
|
-
* The box
|
|
68
|
-
*
|
|
129
|
+
* The box of a new comment, the same for a pin, items, a moment, the whole page and quoted words. It is the chat box's
|
|
130
|
+
* parts: where it goes is its first pill ("To Deck polish", which opens the picker), then the words it quotes or its
|
|
131
|
+
* place, inside the text field; no title, no grey quote box and no Cancel button. Escape drops an empty box (with text,
|
|
132
|
+
* the first Escape leaves the field); a touch screen, which has no Escape, has a small cross on the pill line.
|
|
133
|
+
*
|
|
134
|
+
* The host draws its own composer in the box when it draws comment boxes (`useHostComposer`); otherwise the pane keeps
|
|
135
|
+
* this plain box with the same parts, where an @ typed first opens the thread picker.
|
|
69
136
|
*/
|
|
137
|
+
export declare function NewCommentFrame({ controller, label, quote, place, where, body, setBody, files, save, cancel, failed, sending, draftKey }: NewCommentFrameProps): React.JSX.Element;
|
|
138
|
+
export interface NewCommentBoxProps {
|
|
139
|
+
controller: CommentController;
|
|
140
|
+
}
|
|
141
|
+
/** The box for the comment `controller.draftPin` started: a pin, a zone, items, a moment or the whole page. */
|
|
70
142
|
export declare function NewCommentBox({ controller }: NewCommentBoxProps): React.JSX.Element | null;
|
|
71
143
|
export interface CommentPinsProps {
|
|
72
144
|
controller: CommentController;
|
|
@@ -44,7 +44,10 @@ export interface PassageCommentPaneProps extends Omit<CommentListOptions, 'order
|
|
|
44
44
|
* the order of the fields and their words), as panes beside a document often want.
|
|
45
45
|
*/
|
|
46
46
|
order?: CommentOrder | 'reading';
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Kept for Spaces written before the host drew the Comments panel: the panel's own header row has the close button,
|
|
49
|
+
* so the pane draws none and never calls this.
|
|
50
|
+
*/
|
|
48
51
|
onClose?(): void;
|
|
49
52
|
/** The heading. Default "Comments". */
|
|
50
53
|
title?: string;
|
|
@@ -48,12 +48,6 @@ export declare function CommentAgentRuntimeCard({ name, view }: {
|
|
|
48
48
|
name: string;
|
|
49
49
|
view: CommentAgentRuntimeView;
|
|
50
50
|
}): React.JSX.Element;
|
|
51
|
-
/**
|
|
52
|
-
* After an agent outside Notis's name on its comment: the thread it said it works in ("PR #3851"), quiet (SPC-537).
|
|
53
|
-
*/
|
|
54
|
-
export declare function CommentAgentThreadName({ comment }: {
|
|
55
|
-
comment: CommentRecord;
|
|
56
|
-
}): React.JSX.Element | null;
|
|
57
51
|
/**
|
|
58
52
|
* After an agent's name on its comment: the harness logo, with the runtime card on hover and on keyboard focus (Tab
|
|
59
53
|
* reaches it; its accessible name says everything the card shows). An agent outside Notis has no recorded runtime: its
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment drafts kept for the session: the text of a new comment, a reply or an answer, its
|
|
3
|
+
* attached files (the pane's own chips, or the files the host's composer holds) and where a new comment goes. A comment box unmounts whenever the page's comments leave the host panel
|
|
4
|
+
* (another Space opens, a record page covers the view, a brief replaces the deck); what was typed comes back when the
|
|
5
|
+
* box shows again. Keys name the Space, the comments table and page (`draftScope`) and the box (a thread's reply, the
|
|
6
|
+
* new comment, an ask's answer). A send that saves, Cancel, and Escape on an empty box forget their draft.
|
|
7
|
+
*
|
|
8
|
+
* The store sits on `globalThis`, so two copies of the SDK in one page (two Space bundles) share it.
|
|
9
|
+
*
|
|
10
|
+
* In memory unless the host gives a place to keep them (`keepCommentDraftsIn`, the Portal's per-person draft storage):
|
|
11
|
+
* then the text, where a new comment goes and who it goes to also survive a reload of the browser, as a chat draft
|
|
12
|
+
* does. Files are never stored: a file's bytes stay in the page that picked it. The place is shared by every tab of
|
|
13
|
+
* the person: a tab writes only the drafts it changed, so a draft being written in another tab stays.
|
|
14
|
+
*/
|
|
15
|
+
/** A file attached to a draft: kept whole, so a picture's preview and an upload cut short can start again. */
|
|
16
|
+
export interface StoredCommentFile {
|
|
17
|
+
name: string;
|
|
18
|
+
file: File;
|
|
19
|
+
state: 'uploading' | 'ready' | 'failed';
|
|
20
|
+
uploaded: unknown;
|
|
21
|
+
error: string | null;
|
|
22
|
+
retryable: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface StoredCommentDraft {
|
|
25
|
+
text?: string;
|
|
26
|
+
files?: readonly StoredCommentFile[];
|
|
27
|
+
/** The files the host's own composer holds for this box (`useHostComposer`): not uploaded yet, they go up on Send. */
|
|
28
|
+
hostFiles?: readonly File[];
|
|
29
|
+
/** Where a new comment goes (its pin, a passage): kept only while the draft has text or files. */
|
|
30
|
+
place?: unknown;
|
|
31
|
+
}
|
|
32
|
+
/** Where the host keeps the drafts between page loads: one string under one key (`Storage`'s shape). */
|
|
33
|
+
export interface CommentDraftStorage {
|
|
34
|
+
getItem(key: string): string | null;
|
|
35
|
+
setItem(key: string, value: string): void;
|
|
36
|
+
removeItem(key: string): void;
|
|
37
|
+
}
|
|
38
|
+
/** Writes the drafts to the host's storage now (the page is going away). */
|
|
39
|
+
export declare function flushCommentDrafts(): void;
|
|
40
|
+
/**
|
|
41
|
+
* The host gives the drafts a place between page loads (null: in memory only, and the drafts of the person before
|
|
42
|
+
* are forgotten). What the storage holds comes back at once; a draft this page already holds wins over a stored one.
|
|
43
|
+
*/
|
|
44
|
+
export declare function keepCommentDraftsIn(storage: CommentDraftStorage | null): void;
|
|
45
|
+
/** True when a draft holds something worth bringing back. */
|
|
46
|
+
export declare function hasDraftContent(draft: StoredCommentDraft | undefined): boolean;
|
|
47
|
+
export declare function readCommentDraft(key: string | null | undefined): StoredCommentDraft | undefined;
|
|
48
|
+
/** Merges `change` into the draft at `key`; a draft left with nothing in it is forgotten. */
|
|
49
|
+
export declare function writeCommentDraft(key: string | null | undefined, change: Partial<StoredCommentDraft>): void;
|
|
50
|
+
export declare function forgetCommentDraft(key: string | null | undefined): void;
|
|
51
|
+
/** Forgets every draft (tests). */
|
|
52
|
+
export declare function clearCommentDrafts(): void;
|
|
53
|
+
/** The files the host's composer held in the box at `key` when it went away, to attach again. */
|
|
54
|
+
export declare function readHostDraftFiles(key: string | null | undefined): readonly File[];
|
|
55
|
+
/** Keeps the files the host's composer holds in the box at `key`; none forgets them (sent, removed, dropped). */
|
|
56
|
+
export declare function writeHostDraftFiles(key: string | null | undefined, files: readonly File[]): void;
|
|
57
|
+
/** The draft key of one box under a controller's `draftScope`, or null when the controller keeps no drafts. */
|
|
58
|
+
export declare function commentDraftKey(scope: string | null | undefined, box: string): string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The text of a comment box, kept in the session store under `key` (null: kept in the box only). It comes back when
|
|
61
|
+
* the box mounts again, and follows `key` when the box moves to another draft.
|
|
62
|
+
*/
|
|
63
|
+
export declare function useCommentDraftText(key: string | null): [string, (value: string) => void];
|
|
@@ -56,6 +56,10 @@ export interface CommentRecord {
|
|
|
56
56
|
example: boolean;
|
|
57
57
|
createdAt: string | null;
|
|
58
58
|
attachments: CommentAttachment[];
|
|
59
|
+
/** A choice question's option its asker recommends: one of `options`, null when it names none. */
|
|
60
|
+
recommended?: string | null;
|
|
61
|
+
/** A choice question's line under an option, by option; an option without one is absent. */
|
|
62
|
+
optionDetails?: Readonly<Record<string, string>>;
|
|
59
63
|
/** When the author edited the text, from the Edited at column (null: never, or the table has no such column). */
|
|
60
64
|
editedAt?: string | null;
|
|
61
65
|
/** Seconds into a recording, for a comment in time mode. */
|
|
@@ -13,6 +13,27 @@ export declare const COMMENT_WORDS: Readonly<{
|
|
|
13
13
|
resolvedFilter: Words;
|
|
14
14
|
filter: Words;
|
|
15
15
|
filterLabel: Words;
|
|
16
|
+
waitingForYou: Words;
|
|
17
|
+
waitingCount: Words;
|
|
18
|
+
emptyWaiting: Words;
|
|
19
|
+
removeFilter: Words;
|
|
20
|
+
paneMore: Words;
|
|
21
|
+
markDone: Words;
|
|
22
|
+
threadMore: Words;
|
|
23
|
+
threadMoreNamed: Words;
|
|
24
|
+
replyMore: Words;
|
|
25
|
+
replyMoreNamed: Words;
|
|
26
|
+
changeWho: Words;
|
|
27
|
+
placeWholePage: Words;
|
|
28
|
+
placePoint: Words;
|
|
29
|
+
placePointOn: Words;
|
|
30
|
+
placeTime: Words;
|
|
31
|
+
recommended: Words;
|
|
32
|
+
otherOption: Words;
|
|
33
|
+
otherOptionHint: Words;
|
|
34
|
+
notis: Words;
|
|
35
|
+
toWho: Words;
|
|
36
|
+
discardComment: Words;
|
|
16
37
|
status: Words;
|
|
17
38
|
scope: Words;
|
|
18
39
|
copy: Words;
|
|
@@ -46,6 +67,7 @@ export declare const COMMENT_WORDS: Readonly<{
|
|
|
46
67
|
unarchived: Words;
|
|
47
68
|
delete: Words;
|
|
48
69
|
copyLink: Words;
|
|
70
|
+
showOnPage: Words;
|
|
49
71
|
linkCopied: Words;
|
|
50
72
|
linkCopyFailed: Words;
|
|
51
73
|
deleteThread: Words;
|
|
@@ -121,7 +143,6 @@ export declare const COMMENT_WORDS: Readonly<{
|
|
|
121
143
|
textChanged: Words;
|
|
122
144
|
textChangedHint: Words;
|
|
123
145
|
selectToComment: Words;
|
|
124
|
-
emptyPassages: Words;
|
|
125
146
|
inGroup: Words;
|
|
126
147
|
closeComments: Words;
|
|
127
148
|
readError: Words;
|
|
@@ -133,6 +154,7 @@ export declare const COMMENT_WORDS: Readonly<{
|
|
|
133
154
|
outsideAgentTitle: Words;
|
|
134
155
|
replyToWho: Words;
|
|
135
156
|
outsideUnread: Words;
|
|
157
|
+
outsideRead: Words;
|
|
136
158
|
agentHarness: Words;
|
|
137
159
|
goesToLoading: Words;
|
|
138
160
|
change: Words;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handing what a page's comments show from one mounted view to the view that takes its place.
|
|
3
|
+
*
|
|
4
|
+
* When a Space is published again the host mounts the new version beside the one on screen and swaps the two once the
|
|
5
|
+
* new one is ready. Comments do not depend on the page's version, so the reader's selected thread, filters, the new
|
|
6
|
+
* comment being placed and who it goes to must not go back to their defaults at the swap. That state is plain React
|
|
7
|
+
* state inside each view (`useComments`, `useCommentRouting`, `usePassageComments`, the pane's own key), so the host
|
|
8
|
+
* names each view with a token on its comments transport (`SpaceCommentsTransport.viewToken`) and, at the swap, calls
|
|
9
|
+
* `handOverCommentState(old, next)`: every hook of the new view takes the state of the hook with the same id in the
|
|
10
|
+
* old one. Hooks that mount a moment later (the host's own pane) take it as their first state, for a few seconds.
|
|
11
|
+
*
|
|
12
|
+
* Nothing here runs without a token: a pane on a host that names no view keeps its state to itself, as before.
|
|
13
|
+
*/
|
|
14
|
+
/** How long a hook that mounts after the swap still takes the old view's state as its own first state. */
|
|
15
|
+
export declare const COMMENT_HANDOVER_CLAIM_MS = 10000;
|
|
16
|
+
/** Copies the comment state of the view named `from` to the view named `to` (see the file's note). */
|
|
17
|
+
export declare function handOverCommentState(from: object, to: object): void;
|
|
18
|
+
/** The state handed to the view named `group` under `id` a moment ago, for a hook's first state; else undefined. */
|
|
19
|
+
export declare function inheritedCommentState<S>(group: object | null | undefined, id: string | null | undefined): S | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Lists the calling hook under `id` in the view named `group` while it is mounted: `take` reads its state for the
|
|
22
|
+
* view that replaces this one, `give` receives the state of the view this one replaces.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCommentHandover<S>(group: object | null | undefined, id: string | null | undefined, take: () => S, give: (state: S) => void): void;
|
|
25
|
+
/** The token the host names the calling view with (`SpaceCommentsTransport.viewToken`), or null. */
|
|
26
|
+
export declare function useCommentViewToken(): object | null;
|
|
27
|
+
/**
|
|
28
|
+
* The key the host draws a pane under (`usePaneOutlet`): its own, or the key of the pane it replaces when a new
|
|
29
|
+
* version of the view took the old one's place, so React keeps the pane's elements. `kind` tells a pane on pins from
|
|
30
|
+
* a pane on passages.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useHandedPaneKey(controller: {
|
|
33
|
+
draftScope: string;
|
|
34
|
+
}, kind: string): string;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a comment pane and the host panel around it share. The pane is SDK code drawn in the host Comments panel's
|
|
3
|
+
* shadow root (`hostComments`); the host (the Portal) owns the panel's frame. `@notis/sdk/ui` is one module instance
|
|
4
|
+
* for the host and every Space on the page (`runtimeModules`), so these stores are read on both sides.
|
|
5
|
+
*
|
|
6
|
+
* - Slots. The pane's one header row leaves `<slot name="lead">` and `<slot name="trail">` for the host's own
|
|
7
|
+
* Chat | Comments switch and close button, its list ends with `<slot name="after-list">`, and the selected card
|
|
8
|
+
* starts with `<slot name="run-bar">` (the pane's foot holds a second one, which shows the bar only while no card
|
|
9
|
+
* is selected: the first slot of a name in the tree takes the host's element). They are real shadow DOM slots: the
|
|
10
|
+
* host renders children of the shadow host with a `slot` attribute, which keep the host's styles and React tree. A
|
|
11
|
+
* pane drawn anywhere else leaves them empty.
|
|
12
|
+
* - Waiting for you. The host tells the pane which comment threads wait for the viewer, as the server counts them
|
|
13
|
+
* (`setWaitingCommentThreads`), so the pane's "Waiting for you" filter lists exactly what the host's numbers count,
|
|
14
|
+
* and the number on its switch (`setWaitingCommentCount`), which the Filter shows beside "Waiting for you".
|
|
15
|
+
* - Comment boxes. A new comment and a reply are written in the host's own composer (the chat box's parts: the pills,
|
|
16
|
+
* the / and @ menus, attach, Send). The pane asks for one (`useHostComposer`), which adds a slotted box to the shadow
|
|
17
|
+
* host; the host lists the requests (`subscribeHostComposers`) and draws its composer into each box, so the composer
|
|
18
|
+
* keeps the host's styles and React tree while it sits inside the card. Where no host draws composers the pane keeps
|
|
19
|
+
* its own plain text box.
|
|
20
|
+
*/
|
|
21
|
+
import { type RefObject } from 'react';
|
|
22
|
+
/** The slot names a pane leaves for its host. */
|
|
23
|
+
export declare const COMMENT_PANE_SLOTS: Readonly<{
|
|
24
|
+
/** The start of the header row: the host's Chat | Comments switch. */
|
|
25
|
+
readonly lead: 'lead';
|
|
26
|
+
/** The end of the header row: the host's close button. */
|
|
27
|
+
readonly trail: 'trail';
|
|
28
|
+
/** After the last card: where the review run says what follows this page. */
|
|
29
|
+
readonly afterList: 'after-list';
|
|
30
|
+
/** The top of the selected card, above its quoted words (the pane's foot while none is selected): the review run's bar. */
|
|
31
|
+
readonly runBar: 'run-bar';
|
|
32
|
+
}>;
|
|
33
|
+
/** The shadow host of the host Comments panel `element` draws in, or null (a card a Space lays out itself). */
|
|
34
|
+
export declare function commentsShadowHost(element: Element | null): HTMLElement | null;
|
|
35
|
+
/**
|
|
36
|
+
* The comment threads that wait for the viewer (their first comments' ids), as the server counts them: a mention, an
|
|
37
|
+
* agent's question, a reply in a thread they started or replied to. Null: not read (the pane then counts what it can
|
|
38
|
+
* see for itself, an agent's unanswered question).
|
|
39
|
+
*/
|
|
40
|
+
export declare function setWaitingCommentThreads(ids: readonly string[] | null): void;
|
|
41
|
+
export declare function waitingCommentThreads(): ReadonlySet<string> | null;
|
|
42
|
+
export declare function useWaitingCommentThreads(): ReadonlySet<string> | null;
|
|
43
|
+
/**
|
|
44
|
+
* The number the host shows on its Chat | Comments switch: what waits for the viewer in the Space on screen. The
|
|
45
|
+
* pane's Filter shows the same number beside "Waiting for you", so the two never disagree. Null: the host shows none
|
|
46
|
+
* (the pane then counts what waits on the page it lists).
|
|
47
|
+
*/
|
|
48
|
+
export declare function setWaitingCommentCount(count: number | null): void;
|
|
49
|
+
export declare function useWaitingCommentCount(): number | null;
|
|
50
|
+
/** Who a comment goes to, as the box's first pill says it. */
|
|
51
|
+
export interface HostComposerTo {
|
|
52
|
+
/** "To Deck polish", "To a new Claude thread", "To Velvet Margin Echo". */
|
|
53
|
+
label: string;
|
|
54
|
+
/** An agent outside Notis: the pill adds "outside Notis". */
|
|
55
|
+
outside: boolean;
|
|
56
|
+
outsideLabel: string;
|
|
57
|
+
/** The app or harness that runs it, for its logo. */
|
|
58
|
+
harness: string | null;
|
|
59
|
+
/** Opens the picker under `anchor`; true once something was picked. Absent: the pill only says where it goes. */
|
|
60
|
+
pick?: (anchor: HTMLElement) => Promise<boolean>;
|
|
61
|
+
pickLabel: string;
|
|
62
|
+
}
|
|
63
|
+
/** What the pane hands the host for one comment box. Read fresh by the host each time it draws. */
|
|
64
|
+
export interface HostComposerProps {
|
|
65
|
+
kind: 'new' | 'reply';
|
|
66
|
+
/** "Add a comment", "Reply to Claude". */
|
|
67
|
+
placeholder: string;
|
|
68
|
+
/** The box's accessible name ("New comment on Slide 2", "Reply to Claude"). */
|
|
69
|
+
label: string;
|
|
70
|
+
to: HostComposerTo | null;
|
|
71
|
+
/** The words a new text comment quotes. */
|
|
72
|
+
quote: string | null;
|
|
73
|
+
/** Where a new comment sits when it quotes nothing ("Point 1 on hero.png", "Whole page"). */
|
|
74
|
+
place: string | null;
|
|
75
|
+
/** The draft kept while the pane was away. */
|
|
76
|
+
initialText: string;
|
|
77
|
+
onText(text: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* The files the box held when it went away (another page and back, a save that failed): the host attaches them
|
|
80
|
+
* again, and says with `onFiles` each time what it holds, so the pane keeps them (`commentDrafts`).
|
|
81
|
+
*/
|
|
82
|
+
initialFiles: readonly File[];
|
|
83
|
+
onFiles(files: readonly File[]): void;
|
|
84
|
+
/** Sends the comment; the host's files upload first. True once saved. */
|
|
85
|
+
send(text: string, files: File[]): Promise<boolean>;
|
|
86
|
+
/** Drops a new comment (Escape in an empty box, the cross on a phone); a reply box folds back to its one line. */
|
|
87
|
+
dismiss(): void;
|
|
88
|
+
canWrite: boolean;
|
|
89
|
+
/** Whether files can be attached here. */
|
|
90
|
+
attach: boolean;
|
|
91
|
+
/** Goes up each time the pane asks for the caret in this box (Other on a question, a key). */
|
|
92
|
+
focusToken: number;
|
|
93
|
+
/** A new comment takes the caret as it opens; a reply box waits for a press. */
|
|
94
|
+
autoFocus: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface HostComposerRequest {
|
|
97
|
+
id: string;
|
|
98
|
+
/** The slotted element the host draws the composer in. */
|
|
99
|
+
box: HTMLElement;
|
|
100
|
+
props(): HostComposerProps;
|
|
101
|
+
}
|
|
102
|
+
export declare function subscribeHostComposers(listener: () => void): () => void;
|
|
103
|
+
/** The boxes the panes ask for now. The same array until one comes, goes or changes what it shows. */
|
|
104
|
+
export declare function listHostComposers(): readonly HostComposerRequest[];
|
|
105
|
+
/** The host says it draws comment boxes, until the returned call-back runs. */
|
|
106
|
+
export declare function registerHostComposerHost(): () => void;
|
|
107
|
+
export declare function hostComposerAvailable(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Asks the host for its composer at `marker` (an element of the pane, beside the `<slot>` the box shows in). Returns
|
|
110
|
+
* the slot's name once the box exists, or null when no host draws composers here (the pane then keeps its own text
|
|
111
|
+
* box). `watch` lists what the host draws from `props`: it draws again when one changes, never on each keystroke.
|
|
112
|
+
*/
|
|
113
|
+
export declare function useHostComposer(marker: RefObject<HTMLElement | null>, active: boolean, props: HostComposerProps, watch: readonly unknown[]): string | null;
|
|
@@ -9,4 +9,9 @@ export * from './usePassageComments';
|
|
|
9
9
|
export * from './PassageComments';
|
|
10
10
|
export { COMMENT_FOCUS_PARAM, useCommentFocusParam, useHostComments } from './hostComments';
|
|
11
11
|
export { useCommentRouting, type CommentRouting } from './useCommentRouting';
|
|
12
|
-
export type
|
|
12
|
+
export { commentGroupSlot, type CommentListOptions } from './paneParts';
|
|
13
|
+
export { COMMENT_PANE_SLOTS, hostComposerAvailable, listHostComposers, registerHostComposerHost, setWaitingCommentCount, setWaitingCommentThreads, subscribeHostComposers, useWaitingCommentThreads, waitingCommentThreads, type HostComposerProps, type HostComposerRequest, type HostComposerTo, } from './hostPanel';
|
|
14
|
+
export { REVIEW_RUN_TRAVEL_MS, cardComesIntoPlace, cardThatTookThePlace, emitReviewRunEvent, markReviewRunAnswered, publishReviewRunPane, reviewRunAnswered, reviewRunCommands, reviewRunHost, reviewRunPane, resetReviewRunAnswered, setReviewRunHost, subscribeReviewRunAnswered, subscribeReviewRunEvents, subscribeReviewRunHost, subscribeReviewRunPane, unmarkReviewRunAnswered, type ReviewRunEvent, type ReviewRunHost, type ReviewRunPaneState, type ReviewRunSheet, } from './reviewRun';
|
|
15
|
+
export { CommentPaneOutlet, registerPaneOutlet } from './paneOutlet';
|
|
16
|
+
export { handOverCommentState } from './handover';
|
|
17
|
+
export { flushCommentDrafts, keepCommentDraftsIn, type CommentDraftStorage } from './commentDrafts';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The comment pane drawn by the host, not by the Space view that owns its controller.
|
|
3
|
+
*
|
|
4
|
+
* A pane used to be a React portal from the Space view into the host Comments panel, so it was made again whenever
|
|
5
|
+
* the view was: a new published version of the page emptied the list, lost its scroll and closed the box being
|
|
6
|
+
* written in. Comments do not depend on the page's version. Where the host says it draws panes for the element it
|
|
7
|
+
* hands out (`registerPaneOutlet`), `CommentPane` and `PassageCommentPane` no longer portal: after each of their
|
|
8
|
+
* renders they hand the host what to draw (`usePaneOutlet`), and the host renders it in its own React tree
|
|
9
|
+
* (`CommentPaneOutlet`). When the view that owned the pane goes away, what it last handed over stays drawn until the
|
|
10
|
+
* view that replaces it hands over its own; with the same key (`handover`) React keeps every element of the pane: the
|
|
11
|
+
* cards, the list's scroll, an open reply box and its caret.
|
|
12
|
+
*
|
|
13
|
+
* A host that registers no outlet (a test, an older host) gets the portal as before.
|
|
14
|
+
*/
|
|
15
|
+
import { type ReactNode } from 'react';
|
|
16
|
+
/** How long a pane left behind by its view stays drawn while the pane that replaces it reads its comments. */
|
|
17
|
+
export declare const PANE_OUTLET_WAIT_MS = 2500;
|
|
18
|
+
/**
|
|
19
|
+
* The host says it draws the panes handed the element `target` (with `<CommentPaneOutlet target={target} />`), until
|
|
20
|
+
* the returned call-back runs. Call it before the element is handed to a source (`SpaceCommentSource.show`).
|
|
21
|
+
*/
|
|
22
|
+
export declare function registerPaneOutlet(target: HTMLElement): () => void;
|
|
23
|
+
/** Whether the host draws the panes handed `target`. */
|
|
24
|
+
export declare function paneOutletFor(target: HTMLElement | null): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Hands the host what the pane draws in `target`, after each render. True when the host draws it (the pane then
|
|
27
|
+
* renders nothing itself); false when no host outlet is registered for `target` and the pane must portal as before.
|
|
28
|
+
*/
|
|
29
|
+
export declare function usePaneOutlet(target: HTMLElement | null, key: string, node: ReactNode, ready: boolean): boolean;
|
|
30
|
+
/** Draws, in the host's own React tree, the pane handed the element `target` (see the file's note). */
|
|
31
|
+
export declare function CommentPaneOutlet({ target }: {
|
|
32
|
+
target: HTMLElement | null;
|
|
33
|
+
}): ReactNode;
|
|
@@ -1,26 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pieces both comment panes share (the pins pane `CommentPane` and the passage pane `PassageCommentPane`): the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Pieces both comment panes share (the pins pane `CommentPane` and the passage pane `PassageCommentPane`): the one
|
|
3
|
+
* header row (New comment, the filter with "Waiting for you" first, the "..." menu), the hint a mode shows, the To chip
|
|
4
|
+
* of a new comment, how a thread a comment goes to is named, the ordered and grouped list, and E / Shift+E.
|
|
5
5
|
*/
|
|
6
6
|
import React, { type ReactNode, type RefObject } from 'react';
|
|
7
7
|
import { type CommentAnchor, type CommentGroup, type CommentOrder, type CommentThread } from './commentModel';
|
|
8
8
|
import type { SpaceCommentThreadRef } from '../../space';
|
|
9
9
|
import type { CommentWordKey } from './commentWords';
|
|
10
10
|
import type { CommentMode } from './commentModel';
|
|
11
|
-
import type { CommentController
|
|
11
|
+
import type { CommentController } from './useComments';
|
|
12
12
|
export declare const COMMENT_MODE_ICON: Readonly<Record<CommentMode, string>>;
|
|
13
13
|
export declare const COMMENT_MODE_WORD: Readonly<Record<CommentMode, CommentWordKey>>;
|
|
14
|
-
|
|
15
|
-
export declare function CommentFilterMenu({ controller, counts }: {
|
|
14
|
+
export interface CommentPaneBarProps {
|
|
16
15
|
controller: CommentController;
|
|
17
|
-
/** The
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
/** The pane's root: Copy changes falls back to it when the clipboard needs an element. */
|
|
17
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
18
|
+
/** Shows Copy changes behind "...". Default true. */
|
|
19
|
+
showCopy?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* What waits for the viewer in this pane. Default: the controller's count for its anchor filter. In the host panel
|
|
22
|
+
* the host's own number replaces it (`setWaitingCommentCount`): what waits in the Space on screen.
|
|
23
|
+
*/
|
|
24
|
+
waitingCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* In a review run: what waits in the run's scope. The "Waiting for you" chip then reads "5 waiting" and counts down
|
|
27
|
+
* as the person goes (at none it reads "Waiting for you" again); a press on it shows every open comment again.
|
|
28
|
+
*/
|
|
29
|
+
runCount?: number | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The pane's one header row, the same on a phone and a computer: the host's Chat | Comments switch (`lead` slot), then
|
|
33
|
+
* New comment (+), Filter, the "..." menu of what the Space adds to its panel, then the host's close button (`trail`
|
|
34
|
+
* slot).
|
|
35
|
+
*
|
|
36
|
+
* - New comment starts the Space's one mode at once, or opens a menu of its modes, with "Comment on all of <item>"
|
|
37
|
+
* first on a page with items.
|
|
38
|
+
* - Filter holds both choices: which comment threads ("Waiting for you" first, the only one with a number, then Open,
|
|
39
|
+
* Done and All) and where (this item or all items, on a page with items). No totals.
|
|
40
|
+
* - A second row shows only while the filter is not the usual one (open threads, this item): one chip per choice that
|
|
41
|
+
* differs, and a press on it puts that choice back.
|
|
42
|
+
*/
|
|
43
|
+
export declare function CommentPaneBar({ controller, rootRef, showCopy, waitingCount: listed, runCount }: CommentPaneBarProps): React.JSX.Element;
|
|
24
44
|
/**
|
|
25
45
|
* What the tool bar says before a mode starts: the hint of the first mode that waits for you to point (no "Point at"
|
|
26
46
|
* on a Space without point mode), or nothing when every mode opens the box at once (time, page).
|
|
@@ -58,24 +78,9 @@ export declare function CommentToChip({ controller }: {
|
|
|
58
78
|
* mentions someone. `setValue` writes the box's text.
|
|
59
79
|
*/
|
|
60
80
|
export declare function useAtThreadPicker(controller: CommentController): (value: string, field: HTMLElement, setValue?: (value: string) => void) => string;
|
|
61
|
-
/**
|
|
62
|
-
* Whether a card shows its Thread line (CommentGoesTo renders one): the line that carries the thread's buttons under
|
|
63
|
-
* unified comments. Mirrors CommentGoesTo's own conditions, so the buttons fall back to the name line when it shows none.
|
|
64
|
-
*/
|
|
65
|
-
export declare function commentGoesToShows(controller: CommentController, thread: CommentThread): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* At the top of a comment thread's card, the thread that owns it: "Thread <title>" (its first linked thread), else
|
|
68
|
-
* "Goes to <best match>" or "Goes to a new thread", with Change, which opens the @ thread picker and links the pick
|
|
69
|
-
* (SPC-114). The signatures below it name only who wrote each comment. Nothing when the host does not link threads;
|
|
70
|
-
* "Goes to" and a quiet placeholder (no name, no Change) while where it goes is still being read.
|
|
71
|
-
*/
|
|
72
|
-
export declare function CommentGoesTo({ controller, thread }: {
|
|
73
|
-
controller: CommentController;
|
|
74
|
-
thread: CommentThread;
|
|
75
|
-
}): React.JSX.Element | null;
|
|
76
81
|
/** The name of the agent outside Notis a `claimed` ref names, as its comments sign it. */
|
|
77
82
|
export declare function commentOutsideName(ref: SpaceCommentThreadRef): string;
|
|
78
|
-
/** The agent outside Notis that holds this comment thread (SPC-535),
|
|
83
|
+
/** The agent outside Notis that holds this comment thread (SPC-535), else null. */
|
|
79
84
|
export declare function commentOutsideClaim(controller: CommentController, thread: CommentThread): SpaceCommentThreadRef | null;
|
|
80
85
|
/**
|
|
81
86
|
* SPC-536: whether the agent outside Notis that holds this thread has not read the person's latest word yet: someone
|
|
@@ -89,8 +94,6 @@ export declare function commentOutsideUnread(thread: CommentThread, claim: Space
|
|
|
89
94
|
* "3 items".
|
|
90
95
|
*/
|
|
91
96
|
export declare function commentItemNames(controller: Pick<CommentController, 'say'>, items: readonly CommentAnchor[], total?: number): string;
|
|
92
|
-
/** A thread's place, for the card meta line: a moment ("0:24") and the items it is on, named. */
|
|
93
|
-
export declare function commentPlaceMeta(controller: CommentController, thread: CommentThread): string[];
|
|
94
97
|
export interface CommentListOptions {
|
|
95
98
|
/**
|
|
96
99
|
* The order of the threads (SPC-116). Default 'newest': the newest thread first, by when its first comment was
|
|
@@ -103,13 +106,32 @@ export interface CommentListOptions {
|
|
|
103
106
|
* function to group your way (by slide, by time, by status), or false for a flat list.
|
|
104
107
|
*/
|
|
105
108
|
groupBy?: ((thread: CommentThread) => CommentGroup | null) | false;
|
|
109
|
+
/**
|
|
110
|
+
* 'always': a heading over every group, also when there is only one (a host that lists a part of a Space's comments
|
|
111
|
+
* names the page of each). Default 'auto': headings only when there is more than one group.
|
|
112
|
+
*/
|
|
113
|
+
groupHeadings?: 'auto' | 'always';
|
|
106
114
|
}
|
|
115
|
+
/** The slot a group's heading leaves for its host, after the group's name (Open the page). */
|
|
116
|
+
export declare function commentGroupSlot(groupKey: string): string;
|
|
107
117
|
/** The threads in order, under group headings when there is more than one group. */
|
|
108
|
-
export declare function CommentThreadList({ controller, threads, order, groupBy, children }: CommentListOptions & {
|
|
118
|
+
export declare function CommentThreadList({ controller, threads, order, groupBy, groupHeadings, children }: CommentListOptions & {
|
|
109
119
|
controller: CommentController;
|
|
110
120
|
threads: readonly CommentThread[];
|
|
111
121
|
children: (thread: CommentThread) => ReactNode;
|
|
112
122
|
}): React.JSX.Element;
|
|
123
|
+
/**
|
|
124
|
+
* The end of a list that has older Done threads left to read (`controller.hasMore`). It shows as one loading card.
|
|
125
|
+
* The next page is read when the end is in view and the reader moved the list since the last page (a wheel, a
|
|
126
|
+
* finger, a scroll key, the scroll bar), never page after page by itself: a card kept in view at the end of the list
|
|
127
|
+
* (the comment a link opened) would otherwise pull every page of the Space. A list too short to scroll reads on
|
|
128
|
+
* until it can. Where the browser cannot watch the end, the pages are read one after the other.
|
|
129
|
+
*/
|
|
130
|
+
export declare function CommentListMore({ controller }: {
|
|
131
|
+
controller: Pick<CommentController, 'say' | 'loadMore' | 'loadingMore'>;
|
|
132
|
+
/** @deprecated The end is watched against what the window shows, whatever box scrolls the list. */
|
|
133
|
+
scrollRef?: RefObject<HTMLElement | null>;
|
|
134
|
+
}): React.JSX.Element;
|
|
113
135
|
/**
|
|
114
136
|
* Scrolls the selected thread's card into view inside the pane's own scroller (C7): when a deep link or the page picks
|
|
115
137
|
* a thread (`threadKey`, and each `revealRequest`). While the panel is hidden (no height) or the card is not drawn
|