Files
wehub-resource-sync e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:40:13 +08:00

10 KiB

@assistant-ui/react-generative-ui

0.0.7

Patch Changes

  • #4645 096c171 - fix: name duplicate prop owners in generative UI schema warnings (@Kinfe123)

  • #4652 0b139f0 - fix: clarify unknown generative UI action warnings (@Kinfe123)

  • #4625 998e585 - add ActionRegistry and wire $action dispatch end to end. createActionRegistry(handlers) maps $action.type to a handler; omit actions for a read-only render where $dispatch stays un-injected and interactive clicks are silent. the vocabulary's Button/Select/Input/DatePicker attach real event handlers that fire $dispatch($action), merging the user's runtime value into the payload under the reserved $input key so a model-supplied value is never clobbered; an unknown action type degrades to a no-op with a dev warning rather than throwing. HITL resume-value typing is left as unknown (IR doc open question #2); the resume value reaching the runtime is a follow-up. (@okisdev)

  • #4656 67405a0 - fix: honor stable generative UI item keys (@Kinfe123)

  • #4655 625fbd0 - fix: skip malformed generative UI action types (@Kinfe123)

  • Updated dependencies [f833bc1]:

    • assistant-stream@0.3.25

0.0.6

Patch Changes

  • #4605 d592c85 - add the react-free ./ir subpath carrying the flat $type generative-ui IR: UINode, UIElement, LegacyComponentNode, Action, UISpec, the canonical NormalizedUINode/NormalizedUIElement, and normalizeUINode/normalizeSpec. normalizeUINode accepts the flat $type shape and the legacy component shape, strips the reserved $-prefixed keys ($type, $key, $action) and children from the component prop bag, and threads a streaming partialPath so a node whose $type is still mid-arrival is held back. the package's existing generative-ui types are rebased onto ./ir: GenerativeUIElement is now an alias of NormalizedUIElement (with children lifted to a reserved top-level key instead of living in props), GenerativeUINode/GenerativeUIProps/GenerativeUIAction alias the ./ir types, and renderGenerativeUI consumes NormalizedUINode directly. the wire format is unchanged ($type already shipped); the GenerativeUI* export names are kept so the surface stays append-only. the ui token enums (TextSize/Color/Align/...) are deferred to the PR that introduces the closed vocabulary that consumes them, so this PR's surface is only what the renderer uses. core is not touched. (@okisdev)

  • #4607 8a2b9cb - add the closed generative-ui vocabulary as a published default GenerativeUILibrary (defaultGenerativeUILibrary) plus the ui token enums (TextSize, ImageSize, Weight, Color, Align, Justify, ButtonStyle, AlertTone) that PR #4605 deferred. the vocabulary covers the portable core (Header, Text, Caption, Fact, Image, Divider, Button, Select, Input, DatePicker, Alert, Carousel), layout (Card, Col, Row, Spacer, Badge), and data (Table, Markdown, Chart) — 20 components total. each component is a zod properties schema plus an unstyled structural render that emits semantic HTML with a data-aui="<component>" attribute and data-aui-<prop> hooks for the host to style (no tailwind, no @assistant-ui/ui dependency). Text/Caption/Markdown opt into streamProperties so they render partial content while streaming. interactive components (Button/Select/Input/DatePicker) carry $action, now re-injected into render props and stashed on a data-aui-action attribute; dispatch is a follow-up. users opt in via new JSONGenerativeUI({ library: defaultGenerativeUILibrary }) and override entries with their own defineGenerativeComponents. (@okisdev)

  • #4600 c08260c - fix: align assistant-stream dependency range with lockfile (@Yonom)

  • #4597 23d4d22 - fix: avoid unresolved self-import build warning (@Yonom)

0.0.6

Patch Changes

0.0.5

Patch Changes

0.0.4

Patch Changes

  • #4344 d51fe1c - fix: hold back nodes whose $type is still streaming instead of reporting them as unknown components (@Yonom)

0.0.3

Patch Changes

0.0.2

Patch Changes

  • #4199 d9b3119 - feat: add defineGenerativeComponents() and split JSONGenerativeUI across builds. Author a component library with defineGenerativeComponents({ ... }) (each entry colocates its properties schema with its render), pass it as new JSONGenerativeUI({ library }), and expose tools with present() and the new human-in-the-loop promptUser() inside a defineToolkit. The package now ships dual JSONGenerativeUI builds via the react-server/default export conditions (re-exported from the internal ./internal-json subpath): the server build of present/prompt_user carries only type/description/parameters, and the client build adds render/execute. present is a frontend tool (it accepts { display } to render standalone); promptUser is a human-in-the-loop tool. (@Yonom)

  • #4226 58f80e0 - fix: avoid uploading backend-default schemas for use-generative frontend and human tools (@Yonom)

  • #4199 d9b3119 - feat: add new @assistant-ui/react-generative-ui package (@Yonom)

  • Updated dependencies [cba2b42, 58f80e0, 5fe118d, dcd5897, 606c9d4, 0558db2, 69540af, d9b3119, ae54c55, 7640b31]:

0.0.1

Patch Changes

  • Initial package release