@adia-ai/a2ui-corpus 0.3.3 → 0.3.5
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/CHANGELOG.md +35 -0
- package/catalog-a2ui_0_9.json +1203 -156
- package/catalog-a2ui_0_9_rules.txt +50 -0
- package/package.json +1 -1
|
@@ -16,15 +16,65 @@
|
|
|
16
16
|
- Canonical ratios: 1:1 → columns="2"; 2:1 → columns="3" + span="2"; 3:1 → columns="4" + span="3"; 3:2 → columns="5" + span="3"+"2"; 4:1 → columns="5" + span="4". Round unusual ratios (e.g. 7:5) to 3:2.
|
|
17
17
|
- The default (no columns attribute) gives equal auto-columns flowing in a single row. Prefer the explicit numeric attribute for dashboard rows so the layout is predictable when items wrap.
|
|
18
18
|
|
|
19
|
+
## ChatComposer
|
|
20
|
+
- chat-composer is the bespoke replacement for legacy <chat-input-ui data-chat-input> inside <chat-shell>. Place an inner <chat-input-ui submit-on-enter> as the primary input.
|
|
21
|
+
- The host listens for 'composer-submit' on the composer (not on the inner input). The event detail mirrors the inner submit event so existing handlers Just Work.
|
|
22
|
+
|
|
23
|
+
## ChatEmpty
|
|
24
|
+
- chat-empty is the bespoke replacement for legacy <empty-state-ui data-chat-empty>. Place as the first child of <chat-thread>; visibility is automatic via the [empty] reflected attribute.
|
|
25
|
+
|
|
26
|
+
## ChatHeader
|
|
27
|
+
- chat-header replaces the legacy <header> chrome bar inside <chat-shell>. Use named slots for canonical clusters; ad-hoc content goes in the default slot.
|
|
28
|
+
|
|
19
29
|
## ChatShell
|
|
20
30
|
- chat-shell is a behavior wrapper; don't nest col-ui/row-ui inside it directly — author the structural DOM using [data-chat-*] markers instead.
|
|
21
31
|
|
|
32
|
+
## ChatSidebar
|
|
33
|
+
- chat-sidebar is the bespoke replacement for legacy <aside data-sidebar>. Use slot="leading" or slot="trailing" to position. Add resizable + collapsible attributes to opt in to interactive behaviors.
|
|
34
|
+
- For chrome bars inside the sidebar, prefer <admin-topbar slot="header"> and <admin-statusbar slot="footer"> over raw <header-ui> / <footer-ui> when authoring shell-tier markup.
|
|
35
|
+
|
|
36
|
+
## ChatStatus
|
|
37
|
+
- chat-status replaces legacy <span data-chat-status> for the streaming/connection indicator. Place inside <chat-header slot="status">.
|
|
38
|
+
|
|
39
|
+
## ChatThread
|
|
40
|
+
- chat-thread is the bespoke replacement for legacy <section data-chat-messages> inside <chat-shell>. Use it for the message scroll surface; the host appends dynamic message divs as children.
|
|
41
|
+
- Place <chat-empty> as an optional first child for the empty state; the [empty] reflected attribute drives its visibility via CSS (no JS toggling).
|
|
42
|
+
|
|
22
43
|
## EditorShell
|
|
23
44
|
- editor-shell is a layout skeleton. Children must follow the documented structural DOM; the element wires behavior, not content.
|
|
24
45
|
|
|
25
46
|
## GenRoot
|
|
26
47
|
- gen-root is an integration shell. Prefer admin-shell for admin UIs; use gen-root only for chat+canvas tooling.
|
|
27
48
|
|
|
49
|
+
## AdminCommand
|
|
50
|
+
- admin-command wraps a native <dialog>; the inner <command-ui> is the actual palette. Keyboard shortcut defaults to both Cmd+K (mac) and Ctrl+K (other) — the AdiaUI convention.
|
|
51
|
+
- Place admin-command as a direct child of admin-shell, NOT inside a sidebar or main column. The host coordinates triggers ([data-command-trigger]) by reaching across siblings.
|
|
52
|
+
|
|
53
|
+
## AdminContent
|
|
54
|
+
- admin-content is the bespoke replacement for raw <main> inside admin-shell. CSS-only; the shell's css/main.css selectors target both shapes via :is(main, admin-content).
|
|
55
|
+
|
|
56
|
+
## AdminPageBody
|
|
57
|
+
- admin-page-body is the centered body band of <admin-page>. Wraps an inner <section-ui> for centered reading-column rhythm; can host full-bleed content directly to opt out.
|
|
58
|
+
|
|
59
|
+
## AdminPageHeader
|
|
60
|
+
- admin-page-header is the sticky top band of <admin-page>. Wraps an inner <header-ui> for centered reading-column rhythm.
|
|
61
|
+
|
|
62
|
+
## AdminPage
|
|
63
|
+
- admin-page is the bespoke replacement for <article data-content-root>. Provides the page-content named container query so descendants can use @container page-content (max-width: 720px) etc.
|
|
64
|
+
|
|
65
|
+
## AdminScroll
|
|
66
|
+
- admin-scroll is the bespoke replacement for the legacy <section> child of <main> inside admin-shell. Single child convention — typically wraps an <admin-page> for sticky-band layout.
|
|
67
|
+
|
|
28
68
|
## AppShell
|
|
29
69
|
- admin-shell is a behavior wrapper; its children are native HTML landmarks (aside, main, header). Don't wrap them in col-ui/row-ui — app-shell.css handles grid layout based on [data-sidebar] attributes.
|
|
30
70
|
|
|
71
|
+
## AdminSidebar
|
|
72
|
+
- admin-sidebar is the bespoke replacement for legacy <aside data-sidebar>. Use slot="leading" or slot="trailing" to position. Add resizable + collapsible attributes to opt in to interactive behaviors.
|
|
73
|
+
- For chrome bars inside the sidebar, prefer <admin-topbar slot="header"> and <admin-statusbar slot="footer"> over raw <header-ui> / <footer-ui> when authoring shell-tier markup.
|
|
74
|
+
|
|
75
|
+
## AdminStatusbar
|
|
76
|
+
- admin-statusbar replaces <footer-ui> at shell-tier. Same slot vocabulary as <admin-topbar>; visual treatment differs (the shell css applies a top-border instead of bottom).
|
|
77
|
+
|
|
78
|
+
## AdminTopbar
|
|
79
|
+
- admin-topbar replaces <header-ui> at shell-tier — use it for chrome bars inside admin-shell, admin-content, admin-sidebar. Use <header-ui> for primitive containers (Card / Drawer / Modal).
|
|
80
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui-corpus",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AdiaUI A2UI training corpus \u2014 patterns, fragments, compositions, exemplars, eval fixtures, feedback, gap registry. Consumed by the compose engine's retrieval layer + the MCP pipeline.",
|
|
6
6
|
"exports": {
|