@estiva-app/ui 0.102.2 → 0.103.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.
Files changed (43) hide show
  1. package/dist/CommentBox.d.ts +16 -0
  2. package/dist/CommentBox.d.ts.map +1 -1
  3. package/dist/ConfirmDialog.d.ts +6 -1
  4. package/dist/ConfirmDialog.d.ts.map +1 -1
  5. package/dist/ConversationCard.d.ts +2 -0
  6. package/dist/ConversationCard.d.ts.map +1 -1
  7. package/dist/LinkChip.d.ts.map +1 -1
  8. package/dist/LinkRow.d.ts +6 -0
  9. package/dist/LinkRow.d.ts.map +1 -1
  10. package/dist/QuotedLine.d.ts +1 -1
  11. package/dist/QuotedLine.d.ts.map +1 -1
  12. package/dist/SectionHeader.d.ts.map +1 -1
  13. package/dist/editor.d.ts +1 -1
  14. package/dist/editor.d.ts.map +1 -1
  15. package/dist/editor.js +14 -6
  16. package/dist/editor.js.map +3 -3
  17. package/dist/index.js +25 -17
  18. package/dist/index.js.map +2 -2
  19. package/package.json +1 -1
  20. package/registry.json +26 -2
  21. package/src/CommentBox.mdx +1 -0
  22. package/src/CommentBox.stories.tsx +17 -1
  23. package/src/CommentBox.test.tsx +24 -0
  24. package/src/CommentBox.tsx +29 -1
  25. package/src/ConfirmDialog.mdx +2 -0
  26. package/src/ConfirmDialog.stories.tsx +6 -0
  27. package/src/ConfirmDialog.test.tsx +12 -1
  28. package/src/ConfirmDialog.tsx +8 -1
  29. package/src/ConversationCard.mdx +2 -0
  30. package/src/ConversationCard.stories.tsx +6 -0
  31. package/src/ConversationCard.test.tsx +50 -0
  32. package/src/ConversationCard.tsx +13 -7
  33. package/src/LinkChip.test.tsx +13 -2
  34. package/src/LinkChip.tsx +4 -3
  35. package/src/LinkRow.tsx +6 -2
  36. package/src/NavTree.stories.tsx +1 -1
  37. package/src/QuotedLine.mdx +2 -1
  38. package/src/QuotedLine.test.tsx +9 -0
  39. package/src/QuotedLine.tsx +4 -2
  40. package/src/SectionHeader.mdx +1 -0
  41. package/src/SectionHeader.test.tsx +7 -0
  42. package/src/SectionHeader.tsx +4 -1
  43. package/src/editor.ts +1 -0
@@ -49,6 +49,13 @@ describe('SectionHeader', () => {
49
49
  expect(screen.queryByRole('button')).toBeNull()
50
50
  expect(screen.getByText('Section')).not.toBeNull()
51
51
  })
52
+
53
+ // A Folder named by its id ran onto two lines in the sidebar (Katerina, 3 November). Chrome draws the cut (the NavTree story).
54
+ it.each(['heading', 'quiet', 'row'] as const)('a long title stays on one line, cut short, in the %s look', (look) => {
55
+ const name = '0f3c9a12-5b7e-4d21-9c8a-6e2f1b4d7a90'
56
+ render(<SectionHeader title={name} chevron look={look} />)
57
+ expect(screen.getByText(name).className.split(' ')).toEqual(expect.arrayContaining(['min-w-0', 'truncate']))
58
+ })
52
59
  })
53
60
 
54
61
  /**
@@ -189,7 +189,10 @@ export function SectionHeader({ title, chevron = false, icon, isExpanded = true,
189
189
  // A row's words: NavItem's size and colour, brightening under the pointer with the row.
190
190
  <span className="min-w-0 flex-1 truncate text-body-2">{title}</span>
191
191
  ) : (
192
- <SectionLabel folds={chevron}>{title}</SectionLabel>
192
+ // One line, as the other looks and a NavItem's label: a Folder named by its id ran onto two (Katerina, 3 November).
193
+ <SectionLabel folds={chevron} truncate>
194
+ {title}
195
+ </SectionLabel>
193
196
  )}
194
197
  {/* 8px after the title with the 4px gap, in a row's count style. */}
195
198
  {count != null && <span className={cn('ml-1 shrink-0', COUNT_TEXT_CLASSES)}>{count}</span>}
package/src/editor.ts CHANGED
@@ -18,6 +18,7 @@ export {
18
18
  type CommentBoxEdit,
19
19
  type BoxFile,
20
20
  type BoxFileState,
21
+ type BoxAbout,
21
22
  type BoxUnder,
22
23
  type BoxUnderRead,
23
24
  type BoxSentUnder,