Skip to content

feat(a2ui): upgrade a2ui packages to ^0.10.0. - #520

Open
ditman wants to merge 8 commits into
google:mainfrom
ditman:explicit-a2ui-version-imports
Open

feat(a2ui): upgrade a2ui packages to ^0.10.0.#520
ditman wants to merge 8 commits into
google:mainfrom
ditman:explicit-a2ui-version-imports

Conversation

@ditman

@ditman ditman commented Aug 28, 2026

Copy link
Copy Markdown

And import v0.8 code from the v0_8 submodules explicitly, instead of importing from the root of the package (which is getting cleared up to allow for v1.0).

This PR:

  1. Updates @a2ui imports to ^0.10.0 (latest major version).
    • This requires a small update to a "chat" test to ensure the A2UI payloads are correct, since now they're validated at run-time.
    • Removes some type imports from @a2ui/lit that have since moved to @a2ui/web_core, which is added as an explicit dependency.
  2. (Unrelated) Adds an explicit dependency on prismjs, which is used at runtime and was preventing me from running tests, but it seems appropriate in this app.

Testing

Everything seems to build, and I ran npm run test:

...
Chrome 152.0.0.0 (Linux 0.0.0): Executed 643 of 680 (skipped 37) SUCCESS (13.214 secs / 12.409 secs)
TOTAL: 643 SUCCESS
TOTAL: 643 SUCCESS

Issues

@ditman

ditman commented Aug 31, 2026

Copy link
Copy Markdown
Author

@wyf7107 I think I can't click "Merge" on this PR; would you mind landing this? Thanks!

@wyf7107

wyf7107 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Yeah please do not manually click merge

Add a provider to connect ngx-markdown to A2UI "MarkdownRenderer" token.
(See a2ui-project/a2ui#647)
@ditman

ditman commented Sep 1, 2026

Copy link
Copy Markdown
Author

Hey team @wyf7107 @DeanChensj, after some testing I realized that in addition to making the markdown dependency explicit, we needed to hook up the current markdown renderer to A2UI for it to conform to A2UI's "MarkdownRenderer" interface. This is used to render markdown content inside A2UI components.

I had to write a small bridge between the existing ngx-markdown provider and A2UI's. See a2ui-canvas.markdown.ts‎.

The testing is not very good, because I would have liked to verify that the main.ts list of providers is well configured, but there's no e2e tests for that. I added a small test for the bridge provider though.

(Related: a2ui-project/a2ui#647)

PTAL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A2UI version is (very) outdated.

3 participants