meowtail 0.4.0-alpha.0 → 0.4.0-alpha.1

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 (142) hide show
  1. package/ASSISTANT.md +2 -2
  2. package/CHANGELOG.md +102 -0
  3. package/COMPONENTS.md +182 -140
  4. package/README.md +100 -12
  5. package/dist/src/chat/assistant-content.js +3 -1
  6. package/dist/src/chat/assistant-markdown.d.ts +8 -5
  7. package/dist/src/chat/assistant-markdown.js +11 -26
  8. package/dist/src/components/autocomplete.d.ts +47 -0
  9. package/dist/src/components/autocomplete.js +169 -0
  10. package/dist/src/components/card-title.d.ts +1 -0
  11. package/dist/src/components/card-title.js +2 -1
  12. package/dist/src/components/chart-scale.d.ts +46 -0
  13. package/dist/src/components/chart-scale.js +118 -0
  14. package/dist/src/components/chart.d.ts +38 -0
  15. package/dist/src/components/chart.js +210 -0
  16. package/dist/src/components/choice-group.js +2 -2
  17. package/dist/src/components/choice-select.js +2 -2
  18. package/dist/src/components/code-block.d.ts +3 -1
  19. package/dist/src/components/code-block.js +75 -16
  20. package/dist/src/components/command-palette.d.ts +44 -0
  21. package/dist/src/components/command-palette.js +198 -0
  22. package/dist/src/components/context-menu.d.ts +2 -1
  23. package/dist/src/components/context-menu.js +2 -1
  24. package/dist/src/components/credential-source.d.ts +2 -1
  25. package/dist/src/components/credential-source.js +2 -1
  26. package/dist/src/components/detail-section.d.ts +2 -1
  27. package/dist/src/components/detail-section.js +8 -3
  28. package/dist/src/components/dialog.d.ts +4 -1
  29. package/dist/src/components/dialog.js +7 -2
  30. package/dist/src/components/entry.d.ts +45 -0
  31. package/dist/src/components/entry.js +38 -0
  32. package/dist/src/components/entry.options.d.ts +4 -0
  33. package/dist/src/components/entry.options.js +3 -0
  34. package/dist/src/components/field-group.js +2 -2
  35. package/dist/src/components/field.d.ts +4 -0
  36. package/dist/src/components/field.js +15 -3
  37. package/dist/src/components/form.d.ts +34 -0
  38. package/dist/src/components/form.js +58 -0
  39. package/dist/src/components/heading-level.d.ts +9 -0
  40. package/dist/src/components/heading-level.js +12 -0
  41. package/dist/src/components/hover-card.d.ts +3 -2
  42. package/dist/src/components/hover-card.js +50 -15
  43. package/dist/src/components/index.d.ts +11 -1
  44. package/dist/src/components/index.js +11 -1
  45. package/dist/src/components/markdown-blocks.d.ts +27 -0
  46. package/dist/src/components/markdown-blocks.js +141 -0
  47. package/dist/src/components/markdown.d.ts +35 -0
  48. package/dist/src/components/markdown.js +35 -0
  49. package/dist/src/components/menu-button.d.ts +2 -1
  50. package/dist/src/components/menu.d.ts +2 -1
  51. package/dist/src/components/menu.js +2 -1
  52. package/dist/src/components/modal.js +2 -2
  53. package/dist/src/components/page.js +1 -1
  54. package/dist/src/components/pagination.d.ts +52 -0
  55. package/dist/src/components/pagination.js +89 -0
  56. package/dist/src/components/path-label.js +5 -27
  57. package/dist/src/components/popover.d.ts +2 -1
  58. package/dist/src/components/popover.js +33 -6
  59. package/dist/src/components/resource-card.d.ts +4 -1
  60. package/dist/src/components/resource-card.js +7 -2
  61. package/dist/src/components/risk-confirmation.d.ts +2 -1
  62. package/dist/src/components/risk-confirmation.js +2 -1
  63. package/dist/src/components/section.d.ts +1 -7
  64. package/dist/src/components/section.js +3 -8
  65. package/dist/src/components/segmented-control.d.ts +2 -1
  66. package/dist/src/components/segmented-control.js +2 -1
  67. package/dist/src/components/tabs.d.ts +2 -1
  68. package/dist/src/components/tabs.js +2 -1
  69. package/dist/src/components/token-field.d.ts +45 -0
  70. package/dist/src/components/token-field.js +175 -0
  71. package/dist/src/components/tooltip.d.ts +2 -1
  72. package/dist/src/components/tooltip.js +2 -1
  73. package/dist/src/components/tree-view.d.ts +39 -0
  74. package/dist/src/components/tree-view.js +244 -0
  75. package/dist/src/components/tree-view.options.d.ts +2 -0
  76. package/dist/src/components/tree-view.options.js +3 -0
  77. package/dist/src/icons/README.md +11 -10
  78. package/dist/src/icons/icon.d.ts +1 -0
  79. package/dist/src/icons/icon.js +2 -1
  80. package/dist/src/icons/index.d.ts +0 -1
  81. package/dist/src/icons/index.js +0 -1
  82. package/dist/src/registry/index.d.ts +41 -1
  83. package/dist/src/registry/index.js +20 -0
  84. package/dist/src/shared/element-id.d.ts +6 -0
  85. package/dist/src/shared/element-id.js +10 -0
  86. package/dist/src/theme/base.styles.d.ts +2 -0
  87. package/dist/src/theme/base.styles.js +27 -4
  88. package/dist/src/theme/chat/assistant.styles.js +21 -1
  89. package/dist/src/theme/chat/attachments.styles.js +35 -6
  90. package/dist/src/theme/chat/composer.styles.js +30 -3
  91. package/dist/src/theme/chat/conversation.styles.js +13 -1
  92. package/dist/src/theme/chat/records.styles.js +10 -5
  93. package/dist/src/theme/components/autocomplete.styles.d.ts +1 -0
  94. package/dist/src/theme/components/autocomplete.styles.js +68 -0
  95. package/dist/src/theme/components/button.styles.js +0 -1
  96. package/dist/src/theme/components/card.styles.js +2 -1
  97. package/dist/src/theme/components/chart.styles.d.ts +1 -0
  98. package/dist/src/theme/components/chart.styles.js +173 -0
  99. package/dist/src/theme/components/code-block.styles.js +79 -38
  100. package/dist/src/theme/components/command-palette.styles.d.ts +1 -0
  101. package/dist/src/theme/components/command-palette.styles.js +143 -0
  102. package/dist/src/theme/components/dialog.styles.js +2 -1
  103. package/dist/src/theme/components/empty-state.styles.js +2 -1
  104. package/dist/src/theme/components/entry.styles.d.ts +1 -0
  105. package/dist/src/theme/components/entry.styles.js +86 -0
  106. package/dist/src/theme/components/form.styles.d.ts +1 -0
  107. package/dist/src/theme/components/form.styles.js +32 -0
  108. package/dist/src/theme/components/hover-card.styles.js +57 -12
  109. package/dist/src/theme/components/image-preview.styles.js +25 -0
  110. package/dist/src/theme/components/layout.styles.js +6 -0
  111. package/dist/src/theme/components/markdown.styles.d.ts +1 -0
  112. package/dist/src/theme/components/markdown.styles.js +10 -0
  113. package/dist/src/theme/components/nav-list.styles.js +6 -7
  114. package/dist/src/theme/components/pagination.styles.d.ts +1 -0
  115. package/dist/src/theme/components/pagination.styles.js +103 -0
  116. package/dist/src/theme/components/path-label.styles.js +19 -6
  117. package/dist/src/theme/components/resource-card.styles.js +2 -1
  118. package/dist/src/theme/components/search-input.styles.js +23 -0
  119. package/dist/src/theme/components/slider.styles.js +4 -0
  120. package/dist/src/theme/components/token-field.styles.d.ts +1 -0
  121. package/dist/src/theme/components/token-field.styles.js +109 -0
  122. package/dist/src/theme/components/tree-view.styles.d.ts +1 -0
  123. package/dist/src/theme/components/tree-view.styles.js +104 -0
  124. package/dist/src/theme/icons/icons.styles.js +0 -18
  125. package/dist/src/theme/index.d.ts +446 -9
  126. package/dist/src/theme/index.js +58 -1
  127. package/dist/src/theme/journal.tokens.d.ts +389 -0
  128. package/dist/src/theme/journal.tokens.js +181 -0
  129. package/dist/src/theme/meow.tokens.d.ts +362 -0
  130. package/dist/src/theme/meow.tokens.js +91 -0
  131. package/dist/src/theme/shared/field-surface.styles.js +11 -7
  132. package/dist/src/theme/shared/prose.styles.js +12 -4
  133. package/dist/src/theme/tokens.d.ts +286 -7
  134. package/dist/src/theme/tokens.js +15 -2
  135. package/dist/src/theme/utilities.js +4 -4
  136. package/dist/src/web/focus-modality.d.ts +20 -0
  137. package/dist/src/web/focus-modality.js +72 -0
  138. package/dist/src/web/index.d.ts +1 -0
  139. package/dist/src/web/index.js +1 -0
  140. package/package.json +10 -3
  141. package/dist/src/icons/doodle-cat.d.ts +0 -5
  142. package/dist/src/icons/doodle-cat.js +0 -8
package/ASSISTANT.md CHANGED
@@ -28,7 +28,7 @@ const view = (
28
28
  ```
29
29
 
30
30
  The component takes a constrained height from its parent container; standard installation still needs `createMeowUI` and `standardTheme.cssText`, and does not depend on Rossovia's CSS or controller. Messages and the composer share one reading column, and the return-to-latest action anchors only to the message region. Activity appears beside the container when wide and becomes a single native modal dialog when narrow, without re-mounting messages and drafts.
31
- The return-to-latest action uses normal layout flow below the message viewport; while shown it claims its natural height, and when hidden it returns that space. Historical body text is never covered by the button, and the composer still has its own region.
31
+ The return-to-latest action floats over the lower edge of the message viewport, so showing or hiding it never resizes the transcript or moves the reading position. While history is being read it may cover the bottom of one line; only the button itself takes the pointer, and the composer still has its own region.
32
32
 
33
33
  A turn reads as the reader's question in a fill bubble and the reply as plain text, with no visible names or times; those stay in the message header for assistive technology. The composer is one rounded bar (attach, draft, trailing choices, send). Its history button gathers every question the reader asked into one column over the blurred transcript; choosing one closes the column and brings that turn to the top of the reading area without moving the host page, and Escape returns focus to the button. `history={false}` removes the button and column. A host `id` names the column for `aria-controls`.
34
34
 
@@ -47,7 +47,7 @@ A finished reply carries a quiet action row: Copy (built in; it copies the reply
47
47
 
48
48
  ## Content and local customization
49
49
 
50
- Message `parts` include `text`, `code`, `process`, `attachments`, `tool`, and `task`. `text` is safe Markdown by default: raw HTML and images are shown as text, and only explicit HTTP, HTTPS, and mailto links navigate; code parts use the shared `CodeBlock`. Processes use native disclosure, and process steps take only normalized titles, descriptions, status text, and visual tone. A process may also carry `state` (the same execution states as tool and task parts): its header then shows the shared state badge after the title, with `statusText` as a quiet fact beside it. Whether the badge exists is fixed by the part's first value; later states update its tone and word in place. Without `state` the header shows the title and `statusText` alone.
50
+ Message `parts` include `text`, `code`, `process`, `attachments`, `tool`, and `task`. `text` is safe Markdown by default: raw HTML and images are shown as text, and only explicit HTTP, HTTPS, and mailto links navigate; code parts use the shared `CodeBlock`. Text renders through the shared `Markdown` blocks: while a message has `status: "streaming"`, its last text part completes half-typed markers in its open tail, and finished blocks are never rewritten, so a reader's selection in them survives. Fenced code in text is drawn with the same `CodeBlock` as code parts, with highlighting and copy. Processes use native disclosure, and process steps take only normalized titles, descriptions, status text, and visual tone. A process may also carry `state` (the same execution states as tool and task parts): its header then shows the shared state badge after the title, with `statusText` as a quiet fact beside it. Whether the badge exists is fixed by the part's first value; later states update its tone and word in place. Without `state` the header shows the title and `statusText` alone.
51
51
 
52
52
  `renderPart` can replace just one part, and returning `undefined` uses the default implementation; `renderWorkDetail` replaces only the detail body. `composerTrailing` and `headerActions` hold local controls without replacing the whole page. Custom components still consume ancestor Context in the original render tree and do not create another renderer root.
53
53
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,107 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ - `HoverCard` copy feedback no longer covers the card. On success the copy cue turns into a check and
6
+ `copiedLabel` for 1.5 seconds; on failure the message takes its own line under the content and
7
+ stays until the next attempt or the card closes. The `feedback` part stays the live status, and
8
+ is visible only for a failure.
9
+
10
+ - A `HoverCard` with `copyText` shows a copy cue (the `copy` icon and `copyLabel`) at the end of its
11
+ first line, so a reader can see that a click or tap copies. The cue is hidden from assistive
12
+ technology; the card's accessible name already says `Copy: <text>`. New parts: `body` wraps the
13
+ host content and `hint` is the cue; a card without `copyText` renders as before.
14
+
15
+ - `Popover` answers a resize of its pane or anchor on the next animation frame and fits the pane in
16
+ whole pixels. A pane squeezed by a short viewport no longer refits itself inside its own
17
+ ResizeObserver callback, which the browser reported as a ResizeObserver loop error while a
18
+ phone's press animation moved the trigger by fractions of a pixel.
19
+
20
+ - The `HoverCard` `preview` variant pads its content like the compact card instead of leaving the
21
+ text against the card edges, and a host narrower than 480px gets no 24px side inset, so on a phone
22
+ the card lines up with the host instead of shifting right of the trigger.
23
+
24
+ - `HoverCard` works on touch: a tap opens the card and it stays open after the finger lifts (iOS
25
+ Safari closed it within 120 ms because the lifted touch counted as the pointer leaving). A second
26
+ tap on the trigger, an outside tap or Escape closes it.
27
+
28
+ - `PathLabel` elides the start of the directory with an ellipsis instead of fading it under a mask,
29
+ and keeps the whole file name until the name alone is wider than the slot, where it ends in an
30
+ ellipsis. The `data-path-clipped` attribute and its resize observer are gone.
31
+
32
+ - `HoverCard`, `ShortcutKeys` and `StateDot` each have their own story (`hover-card`,
33
+ `shortcut-keys`, `state-dot`); `reference-primitives` now shows `PathLabel` alone.
34
+
35
+ - NavList group titles read as navigation headings: sentence case at `type.caption`, weight 600,
36
+ primary ink, instead of the small-caps label. Menu and ChoiceSelect group headings keep the
37
+ small-caps label.
38
+
39
+ - `SearchInput` draws the native clear button in the theme (the close glyph at `icon.small` in
40
+ tertiary ink, darker on hover) instead of the browser's default control.
41
+
42
+ - Stories follow one metadata convention (AGENTS.md, "Story metadata"): the catalog category as
43
+ `group`, a fixed `groupOrder`, the documented export as `component`, and `<Name> · <Scenario>`
44
+ titles. `COMPONENTS.md` family tables list `Components` and `Parts` separately.
45
+
46
+ - Polish `CodeBlock`: the header names the language (`ts` reads TypeScript; `codeLanguageName`
47
+ exposes the mapping), soft wrap and copy are compact icon buttons, a successful copy shows a check
48
+ and is announced without adding a line, and a failure shows one danger line aligned with the code.
49
+ Header text and code share one start edge with a tighter gap, and wide host actions wrap to their
50
+ own row on narrow surfaces. Streamed code keeps its last highlight instead of flashing back to
51
+ plain text. Add the `text-wrap` semantic icon.
52
+
53
+ - Add `Markdown`, the public form of the Assistant's safe Markdown renderer, with
54
+ `repairMarkdownTail`, `markdownBlocks`, `renderMarkdown` and `safeMarkdownLink`. Text renders
55
+ block by block, so streamed chunks no longer rewrite finished blocks or drop a selection in them;
56
+ `streaming` hides half-typed markers in the open tail, and `renderCode` can draw fences with
57
+ `CodeBlock`. The Assistant's text uses the same renderer and repairs the tail of the part a
58
+ streaming message is still writing. Fenced code in Assistant text now uses the shared
59
+ `CodeBlock`, like code parts.
60
+
61
+ - Add `Autocomplete` (suggestions for free text), `TokenField` (several values entered as
62
+ host-resolved tokens), `TreeView` (hierarchy with the tree keyboard model), `CommandPalette`
63
+ (search and run host commands), `Form` (native validation, busy, outcome and actions) and
64
+ `Chart` (bar and line charts with a legend, keyboard readout and data table), with
65
+ `commandMatches`, `admitSeries`, `niceTicks`, `chartSeriesLimit` and `treeViewLevel`. The
66
+ contracts are in the selected-targets design.
67
+
68
+ - Add `Pagination` (L1) and `paginationEntries`: Previous/Next with numbered pages and gaps for a
69
+ known total, or the page fact and a host `hasNext` for an unknown one. The host owns the page,
70
+ loading and records; `busy` and boundaries keep focus on the control.
71
+
72
+ - The invalid-field focus halo selects its focus states with `:where()` instead of `:is()`, so a
73
+ bundler writes no legacy `:-moz-any()` copy that iOS Safari would match on any focused container.
74
+
75
+ - Add the `meowtail/web` entry with `installFocusModality(document)` and `focusModalityScript`.
76
+ They record whether the last input was a pointer or a key, and after a pointer the theme hides
77
+ outline focus rings until the next keystroke, so Safari no longer rings what a script focused
78
+ after a tap. Text entry keeps its focus state. Without the tracker, rings follow `:focus-visible`
79
+ as before. The theme root also turns off the browser's tap highlight; Button and the chat record
80
+ parts no longer set it themselves.
81
+
82
+ - Remove the `DoodleCat` illustration and its public export.
83
+
84
+ - Add `journalTheme`, a second concrete theme for blogs and long-form reading, assembled from the
85
+ standard rules with Journal values for the same `ui` roles. Export `journalUiTokenValues`,
86
+ `journalUiTokens`, `journalThemeTokens`, `standardUiTokenValues` and the `UiTokenValues` /
87
+ `TokenValues` types so a theme values every role and nothing else.
88
+ - Add `uiTokens.type.display`, `type.reading`, `type.readingSize`, `type.weight.display`,
89
+ `type.quoteStyle` and `ink.reading`. Titles and Prose headings use `display` at `weight.display`;
90
+ Prose copy and `ui.text.reading` use `reading` at `readingSize`; Prose copy takes `ink.reading` under
91
+ `ink.primary` headings, and quotations take `quoteStyle`. The standard values are the UI face, the
92
+ body size, `semibold`, `ink.primary` and `normal`, so the standard theme renders as before; this
93
+ reverses the earlier removal of `type.display` only as a theme role, not as a standard serif.
94
+ - Add `EntryList` and `Entry` (L1) for content entries such as posts, notes and releases: a kicker,
95
+ a heading that can link to the entry, a standfirst and its facts, separated by hairlines on the
96
+ surrounding surface. An Entry is a list item in an EntryList and an article alone, and its heading
97
+ level follows the region. `size="feature"` marks the lead entry.
98
+ - Add `meowTheme`, a red-and-black recolor of the standard theme after the Meowland mark: black
99
+ ink, actions and inverse surfaces with one red accent. Only colors differ from the standard values.
100
+ Export `meowUiTokenValues`, `meowUiTokens` and `meowThemeTokens`.
101
+ - The Meowbook gallery's Theme control switches every story between Standard, Journal and Meow.
102
+ - Add `journalFonts` and the `ThemeFont` type: the Fontsource packages that carry the faces Journal
103
+ names. Meowtail ships no font files. The gallery paints Journal stories with those faces.
104
+
3
105
  ## 0.3.0-alpha.0
4
106
 
5
107
  Local breaking authoring candidate; no npm release is implied. It includes the previous unreleased