@estiva-app/ui 0.98.0 → 0.99.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/README.md +1 -1
- package/dist/AppProvider.d.ts +6 -3
- package/dist/AppProvider.d.ts.map +1 -1
- package/dist/ArchiveDialog.d.ts +35 -0
- package/dist/ArchiveDialog.d.ts.map +1 -0
- package/dist/AttachedCard.d.ts +13 -2
- package/dist/AttachedCard.d.ts.map +1 -1
- package/dist/Card.d.ts +6 -1
- package/dist/Card.d.ts.map +1 -1
- package/dist/ChipInput.d.ts +3 -1
- package/dist/ChipInput.d.ts.map +1 -1
- package/dist/CollapsibleSection.d.ts +27 -2
- package/dist/CollapsibleSection.d.ts.map +1 -1
- package/dist/CommentBox.d.ts +2 -2
- package/dist/CommentBox.d.ts.map +1 -1
- package/dist/ConfirmDialog.d.ts +15 -2
- package/dist/ConfirmDialog.d.ts.map +1 -1
- package/dist/ConversationCard.d.ts +6 -1
- package/dist/ConversationCard.d.ts.map +1 -1
- package/dist/ConversationLayout.d.ts +19 -4
- package/dist/ConversationLayout.d.ts.map +1 -1
- package/dist/ConversationPlace.d.ts +17 -0
- package/dist/ConversationPlace.d.ts.map +1 -0
- package/dist/DocumentEditor.d.ts +38 -0
- package/dist/DocumentEditor.d.ts.map +1 -1
- package/dist/DocumentField.d.ts +50 -0
- package/dist/DocumentField.d.ts.map +1 -0
- package/dist/EditableText.d.ts +38 -4
- package/dist/EditableText.d.ts.map +1 -1
- package/dist/EmptyState.d.ts +10 -5
- package/dist/EmptyState.d.ts.map +1 -1
- package/dist/FormDialog.d.ts +38 -0
- package/dist/FormDialog.d.ts.map +1 -0
- package/dist/InlineText.d.ts.map +1 -1
- package/dist/MoveDialog.d.ts +61 -0
- package/dist/MoveDialog.d.ts.map +1 -0
- package/dist/NavItem.d.ts +9 -2
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/NavTree.d.ts +16 -3
- package/dist/NavTree.d.ts.map +1 -1
- package/dist/PinnedComment.d.ts +3 -1
- package/dist/PinnedComment.d.ts.map +1 -1
- package/dist/ReactionHorizon.d.ts +5 -1
- package/dist/ReactionHorizon.d.ts.map +1 -1
- package/dist/ResolveDialog.d.ts +3 -1
- package/dist/ResolveDialog.d.ts.map +1 -1
- package/dist/SelectionToolbar.d.ts +2 -2
- package/dist/Thread.d.ts +6 -3
- package/dist/Thread.d.ts.map +1 -1
- package/dist/commentBoxFrame.d.ts.map +1 -1
- package/dist/conversation.examples.d.ts +4 -1
- package/dist/conversation.examples.d.ts.map +1 -1
- package/dist/conversationScroll.d.ts +80 -0
- package/dist/conversationScroll.d.ts.map +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +228 -69
- package/dist/editor.js.map +4 -4
- package/dist/eslint/index.js +2 -2
- package/dist/eslint/index.js.map +2 -2
- package/dist/eslint/no-field-outside-a-form.d.ts +2 -2
- package/dist/eslint/no-field-outside-a-form.d.ts.map +1 -1
- package/dist/eslint/no-native-title.d.ts +1 -1
- package/dist/eslint/no-native-title.d.ts.map +1 -1
- package/dist/formBusy.d.ts +5 -2
- package/dist/formBusy.d.ts.map +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2210 -1458
- package/dist/index.js.map +4 -4
- package/dist/looks.d.ts +8 -0
- package/dist/looks.d.ts.map +1 -1
- package/dist/seenOnScreen.d.ts +27 -0
- package/dist/seenOnScreen.d.ts.map +1 -0
- package/dist/showInConversation.d.ts +31 -0
- package/dist/showInConversation.d.ts.map +1 -0
- package/dist/threadCard.d.ts +13 -0
- package/dist/threadCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/registry.json +904 -139
- package/src/AppProvider.mdx +4 -0
- package/src/AppProvider.test.tsx +34 -2
- package/src/AppProvider.tsx +17 -6
- package/src/ArchiveDialog.mdx +70 -0
- package/src/ArchiveDialog.stories.tsx +64 -0
- package/src/ArchiveDialog.test.tsx +90 -0
- package/src/ArchiveDialog.tsx +70 -0
- package/src/AttachedCard.mdx +6 -0
- package/src/AttachedCard.stories.tsx +9 -1
- package/src/AttachedCard.test.tsx +111 -2
- package/src/AttachedCard.tsx +77 -7
- package/src/Card.mdx +20 -1
- package/src/Card.stories.tsx +20 -0
- package/src/Card.test.tsx +87 -1
- package/src/Card.tsx +51 -3
- package/src/ChipInput.mdx +7 -1
- package/src/ChipInput.stories.tsx +9 -0
- package/src/ChipInput.test.tsx +42 -0
- package/src/ChipInput.tsx +7 -3
- package/src/CollapsibleSection.mdx +20 -1
- package/src/CollapsibleSection.stories.tsx +19 -1
- package/src/CollapsibleSection.test.tsx +85 -2
- package/src/CollapsibleSection.tsx +54 -15
- package/src/CommentBox.mdx +2 -1
- package/src/CommentBox.test.tsx +81 -1
- package/src/CommentBox.tsx +32 -11
- package/src/ConfirmDialog.mdx +25 -3
- package/src/ConfirmDialog.stories.tsx +27 -0
- package/src/ConfirmDialog.test.tsx +87 -1
- package/src/ConfirmDialog.tsx +39 -8
- package/src/ConversationCard.mdx +4 -0
- package/src/ConversationCard.stories.tsx +11 -1
- package/src/ConversationCard.test.tsx +116 -0
- package/src/ConversationCard.tsx +53 -36
- package/src/ConversationLayout.mdx +30 -4
- package/src/ConversationLayout.scroll.test.tsx +411 -0
- package/src/ConversationLayout.stories.tsx +79 -1
- package/src/ConversationLayout.test.tsx +79 -0
- package/src/ConversationLayout.tsx +136 -15
- package/src/ConversationPlace.mdx +53 -0
- package/src/ConversationPlace.stories.tsx +48 -0
- package/src/ConversationPlace.test.tsx +51 -0
- package/src/ConversationPlace.tsx +30 -0
- package/src/DocumentEditor.mdx +2 -1
- package/src/DocumentEditor.tsx +118 -64
- package/src/DocumentField.mdx +83 -0
- package/src/DocumentField.stories.tsx +110 -0
- package/src/DocumentField.test.tsx +281 -0
- package/src/DocumentField.tsx +199 -0
- package/src/EditableText.buttons.test.tsx +318 -0
- package/src/EditableText.mdx +50 -2
- package/src/EditableText.stories.tsx +96 -2
- package/src/EditableText.tsx +189 -5
- package/src/EmptyState.mdx +33 -8
- package/src/EmptyState.stories.tsx +26 -1
- package/src/EmptyState.test.tsx +63 -2
- package/src/EmptyState.tsx +28 -6
- package/src/Form.mdx +3 -1
- package/src/FormDialog.mdx +78 -0
- package/src/FormDialog.stories.tsx +90 -0
- package/src/FormDialog.test.tsx +183 -0
- package/src/FormDialog.tsx +93 -0
- package/src/InlineText.mdx +1 -0
- package/src/InlineText.tsx +2 -1
- package/src/MoveDialog.mdx +74 -0
- package/src/MoveDialog.stories.tsx +121 -0
- package/src/MoveDialog.test.tsx +203 -0
- package/src/MoveDialog.tsx +183 -0
- package/src/NavItem.mdx +15 -0
- package/src/NavItem.stories.tsx +15 -0
- package/src/NavItem.test.tsx +64 -1
- package/src/NavItem.tsx +10 -2
- package/src/NavTree.mdx +26 -4
- package/src/NavTree.stories.tsx +59 -0
- package/src/NavTree.test.tsx +232 -2
- package/src/NavTree.tsx +93 -43
- package/src/PinnedComment.mdx +6 -1
- package/src/PinnedComment.stories.tsx +11 -1
- package/src/PinnedComment.tsx +15 -2
- package/src/ReactionHorizon.mdx +3 -0
- package/src/ReactionHorizon.stories.tsx +3 -0
- package/src/ReactionHorizon.test.tsx +55 -0
- package/src/ReactionHorizon.tsx +30 -11
- package/src/ReplyCard.mdx +3 -0
- package/src/ReplyCard.stories.tsx +19 -1
- package/src/ResolveDialog.mdx +2 -0
- package/src/ResolveDialog.test.tsx +21 -0
- package/src/ResolveDialog.tsx +11 -39
- package/src/SelectionToolbar.tsx +2 -2
- package/src/Textarea.mdx +1 -0
- package/src/Thread.mdx +18 -1
- package/src/Thread.stories.tsx +55 -3
- package/src/Thread.test.tsx +11 -0
- package/src/Thread.tsx +53 -11
- package/src/commentBoxFrame.tsx +2 -2
- package/src/conversation.examples.tsx +10 -2
- package/src/conversationScroll.ts +155 -0
- package/src/editor.ts +1 -0
- package/src/editorSelection.test.tsx +53 -0
- package/src/eslint/no-field-outside-a-form.test.ts +4 -0
- package/src/eslint/no-field-outside-a-form.ts +2 -2
- package/src/eslint/no-native-title.ts +1 -1
- package/src/formBusy.ts +5 -2
- package/src/index.ts +16 -6
- package/src/looks.ts +10 -0
- package/src/registry/registry.test.ts +12 -6
- package/src/seenOnScreen.test.tsx +182 -0
- package/src/seenOnScreen.ts +146 -0
- package/src/showInConversation.test.tsx +168 -0
- package/src/showInConversation.ts +93 -0
- package/src/threadCard.ts +16 -0
- package/stories/Choosing.mdx +7 -2
- package/tailwind-preset.js +7 -0
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ instead. There are seven — six block, one warns:
|
|
|
106
106
|
A look written once as an exported `…_CLASSES` constant counts as a look too.
|
|
107
107
|
- `estiva/no-field-outside-a-form` refuses a `Field`, `TextInput` or
|
|
108
108
|
`Textarea` with no `Form` around it in its file (the palette's
|
|
109
|
-
`CommandPaletteForm` is one), and names `Form`: without it nothing owns
|
|
109
|
+
`CommandPaletteForm` is one, and `FormDialog`), and names `Form`: without it nothing owns
|
|
110
110
|
sending the field. In a dialog that is `DialogShell` with a `Form`, never a
|
|
111
111
|
field inside `ConfirmDialog`. `EditableText` and `SearchInput` pass; a
|
|
112
112
|
component that draws fields for its caller's form says so with an escape.
|
package/dist/AppProvider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MouseEventHandler, type ReactNode } from 'react';
|
|
1
|
+
import { type MouseEvent, type MouseEventHandler, type ReactNode } from 'react';
|
|
2
2
|
export interface AppProviderProps {
|
|
3
3
|
/**
|
|
4
4
|
* Where this app keeps a person's picture. `Avatar` asks it, with the
|
|
@@ -32,10 +32,13 @@ type AppSetup = Omit<AppProviderProps, 'children'>;
|
|
|
32
32
|
export declare function AppProvider({ pictureFor, navigate, children }: AppProviderProps): import("react").JSX.Element;
|
|
33
33
|
/** The app's picture lookup, or nothing outside an `AppProvider`. */
|
|
34
34
|
export declare function usePictureFor(): AppSetup['pictureFor'];
|
|
35
|
+
/** Whether a click is a plain one, the browser's to follow in this tab: the main button, with no Ctrl, Cmd, Shift or Alt — what every link part checks before it keeps a click in the app. */
|
|
36
|
+
export declare function isPlainClick(event: Pick<MouseEvent, 'button' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'altKey'>): boolean;
|
|
35
37
|
/**
|
|
36
38
|
* A link's click, kept inside the app: the caller's own `onClick` first, then,
|
|
37
39
|
* on a plain left click to this app's own address, the app's `navigate` in
|
|
38
|
-
* place of a page load
|
|
40
|
+
* place of a page load — or `inPlace`, when the caller opens it its own way
|
|
41
|
+
* (`NavItem`'s `onPlainClick`), with or without a provider.
|
|
39
42
|
*
|
|
40
43
|
* A plain left click to another site's address — another app's file — opens
|
|
41
44
|
* it in a new tab that cannot reach back into this one, as "Open in …" does
|
|
@@ -47,6 +50,6 @@ export declare function usePictureFor(): AppSetup['pictureFor'];
|
|
|
47
50
|
* another scheme (`folder:`, `mailto:`). So an app that still passes its own
|
|
48
51
|
* router `onClick`, as Ship's `linkTo` does, is unchanged.
|
|
49
52
|
*/
|
|
50
|
-
export declare function useInAppClick<E extends HTMLElement>(href: string | undefined, onClick?: MouseEventHandler<E>): MouseEventHandler<E> | undefined;
|
|
53
|
+
export declare function useInAppClick<E extends HTMLElement>(href: string | undefined, onClick?: MouseEventHandler<E>, inPlace?: MouseEventHandler<E>): MouseEventHandler<E> | undefined;
|
|
51
54
|
export {};
|
|
52
55
|
//# sourceMappingURL=AppProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppProvider.d.ts","sourceRoot":"","sources":["../src/AppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AppProvider.d.ts","sourceRoot":"","sources":["../src/AppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,KAAK,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAIlD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAG/E;AAED,qEAAqE;AACrE,wBAAgB,aAAa,IAAI,QAAQ,CAAC,YAAY,CAAC,CAEtD;AAED,8LAA8L;AAC9L,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC,GAAG,OAAO,CAEvH;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CA+B/K"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The question asked before archiving a file or a Folder (FOL-46): what goes
|
|
3
|
+
* out of the lists with it, counted, and an optional resolution — Peek's
|
|
4
|
+
* ArchiveDialog, moved into the kit (C11, 2 November), whose sentences were
|
|
5
|
+
* already Ship's. The app passes its words: the apps it goes out of, and the
|
|
6
|
+
* last line, which says where an archived file waits in that app.
|
|
7
|
+
*
|
|
8
|
+
* A `FormDialog`, not a `ConfirmDialog` (1 October): it asks for a resolution,
|
|
9
|
+
* and a question with a field is a form. So Ctrl+Enter archives from the
|
|
10
|
+
* field, everything waits while it archives, and Escape or a press outside
|
|
11
|
+
* closes it. Archive hides and never deletes, so the button is not destructive.
|
|
12
|
+
*/
|
|
13
|
+
export interface ArchiveDialogProps {
|
|
14
|
+
/** The file's name, for the title. */
|
|
15
|
+
title: string;
|
|
16
|
+
/** What it is, in a word: "topic", "project", "issue", "folder". */
|
|
17
|
+
what: string;
|
|
18
|
+
/**
|
|
19
|
+
* What goes out of the lists with it, already counted and worded — "14
|
|
20
|
+
* issues". Empty: nothing else. `null` while it is still being counted: the
|
|
21
|
+
* dialog opens at once and says so, and Archive waits for the count.
|
|
22
|
+
*/
|
|
23
|
+
hides: readonly string[] | null;
|
|
24
|
+
/** What it lists that stays visible somewhere else, worded — "2 files also in Steer". */
|
|
25
|
+
staysVisible?: readonly string[];
|
|
26
|
+
/** The apps whose lists it goes out of, in the order to name them: `['Peek', 'Ship']` reads "in Peek and in Ship". */
|
|
27
|
+
apps: readonly string[];
|
|
28
|
+
/** The last line, in the app's words: that nothing is deleted, and how to get it back there. */
|
|
29
|
+
getBack: string;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
/** With the resolution, trimmed (`''` for none). Resolve `false` to keep the dialog open (you have said why). */
|
|
32
|
+
onArchive: (resolution: string) => Promise<boolean | void> | boolean | void;
|
|
33
|
+
}
|
|
34
|
+
export declare function ArchiveDialog({ title, what, hides, staysVisible, apps, getBack, onClose, onArchive }: ArchiveDialogProps): import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=ArchiveDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchiveDialog.d.ts","sourceRoot":"","sources":["../src/ArchiveDialog.tsx"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,yFAAyF;IACzF,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,sHAAsH;IACtH,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,gGAAgG;IAChG,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iHAAiH;IACjH,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;CAC5E;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,YAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,kBAAkB,+BA2B7H"}
|
package/dist/AttachedCard.d.ts
CHANGED
|
@@ -13,22 +13,33 @@
|
|
|
13
13
|
* so the box's ✕ is the one (Katerina, 30 Oct: no card in a card).
|
|
14
14
|
*/
|
|
15
15
|
import { type ReactNode } from 'react';
|
|
16
|
-
import type
|
|
16
|
+
import { type CardShapeMemory, type LinkState } from './linked';
|
|
17
17
|
interface AttachedCardBase {
|
|
18
18
|
/** Draws the ✕. Without it the card shows with none, as it does to anyone but the author. */
|
|
19
19
|
onRemove?: () => void;
|
|
20
20
|
}
|
|
21
|
+
/** Where a card's shape is kept between loads: the app's `cardShapeMemory`, and the card's id in it (its address). */
|
|
22
|
+
export interface AttachedCardMemory {
|
|
23
|
+
memory: CardShapeMemory;
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
21
26
|
/**
|
|
22
27
|
* The card is a `LinkCard` of `link`, or the app's own card as `children`: an
|
|
23
28
|
* app that draws a sent card itself draws the one in its box the same way.
|
|
24
29
|
*/
|
|
25
30
|
export type AttachedCardProps = AttachedCardBase & ({
|
|
26
31
|
link: LinkState;
|
|
32
|
+
/**
|
|
33
|
+
* Keeps its height while it loads: the card it draws is measured and noted in `memory` under `id`, and the
|
|
34
|
+
* next time it loads it holds that height and that shape, so nothing around it moves.
|
|
35
|
+
*/
|
|
36
|
+
remember?: AttachedCardMemory;
|
|
27
37
|
children?: never;
|
|
28
38
|
} | {
|
|
29
39
|
link?: never;
|
|
40
|
+
remember?: never;
|
|
30
41
|
children: ReactNode;
|
|
31
42
|
});
|
|
32
|
-
export declare function AttachedCard({ link, children, onRemove }: AttachedCardProps): import("react").JSX.Element;
|
|
43
|
+
export declare function AttachedCard({ link, children, onRemove, remember }: AttachedCardProps): import("react").JSX.Element;
|
|
33
44
|
export {};
|
|
34
45
|
//# sourceMappingURL=AttachedCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachedCard.d.ts","sourceRoot":"","sources":["../src/AttachedCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"AttachedCard.d.ts","sourceRoot":"","sources":["../src/AttachedCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAgD,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAA;AAGpG,OAAO,EAAkB,KAAK,eAAe,EAAE,KAAK,SAAS,EAAqB,MAAM,UAAU,CAAA;AAElG,UAAU,gBAAgB;IACxB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,sHAAsH;AACtH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,eAAe,CAAA;IACvB,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAC9C,CACI;IACE,IAAI,EAAE,SAAS,CAAA;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB,GACD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAC1D,CAAA;AA4CH,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BA8BrF"}
|
package/dist/Card.d.ts
CHANGED
|
@@ -56,7 +56,12 @@ export interface CardProps extends ComponentPropsWithRef<'div'> {
|
|
|
56
56
|
* runs edge to edge (UIG-9, 17 September; the apps passed `overflow-hidden`).
|
|
57
57
|
*/
|
|
58
58
|
clip?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Pressing the card opens what it stands for: a click anywhere on it but on what acts by itself inside it, and Enter
|
|
61
|
+
* or Space on the card itself, which is a Tab stop. Without `href`.
|
|
62
|
+
*/
|
|
63
|
+
onPress?: () => void;
|
|
59
64
|
children: ReactNode;
|
|
60
65
|
}
|
|
61
|
-
export declare function Card({ fill, href, hover, quietUntilHover, hovered, selected, active, attention, unreadable, clip, className, children, ...props }: CardProps): import("react").JSX.Element;
|
|
66
|
+
export declare function Card({ fill, href, hover, quietUntilHover, hovered, selected, active, attention, unreadable, clip, onPress, className, children, ...props }: CardProps): import("react").JSX.Element;
|
|
62
67
|
//# sourceMappingURL=Card.d.ts.map
|
package/dist/Card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAIxF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAA;AAChE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAA;AACpD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAA;AAkChD,MAAM,WAAW,SAAU,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IAC7D,gDAAgD;IAChD,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,6HAA6H;IAC7H,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qFAAqF;IACrF,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wGAAwG;IACxG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAoBD,wBAAgB,IAAI,CAAC,EACnB,IAAgB,EAChB,IAAI,EACJ,KAAkC,EAClC,eAAuB,EACvB,OAAe,EACf,QAAgB,EAChB,MAAc,EACd,SAAS,EACT,UAAkB,EAClB,IAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,SAAS,+BA6DX"}
|
package/dist/ChipInput.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export interface ChipInputProps<T extends ChipInputOption = ChipInputOption> {
|
|
|
92
92
|
'aria-label'?: string;
|
|
93
93
|
/** The id of what names the field on the page — a visible "To:", say. */
|
|
94
94
|
'aria-labelledby'?: string;
|
|
95
|
+
/** It holds one — an owner, an assignee: a later pick replaces the chosen one rather than adding a second. */
|
|
96
|
+
single?: boolean;
|
|
95
97
|
}
|
|
96
|
-
export declare function ChipInput<T extends ChipInputOption = ChipInputOption>({ value, onChange, options, placeholder, autoFocus, excludeIds, chipLeading, rowLeading, ...aria }: ChipInputProps<T>): import("react").JSX.Element;
|
|
98
|
+
export declare function ChipInput<T extends ChipInputOption = ChipInputOption>({ value, onChange, options, placeholder, autoFocus, excludeIds, chipLeading, rowLeading, single, ...aria }: ChipInputProps<T>): import("react").JSX.Element;
|
|
97
99
|
//# sourceMappingURL=ChipInput.d.ts.map
|
package/dist/ChipInput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipInput.d.ts","sourceRoot":"","sources":["../src/ChipInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAwB7E;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;6EAE6E;AAC7E,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BA0BvG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,M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,7 +44,8 @@ export interface CollapsibleSectionProps {
|
|
|
44
44
|
* The current item, when it sits in here: the section opens each time this
|
|
45
45
|
* names a new one, as a click would — remembered under `storageKey`, told to
|
|
46
46
|
* `onOpenChange`. Closed again by hand, it stays closed until another item
|
|
47
|
-
* opens.
|
|
47
|
+
* opens. Open already, by its default, it is left as it is: a default is
|
|
48
|
+
* never written down. `NavTree` passes it.
|
|
48
49
|
*/
|
|
49
50
|
openFor?: string;
|
|
50
51
|
/** 16px, before the title; the arrow takes its place on hover — `SectionHeader`'s. */
|
|
@@ -82,7 +83,31 @@ export interface CollapsibleSectionProps {
|
|
|
82
83
|
* would, each time it names a new item. An effect, not a render: opening tells
|
|
83
84
|
* the caller (`onOpenChange`), and a parent is never set while a child draws.
|
|
84
85
|
* Gone and back — the item opened, another elsewhere, then it again — is new.
|
|
86
|
+
*
|
|
87
|
+
* Only a shut one is opened: one open by its default stays a default, never
|
|
88
|
+
* written down, so it closes again once the item goes. `link` is different: a
|
|
89
|
+
* link to the section itself (`NavTree`'s `selectedGroup`), each new one
|
|
90
|
+
* opening it as a click would, open already or not — remembered open, told to
|
|
91
|
+
* the caller — so it stays open when the reader goes on elsewhere.
|
|
92
|
+
*/
|
|
93
|
+
export declare function useOpenFor(openFor: string | undefined, open: boolean, setOpen: (open: boolean) => void, link?: string): void;
|
|
94
|
+
/**
|
|
95
|
+
* Set by a `NavTreeSection` round its section while `NavTree`'s `selectedGroup`
|
|
96
|
+
* names it: the link that led to it, which opens it and is remembered (`useOpenFor`'s
|
|
97
|
+
* `link`). The kit's wiring between the two, not for an app.
|
|
98
|
+
*/
|
|
99
|
+
export declare const sectionLinked: import("react").Context<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Open or closed as this browser remembers it under `storageKey`, else `fallback`, for an app that must know before it draws what is inside — a fold whose rows are read only once it is open (Peek's Folders, FOL-21).
|
|
102
|
+
*
|
|
103
|
+
* The same memory as `CollapsibleSection`'s `storageKey`, in the same words,
|
|
104
|
+
* read once when it mounts: hand the pair to a section's `open` and
|
|
105
|
+
* `onOpenChange`. `fallback` decides until the person does, and stays live —
|
|
106
|
+
* a fold can spring open while it holds the current item and close again when
|
|
107
|
+
* it stops — and only a choice is written down, so a default never becomes a
|
|
108
|
+
* memory. No key: the choice is kept while mounted. A browser that blocks
|
|
109
|
+
* storage still gets a working fold; it forgets.
|
|
85
110
|
*/
|
|
86
|
-
export declare function
|
|
111
|
+
export declare function useRememberedOpen(storageKey: string | undefined, fallback: boolean): [open: boolean, setOpen: (next: boolean) => void];
|
|
87
112
|
export declare function CollapsibleSection({ title, defaultOpen, open: openProp, onOpenChange, pending, storageKey, openFor, icon, trailing, actions, menu, menuLabel, showActions, look, indent, children, className, contentClassName }: CollapsibleSectionProps): import("react").JSX.Element;
|
|
88
113
|
//# sourceMappingURL=CollapsibleSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../src/CollapsibleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../src/CollapsibleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG9F,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;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OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,IAAgB,EAAE,MAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,uBAAuB,+BAgC5R"}
|
package/dist/CommentBox.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export interface CommentBoxProps {
|
|
|
139
139
|
upload?: (file: File) => Promise<UploadAnswer>;
|
|
140
140
|
/** The file picker's `accept`. */
|
|
141
141
|
accept?: string;
|
|
142
|
-
/** The box cannot write here (an archived file, signed out): a line saying why takes its place. */
|
|
142
|
+
/** The box cannot write here (an archived file, signed out): a line saying why takes its place. Closed from the start, it builds no editor. */
|
|
143
143
|
closed?: {
|
|
144
144
|
reason: ReactNode;
|
|
145
145
|
};
|
|
@@ -173,5 +173,5 @@ export declare function keepCommentBoxWarm(app?: {
|
|
|
173
173
|
extensions?: readonly AnyExtension[];
|
|
174
174
|
referenceView?: ComponentType<ReferenceViewProps>;
|
|
175
175
|
}): void;
|
|
176
|
-
export declare function CommentBox(
|
|
176
|
+
export declare function CommentBox(props: CommentBoxProps): import("react").JSX.Element;
|
|
177
177
|
//# sourceMappingURL=CommentBox.d.ts.map
|
package/dist/CommentBox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentBox.d.ts","sourceRoot":"","sources":["../src/CommentBox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmF,KAAK,aAAa,EAAkB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC3J,OAAO,EAA4B,KAAK,YAAY,EAAsB,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AAIxD,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAKrE,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EAElB,MAAM,oBAAoB,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a,CAAC,kBAAkB,CAAC,CAAA;IACjD,qEAAqE;IACrE,UAAU,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IACpC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kGAAkG;IAClG,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3E,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,kJAAkJ;IAClJ,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAA;IACpC,mIAAmI;IACnI,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAOD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,EAAE,YAAY,CAAC,CAKtG,CAAA;AAiKD,4HAA4H;AAC5H,wBAAgB,kBAAkB,CAAC,GAAG,GAAE;IAAE,UAAU,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAA;CAAO,GAAG,IAAI,CAO9I;AAoED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAUhD"}
|
package/dist/ConfirmDialog.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonAction } from './Button';
|
|
2
3
|
/**
|
|
3
|
-
* A question with two answers, before something a person would want back —
|
|
4
|
+
* A question with two answers — three, with a safer `alternative` — before something a person would want back —
|
|
4
5
|
* Ship's ConfirmDialog (2026-09-01), verbatim. Its own comment always called
|
|
5
6
|
* it a package candidate: nothing here knows what is being confirmed.
|
|
6
7
|
*
|
|
@@ -14,6 +15,11 @@ import { type ReactNode } from 'react';
|
|
|
14
15
|
* closes it** (Katerina, D20): a destructive question is answered, not
|
|
15
16
|
* clicked away. Escape and the close button still cancel, as they did.
|
|
16
17
|
*/
|
|
18
|
+
/** A third answer: the safer one, with the sentence that says why. */
|
|
19
|
+
export interface ConfirmDialogAlternative extends ButtonAction {
|
|
20
|
+
/** The sentence above the button — "To take it out of every list and keep it readable, archive it instead." */
|
|
21
|
+
sentence: string;
|
|
22
|
+
}
|
|
17
23
|
export interface ConfirmDialogProps {
|
|
18
24
|
title: string;
|
|
19
25
|
/** The body — plain sentences, body-2. */
|
|
@@ -21,7 +27,14 @@ export interface ConfirmDialogProps {
|
|
|
21
27
|
confirmLabel: string;
|
|
22
28
|
destructive?: boolean;
|
|
23
29
|
onConfirm: () => Promise<boolean | void> | boolean | void;
|
|
30
|
+
/** Cancel, Escape, the ✕, and an action that went through: once, when it was closed while the action ran. */
|
|
24
31
|
onClose: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* A third, safer answer — "Archive instead" — drawn after the words, under
|
|
34
|
+
* its sentence, and switched off while the confirm runs (Peek's, 2 November).
|
|
35
|
+
* It closes nothing: what it opens takes this question's place.
|
|
36
|
+
*/
|
|
37
|
+
alternative?: ConfirmDialogAlternative;
|
|
25
38
|
}
|
|
26
|
-
export declare function ConfirmDialog({ title, children, confirmLabel, destructive, onConfirm, onClose }: ConfirmDialogProps): import("react").JSX.Element;
|
|
39
|
+
export declare function ConfirmDialog({ title, children, confirmLabel, destructive, onConfirm, onClose, alternative }: ConfirmDialogProps): import("react").JSX.Element;
|
|
27
40
|
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../src/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../src/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAGpD;;;;;;;;;;;;;;GAcG;AACH,sEAAsE;AACtE,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,+GAA+G;IAC/G,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;IACzD,6GAA6G;IAC7G,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAA;CACvC;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAmB,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,kBAAkB,+BAiDxI"}
|
|
@@ -13,6 +13,8 @@ export interface ConversationEntryProps {
|
|
|
13
13
|
author: ConversationPerson;
|
|
14
14
|
/** When it was written, in the app's words ("11:08 AM"). */
|
|
15
15
|
time: ReactNode;
|
|
16
|
+
/** When it was written, as a moment (ms since 1970): the time then says the exact date and time under the pointer. */
|
|
17
|
+
at?: number;
|
|
16
18
|
/** A link to it: the time is then the link, "Link to this", as a reply's is. */
|
|
17
19
|
timeHref?: string;
|
|
18
20
|
/** 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". */
|
|
@@ -93,7 +95,10 @@ export interface ConversationCardProps extends ConversationEntryProps {
|
|
|
93
95
|
/** A press on the card: its thread opens. */
|
|
94
96
|
onClick?: () => void;
|
|
95
97
|
}
|
|
96
|
-
export
|
|
98
|
+
export interface ReplyCardProps extends ConversationEntryProps {
|
|
99
|
+
/** Its id, on the card as `data-reply-id`: what a link to it shows (`showInConversation`), and what `Thread` watches to say it was seen. */
|
|
100
|
+
id?: string;
|
|
101
|
+
}
|
|
97
102
|
/**
|
|
98
103
|
* One comment: who, when, the words, files, cards, reactions, and the way into its replies, with the strip on hover
|
|
99
104
|
* and the ⋯ menu. Resolved, it says who resolved it and the note; nothing of it is hidden.
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"ConversationCard.d.ts","sourceRoot":"","sources":["../src/ConversationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAarF,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,sHAAsH;IACtH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0HAA0H;IAC1H,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAA;IAC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C,CAAA;IACzC,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,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,WAAW,cAAe,SAAQ,sBAAsB;IAC5D,4IAA4I;IAC5I,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AA8ID;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAgM5D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAiG9C"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { type ReactNode, type Ref, type UIEventHandler } from 'react';
|
|
2
|
+
import { type SeenOnScreen } from './seenOnScreen';
|
|
2
3
|
/** One comment in the list, and its thread when it is open. */
|
|
3
4
|
export interface ConversationItem {
|
|
4
5
|
id: string;
|
|
5
6
|
/** The comment: a `ConversationCard`. */
|
|
6
7
|
card: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Its thread: a `Thread` with the same `place` as the layout's `threads`, drawn while it is the open one. Give every
|
|
10
|
+
* comment one, even with no replies yet: a card without one cannot be opened. Or a function that draws it, called
|
|
11
|
+
* only while it is the open one: for an app that builds only the open thread.
|
|
12
|
+
*/
|
|
13
|
+
thread?: ReactNode | (() => ReactNode);
|
|
9
14
|
/** Resolved. In one column it waits under "Resolved", closed, at the end; in two columns it stays in its place. */
|
|
10
15
|
resolved?: boolean;
|
|
11
16
|
/** 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". */
|
|
@@ -21,6 +26,8 @@ export interface ConversationLayoutProps {
|
|
|
21
26
|
items: readonly ConversationItem[];
|
|
22
27
|
/** The id of the comment whose thread is open. */
|
|
23
28
|
open?: string;
|
|
29
|
+
/** Two columns: what the 384px column holds while no thread is open, the page's own panel beside its comments (an overview). Nothing: no column. */
|
|
30
|
+
aside?: ReactNode;
|
|
24
31
|
/**
|
|
25
32
|
* A comment asks to open or close its thread: a press anywhere on its card, its replies row, or Reply. In one column
|
|
26
33
|
* a second press closes it. The layout draws it open in place, with no jump, and puts the caret in its box; the app
|
|
@@ -39,10 +46,18 @@ export interface ConversationLayoutProps {
|
|
|
39
46
|
loading?: boolean;
|
|
40
47
|
/** What an empty conversation says: words, or the app's own `EmptyState` (a read that failed says so). `null`: nothing. */
|
|
41
48
|
empty?: ReactNode;
|
|
42
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Two columns: the conversation's own name in the app (its address). Where the reader left it is remembered by it in
|
|
51
|
+
* this tab, and going back to it lands there: at the newest if it was left there, else on the same comment. Without
|
|
52
|
+
* it, it opens at the newest each time it is drawn. `useLeftAt` with the same name says when it was left, for a "New" line.
|
|
53
|
+
*/
|
|
54
|
+
rememberAs?: string;
|
|
55
|
+
/** Two columns: the comments' scrolling box. Where it scrolls is the layout's: an app reads it, and keeps no place of its own in it. */
|
|
43
56
|
bodyRef?: Ref<HTMLDivElement>;
|
|
44
57
|
/** Two columns: the comments' box scrolled. */
|
|
45
58
|
onBodyScroll?: UIEventHandler<HTMLDivElement>;
|
|
59
|
+
/** What `useSeenOnScreen` made for this conversation: the layout watches its comments, and says in it which were seen. */
|
|
60
|
+
seen?: SeenOnScreen;
|
|
46
61
|
/** 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). */
|
|
47
62
|
header?: ReactNode;
|
|
48
63
|
/** 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`). */
|
|
@@ -58,5 +73,5 @@ export interface ConversationLayoutProps {
|
|
|
58
73
|
* 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
|
|
59
74
|
* every app (Katerina, 31 October). With two columns the thread runs the full height, beside the comments' header.
|
|
60
75
|
*/
|
|
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;
|
|
76
|
+
export declare function ConversationLayout({ threads, items, open, aside, onOpenChange, box, above, below, top, loading, empty, header, title, actions, rememberAs, bodyRef, onBodyScroll, seen, className, }: ConversationLayoutProps): import("react").JSX.Element;
|
|
62
77
|
//# 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,EAAuE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAgB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAYxJ,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIhE,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,IAAI,EAAE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,uIAAuI;IACvI,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wDAAwD;IACxD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAsJD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,KAAK,EACL,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,GAAG,EACH,KAAK,EACL,KAAK,EACL,GAAG,EACH,OAAe,EACf,KAA0B,EAC1B,MAAM,EACN,KAAkB,EAClB,OAAO,EACP,UAAU,EACV,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,SAAS,GACV,EAAE,uBAAuB,+BA4KzB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export interface ConversationPlaceProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
3
|
+
/** How the conversation is related to the page it is shown on, in the app's words: "Mentioned in". */
|
|
4
|
+
relation: string;
|
|
5
|
+
/** Where it was said: the place's name. Absent or empty while it resolves, and then nothing is drawn for it. */
|
|
6
|
+
place?: string;
|
|
7
|
+
/** The conversation, as the app draws it: its card. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Where a conversation shown away from its place was said: a chip saying how it is related ("Mentioned in"), the
|
|
12
|
+
* place's name beside it, and the conversation's card under them. Peek's Activity row (TopicActivity), moved, as it
|
|
13
|
+
* draws it: a place not named yet is drawn as nothing, never as a placeholder ("Loading…" beside a real message reads
|
|
14
|
+
* worse than a row that has not said where it is from yet).
|
|
15
|
+
*/
|
|
16
|
+
export declare function ConversationPlace({ relation, place, children, className, ...props }: ConversationPlaceProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=ConversationPlace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationPlace.d.ts","sourceRoot":"","sources":["../src/ConversationPlace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI7D,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5F,sGAAsG;IACtG,QAAQ,EAAE,MAAM,CAAA;IAChB,gHAAgH;IAChH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAU3G"}
|
package/dist/DocumentEditor.d.ts
CHANGED
|
@@ -136,4 +136,42 @@ export interface DocumentEditorProps {
|
|
|
136
136
|
* why: https://github.com/estiva-app/estiva-docs/blob/main/decisions/the-block-editor-kit-lives-in-protocol-and-ui.md
|
|
137
137
|
*/
|
|
138
138
|
export declare function DocumentEditor({ value, format, codec, onCommit, label, placeholder, readOnly, changedBy, onLeftUnsaved, hold, holdKey, references, mentions, linkChips, upload, readMarkdown, table, onCommentOnSelection, blockRows, referenceView, attachmentView, wrap, onEditor, extensions, }: DocumentEditorProps): import("react").JSX.Element;
|
|
139
|
+
/** What a document's editor is built from: the app's parts, and its latest handlers, read through `latest` (the editor is made once). */
|
|
140
|
+
export interface DocumentGrammar {
|
|
141
|
+
latest: {
|
|
142
|
+
current: {
|
|
143
|
+
references?: DocumentReferences;
|
|
144
|
+
mentions?: DocumentMentions;
|
|
145
|
+
upload?: unknown;
|
|
146
|
+
readMarkdown?: (text: string) => JSONContent | undefined;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
references?: DocumentReferences;
|
|
150
|
+
mentions?: DocumentMentions;
|
|
151
|
+
linkChips?: LinkChipsOptions;
|
|
152
|
+
/** `/` → Table. */
|
|
153
|
+
table: boolean;
|
|
154
|
+
/** `/` → Upload, and a pasted picture placed. */
|
|
155
|
+
upload: boolean;
|
|
156
|
+
/** Markdown pasted as plain text lands as blocks. */
|
|
157
|
+
readMarkdown: boolean;
|
|
158
|
+
/** The comment highlights. */
|
|
159
|
+
comments: boolean;
|
|
160
|
+
referenceView?: ComponentType<ReferenceViewProps>;
|
|
161
|
+
attachmentView?: ComponentType<AttachmentViewProps>;
|
|
162
|
+
/** Opens the file dialog, for `/` → Upload. */
|
|
163
|
+
pickFile: {
|
|
164
|
+
current: () => void;
|
|
165
|
+
};
|
|
166
|
+
/** Uploads and places pasted pictures. */
|
|
167
|
+
attach: {
|
|
168
|
+
current: (files: File[]) => Promise<void>;
|
|
169
|
+
};
|
|
170
|
+
extensions: readonly AnyExtension[];
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A document's grammar, one list for every editor of a document (`DocumentEditor`, `DocumentField`): the blocks, the
|
|
174
|
+
* marks, links where they sit, `/`, and `[` and `@` when the app gives them.
|
|
175
|
+
*/
|
|
176
|
+
export declare function documentExtensions({ latest, references, mentions, linkChips, table, upload, readMarkdown, comments, referenceView, attachmentView, pickFile, attach, extensions }: DocumentGrammar): AnyExtension[];
|
|
139
177
|
//# sourceMappingURL=DocumentEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentEditor.d.ts","sourceRoot":"","sources":["../src/DocumentEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACpG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,EAA4C,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AAGvG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAA6F,KAAK,mBAAmB,EAAE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SAAS,YAAY,EAAE,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,YAAY,EAAE,CAgEnN"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
import type { AnyExtension } from '@tiptap/core';
|
|
3
|
+
import { type JSONContent } from '@tiptap/react';
|
|
4
|
+
import type { AttachmentViewProps, ReferenceViewProps } from './BlockNodes';
|
|
5
|
+
import { type DocumentCodec, type DocumentMentions, type DocumentReferences } from './DocumentEditor';
|
|
6
|
+
import type { LinkChipsOptions } from './LinkChips';
|
|
7
|
+
export interface DocumentFieldProps {
|
|
8
|
+
/** What the field holds, in `format`; `''` when nothing is written. A value that is not its own edit coming back is loaded into it. */
|
|
9
|
+
value: string;
|
|
10
|
+
/** The format `value` is in, handed to `codec.read`. */
|
|
11
|
+
format: string;
|
|
12
|
+
/** How the app's text and the editor's document turn into each other: `DocumentEditor`'s. */
|
|
13
|
+
codec: DocumentCodec;
|
|
14
|
+
/** Every edit, as it is typed: the text and its format, or `''` once it is emptied or holds only spaces and blank lines. Nothing is saved: the form around it sends. */
|
|
15
|
+
onChange: (value: string, contentFormat: string | undefined) => void;
|
|
16
|
+
/** The editor's accessible name: the label of the `Field` around it. */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Muted words in the empty field. */
|
|
19
|
+
placeholder?: ReactNode;
|
|
20
|
+
/** `[` and `/` → File. */
|
|
21
|
+
references?: DocumentReferences;
|
|
22
|
+
/** `@` and `/` → Mention. */
|
|
23
|
+
mentions?: DocumentMentions;
|
|
24
|
+
/** A pasted app URL drawn as the chip of what it names (`LinkChips`). */
|
|
25
|
+
linkChips?: LinkChipsOptions;
|
|
26
|
+
/** Plain text pasted as the blocks it spells: the app's reader of markdown, as the editor's document. */
|
|
27
|
+
readMarkdown?: (text: string) => JSONContent | undefined;
|
|
28
|
+
/** Draws a link: the app's own, which resolves what it names. */
|
|
29
|
+
referenceView?: ComponentType<ReferenceViewProps>;
|
|
30
|
+
/** Draws a placed file: the app's own card. */
|
|
31
|
+
attachmentView?: ComponentType<AttachmentViewProps>;
|
|
32
|
+
/** More of the app's own extensions. */
|
|
33
|
+
extensions?: readonly AnyExtension[];
|
|
34
|
+
/** Set by a required `Field` around it, for a screen reader. */
|
|
35
|
+
'aria-required'?: boolean | 'true' | 'false';
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A form's field that holds a document: a description written in the form that files it. The document editor's
|
|
39
|
+
* grammar (`DocumentEditor`'s blocks, marks, `[`, `@` and `/`) in a field's box, as a Textarea's beside it. It is the
|
|
40
|
+
* form's: every edit goes back as it is typed, nothing is saved on leaving, Ctrl/Cmd+Enter sends the form, and while
|
|
41
|
+
* the form sends nothing can be written in it.
|
|
42
|
+
*
|
|
43
|
+
* **Told apart by everything it has handed back, not only the last** (Peek's `ProseField`, RIC-13). Keys pressed faster
|
|
44
|
+
* than React renders reach the editor before the value from the previous one comes back. Compared with the last edit
|
|
45
|
+
* alone, that older value looked like one from outside and was loaded over the newer text. A value this field wrote is
|
|
46
|
+
* never an outside value, however late it arrives; each is dropped once the value has shown it, so the queue holds only
|
|
47
|
+
* the edits still in flight. A queue, not a set: `a`, `ab`, `a` (a key and its Backspace) repeats a value.
|
|
48
|
+
*/
|
|
49
|
+
export declare function DocumentField({ value, format, codec, onChange, label, placeholder, references, mentions, linkChips, readMarkdown, referenceView, attachmentView, extensions, 'aria-required': required, }: DocumentFieldProps): import("react").JSX.Element;
|
|
50
|
+
//# sourceMappingURL=DocumentField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentField.d.ts","sourceRoot":"","s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