@adia-ai/web-components 0.6.10 → 0.6.12
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 +10 -0
- package/components/canvas/canvas.d.ts +40 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-components
|
|
2
2
|
|
|
3
|
+
## [0.6.12] — 2026-05-20
|
|
4
|
+
|
|
5
|
+
### Maintenance
|
|
6
|
+
- **Lockstep version bump + examples-doc cleanup.** Bumped to maintain the 9-package version coherence enforced by `scripts/release/check-lockstep.mjs`. The only file change in this package: `patterns/admin-shell/admin-shell.examples.html` — removed a stale `data-content-root` row from the data-attribute hooks reference table (ADR-0032 retired that legacy hook). No runtime `.js` / `.css` changes. Substantive v0.6.12 work shipped in `@adia-ai/web-modules` — admin-shell legacy CSS bridges retired per ADR-0032 (continuation of ADR-0023 + ADR-0024). See `packages/web-modules/CHANGELOG.md#0612--2026-05-20` for the breaking-change details + migration path.
|
|
7
|
+
|
|
8
|
+
## [0.6.11] — 2026-05-20
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **`<canvas-ui>` — `.d.ts` hand-authored with full runtime API (claims-ui-v2 inbound FB-02 finding 2, P2).** Pre-fix: `canvas.d.ts` was 27-line codegen output declaring only `theme: string` + the `canvas-interaction` event listener — all 8 imperative runtime methods (`process`, `processAll`, `reset`, `pushVersion`, `back`, `forward`, `historyLength`, `historyIndex`) plus `getHTML()` were absent, forcing TS consumers to write `(canvas as any).processAll(...)`. The yaml/a2ui.json sidecar can only express declarative props per ADR-0027; codegen correctly skips imperative methods, but no compensating hand-authored layer existed. **Fix**: replaced `canvas.d.ts` with 63-line hand-authored declaration covering the full public API surface (each method documented with JSDoc matching the JS contract). Added `'canvas'` to the `HAND_AUTHORED_DTS` skip-set in `scripts/build/dts-codegen.mjs` with referencing comment so the next codegen run preserves the hand-authored file. Consumers post-upgrade can drop `(canvas as any).processAll(...)` casts entirely. Closes claims-ui-v2 inbound FEEDBACK-02 finding 2.
|
|
12
|
+
|
|
3
13
|
## [0.6.10] — 2026-05-21
|
|
4
14
|
|
|
5
15
|
### Added
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @see https://ui-kit.exe.xyz/site/components/canvas
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* Hand-authored .d.ts (not codegen output). The yaml/a2ui.json sidecars
|
|
7
|
+
* describe declarative component props; canvas-ui's primary public API is
|
|
8
|
+
* a set of imperative runtime methods (`process`, `processAll`, `reset`,
|
|
9
|
+
* `pushVersion`, `back`, `forward`) which cannot be expressed in the yaml
|
|
10
|
+
* shape. Per ADR-0027, dts-codegen skips imperative methods — this file
|
|
11
|
+
* carries them by hand so TypeScript consumers don't need `(canvas as any)`
|
|
12
|
+
* casts. Keep this file in sync with `canvas.js` whenever the public API
|
|
13
|
+
* surface changes.
|
|
14
|
+
*
|
|
15
|
+
* Closes FB-02 finding 2 (claims-ui-v2 2026-05-20 cold-start).
|
|
11
16
|
*/
|
|
12
17
|
|
|
13
18
|
import { UIElement } from '../../core/element.js';
|
|
@@ -18,6 +23,36 @@ export class UICanvas extends UIElement {
|
|
|
18
23
|
/** Component property: theme. */
|
|
19
24
|
theme: string;
|
|
20
25
|
|
|
26
|
+
/** Process a single A2UI message and apply it to the current surface. */
|
|
27
|
+
process(message: unknown): void;
|
|
28
|
+
|
|
29
|
+
/** Process an array of A2UI messages in order. */
|
|
30
|
+
processAll(messages: unknown[]): void;
|
|
31
|
+
|
|
32
|
+
/** Clear the canvas surface — discards all components. */
|
|
33
|
+
reset(): void;
|
|
34
|
+
|
|
35
|
+
/** Return the formatted innerHTML of the internal `<a2ui-root>`. */
|
|
36
|
+
getHTML(): string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Save the given messages to the history stack (enables back/forward
|
|
40
|
+
* navigation). Truncates forward history if not at the newest version.
|
|
41
|
+
*/
|
|
42
|
+
pushVersion(messages: unknown[]): void;
|
|
43
|
+
|
|
44
|
+
/** Navigate to the previous history version. Returns false if at oldest. */
|
|
45
|
+
back(): boolean;
|
|
46
|
+
|
|
47
|
+
/** Navigate to the next history version. Returns false if at newest. */
|
|
48
|
+
forward(): boolean;
|
|
49
|
+
|
|
50
|
+
/** Number of saved versions in the history stack. */
|
|
51
|
+
readonly historyLength: number;
|
|
52
|
+
|
|
53
|
+
/** Current position in the history stack (0-based). */
|
|
54
|
+
readonly historyIndex: number;
|
|
55
|
+
|
|
21
56
|
addEventListener<K extends keyof HTMLElementEventMap>(
|
|
22
57
|
type: K,
|
|
23
58
|
listener: (this: UICanvas, ev: HTMLElementEventMap[K]) => unknown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"description": "AdiaUI web components \u2014 vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui-runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|