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- addActionRegistryand wire$actiondispatch end to end.createActionRegistry(handlers)maps$action.typeto a handler; omitactionsfor a read-only render where$dispatchstays un-injected and interactive clicks are silent. the vocabulary'sButton/Select/Input/DatePickerattach real event handlers that fire$dispatch($action), merging the user's runtime value into the payload under the reserved$inputkey so a model-suppliedvalueis never clobbered; an unknown action type degrades to a no-op with a dev warning rather than throwing. HITL resume-value typing is left asunknown(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./irsubpath carrying the flat$typegenerative-ui IR:UINode,UIElement,LegacyComponentNode,Action,UISpec, the canonicalNormalizedUINode/NormalizedUIElement, andnormalizeUINode/normalizeSpec.normalizeUINodeaccepts the flat$typeshape and the legacycomponentshape, strips the reserved$-prefixed keys ($type,$key,$action) andchildrenfrom the component prop bag, and threads a streamingpartialPathso a node whose$typeis still mid-arrival is held back. the package's existing generative-ui types are rebased onto./ir:GenerativeUIElementis now an alias ofNormalizedUIElement(withchildrenlifted to a reserved top-level key instead of living inprops),GenerativeUINode/GenerativeUIProps/GenerativeUIActionalias the./irtypes, andrenderGenerativeUIconsumesNormalizedUINodedirectly. the wire format is unchanged ($typealready shipped); theGenerativeUI*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 defaultGenerativeUILibrary(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 zodpropertiesschema plus an unstyled structuralrenderthat emits semantic HTML with adata-aui="<component>"attribute anddata-aui-<prop>hooks for the host to style (no tailwind, no@assistant-ui/uidependency).Text/Caption/Markdownopt intostreamPropertiesso they render partial content while streaming. interactive components (Button/Select/Input/DatePicker) carry$action, now re-injected intorenderprops and stashed on adata-aui-actionattribute; dispatch is a follow-up. users opt in vianew JSONGenerativeUI({ library: defaultGenerativeUILibrary })and override entries with their owndefineGenerativeComponents. (@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
-
Updated dependencies [
cefcf27]:- assistant-stream@0.3.24
0.0.5
Patch Changes
-
Updated dependencies [
434bba5]:- assistant-stream@0.3.23
0.0.4
Patch Changes
- #4344
d51fe1c- fix: hold back nodes whose$typeis still streaming instead of reporting them as unknown components (@Yonom)
0.0.3
Patch Changes
-
Updated dependencies [
15878d8]:- assistant-stream@0.3.21
0.0.2
Patch Changes
-
#4199
d9b3119- feat: adddefineGenerativeComponents()and splitJSONGenerativeUIacross builds. Author a component library withdefineGenerativeComponents({ ... })(each entry colocates itspropertiesschema with itsrender), pass it asnew JSONGenerativeUI({ library }), and expose tools withpresent()and the new human-in-the-looppromptUser()inside adefineToolkit. The package now ships dualJSONGenerativeUIbuilds via thereact-server/defaultexport conditions (re-exported from the internal./internal-jsonsubpath): the server build ofpresent/prompt_usercarries onlytype/description/parameters, and the client build addsrender/execute.presentis a frontend tool (it accepts{ display }to render standalone);promptUseris 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]:- assistant-stream@0.3.20
- @assistant-ui/react@0.14.14
0.0.1
Patch Changes
- Initial package release