@estiva-app/ui 0.106.0 → 0.107.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estiva-app/ui",
3
- "version": "0.106.0",
3
+ "version": "0.107.0",
4
4
  "description": "Estiva's design tokens (the contract) and a small set of primitives (a convenience) for every Estiva app.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/registry.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "kind": "package",
5
5
  "repo": "estiva-ui",
6
6
  "package": "@estiva-app/ui",
7
- "packageVersion": "0.106.0",
8
- "exports": 245,
7
+ "packageVersion": "0.107.0",
8
+ "exports": 247,
9
9
  "typeExports": 254,
10
10
  "files": null
11
11
  },
@@ -2765,6 +2765,12 @@
2765
2765
  "required": false,
2766
2766
  "note": "Deleted: \"This comment was deleted.\", and its replies stay."
2767
2767
  },
2768
+ {
2769
+ "name": "unseen",
2770
+ "takes": "true/false",
2771
+ "required": false,
2772
+ "note": "Not read, and nothing says it was deleted (SPEC §6.5's \"not returned\"): \"This comment can't be shown.\", drawn as a deleted one is, and its replies stay (Miky, 6 November, ONE-9)."
2773
+ },
2768
2774
  {
2769
2775
  "name": "replies",
2770
2776
  "takes": "Omit<RepliesRowProps, 'urgent'>",
@@ -4738,6 +4744,44 @@
4738
4744
  "app": null,
4739
4745
  "looks": []
4740
4746
  },
4747
+ {
4748
+ "name": "GONE_CLOSED",
4749
+ "repo": "estiva-ui",
4750
+ "kind": "helper",
4751
+ "importPath": "@estiva-app/ui",
4752
+ "sourceFile": "src/PinnedComment.tsx",
4753
+ "purpose": "The box's `closed` under that thread, deleted or not shown, the same in every app: the line above already says why.",
4754
+ "purposeFrom": "comment",
4755
+ "props": [],
4756
+ "variants": [],
4757
+ "ownsBehaviours": [],
4758
+ "status": "stable",
4759
+ "migrationStage": null,
4760
+ "docsId": "conversation-pinnedcomment--docs",
4761
+ "storyId": "conversation-pinnedcomment--pinned",
4762
+ "docPage": null,
4763
+ "app": null,
4764
+ "looks": []
4765
+ },
4766
+ {
4767
+ "name": "goneWords",
4768
+ "repo": "estiva-ui",
4769
+ "kind": "helper",
4770
+ "importPath": "@estiva-app/ui",
4771
+ "sourceFile": "src/PinnedComment.tsx",
4772
+ "purpose": "What stands in a comment's place when it is gone: deleted, or not shown (SPEC §6.5).",
4773
+ "purposeFrom": "comment",
4774
+ "props": [],
4775
+ "variants": [],
4776
+ "ownsBehaviours": [],
4777
+ "status": "stable",
4778
+ "migrationStage": null,
4779
+ "docsId": "conversation-pinnedcomment--docs",
4780
+ "storyId": "conversation-pinnedcomment--pinned",
4781
+ "docPage": null,
4782
+ "app": null,
4783
+ "looks": []
4784
+ },
4741
4785
  {
4742
4786
  "name": "hueFor",
4743
4787
  "repo": "estiva-ui",
@@ -8233,6 +8277,12 @@
8233
8277
  "takes": "true/false",
8234
8278
  "required": false,
8235
8279
  "note": "It was deleted; its replies stay."
8280
+ },
8281
+ {
8282
+ "name": "unseen",
8283
+ "takes": "true/false",
8284
+ "required": false,
8285
+ "note": "It wasn't read, and nothing says it was deleted: \"This comment can't be shown.\", and its replies stay (ONE-9)."
8236
8286
  }
8237
8287
  ],
8238
8288
  "variants": [],
@@ -65,6 +65,7 @@ import { ConversationCard } from '@estiva-app/ui'
65
65
  - **A reaction answers**: `reactions.onToggle` returns the relay's answer, `{ accepted: false, reason }` with the reason as it came. The card says "Not reacted: *why*." under the reactions in `@estiva-app/conversation`'s plain words, until the next reaction on it or until it goes; only the latest reaction's answer is said. Hold no refusal of your own.
66
66
  - **A refusal is said only in the question it answered.** Keep it in your own state and never clear it: a question opened again says nothing until its own press is refused.
67
67
  - **Deleted** keeps its `about`: what it was on stays above "This comment was deleted.", for the replies under it.
68
+ - **Not shown** (`unseen`): a comment the read did not return, with no deletion by its author (SPEC §6.5). Drawn as **Deleted**, in its own words: "This comment can’t be shown." Never say it was deleted: it may only be outside the read.
68
69
  - `time` is your words for it ("11:08 AM"); `at` is the moment (ms), from which the card says the exact date and time on hover. Never a tooltip of your own round `time`.
69
70
  - A press on the card is `onClick` (its thread opens); a press on a button, a link or anything marked `data-interactive` inside it is not.
70
71
  - The strip shows while the card is pointed at or has focus, and holds while its reactions or its menu are open. A head long enough to reach it (a narrow card, a time in words, "(edited)") fades out 8px before it; nothing in the head moves.
@@ -96,6 +96,9 @@ export const DeletedOnAPart: Story = {
96
96
  render: (args) => <Live {...args} deleted about={<QuotedLine words="the words this comment was on" />} replies={{ count: 2, faces: [TWO, THREE], last: '11:40 AM' }} />,
97
97
  }
98
98
 
99
+ /** Not read, and nothing says it was deleted: drawn as a deleted one, never said to be deleted (SPEC §6.5, Miky, 6 November). */
100
+ export const NotShown: Story = { name: 'Not shown', render: (args) => <Live {...args} unseen replies={{ count: 1, faces: [TWO], last: '11:40 AM' }} /> }
101
+
99
102
  /** Pictures and files under the words. */
100
103
  export const WithFiles: Story = { name: 'Files', render: (args) => <Live {...args} files={<Files />} /> }
101
104
 
@@ -142,6 +142,28 @@ describe('ConversationCard', () => {
142
142
  expect(screen.getByText('3 replies')).toBeTruthy()
143
143
  })
144
144
 
145
+ // SPEC §6.5's "not returned" (Miky, 6 November): never said to be deleted, and closed as a deleted one is.
146
+ it('says a comment that was not read can’t be shown, never that it was deleted, and offers nothing on it', () => {
147
+ render(
148
+ <ConversationCard author={ONE} time="11:08 AM" unseen own onDelete={() => {}} onReply={() => {}} onResolve={() => {}} replies={{ count: 1 }}>
149
+ Words
150
+ </ConversationCard>,
151
+ )
152
+ expect(screen.getByText('This comment can’t be shown.')).toBeTruthy()
153
+ expect(screen.queryByText('This comment was deleted.')).toBeNull()
154
+ expect(screen.queryByText('Words')).toBeNull()
155
+ expect(screen.queryByRole('button', { name: 'More actions' })).toBeNull()
156
+ expect(screen.queryByRole('button', { name: /resolve/i })).toBeNull()
157
+ expect(screen.getByText('1 reply')).toBeTruthy()
158
+ })
159
+
160
+ it('a thread whose comment was not read pins "can’t be shown" above its replies, not the comment’s words', () => {
161
+ render(<PinnedComment author={ONE} time="Today at 11:08 AM" words="The comment" unseen />)
162
+ expect(screen.getByText('This comment can’t be shown.')).toBeTruthy()
163
+ expect(screen.queryByText('The comment')).toBeNull()
164
+ expect(screen.queryByText('This comment was deleted.')).toBeNull()
165
+ })
166
+
145
167
  // Leaf's column kept it, and now every app does (Katerina, 3 November): the replies still talk about that place.
146
168
  it('a deleted comment still says what it was on, above "This comment was deleted."', () => {
147
169
  render(
@@ -16,6 +16,7 @@ import { ReactionRow, type ReactionRowProps } from './ReactionRow'
16
16
  import { RepliesRow, type RepliesRowProps } from './RepliesRow'
17
17
  import { ResolveDialog } from './ResolveDialog'
18
18
  import { exactTime, InConversationItem, InThreadCard, momentOf, SHOWN_CLASSES, useFaceLine } from './threadCard'
19
+ import { goneWords } from './PinnedComment'
19
20
  import { ToolbarButton } from './Toolbar'
20
21
  import { WithTooltip } from './Tooltip'
21
22
  import { UnreadDot } from './UnreadDot'
@@ -96,6 +97,11 @@ export interface ConversationEntryProps {
96
97
  export interface ConversationCardProps extends ConversationEntryProps {
97
98
  /** Deleted: "This comment was deleted.", and its replies stay. */
98
99
  deleted?: boolean
100
+ /**
101
+ * Not read, and nothing says it was deleted (SPEC §6.5's "not returned"): "This comment can't be shown.", drawn as
102
+ * a deleted one is, and its replies stay (Miky, 6 November, ONE-9).
103
+ */
104
+ unseen?: boolean
99
105
  /** Its thread: how many replied, their faces, the last time, and whether one is new. Opening it is `onReply` or `onClick`. */
100
106
  replies?: Omit<RepliesRowProps, 'urgent'>
101
107
  /** Reply: offered on the strip. */
@@ -377,7 +383,9 @@ function useEditing(editing: boolean | undefined, onEditingChange: ((editing: bo
377
383
  * The same card in every app, each in its own colours (the record that makes one conversation). Peek's, moved.
378
384
  */
379
385
  export function ConversationCard(props: ConversationCardProps) {
380
- const { author, about, files, reactions, isNew = false, urgent = false, own = false, editor, deleted = false, replies, onReply, resolved, noun = 'comment', onResolve, resolveHint, resolveRefused, onReopen, selected, onClick, onDelete, deleteNote, deleteRefused, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = 'More actions', className, children } = props
386
+ const { author, about, files, reactions, isNew = false, urgent = false, own = false, editor, deleted: isDeleted = false, unseen = false, replies, onReply, resolved, noun = 'comment', onResolve, resolveHint, resolveRefused, onReopen, selected, onClick, onDelete, deleteNote, deleteRefused, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = 'More actions', className, children } = props
387
+ // Not shown is drawn as deleted, in its own words.
388
+ const deleted = isDeleted || unseen
381
389
  const readOnly = (props.readOnly ?? false) || deleted
382
390
  const inThreadCard = useContext(InThreadCard)
383
391
 
@@ -462,7 +470,7 @@ export function ConversationCard(props: ConversationCardProps) {
462
470
  {/* What it was on stays, where the words start: its replies still talk about that place (Leaf's; Katerina, 3 November: every app). */}
463
471
  {!!about && <div className="relative w-full pl-8 pr-2">{about}</div>}
464
472
  {/* 4px under it, as the words sit under it on a comment that is there. */}
465
- <p className={cn('w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted', !!about && 'pt-1')}>This comment was deleted.</p>
473
+ <p className={cn('w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted', !!about && 'pt-1')}>{goneWords(isDeleted)}</p>
466
474
  </>
467
475
  ) : (
468
476
  <>
@@ -16,18 +16,26 @@ export interface PinnedCommentProps {
16
16
  words: ReactNode
17
17
  /** It was deleted; its replies stay. */
18
18
  deleted?: boolean
19
+ /** It wasn't read, and nothing says it was deleted: "This comment can't be shown.", and its replies stay (ONE-9). */
20
+ unseen?: boolean
19
21
  }
20
22
 
23
+ /** What stands in a comment's place when it is gone: deleted, or not shown (SPEC §6.5). */
24
+ export const goneWords = (deleted: boolean) => (deleted ? 'This comment was deleted.' : 'This comment can’t be shown.')
25
+
26
+ /** The box's `closed` under that thread, deleted or not shown, the same in every app: the line above already says why. */
27
+ export const GONE_CLOSED = 'This thread takes no new replies.'
28
+
21
29
  /**
22
30
  * The comment a thread answers, pinned at the top of the replies column: who, when, and its first line, on a raised
23
31
  * card. Peek's pinned message, moved with the conversation.
24
32
  */
25
- export function PinnedComment({ author, time, at: given, words, deleted = false }: PinnedCommentProps) {
33
+ export function PinnedComment({ author, time, at: given, words, deleted = false, unseen = false }: PinnedCommentProps) {
26
34
  const at = momentOf(given)
27
35
  return (
28
36
  <Card fill="elevated" clip>
29
- {deleted ? (
30
- <p className="p-2 text-caption italic text-text-muted">This comment was deleted.</p>
37
+ {deleted || unseen ? (
38
+ <p className="p-2 text-caption italic text-text-muted">{goneWords(deleted)}</p>
31
39
  ) : (
32
40
  <div className="flex flex-col p-2">
33
41
  <div className="flex items-center gap-2">
@@ -6,6 +6,7 @@ import { ConversationCard, ReplyCard } from './ConversationCard'
6
6
  import { ConversationLayout } from './ConversationLayout'
7
7
  import { ONE, SHORT, SOME, THREE, TWO, WORDS, WriteBox, YOU, useReactions } from './conversation.examples'
8
8
  import { MembersPill } from './MembersPill'
9
+ import { GONE_CLOSED } from './PinnedComment'
9
10
  import { useSeenOnScreen } from './seenOnScreen'
10
11
  import { showInConversation } from './showInConversation'
11
12
  import { Thread } from './Thread'
@@ -154,7 +155,19 @@ export const StartDeleted: Story = {
154
155
  name: 'Comment deleted',
155
156
  render: () => (
156
157
  <Side>
157
- <Thread start={{ ...START, deleted: true }} onClose={() => {}} notice={<WriteBox closed="The comment was deleted, so its thread takes no new replies." />}>
158
+ <Thread start={{ ...START, deleted: true }} onClose={() => {}} notice={<WriteBox closed={GONE_CLOSED} />}>
159
+ <Replies />
160
+ </Thread>
161
+ </Side>
162
+ ),
163
+ }
164
+
165
+ /** The comment was not read, and nothing says it was deleted: its replies stay, and no new one can be written. */
166
+ export const StartNotShown: Story = {
167
+ name: 'Comment not shown',
168
+ render: () => (
169
+ <Side>
170
+ <Thread start={{ ...START, unseen: true }} onClose={() => {}} notice={<WriteBox closed={GONE_CLOSED} />}>
158
171
  <Replies />
159
172
  </Thread>
160
173
  </Side>
package/src/Thread.tsx CHANGED
@@ -163,7 +163,7 @@ export function Thread({
163
163
  >
164
164
  {start && (
165
165
  <div className={cn('px-4 pb-2 pt-4', SHOWN_CLASSES)} data-thread-start={start.id}>
166
- <PinnedComment author={start.author} time={start.time} at={start.at} words={start.words} deleted={start.deleted} />
166
+ <PinnedComment author={start.author} time={start.time} at={start.at} words={start.words} deleted={start.deleted} unseen={start.unseen} />
167
167
  </div>
168
168
  )}
169
169
  <Divider look="section" label="Replies" className="px-4 py-2" />
package/src/index.ts CHANGED
@@ -151,7 +151,7 @@ export { QuotedLine, type QuotedLineProps } from './QuotedLine'
151
151
  export { ReactionHorizon, type ReactionHorizonProps } from './ReactionHorizon'
152
152
  export { RepliesRow, type RepliesRowProps } from './RepliesRow'
153
153
  export { ResolveDialog, type ResolveDialogProps } from './ResolveDialog'
154
- export { PinnedComment, type PinnedCommentProps } from './PinnedComment'
154
+ export { PinnedComment, goneWords, GONE_CLOSED, type PinnedCommentProps } from './PinnedComment'
155
155
  export { ArchiveDialog, type ArchiveDialogProps } from './ArchiveDialog'
156
156
  export { ArchivedNotice, type ArchivedNoticeProps } from './ArchivedNotice'
157
157
  export { DeletedNotice, type DeletedNoticeProps } from './DeletedNotice'
@@ -48,20 +48,20 @@ describe('the registry builds', () => {
48
48
  expect(registry.entries.map((one) => one.name).sort()).toEqual(values.map((one) => one.name).sort())
49
49
  })
50
50
 
51
- it('counts 245 names over 125 files: 162 components, 76 helpers and 7 hooks (DeletedNotice and NoAccessNotice, the cards on a deleted file and on one you cannot open (ALO-4), on 3 November; useFormBusy, whether a Form around it is sending, read by the editor’s DocumentField from the main entry, in the review of 2 November; useLeftAt, sendsInLayout, useSeenOnScreen, showInConversation and showInConversationWhenDrawn, where a conversation scrolls, what was seen and a link landing on a comment, moved from Peek for every app, on 2 November; useRememberedOpen, the fold a section remembers, read by the app, and NAV_TREE_PENDING_MS and isPlainClick, Peek’s Folder timer and plain-click check, moved in, on 2 November; FormDialog, MoveDialog and ArchiveDialog, the dialogs Peek wired by hand, on 2 November; ConversationPlace, the line saying where a comment was said, and DocumentField, a rich-text field of a form, moved from Peek, on 2 November; ArchivedNotice, the card on an archived file, from Peek, Ship and Leaf, on 31 October; caretOnOpen, the box at a thread’s foot taking the caret when a ConversationLayout opens it, without scrolling, on 31 October; the conversation from Peek for every app, with PageHeader and PinnedComment, on 31 October, and ResolutionNote and ResolutionHistory gone with the resolved looks not picked, on 1 November; useSidebarFold, a folded sidebar kept folded in every app, on 31 October; cardShapeMemory, a card’s last shape on this device, lifted from Peek and Ship for Leaf, and ReferenceCards and useReferenceCards gone with their deprecated page, in the widget review, on 30 October; inTheBox, a card or part in a box being written in, on the files’ fill and in words, on 29 October; archivedLine, the line on an archived file in every app (PEEKM-2), on 23 October; keepCommentBoxWarm, a box built ahead, exported as 0.84.0 promised (PEEKM-1), on 21 October;linkedFrom and linkStateFrom, one card for a file in every app (5ebf2756), on 21 October; ComposeBox, ComposeKeys and COMPOSE_EDITOR_CLASSES gone into CommentBox’s own frame (one box), on 21 October; LinkPlaces with linkPlaceAt and staysChip, a link in a document drawn where it sits (WBD-4), on 20 October; DocumentEditor, one document editor for every app, and PersonReference, `@` in a document (WBD-3), on 20 October; toggleTableHeaderRow, a table’s header row on and off (LEAF-12), on 19 October;EntryShell, the screen while nobody is signed in, moved from Peek (AUT-3), on 17 October; CommentBox with commentBoxRows, and ReactionRow with AddReactionButton and whoReacted, the shared comment box and reaction row (COMM-2), on 17 October; the link widgets — LinkChip, LinkRow, LinkCard, CardUnder, PartCard, LinkPreview and their parts, with useCanHover, chosenOf, loadingShapeOf and unavailableMemory — from the Widgets 2 prototype, on 16 October; InlineText, a title or the line under it edited where it stands (SUM-4), on 16 October; ComposeBox with ComposeKeys and its classes, CommentHighlights with its five helpers, and keepSelection and releaseSelection, from the Leaf prototype (LEAF-4), on 16 October;NavTree, NavTreeSection, the composer triggers and UnreadDot joined on 2 October; BlockHandle and EditorBlockHandle (RIC-18) on 2 October, moveBlock and blockDropCursor, the drop in the gutter, on 5 October, MembersPill and MembersDialog, moved from Peek (SHI-31), on 6 October, ShowMore on 7 October, AppProvider on 8 October, and KindIcon, thingKindOf and PastedImages with its two helpers, moved from Peek, on 8 October; CodeBlockColours, the coloured code block of the editor, on 9 October; Checklist, Callout, isChecklistTick and calloutLook (RIC-19) on 13 October; EditorTableControls and its four actions (RIC-21) on 13 October; ReferenceCards, useReferenceCards and its three helpers, the card a chip in a document asks for, on 14 October; LinkChips and its two helpers, a URL in a document read as its chip, on 14 October; ReferenceMenu, ReferenceMenuView and three helpers, the menu of a chip while writing, on 14 October; PastedMarkdown, markdown pasted as the blocks it spells (LEAF-10), on 15 October; turnIntoRows, turnListInto and turnQuoteInto, the block menu’s Turn into for a list and a quote (LEAF-11), on 15 October)', () => {
51
+ it('counts 247 names over 125 files: 162 components, 78 helpers and 7 hooks (goneWords and GONE_CLOSED, what stands in a gone comment’s place and under its thread in every app (ONE-9), on 6 November; DeletedNotice and NoAccessNotice, the cards on a deleted file and on one you cannot open (ALO-4), on 3 November; useFormBusy, whether a Form around it is sending, read by the editor’s DocumentField from the main entry, in the review of 2 November; useLeftAt, sendsInLayout, useSeenOnScreen, showInConversation and showInConversationWhenDrawn, where a conversation scrolls, what was seen and a link landing on a comment, moved from Peek for every app, on 2 November; useRememberedOpen, the fold a section remembers, read by the app, and NAV_TREE_PENDING_MS and isPlainClick, Peek’s Folder timer and plain-click check, moved in, on 2 November; FormDialog, MoveDialog and ArchiveDialog, the dialogs Peek wired by hand, on 2 November; ConversationPlace, the line saying where a comment was said, and DocumentField, a rich-text field of a form, moved from Peek, on 2 November; ArchivedNotice, the card on an archived file, from Peek, Ship and Leaf, on 31 October; caretOnOpen, the box at a thread’s foot taking the caret when a ConversationLayout opens it, without scrolling, on 31 October; the conversation from Peek for every app, with PageHeader and PinnedComment, on 31 October, and ResolutionNote and ResolutionHistory gone with the resolved looks not picked, on 1 November; useSidebarFold, a folded sidebar kept folded in every app, on 31 October; cardShapeMemory, a card’s last shape on this device, lifted from Peek and Ship for Leaf, and ReferenceCards and useReferenceCards gone with their deprecated page, in the widget review, on 30 October; inTheBox, a card or part in a box being written in, on the files’ fill and in words, on 29 October; archivedLine, the line on an archived file in every app (PEEKM-2), on 23 October; keepCommentBoxWarm, a box built ahead, exported as 0.84.0 promised (PEEKM-1), on 21 October;linkedFrom and linkStateFrom, one card for a file in every app (5ebf2756), on 21 October; ComposeBox, ComposeKeys and COMPOSE_EDITOR_CLASSES gone into CommentBox’s own frame (one box), on 21 October; LinkPlaces with linkPlaceAt and staysChip, a link in a document drawn where it sits (WBD-4), on 20 October; DocumentEditor, one document editor for every app, and PersonReference, `@` in a document (WBD-3), on 20 October; toggleTableHeaderRow, a table’s header row on and off (LEAF-12), on 19 October;EntryShell, the screen while nobody is signed in, moved from Peek (AUT-3), on 17 October; CommentBox with commentBoxRows, and ReactionRow with AddReactionButton and whoReacted, the shared comment box and reaction row (COMM-2), on 17 October; the link widgets — LinkChip, LinkRow, LinkCard, CardUnder, PartCard, LinkPreview and their parts, with useCanHover, chosenOf, loadingShapeOf and unavailableMemory — from the Widgets 2 prototype, on 16 October; InlineText, a title or the line under it edited where it stands (SUM-4), on 16 October; ComposeBox with ComposeKeys and its classes, CommentHighlights with its five helpers, and keepSelection and releaseSelection, from the Leaf prototype (LEAF-4), on 16 October;NavTree, NavTreeSection, the composer triggers and UnreadDot joined on 2 October; BlockHandle and EditorBlockHandle (RIC-18) on 2 October, moveBlock and blockDropCursor, the drop in the gutter, on 5 October, MembersPill and MembersDialog, moved from Peek (SHI-31), on 6 October, ShowMore on 7 October, AppProvider on 8 October, and KindIcon, thingKindOf and PastedImages with its two helpers, moved from Peek, on 8 October; CodeBlockColours, the coloured code block of the editor, on 9 October; Checklist, Callout, isChecklistTick and calloutLook (RIC-19) on 13 October; EditorTableControls and its four actions (RIC-21) on 13 October; ReferenceCards, useReferenceCards and its three helpers, the card a chip in a document asks for, on 14 October; LinkChips and its two helpers, a URL in a document read as its chip, on 14 October; ReferenceMenu, ReferenceMenuView and three helpers, the menu of a chip while writing, on 14 October; PastedMarkdown, markdown pasted as the blocks it spells (LEAF-10), on 15 October; turnIntoRows, turnListInto and turnQuoteInto, the block menu’s Turn into for a list and a quote (LEAF-11), on 15 October)', () => {
52
52
  // The reconciliation GATES.md §24 explains. If this changes, that changes.
53
53
  // The `EDITOR_EXTENSIONS` count as components by their names; they are
54
54
  // editor extensions, documented on SelectionToolbar's, BlockNodes' and
55
55
  // ComposerTriggers' pages.
56
56
  const kinds = registry.entries.reduce<Record<string, number>>((all, one) => ({ ...all, [one.kind]: (all[one.kind] ?? 0) + 1 }), {})
57
- expect(kinds).toEqual({ component: 162, helper: 76, hook: 7 })
57
+ expect(kinds).toEqual({ component: 162, helper: 78, hook: 7 })
58
58
  expect(new Set(registry.entries.map((one) => one.sourceFile)).size).toBe(125)
59
59
  })
60
60
 
61
61
  it('gives every entry a purpose, from its own page or from the comment above it', () => {
62
62
  expect(registry.entries.filter((one) => one.purpose.trim() === '')).toEqual([])
63
63
  expect(registry.entries.filter((one) => one.purposeFrom === 'page').length).toBe(112)
64
- expect(registry.entries.filter((one) => one.purposeFrom === 'comment').length).toBe(133)
64
+ expect(registry.entries.filter((one) => one.purposeFrom === 'comment').length).toBe(135)
65
65
  })
66
66
 
67
67
  it('takes a name with a page of its own from the page, and a name without one from the code', () => {