@estiva-app/ui 0.98.1 → 0.100.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 +4 -2
- 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 +12 -1
- package/dist/ConversationCard.d.ts.map +1 -1
- package/dist/ConversationLayout.d.ts +20 -5
- package/dist/ConversationLayout.d.ts.map +1 -1
- package/dist/ConversationMenu.d.ts +5 -1
- package/dist/ConversationMenu.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/Menu.d.ts +11 -3
- package/dist/Menu.d.ts.map +1 -1
- package/dist/MoveDialog.d.ts +64 -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 +3 -1
- package/dist/ReactionHorizon.d.ts.map +1 -1
- package/dist/RepliesRow.d.ts +5 -3
- package/dist/RepliesRow.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 +2242 -1471
- 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 +953 -126
- 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 +7 -0
- package/src/ConversationCard.states.test.tsx +67 -0
- package/src/ConversationCard.stories.tsx +27 -1
- package/src/ConversationCard.test.tsx +76 -0
- package/src/ConversationCard.tsx +65 -53
- package/src/ConversationLayout.mdx +34 -4
- package/src/ConversationLayout.scroll.test.tsx +411 -0
- package/src/ConversationLayout.stories.tsx +107 -1
- package/src/ConversationLayout.test.tsx +133 -0
- package/src/ConversationLayout.tsx +141 -16
- package/src/ConversationMenu.mdx +3 -0
- package/src/ConversationMenu.stories.tsx +12 -0
- package/src/ConversationMenu.test.tsx +17 -0
- package/src/ConversationMenu.tsx +7 -3
- 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/Menu.test.tsx +80 -0
- package/src/Menu.tsx +35 -14
- package/src/MenuItem.mdx +12 -0
- package/src/MenuItem.stories.tsx +39 -1
- package/src/MoveDialog.mdx +85 -0
- package/src/MoveDialog.stories.tsx +134 -0
- package/src/MoveDialog.test.tsx +239 -0
- package/src/MoveDialog.tsx +186 -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 +2 -0
- package/src/ReactionHorizon.stories.tsx +3 -0
- package/src/ReactionHorizon.test.tsx +32 -0
- package/src/ReactionHorizon.tsx +28 -11
- package/src/RepliesRow.mdx +6 -3
- package/src/RepliesRow.stories.tsx +3 -0
- package/src/RepliesRow.test.tsx +24 -0
- package/src/RepliesRow.tsx +12 -6
- package/src/ReplyCard.mdx +8 -0
- package/src/ReplyCard.stories.tsx +45 -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 +20 -1
- package/src/Thread.stories.tsx +94 -3
- package/src/Thread.test.tsx +11 -0
- package/src/Thread.tsx +56 -12
- 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 +241 -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 +8 -3
- package/tailwind-preset.js +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commentBoxFrame.d.ts","sourceRoot":"","sources":["../src/commentBoxFrame.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAiB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAA;AAQ1D,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAGjF;;;;;;;;GAQG;AAEH,+HAA+H;AAC/H,eAAO,MAAM,sBAAsB,
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H,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAc,EAAE,SAAS,EAAE,WAAW,EAAE,KAAa,EAAE,WAAW,EAAE,MAAM,EAAE,IAAW,EAAE,SAAS,EAAE,EAAE,aAAa,+BAkBrJ;AAED,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;OAGG;IACH,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAA;IAC1C,2FAA2F;IAC3F,WAAW,EAAE,SAAS,CAAA;IACtB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mEAAmE;IACnE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,qFAAqF;IACrF,SAAS,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;IACrE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,KAAa,EAAE,OAAe,EAAE,MAAc,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,YAAY,+BA8E9J"}
|
|
@@ -18,6 +18,8 @@ export declare const THREE: {
|
|
|
18
18
|
export declare const YOU: {
|
|
19
19
|
name: string;
|
|
20
20
|
};
|
|
21
|
+
/** A moment for a time's exact date under the pointer: 11:08 AM, on a placeholder day. */
|
|
22
|
+
export declare const AT: number;
|
|
21
23
|
export declare const WORDS = "A comment says what its author wrote. Its replies sit in the thread under it, and anyone here can react.";
|
|
22
24
|
export declare const SHORT = "A reply answers the comment above it.";
|
|
23
25
|
export declare const LONG = "A long comment keeps its whole text. It runs on for several lines so the card can be seen at its full height: the face and the name stay at the top, the words wrap under them, and the strip of actions stays in the top right corner while the card is pointed at. Nothing is cut, and the reactions and the replies row sit under the last line, as they do under a short one.";
|
|
@@ -41,9 +43,10 @@ export declare function EditBox({ text, done, refuse }: {
|
|
|
41
43
|
refuse?: boolean;
|
|
42
44
|
}): import("react").JSX.Element;
|
|
43
45
|
/** The box a reply or a comment is written in, with its tools as an app gives them: the paperclip. */
|
|
44
|
-
export declare function WriteBox({ label, closed }: {
|
|
46
|
+
export declare function WriteBox({ label, closed, onSend }: {
|
|
45
47
|
label?: string;
|
|
46
48
|
closed?: string;
|
|
49
|
+
onSend?: (words: string) => void;
|
|
47
50
|
}): import("react").JSX.Element;
|
|
48
51
|
/** A column's width: 384px, every app's right column. */
|
|
49
52
|
export declare function Column({ children }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.examples.d.ts","sourceRoot":"","sources":["../src/conversation.examples.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAShD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGpE,eAAO,MAAM,OAAO;;;GAMnB,CAAA;AAED,eAAO,MAAM,EAAE,OAAO,CAAA;AAEtB,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,WAA2B,CAAA;AAE5D,eAAO,MAAM,GAAG;;CAAyB,CAAA;AACzC,eAAO,MAAM,GAAG;;CAAyB,CAAA;AACzC,eAAO,MAAM,KAAK;;CAA2B,CAAA;AAC7C,eAAO,MAAM,GAAG;;CAAkB,CAAA;AAElC,eAAO,MAAM,KAAK,6GAA6G,CAAA;AAC/H,eAAO,MAAM,KAAK,0CAA0C,CAAA;AAC5D,eAAO,MAAM,IAAI,sXACoW,CAAA;AAErX,oDAAoD;AACpD,wBAAgB,OAAO,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
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Where a conversation scrolls, Peek's way, moved into the kit (C1 of the audit of 2 November): it opens at the newest
|
|
4
|
+
* comment, comes back to where the reader left it, follows what arrives only while the reader is at the bottom, goes
|
|
5
|
+
* down to the reader's own comment as it is sent, and holds still while cards and pictures fill in. ConversationLayout
|
|
6
|
+
* and Thread use it; nothing here is for an app to call but `useLeftAt`.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* How close to the bottom still counts as at the bottom. Not zero: `scrollHeight - scrollTop - clientHeight` is rarely
|
|
10
|
+
* exactly zero (display scaling, zoom and fractional pixel ratios leave a fraction while the last comment is squarely
|
|
11
|
+
* in view), and a strict check would make following work on one machine and not another. 80px is about one comment,
|
|
12
|
+
* so a glance at the line above still counts as watching. Peek's NEAR_BOTTOM_PX.
|
|
13
|
+
*/
|
|
14
|
+
export declare const NEAR_BOTTOM_PX = 80;
|
|
15
|
+
/** Whether the box is close enough to the bottom to follow what arrives. */
|
|
16
|
+
export declare function isNearBottom(el: HTMLElement): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The comment at the top of a conversation's view, and how far below the view's top it is: what "the same spot" means
|
|
19
|
+
* to the reader, whatever above it changed height.
|
|
20
|
+
*/
|
|
21
|
+
export declare function anchorIn(el: HTMLElement): {
|
|
22
|
+
id: string;
|
|
23
|
+
top: number;
|
|
24
|
+
} | undefined;
|
|
25
|
+
/** The card of the comment `id` in `el`: the first child of its `data-conversation-item`. */
|
|
26
|
+
export declare const cardIn: (el: HTMLElement, id: string) => Element | null;
|
|
27
|
+
/**
|
|
28
|
+
* Keeps a conversation where the reader is while what is in it changes size: a card, a chip or a picture filling in, a
|
|
29
|
+
* card shown or hidden (Peek's OPT-10).
|
|
30
|
+
*
|
|
31
|
+
* At the bottom (`atBottom`, the view's own judgement), it stays the same distance from the bottom, so the newest
|
|
32
|
+
* comments stay in view as a card above them loads. Anywhere else, the comment at the top of the view stays at the same
|
|
33
|
+
* height. Browsers that anchor scrolling themselves (Chromium, Firefox) do the second only for what changes above the
|
|
34
|
+
* view, and only roughly; Safari does neither, and a conversation there was pushed thousands of pixels off its bottom
|
|
35
|
+
* by one card.
|
|
36
|
+
*
|
|
37
|
+
* Only once `ready()` says the conversation has been placed: before that, where it lands is the view's to decide.
|
|
38
|
+
* Without `atBottom` (a thread), "at the bottom" is where the last scroll left it. `rebase()` takes it again from where
|
|
39
|
+
* the box is now, at the bottom: a thread that just went down to a new reply.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useSteadyScroll(scrollRef: RefObject<HTMLElement | null>, atBottom: RefObject<boolean> | undefined, ready: () => boolean, key: unknown, enabled: boolean): {
|
|
42
|
+
rebase: () => void;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Where each conversation was left in this tab (Peek's OPT-3), by the name the app gave it (`rememberAs`): at the
|
|
46
|
+
* bottom or at an offset, the comment at the top of the view and how far down it sat, and when (ms). Not per reader:
|
|
47
|
+
* it holds no words.
|
|
48
|
+
*/
|
|
49
|
+
export declare const places: Map<string, {
|
|
50
|
+
atBottom: boolean;
|
|
51
|
+
offset: number;
|
|
52
|
+
anchor?: {
|
|
53
|
+
id: string;
|
|
54
|
+
top: number;
|
|
55
|
+
};
|
|
56
|
+
leftAt: number;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* When the reader last left the conversation `key` (a `ConversationLayout`'s `rememberAs`) away from its newest
|
|
60
|
+
* comment, in ms since 1970: what an app draws its "New" line from, over the first comment written since. `null` when
|
|
61
|
+
* it was left at the newest, or not opened before in this tab. Taken once per visit, as the conversation opens: later
|
|
62
|
+
* scrolling moves the record, not the line.
|
|
63
|
+
*/
|
|
64
|
+
export declare function useLeftAt(key: string | null | undefined): number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Set by ConversationLayout round its own box, read by CommentBox: the reader's own comment brings them down to it as
|
|
67
|
+
* it is drawn, before the relay has answered (Peek's OPT-6), and a refusal leaves where they actually are to decide.
|
|
68
|
+
*/
|
|
69
|
+
export declare const sendsInLayout: import("react").Context<{
|
|
70
|
+
sending: () => void;
|
|
71
|
+
refused: () => void;
|
|
72
|
+
} | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Set by a Thread round its replies, counted by each ReplyCard as it is first drawn in it: a new reply, or another
|
|
75
|
+
* thread's replies, take the thread to its newest; a reply taken away (a delete) is never counted, and moves nothing.
|
|
76
|
+
*/
|
|
77
|
+
export declare const repliesDrawn: import("react").Context<{
|
|
78
|
+
added: number;
|
|
79
|
+
} | null>;
|
|
80
|
+
//# sourceMappingURL=conversationScroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversationScroll.d.ts","sourceRoot":"","sources":["../src/conversationScroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE1E;;;;;GAKG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,KAAK,CAAA;AAEhC,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,WAAW,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWjF;AAED,6FAA6F;AAC7F,eAAO,MAAM,MAAM,GAAI,IAAI,WAAW,EAAE,IAAI,MAAM,mBAAgG,CAAA;AAElJ;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EACxC,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,MAAM,OAAO,EACpB,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,OAAO,GACf;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAsDxB;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM;cAA+B,OAAO;YAAU,MAAM;aAAW;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;YAAU,MAAM;EAAK,CAAA;AAEpI;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAWvE;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa;aAA4B,MAAM,IAAI;aAAW,MAAM,IAAI;SAAgB,CAAA;AAErG;;;GAGG;AACH,eAAO,MAAM,YAAY;WAA0B,MAAM;SAAgB,CAAA"}
|
package/dist/editor.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { LinkChips, findLinkChips, refreshLinkChips, type LinkChipsOptions, type
|
|
|
24
24
|
export { LinkPlaces, linkPlaceAt, staysChip, type LinkPlace } from './LinkPlaces';
|
|
25
25
|
export { ReferenceMenu, ReferenceMenuView, isReferenceMenuOpen, referenceMenuClick, type ReferenceMenuViewProps } from './ReferenceMenu';
|
|
26
26
|
export { DocumentEditor, type DocumentEditorProps, type DocumentCodec, type DocumentReferences, type DocumentMentions, type HeldTyping, } from './DocumentEditor';
|
|
27
|
+
export { DocumentField, type DocumentFieldProps } from './DocumentField';
|
|
27
28
|
//# sourceMappingURL=editor.d.ts.map
|
package/dist/editor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAEnL,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,KAAK,eAAe,EACpB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AK,SAAS,EAAE,MAAM,cAAc,CAAA;AACjF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxI,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/editor.js
CHANGED
|
@@ -1583,8 +1583,11 @@ import { richTextClassName } from "@estiva-app/ui";
|
|
|
1583
1583
|
import { ScrollArea } from "@estiva-app/ui";
|
|
1584
1584
|
|
|
1585
1585
|
// src/looks.ts
|
|
1586
|
+
var FIELD_SHELL_CLASSES = "bg-bg-field border border-border-field shadow-field hover:border-border-strong group-hover/field:border-border-strong rounded-lg transition-colors";
|
|
1587
|
+
var FIELD_SHELL_FOCUS_CLASSES = "focus-within:border-border-focus focus-within:hover:border-border-focus group-hover/field:focus-within:border-border-focus signal:transition-shadow signal:focus-within:shadow-focus-ring";
|
|
1586
1588
|
var FLOATING_SURFACE_CLASSES = "rounded-lg border border-border-default bg-bg-elevated shadow-lg";
|
|
1587
1589
|
var WRITING_BOX_CLASSES = "relative bg-bg-field border border-border-field rounded-lg p-3 flex flex-col gap-4";
|
|
1590
|
+
var EDITOR_SELECTION_CLASSES = "selection:bg-bg-selected";
|
|
1588
1591
|
var BOX_HINT_CLASSES = "min-w-0 truncate select-none text-caption text-text-muted signal:font-mono signal:text-menu signal:font-normal signal:tracking-wider";
|
|
1589
1592
|
var WRITING_RING_CLASSES = "signal:transition-shadow signal:focus-within:border-border-focus signal:focus-within:shadow-focus-ring";
|
|
1590
1593
|
var LINK_UNDERLINE_CLASSES = "no-underline bg-[linear-gradient(currentColor,currentColor)] bg-[length:100%_1px] bg-bottom bg-no-repeat";
|
|
@@ -1592,7 +1595,7 @@ var WEB_LINK_CLASSES = `${LINK_UNDERLINE_CLASSES} before:content-[''] before:inl
|
|
|
1592
1595
|
|
|
1593
1596
|
// src/commentBoxFrame.tsx
|
|
1594
1597
|
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1595
|
-
var COMPOSE_EDITOR_CLASSES = richTextClassName("default", "outline-none w-full bg-transparent min-h-[20px] [&>p+p]:-mt-1");
|
|
1598
|
+
var COMPOSE_EDITOR_CLASSES = richTextClassName("default", cn("outline-none w-full bg-transparent min-h-[20px] [&>p+p]:-mt-1", EDITOR_SELECTION_CLASSES));
|
|
1596
1599
|
var COMPOSE_SCROLL_CLASSES = { area: "-mr-3", viewport: "max-h-[50vh]", content: "pr-3" };
|
|
1597
1600
|
var ComposeKeys = Extension6.create({
|
|
1598
1601
|
name: "composeKeys",
|
|
@@ -2276,6 +2279,7 @@ var PastedImages = Extension9.create({
|
|
|
2276
2279
|
// src/CommentBox.tsx
|
|
2277
2280
|
import { ToolbarButton as ToolbarButton2 } from "@estiva-app/ui";
|
|
2278
2281
|
import { caretOnOpen } from "@estiva-app/ui";
|
|
2282
|
+
import { sendsInLayout } from "@estiva-app/ui";
|
|
2279
2283
|
import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2280
2284
|
var ATTACH_EVENT = "commentbox:attach";
|
|
2281
2285
|
var askForFile = (editor) => editor.view.dom.dispatchEvent(new CustomEvent(ATTACH_EVENT, { bubbles: true }));
|
|
@@ -2436,7 +2440,20 @@ var holdsUrgent = (editor) => {
|
|
|
2436
2440
|
return found;
|
|
2437
2441
|
};
|
|
2438
2442
|
var fileCount = 0;
|
|
2439
|
-
function
|
|
2443
|
+
function ClosedLine({ reason, className }) {
|
|
2444
|
+
return /* @__PURE__ */ jsxs5(Card, { fill: "inset", className: cn2("flex items-start gap-3 px-4 py-3", className), children: [
|
|
2445
|
+
/* @__PURE__ */ jsx7(IconLock, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted", "aria-hidden": true }),
|
|
2446
|
+
/* @__PURE__ */ jsx7("p", { className: "text-body-2 text-text-secondary", children: reason })
|
|
2447
|
+
] });
|
|
2448
|
+
}
|
|
2449
|
+
function CommentBox(props) {
|
|
2450
|
+
const { closed, className } = props;
|
|
2451
|
+
const [built, setBuilt] = useState3(!closed);
|
|
2452
|
+
if (!closed && !built) setBuilt(true);
|
|
2453
|
+
if (closed && !built) return /* @__PURE__ */ jsx7(ClosedLine, { reason: closed.reason, className });
|
|
2454
|
+
return /* @__PURE__ */ jsx7(OpenCommentBox, { ...props });
|
|
2455
|
+
}
|
|
2456
|
+
function OpenCommentBox({
|
|
2440
2457
|
people,
|
|
2441
2458
|
references,
|
|
2442
2459
|
referencesChanged,
|
|
@@ -2576,8 +2593,10 @@ function CommentBox({
|
|
|
2576
2593
|
const uploading = files.some((f) => f.state === "uploading");
|
|
2577
2594
|
const failed = files.filter((f) => f.state === "failed").length;
|
|
2578
2595
|
const ready = files.some((f) => f.state === "ready");
|
|
2596
|
+
const layout = useContext(sendsInLayout);
|
|
2579
2597
|
const go = useCallback4(
|
|
2580
2598
|
(ed) => {
|
|
2599
|
+
layout?.sending();
|
|
2581
2600
|
const body = ed.getJSON();
|
|
2582
2601
|
const sent = files.filter((f) => f.state === "ready");
|
|
2583
2602
|
const sentUnder = underOf(body);
|
|
@@ -2590,6 +2609,7 @@ function CommentBox({
|
|
|
2590
2609
|
onSent?.(body, sent, sentUnder);
|
|
2591
2610
|
void answered(send(body, sent, sentUnder)).then((answer) => {
|
|
2592
2611
|
if (answer.accepted) return;
|
|
2612
|
+
layout?.refused();
|
|
2593
2613
|
onRefused?.();
|
|
2594
2614
|
if (ed.isDestroyed) {
|
|
2595
2615
|
draft?.write(body);
|
|
@@ -2608,6 +2628,7 @@ function CommentBox({
|
|
|
2608
2628
|
void answered(send(body, sent, sentUnder)).then((answer) => {
|
|
2609
2629
|
setSending(false);
|
|
2610
2630
|
if (!answer.accepted) {
|
|
2631
|
+
layout?.refused();
|
|
2611
2632
|
setRefused(answer.reason);
|
|
2612
2633
|
return;
|
|
2613
2634
|
}
|
|
@@ -2619,7 +2640,7 @@ function CommentBox({
|
|
|
2619
2640
|
});
|
|
2620
2641
|
return false;
|
|
2621
2642
|
},
|
|
2622
|
-
[files, removed, underOf, showsAtOnce, send, draft, onSent, onRefused]
|
|
2643
|
+
[files, removed, underOf, showsAtOnce, send, draft, onSent, onRefused, layout]
|
|
2623
2644
|
);
|
|
2624
2645
|
save.current = () => {
|
|
2625
2646
|
if (!editor || !edit || sending || uploading || failed > 0) return true;
|
|
@@ -2641,12 +2662,7 @@ function CommentBox({
|
|
|
2641
2662
|
storage.send = null;
|
|
2642
2663
|
};
|
|
2643
2664
|
}, [editor, edit]);
|
|
2644
|
-
if (closed) {
|
|
2645
|
-
return /* @__PURE__ */ jsxs5(Card, { fill: "inset", className: cn2("flex items-start gap-3 px-4 py-3", className), children: [
|
|
2646
|
-
/* @__PURE__ */ jsx7(IconLock, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted", "aria-hidden": true }),
|
|
2647
|
-
/* @__PURE__ */ jsx7("p", { className: "text-body-2 text-text-secondary", children: closed.reason })
|
|
2648
|
-
] });
|
|
2649
|
-
}
|
|
2665
|
+
if (closed) return /* @__PURE__ */ jsx7(ClosedLine, { reason: closed.reason, className });
|
|
2650
2666
|
const fileCards = files.length > 0 ? /* @__PURE__ */ jsx7(Fragment3, { children: files.map((f) => /* @__PURE__ */ jsx7(
|
|
2651
2667
|
AttachmentCard,
|
|
2652
2668
|
{
|
|
@@ -2798,7 +2814,7 @@ function InlineText({ value, placeholder, label, onCommit, onText, onEnter, vari
|
|
|
2798
2814
|
"aria-multiline": "false",
|
|
2799
2815
|
"aria-placeholder": placeholder,
|
|
2800
2816
|
...readOnly ? { "aria-readonly": "true" } : {},
|
|
2801
|
-
class: "outline-none"
|
|
2817
|
+
class: cn3("outline-none", EDITOR_SELECTION_CLASSES)
|
|
2802
2818
|
},
|
|
2803
2819
|
handleKeyDown: (view, event) => {
|
|
2804
2820
|
if (event.key === "Enter") {
|
|
@@ -3582,6 +3598,7 @@ import { EditorContent as EditorContent3, useEditor as useEditor2, useEditorStat
|
|
|
3582
3598
|
import { TableKit } from "@tiptap/extension-table";
|
|
3583
3599
|
import { IconMessagePlus } from "@tabler/icons-react";
|
|
3584
3600
|
import { Button as Button2 } from "@estiva-app/ui";
|
|
3601
|
+
import { cn as cn5 } from "@estiva-app/ui";
|
|
3585
3602
|
import { FieldLine as FieldLine2 } from "@estiva-app/ui";
|
|
3586
3603
|
import { FilePicker as FilePicker2 } from "@estiva-app/ui";
|
|
3587
3604
|
import { richTextClassName as richTextClassName2 } from "@estiva-app/ui";
|
|
@@ -3737,64 +3754,21 @@ function DocumentEditor({
|
|
|
3737
3754
|
attachTo.current = attach;
|
|
3738
3755
|
const editor = useEditor2(
|
|
3739
3756
|
{
|
|
3740
|
-
extensions:
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
TableKit.configure({ table: { resizable: false } }),
|
|
3756
|
-
BlockId,
|
|
3757
|
-
Checklist,
|
|
3758
|
-
Callout,
|
|
3759
|
-
// A link is being edited only while the caret is on its line: anywhere else on the page it previews on hover.
|
|
3760
|
-
ReferenceNode.configure({ view: referenceView ?? null, editingLine: true }),
|
|
3761
|
-
// A link's chip in a sentence, its row alone on its line, its card in the row's place (SPEC §13.3).
|
|
3762
|
-
LinkPlaces,
|
|
3763
|
-
// A click on a link offers Open, and alone on its line Show as Row or Card.
|
|
3764
|
-
ReferenceMenu,
|
|
3765
|
-
UnknownBlock,
|
|
3766
|
-
AttachmentNode.configure({ view: attachmentView ?? null }),
|
|
3767
|
-
SlashCommands.configure({ sections: slashSections({ table, upload: !!upload, pickFile }) }),
|
|
3768
|
-
...references ? [
|
|
3769
|
-
ReferenceTrigger.configure({
|
|
3770
|
-
items: () => [],
|
|
3771
|
-
sections: (query) => latest.current.references?.sections(query) ?? [],
|
|
3772
|
-
subscribe: (listener) => latest.current.references?.subscribe?.(listener) ?? (() => {
|
|
3773
|
-
}),
|
|
3774
|
-
nodeName: "reference",
|
|
3775
|
-
ariaLabel: references.ariaLabel,
|
|
3776
|
-
sectionLabel: references.sectionLabel,
|
|
3777
|
-
icon: references.icon ?? null
|
|
3778
|
-
})
|
|
3779
|
-
] : [],
|
|
3780
|
-
...mentions ? [PersonReference.configure({ people: () => latest.current.mentions?.people() ?? [], uriOf: (person) => latest.current.mentions?.uriOf(person) ?? null })] : [],
|
|
3781
|
-
...linkChips ? [LinkChips.configure(linkChips)] : [],
|
|
3782
|
-
...upload ? [
|
|
3783
|
-
// A pasted picture is placed as `/` File places one; text on the clipboard stays text.
|
|
3784
|
-
PastedImages.configure({
|
|
3785
|
-
onImages: (pasted) => {
|
|
3786
|
-
if (!latest.current.upload) return false;
|
|
3787
|
-
void attachTo.current(pasted);
|
|
3788
|
-
return true;
|
|
3789
|
-
}
|
|
3790
|
-
})
|
|
3791
|
-
] : [],
|
|
3792
|
-
// Markdown pasted as plain text lands as the blocks it spells, tables included.
|
|
3793
|
-
...readMarkdown ? [PastedMarkdown.configure({ read: (text) => latest.current.readMarkdown?.(text) })] : [],
|
|
3794
|
-
// Where each comment is, drawn as a decoration, so a save never carries it.
|
|
3795
|
-
...onCommentOnSelection ? [CommentHighlights] : [],
|
|
3796
|
-
...extensions
|
|
3797
|
-
],
|
|
3757
|
+
extensions: documentExtensions({
|
|
3758
|
+
latest,
|
|
3759
|
+
references,
|
|
3760
|
+
mentions,
|
|
3761
|
+
linkChips,
|
|
3762
|
+
table,
|
|
3763
|
+
upload: !!upload,
|
|
3764
|
+
readMarkdown: !!readMarkdown,
|
|
3765
|
+
comments: !!onCommentOnSelection,
|
|
3766
|
+
referenceView,
|
|
3767
|
+
attachmentView,
|
|
3768
|
+
pickFile,
|
|
3769
|
+
attach: attachTo,
|
|
3770
|
+
extensions
|
|
3771
|
+
}),
|
|
3798
3772
|
// Made once. A value coming back must not rebuild the editor under the caret; see the effect below.
|
|
3799
3773
|
content: held ?? codec.read(value, format),
|
|
3800
3774
|
editable: !readOnly,
|
|
@@ -3807,7 +3781,7 @@ function DocumentEditor({
|
|
|
3807
3781
|
tabindex: "0",
|
|
3808
3782
|
// A row or a card is its whole line (`LinkPlaces`), drawn on that line: a block inside it would push the
|
|
3809
3783
|
// separator and trailing break ProseMirror puts beside it onto empty lines of their own (code review).
|
|
3810
|
-
class: richTextClassName2("default", "outline-none [&_[data-link-place]]:inline-block [&_[data-link-place]]:w-full [&_[data-link-place]]:align-top")
|
|
3784
|
+
class: richTextClassName2("default", cn5("outline-none [&_[data-link-place]]:inline-block [&_[data-link-place]]:w-full [&_[data-link-place]]:align-top", EDITOR_SELECTION_CLASSES))
|
|
3811
3785
|
},
|
|
3812
3786
|
handleKeyDown: (view, event) => {
|
|
3813
3787
|
if (event.key !== "Escape") return false;
|
|
@@ -3907,6 +3881,66 @@ function DocumentEditor({
|
|
|
3907
3881
|
] });
|
|
3908
3882
|
return /* @__PURE__ */ jsx11(Fragment6, { children: wrap ? wrap(drawn, editor) : drawn });
|
|
3909
3883
|
}
|
|
3884
|
+
function documentExtensions({ latest, references, mentions, linkChips, table, upload, readMarkdown, comments, referenceView, attachmentView, pickFile, attach, extensions }) {
|
|
3885
|
+
return [
|
|
3886
|
+
DocumentKit.configure({
|
|
3887
|
+
strike: false,
|
|
3888
|
+
heading: { levels: [1, 2, 3] },
|
|
3889
|
+
dropcursor: blockDropCursor,
|
|
3890
|
+
codeBlock: false,
|
|
3891
|
+
// A link on words is made by pasting a URL over them or by the strip's Link, and opens on a click, as a bare
|
|
3892
|
+
// address does — through `BareLinks`, which opens only a followable address and never hands the tab this window;
|
|
3893
|
+
// Tiptap's own click opens without that. A bare address stays text: a link made on it by typing would change what is saved.
|
|
3894
|
+
link: { openOnClick: false, shouldAutoLink: () => false, HTMLAttributes: LINK_MARK_ATTRIBUTES }
|
|
3895
|
+
}),
|
|
3896
|
+
PasteOverWords,
|
|
3897
|
+
KeptSelection,
|
|
3898
|
+
BareLinks,
|
|
3899
|
+
CodeBlockColours,
|
|
3900
|
+
TableKit.configure({ table: { resizable: false } }),
|
|
3901
|
+
BlockId,
|
|
3902
|
+
Checklist,
|
|
3903
|
+
Callout,
|
|
3904
|
+
// A link is being edited only while the caret is on its line: anywhere else on the page it previews on hover.
|
|
3905
|
+
ReferenceNode.configure({ view: referenceView ?? null, editingLine: true }),
|
|
3906
|
+
// A link's chip in a sentence, its row alone on its line, its card in the row's place (SPEC §13.3).
|
|
3907
|
+
LinkPlaces,
|
|
3908
|
+
// A click on a link offers Open, and alone on its line Show as Row or Card.
|
|
3909
|
+
ReferenceMenu,
|
|
3910
|
+
UnknownBlock,
|
|
3911
|
+
AttachmentNode.configure({ view: attachmentView ?? null }),
|
|
3912
|
+
SlashCommands.configure({ sections: slashSections({ table, upload, pickFile }) }),
|
|
3913
|
+
...references ? [
|
|
3914
|
+
ReferenceTrigger.configure({
|
|
3915
|
+
items: () => [],
|
|
3916
|
+
sections: (query) => latest.current.references?.sections(query) ?? [],
|
|
3917
|
+
subscribe: (listener) => latest.current.references?.subscribe?.(listener) ?? (() => {
|
|
3918
|
+
}),
|
|
3919
|
+
nodeName: "reference",
|
|
3920
|
+
ariaLabel: references.ariaLabel,
|
|
3921
|
+
sectionLabel: references.sectionLabel,
|
|
3922
|
+
icon: references.icon ?? null
|
|
3923
|
+
})
|
|
3924
|
+
] : [],
|
|
3925
|
+
...mentions ? [PersonReference.configure({ people: () => latest.current.mentions?.people() ?? [], uriOf: (person) => latest.current.mentions?.uriOf(person) ?? null })] : [],
|
|
3926
|
+
...linkChips ? [LinkChips.configure(linkChips)] : [],
|
|
3927
|
+
...upload ? [
|
|
3928
|
+
// A pasted picture is placed as `/` File places one; text on the clipboard stays text.
|
|
3929
|
+
PastedImages.configure({
|
|
3930
|
+
onImages: (pasted) => {
|
|
3931
|
+
if (!latest.current.upload) return false;
|
|
3932
|
+
void attach.current(pasted);
|
|
3933
|
+
return true;
|
|
3934
|
+
}
|
|
3935
|
+
})
|
|
3936
|
+
] : [],
|
|
3937
|
+
// Markdown pasted as plain text lands as the blocks it spells, tables included.
|
|
3938
|
+
...readMarkdown ? [PastedMarkdown.configure({ read: (text) => latest.current.readMarkdown?.(text) })] : [],
|
|
3939
|
+
// Where each comment is, drawn as a decoration, so a save never carries it.
|
|
3940
|
+
...comments ? [CommentHighlights] : [],
|
|
3941
|
+
...extensions
|
|
3942
|
+
];
|
|
3943
|
+
}
|
|
3910
3944
|
function slashSections({ table, upload, pickFile }) {
|
|
3911
3945
|
const insert = [
|
|
3912
3946
|
// Three by three with a header row, as every app's Insert → Table makes it.
|
|
@@ -3918,6 +3952,130 @@ function slashSections({ table, upload, pickFile }) {
|
|
|
3918
3952
|
];
|
|
3919
3953
|
return [formatSection("block"), ...insert.length > 0 ? [{ label: "Insert", commands: insert }] : []];
|
|
3920
3954
|
}
|
|
3955
|
+
|
|
3956
|
+
// src/DocumentField.tsx
|
|
3957
|
+
import { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState7 } from "react";
|
|
3958
|
+
import { EditorContent as EditorContent4, useEditor as useEditor3, useEditorState as useEditorState3 } from "@tiptap/react";
|
|
3959
|
+
import { cn as cn6 } from "@estiva-app/ui";
|
|
3960
|
+
import { useFormBusy } from "@estiva-app/ui";
|
|
3961
|
+
import { richTextClassName as richTextClassName3 } from "@estiva-app/ui";
|
|
3962
|
+
import { Fragment as Fragment7, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3963
|
+
var NONE = [];
|
|
3964
|
+
var nothing = () => {
|
|
3965
|
+
};
|
|
3966
|
+
var isBlank = (editor) => {
|
|
3967
|
+
let blank = true;
|
|
3968
|
+
editor.state.doc.descendants((node) => {
|
|
3969
|
+
if (node.isText ? /\S/.test(node.text ?? "") : node.isLeaf && node.type.name !== "hardBreak") blank = false;
|
|
3970
|
+
return blank;
|
|
3971
|
+
});
|
|
3972
|
+
return blank;
|
|
3973
|
+
};
|
|
3974
|
+
function DocumentField({
|
|
3975
|
+
value,
|
|
3976
|
+
format,
|
|
3977
|
+
codec,
|
|
3978
|
+
onChange,
|
|
3979
|
+
label,
|
|
3980
|
+
placeholder,
|
|
3981
|
+
references,
|
|
3982
|
+
mentions,
|
|
3983
|
+
linkChips,
|
|
3984
|
+
readMarkdown,
|
|
3985
|
+
referenceView,
|
|
3986
|
+
attachmentView,
|
|
3987
|
+
extensions = NONE,
|
|
3988
|
+
"aria-required": required
|
|
3989
|
+
}) {
|
|
3990
|
+
const latest = useRef7({ value, format, codec, onChange, references, mentions, readMarkdown });
|
|
3991
|
+
useEffect8(() => {
|
|
3992
|
+
latest.current = { value, format, codec, onChange, references, mentions, readMarkdown };
|
|
3993
|
+
});
|
|
3994
|
+
const inFlight = useRef7([value]);
|
|
3995
|
+
const read = (text) => latest.current.codec.read(text, latest.current.format);
|
|
3996
|
+
const pickFile = useRef7(nothing);
|
|
3997
|
+
const attach = useRef7(async () => {
|
|
3998
|
+
});
|
|
3999
|
+
const [initial] = useState7(() => read(value));
|
|
4000
|
+
const editor = useEditor3(
|
|
4001
|
+
{
|
|
4002
|
+
extensions: documentExtensions({
|
|
4003
|
+
latest,
|
|
4004
|
+
references,
|
|
4005
|
+
mentions,
|
|
4006
|
+
linkChips,
|
|
4007
|
+
table: false,
|
|
4008
|
+
upload: false,
|
|
4009
|
+
readMarkdown: !!readMarkdown,
|
|
4010
|
+
comments: false,
|
|
4011
|
+
referenceView,
|
|
4012
|
+
attachmentView,
|
|
4013
|
+
pickFile,
|
|
4014
|
+
attach,
|
|
4015
|
+
extensions
|
|
4016
|
+
}),
|
|
4017
|
+
// Made once: a value coming back must not rebuild the editor under the caret; see the effect below.
|
|
4018
|
+
content: initial,
|
|
4019
|
+
editorProps: {
|
|
4020
|
+
attributes: {
|
|
4021
|
+
"aria-label": label,
|
|
4022
|
+
role: "textbox",
|
|
4023
|
+
"aria-multiline": "true",
|
|
4024
|
+
...required !== void 0 && required !== false ? { "aria-required": "true" } : {},
|
|
4025
|
+
// Three lines tall at rest, as a Textarea of three rows beside it. A row or a card is its whole line (`LinkPlaces`).
|
|
4026
|
+
// eslint-disable-next-line token-spacing/no-restricted-classes -- @estiva-escape: three lines of the field's own text (140% of 14px each), the height of a Textarea of three rows
|
|
4027
|
+
class: richTextClassName3("default", cn6("outline-none min-h-[4.2em] [&_[data-link-place]]:inline-block [&_[data-link-place]]:w-full [&_[data-link-place]]:align-top", EDITOR_SELECTION_CLASSES))
|
|
4028
|
+
},
|
|
4029
|
+
/*
|
|
4030
|
+
Ctrl/Cmd+Enter sends the form around it, as from any of its fields. The field asks the form itself: the
|
|
4031
|
+
editor marks every Enter it is given as handled (a browser's Enter would otherwise change the text), and the
|
|
4032
|
+
form leaves a handled key alone — measured in Chrome, the form never heard it. An open list keeps its keys.
|
|
4033
|
+
*/
|
|
4034
|
+
handleKeyDown: (view, event) => {
|
|
4035
|
+
if (event.key !== "Enter" || !(event.ctrlKey || event.metaKey) || event.altKey || event.shiftKey || isSuggestionOpen()) return false;
|
|
4036
|
+
const form = view.dom.closest("form");
|
|
4037
|
+
if (!form) return false;
|
|
4038
|
+
form.requestSubmit();
|
|
4039
|
+
return true;
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
onUpdate: ({ editor: ed }) => {
|
|
4043
|
+
const next = isBlank(ed) ? { value: "" } : latest.current.codec.write(ed.getJSON());
|
|
4044
|
+
inFlight.current.push(next.value);
|
|
4045
|
+
latest.current.onChange(next.value, next.contentFormat);
|
|
4046
|
+
}
|
|
4047
|
+
},
|
|
4048
|
+
[]
|
|
4049
|
+
);
|
|
4050
|
+
useEffect8(() => {
|
|
4051
|
+
if (!editor || editor.isDestroyed) return;
|
|
4052
|
+
const at = inFlight.current.indexOf(value);
|
|
4053
|
+
if (at !== -1) {
|
|
4054
|
+
inFlight.current = inFlight.current.slice(at + 1);
|
|
4055
|
+
return;
|
|
4056
|
+
}
|
|
4057
|
+
inFlight.current = [];
|
|
4058
|
+
editor.commands.setContent(read(value), { emitUpdate: false });
|
|
4059
|
+
}, [editor, value]);
|
|
4060
|
+
const busy = useFormBusy();
|
|
4061
|
+
useLayoutEffect2(() => {
|
|
4062
|
+
if (editor && !editor.isDestroyed && editor.isEditable === busy) editor.setEditable(!busy, false);
|
|
4063
|
+
}, [editor, busy]);
|
|
4064
|
+
const empty = useEditorState3({ editor, selector: ({ editor: ed }) => !ed || ed.isEmpty });
|
|
4065
|
+
const into = (event) => {
|
|
4066
|
+
if (event.target !== event.currentTarget || !editor) return;
|
|
4067
|
+
event.preventDefault();
|
|
4068
|
+
editor.commands.focus("end");
|
|
4069
|
+
};
|
|
4070
|
+
return /* @__PURE__ */ jsxs10(Fragment7, { children: [
|
|
4071
|
+
/* @__PURE__ */ jsxs10("div", { className: cn6(FIELD_SHELL_CLASSES, FIELD_SHELL_FOCUS_CLASSES, "relative cursor-text px-3 py-2"), onMouseDown: into, children: [
|
|
4072
|
+
/* @__PURE__ */ jsx12(EditorContent4, { editor }),
|
|
4073
|
+
empty && placeholder && /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "pointer-events-none absolute left-3 top-2 text-body-2 text-text-muted", children: placeholder })
|
|
4074
|
+
] }),
|
|
4075
|
+
/* @__PURE__ */ jsx12(SelectionToolbar, { editor, marks: ["bold", "italic", "underline", "code"], link: true }),
|
|
4076
|
+
/* @__PURE__ */ jsx12(ReferenceMenuView, { editor })
|
|
4077
|
+
] });
|
|
4078
|
+
}
|
|
3921
4079
|
export {
|
|
3922
4080
|
AttachmentNode,
|
|
3923
4081
|
BlockId,
|
|
@@ -3928,6 +4086,7 @@ export {
|
|
|
3928
4086
|
CommentBox,
|
|
3929
4087
|
CommentHighlights,
|
|
3930
4088
|
DocumentEditor,
|
|
4089
|
+
DocumentField,
|
|
3931
4090
|
EditorBlockHandle,
|
|
3932
4091
|
EditorTableControls,
|
|
3933
4092
|
FORMATS,
|