@adia-ai/a2ui-runtime 0.7.28 → 0.8.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.
- package/CHANGELOG.md +8 -0
- package/css-channel.test.js +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
# Changelog — @adia-ai/a2ui-runtime
|
|
2
|
+
## [0.8.1] — 2026-07-15
|
|
3
|
+
|
|
4
|
+
### Maintenance
|
|
5
|
+
- **Lockstep version bump only.** No source changes in this package; bumped to maintain the 11-package version coherence enforced by `scripts/release/check-lockstep.mjs`. Substantive v0.8.1 work — the `tags-input-ui` chip slot template (TKT-0023) + the `--a-link` AA contrast fix — shipped in @adia-ai/web-components; see `packages/web-components/CHANGELOG.md#081--2026-07-15`.
|
|
6
|
+
## [0.8.0] — 2026-07-15
|
|
7
|
+
|
|
8
|
+
### Maintenance
|
|
9
|
+
- **Lockstep version bump; test-only source delta** (`css-channel.test.js` token-name sweep). Substantive v0.8.0 work — the Material color-token adoption — shipped in @adia-ai/web-components + @adia-ai/web-modules; see `packages/web-components/CHANGELOG.md#080--2026-07-15` and `.claude/docs/MIGRATION GUIDE.md` § v0.8.0.
|
|
2
10
|
## [0.7.28] — 2026-07-14
|
|
3
11
|
|
|
4
12
|
### Maintenance
|
package/css-channel.test.js
CHANGED
|
@@ -48,7 +48,7 @@ describe('CSS channel — applies-then-removes', () => {
|
|
|
48
48
|
type: 'updateStyles',
|
|
49
49
|
surfaceId: SURF,
|
|
50
50
|
styleId: 's1',
|
|
51
|
-
css: `:scope { --a-
|
|
51
|
+
css: `:scope { --a-primary: oklch(0.7 0.2 240); }`,
|
|
52
52
|
});
|
|
53
53
|
expect(adoptedCount(renderer, SURF)).toBe(1);
|
|
54
54
|
expect(document.adoptedStyleSheets.length).toBe(before + 1);
|
|
@@ -71,13 +71,13 @@ describe('CSS channel — replaces-existing-styleid', () => {
|
|
|
71
71
|
it('two updateStyles with same styleId keep only one sheet adopted', () => {
|
|
72
72
|
renderer.process({
|
|
73
73
|
type: 'updateStyles', surfaceId: SURF, styleId: 'theme',
|
|
74
|
-
css: `:scope { --a-
|
|
74
|
+
css: `:scope { --a-primary: red; }`,
|
|
75
75
|
});
|
|
76
76
|
const firstSheet = renderer.getStylesheets(SURF).get('theme').sheet;
|
|
77
77
|
|
|
78
78
|
renderer.process({
|
|
79
79
|
type: 'updateStyles', surfaceId: SURF, styleId: 'theme',
|
|
80
|
-
css: `:scope { --a-
|
|
80
|
+
css: `:scope { --a-primary: blue; }`,
|
|
81
81
|
});
|
|
82
82
|
const secondSheet = renderer.getStylesheets(SURF).get('theme').sheet;
|
|
83
83
|
|
|
@@ -146,7 +146,7 @@ describe('CSS channel — rejects forbidden constructs', () => {
|
|
|
146
146
|
host.addEventListener('styles-rejected', (e) => { rejection = e.detail; });
|
|
147
147
|
renderer.process({
|
|
148
148
|
type: 'updateStyles', surfaceId: SURF, styleId: 'bad',
|
|
149
|
-
css: `:root { --a-
|
|
149
|
+
css: `:root { --a-primary: red; }`,
|
|
150
150
|
});
|
|
151
151
|
expect(rejection?.reason).toBe('forbidden-root-selector');
|
|
152
152
|
expect(adoptedCount(renderer, SURF)).toBe(0);
|
|
@@ -297,7 +297,7 @@ describe('CSS channel — cleanup on deleteSurface', () => {
|
|
|
297
297
|
it('deleteSurface removes all adopted stylesheets for that surface', () => {
|
|
298
298
|
renderer.process({
|
|
299
299
|
type: 'updateStyles', surfaceId: SURF, styleId: 's1',
|
|
300
|
-
css: `:scope { --a-
|
|
300
|
+
css: `:scope { --a-primary: red; }`,
|
|
301
301
|
});
|
|
302
302
|
renderer.process({
|
|
303
303
|
type: 'updateStyles', surfaceId: SURF, styleId: 's2',
|
|
@@ -333,7 +333,7 @@ describe('CSS channel — parse-error reported', () => {
|
|
|
333
333
|
// Surface still works
|
|
334
334
|
renderer.process({
|
|
335
335
|
type: 'updateStyles', surfaceId: SURF, styleId: 'recover',
|
|
336
|
-
css: `:scope { --a-
|
|
336
|
+
css: `:scope { --a-primary: red; }`,
|
|
337
337
|
});
|
|
338
338
|
expect(renderer.getStylesheets(SURF).has('recover')).toBe(true);
|
|
339
339
|
});
|
|
@@ -442,7 +442,7 @@ describe('CSS channel — surface preconditions', () => {
|
|
|
442
442
|
it('prior valid sheet is preserved when a new sheet with the same styleId is rejected', () => {
|
|
443
443
|
renderer.process({
|
|
444
444
|
type: 'updateStyles', surfaceId: SURF, styleId: 'theme',
|
|
445
|
-
css: `:scope { --a-
|
|
445
|
+
css: `:scope { --a-primary: red; }`,
|
|
446
446
|
});
|
|
447
447
|
const valid = renderer.getStylesheets(SURF).get('theme').sheet;
|
|
448
448
|
expect(document.adoptedStyleSheets.includes(valid)).toBe(true);
|
|
@@ -472,7 +472,7 @@ describe('CSS channel — getStylesheets accessor', () => {
|
|
|
472
472
|
it('returns the surface adoptedSheets Map after updateStyles', () => {
|
|
473
473
|
renderer.process({
|
|
474
474
|
type: 'updateStyles', surfaceId: SURF, styleId: 'x',
|
|
475
|
-
css: `:scope { --a-
|
|
475
|
+
css: `:scope { --a-primary: red; }`,
|
|
476
476
|
});
|
|
477
477
|
const m = renderer.getStylesheets(SURF);
|
|
478
478
|
expect(m.size).toBe(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "A2UI runtime \u2014 renderer, registry, streams, surface manifest, and wiring primitives for the A2UI (Agent-to-UI) protocol. Framework-agnostic; pairs with any A2UI-conformant component set.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|