Native A2UI Support#866
Draft
KetanReddy wants to merge 12 commits into
Draft
Conversation
Member
Author
|
/docs |
Bundle ReportChanges will increase total bundle size by 640.55kB (11.39%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: plugins/markdown/coreAssets Changed:
view changes for bundle: core/playerAssets Changed:
view changes for bundle: plugins/async-node/coreAssets Changed:
view changes for bundle: plugins/check-path/coreAssets Changed:
view changes for bundle: plugins/common-expressions/coreAssets Changed:
view changes for bundle: plugins/common-types/coreAssets Changed:
view changes for bundle: plugins/reference-assets/coreAssets Changed:
view changes for bundle: plugins/stage-revert-data/coreAssets Changed:
view changes for bundle: plugins/beacon/coreAssets Changed:
view changes for bundle: plugins/metrics/coreAssets Changed:
view changes for bundle: tools/storybookAssets Changed:
view changes for bundle: react/playerAssets Changed:
|
intuit-svc
added a commit
to player-ui/player-ui.github.io
that referenced
this pull request
May 12, 2026
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #866 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
/canary |
intuit-svc
added a commit
to player-ui/player-ui.github.io
that referenced
this pull request
May 12, 2026
Contributor
…ion logic to plugin. Also migrate to Bazel Repo based node module ignore
Member
Author
|
/canary |
intuit-svc
added a commit
to player-ui/player-ui.github.io
that referenced
this pull request
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and Why
With the emergence of A2UI and other agent driven standards; Player, in its mission to serve the broader SDUI space, should expand support for more formats beyond its own in order to broaden the scopes of what Player solves for. Furthermore this lets capabilities be built against Player itself, regardless of input format, allowing for the decoupling of implementation from the server driving it.
Core Player Changes
start(), after plugins are registered and beforeresolveFlowContent. Plugins inspect aContentMeta{ format, version } and either convert the payload or pass it through.Player.start()signature widened from(payload: Flow)to(payload: unknown, options?: StartOptions). Default format is"player", which preserves existing behavior (a plain Flow flows through untouched).versionis free-form, so a single format plugin can dispatch across versions.React Changes
ReactPlayer.start()mirrors the same signature (react/player/src/player.tsx) and forwards options tothe underlying
Player.start().Plugins
Core:
@player-ui/a2ui-pluginIncludes three sub-plugins:
A2UIContentPlugin: Only activates when meta.format === "a2ui". Calls adaptA2UIToFlow(snapshot) to transform contentA2UITransformPlugin: Per-asset transforms (Button/TextField/CheckBox/Slider/DateTimeInput/ChoicePicker/Text) that attach run()/set()/value helpers consumed by the React layer.A2UIExpressionsPlugin: Registers the A2UI v0.9.1 standard library: validation (required, regex, length, numeric, email), formatters (formatString, formatNumber, formatCurrency, formatDate, pluralize), openUrl, and logic (and/or/not).Adapter Logic
Walks the flat components[] list from id: "root", inlines child references into a nested asset tree matching Player's {asset: ...} shape, and produces a Flow with a single VIEW state plus one END per unique event name encountered. Translation rules:
existing SchemaController/ValidationController pick them up unchanged
React:
@player-ui/a2ui-plugin-reactAssets
A2UI v0.9.1 reference catalog: Row, Column, List, Text, Image, Icon, Divider, Card, Modal, Tabs, Button, TextField, CheckBox, Slider, DateTimeInput, ChoicePicker.
Packages
A new folder in the repo! The goal for this folder is to ship preconfigured Player entrypoints so consumers don't have to assemble plugins themselves. The plugins/ directory exports building blocks; packages/ exports ready-to-use Players for specific content formats.
@player-ui/a2uiStorybook
New A2UI stories with one story per asset, driven by a
createA2UIStoryhelper in the Player storybook extension that can render A2UI content.To Do
To Align On
Overall Approach
Change Type (required)
Indicate the type of change your pull request is:
patchminormajorN/ADoes your PR have any documentation updates?
Release Notes
TBD
📦 Published PR as canary version:
0.16.0--canary.866.36801Try this version out locally by upgrading relevant packages to 0.16.0--canary.866.36801