Changelog
The six published packages share one version (ADR 0009). Before 1.0, a minor version may break things and a patch doesn't. Each release has a registry snapshot at https://uiuxengine.com/r/v/<version>/ that never changes (ADR 0020).
0.4.0
Menu, decided in ADR 0032, Input and Field, decided in ADR 0033, and Dialog, decided in ADR 0034, native Figma slots (ADR 0037), and the fixes from the audit before 0.4.0.
Accessibility: Menu, Input, Field and Dialog pass the automated accessibility checks in Chromium, Firefox and WebKit, but haven't been tested with a screen reader. Select has passed with VoiceOver and Safari, not with NVDA. No component has been tested with a mobile screen reader. Test these components with the screen readers your users rely on before you depend on them.
Breaking changes:
- An agent's spec binds only actions agents may call (ADR 0031).
SpecRenderertreats a spec as written by an agent unless it getsauthor="host", and an agent's spec that binds an action withoutallowAgent: trueis rejected, with the sameunknown_actionissue as a missing action. A host whose own code writes specs passesauthor="host"; a host that lets agents bind an action marks itallowAgent: true. Dispatch refusesauthor: "agent"for other actions too, and handlers receiveauthor.describeRuntimelists only the actions itsauthormay bind,"agent"by default. - Spec version 3. An event field that may be left out no longer fits an action field that is required (ADR 0030), and an agent's spec can be rejected for the actions it binds, so
SPEC_VERSIONis 3 and the spec schema's id isurn:uiuxengine:spec@3. The schema lists a component's alias as well as its id. SpecRegistryis built withspecRegistry.hasActionandactionPayloadare replaced byaction(name), which returns{ allowAgent, payload }, andauthor.specRegistry({ components, icons, actions, author })builds one from lists or lookups and rejects a component registered twice.ActionRegistry.getreplaceshasandpayload, and returns the action'sallowAgentandpayload.- Core's entry point is smaller. Collections, selection, navigation, typeahead and the keyboard contracts move to
@uiuxengine/core/behavior.firstEnabledandlastEnabledare gone:moveActive'sfirstandlastmoves follow the navigation policy. Helpers nothing outside core used are no longer exported:ARIA_STATES,ariaStateProblem,effectiveStates,emptyStateValue,findNode,forcedStateAttributes,iconRefSchema,identityIssues,isIconRef,NAMESPACE_PATTERN,orderByDependency,payloadFitProblem,presenceProps,propSchema,resolveRename,restValue,ruleMatches,stateAttributes,stateLabel,stateValueSchemaandsuppressorsOf. validateDesignneeds thecomponentlookup. Without it, owned instances and slot items went unchecked.- Button's
onPresstakes no arguments, as its contract'spressevent has no payload.onClickstill receives the browser's event. - CLI paths stay in the project.
blocksandoutputinengine.config.ts, andengine figma --icon-keys, are rejected when they point outside the project.engine upgradechecks an item'srequires, asengine adddoes. - The MCP server's
validate_spectakes actions as objects,{ name, allowAgent, payload }, and anauthor. Withoutactions, it rejects every binding, where it used to accept any name.list_definitionsleaves out components that specs can't use. - Content slots are native Figma slots (ADR 0037). Every content slot is a SLOT property that allows only the components it accepts, so a designer can add, remove and reorder items on a placed instance. On the next sync, Select's options frame and other multiple slots are replaced by slots holding the same items, and placed instances stay linked. The Empty State's
actionwas an instance swap, and Figma can't change a property's type: the sync stops on that set and says to delete it in Figma and sync again, and its placed instances lose their link. - The Figma plugin no longer migrates a 0.2.0 Button set (ADR 0029). Sync a file still at 0.2.0 once with a 0.3.0 plugin first. The sync report lists limitations, what Figma can't express, apart from warnings, what a definition could change.
New:
@uiuxengine/componentsand@uiuxengine/react:MenuandMenuItem. A Menu is a Button that opens a list of commands in the top layer. Focus moves into the list, disabled items stay focusable, and arrow keys wrap. Pressing an item focuses the trigger, firesonItemPresswith the item'svalueand then asks to close, so a dialog opened from it returns focus to the trigger. A menu holds no value. Itsopenstate is controllable withopen,defaultOpenandonOpenChange, and its trigger takes Button'svariant,size,label,accessibleLabel,disabledand anicon. Menu hasn't been tested with NVDA yet.- Specs,
describeRuntime, the agent index,llms.txtand the site include Menu and MenuItem. An agent's spec can binditemPressto an action markedallowAgent. @uiuxengine/core: a navigation policy formoveActive,repairActiveandtypeahead, withLISTBOX_NAVIGATIONas the default andMENU_NAVIGATION; the keyboard contractsmenuTriggerKeyActionandmenuKeyAction; semantics on an owned instance part, such as a trigger that is a Button;aria-haspopupon a button that controls a menu, listbox, tree, grid or dialog; and an instance's icon slot bound to its parent's icon slot.@uiuxengine/react: a part binding on an owned instance merges its props, handlers and ref into the instance. An overlay that closes with focus inside it returns focus to its trigger.- Figma: a sync adds a Menu set, with its Button trigger as a nested instance and its list as an overlay layer, and a MenuItem set with four variants.
MANIFEST_VERSIONstays 2, so a 0.3 plugin syncs them too. @uiuxengine/componentsand@uiuxengine/react:Input, a single line of text in a native<input>of typetext,email,urlortel. Itsvalueis controllable withvalue,defaultValueandonValueChange, andonValueCommitreports when a person leaves the field after an edit or presses Enter. Text composed with an input method is reported once, when the composition ends. It takesname,autocomplete,required,minLength,maxLength,readOnly,disabled,invalid, aplaceholderand aleadingIcon, submits with its form and returns to its first value on a reset. Native constraints block a submission, but only the host marks it invalid.@uiuxengine/componentsand@uiuxengine/react:Field, a visible label, a description and an error message around one Input or Select. The label names the control and focuses it, the description and the shown error describe it, andinvalidmarks it invalid. A spec can use Field with an Input or a Select, which then needs noaccessibleLabel. Input is in specs, andvalueCommitis the event to bind. Field labels any control its slot accepts whose contract declaressemantics.labelable.@uiuxengine/core:semantics.labelable, the element a component is labelled by, andsemantics.slots, the label, descriptions and states an owner gives its slot's item, withslotAriaAttributes. A spec item that its owner labels needs no label prop of its own.@uiuxengine/tokens:color.invalid.fg, for error text, at 4.5:1 on the canvas and on surfaces in both themes.@uiuxengine/cli: an agent index example puts a component specs can use where a design's placeholder has one they can't.- Figma: a sync adds an Input set with eight variants and a Field set with two, whose control is a slot that accepts Input and Select.
- Select's guideline and its development warning say to name it with a Field.
@uiuxengine/componentsand@uiuxengine/react:Dialog, a modal native<dialog>with a title, an optional description, content, actions and a close button, in three sizes. The browser makes the page inert and focuses the first focusable element, the close button by default, or the oneinitialFocusgives. Escape and the close button ask to close withonOpenChange, which a host can refuse; when the browser closes it anyway, it stays closed until the host changesopen. Focus returns to the element that opened it, or to the onereturnFocusgives when that element is gone, with a development warning when there is neither.dismissible={false}hides the close button and ignores Escape. A backdrop click doesn't close it, and the page doesn't scroll while it's open. Dialog isn't in specs: its contract setsspecs: false. Dialog hasn't been tested with a screen reader yet.@uiuxengine/core:labelledByanddescribedByon a component's root semantics, withrootRelationAttributes, which leaves out a part that isn't shown. An owned instance's literal props can be icon references, as Dialog's close button'sx. A design'spreviewStatenames the state its previews hold,{ open: true }for Dialog, sopreviewCasesshows it open, in place.@uiuxengine/tokens:color.backdrop, translucent black in both themes.- Figma: a sync adds a Dialog set with three variants, one per size, with the close button as a nested Button instance and
dismissibleas a BOOLEAN property. It has no backdrop.
Fixes from the review of 0.3.0, decided in ADR 0030. They were prepared as 0.3.1, which was never released:
- Runtime. A spec that fails validation no longer discards the state the runtime holds. When the spec is valid again, each Select still shows what the person chose.
- Runtime. A spec's
state: { value: null }starts empty instead of at the contract'sinitial. - Runtime. An action bound in a spec receives only the fields its event declares. A Button's press used to forward fields of the browser's click event, such as
typeanddetail, to an action that declared them. - React.
defaultValue={null}starts empty. A form reset returns a Select that was first rendered withvalue={null}tonull. - Select. A value that no option has is still kept, but it no longer submits and it fails
required, as its placeholder suggests. Once an option with that value returns, it submits again. - Select. In a disabled fieldset, a Select now looks disabled, can't open, even with
defaultOpen, and can't be changed. - Select. When a host refuses a request and a person repeats it, for example a second Escape on a list the host keeps open, the request is reported again.
- Select. When the platform closes one Select's list because another opened, that Select reports
openChangeonce and stays closed until the host changesopenor a person opens it. Its trigger no longer says that a hidden list is expanded.
From the audit before 0.4.0:
@uiuxengine/core:specs: falseon a contract keeps a component out of specs, andinSpecs(contract)is the check every spec consumer uses (ADR 0036).validateSpecrejects such a component whatever registry it's given, so a host can't make Dialog spec-renderable by registering it.@uiuxengine/react:onActionOutcomeonSpecRendererhears how each dispatch settles, numbered in dispatch order and with the node that caused it. Without it, a failed dispatch is logged in development (ADR 0030).- Button and Menu. In a disabled fieldset, a Button looks disabled, and a Menu looks disabled and doesn't open, even with
defaultOpen, as Select and Input already did. - Menu. Its focus effect runs only when the menu opens or the active item changes, not after every render.
@uiuxengine/cli: a block'sdependenciesinclude packages imported with single quotes, side-effect imports andimport().- Figma: a component set that fails to apply no longer stops the sync. Each failure is reported with its set. The plugin checks a manifest's contracts and designs with core before planning, and reports that overlays don't flip in Figma.
Also fixed:
- Previews of open overlays. A forced open Select or Menu, as in the site's preview matrix and the playground, shows its list 4px below the trigger, as the live popover does, instead of touching it, and a Select's list is at least as wide as its trigger.
0.3.0
The interaction foundation: component state, typed events, keyed collections, part semantics, overlays and runtime state, with Select and Option as the components that prove it (ADR 0023 to ADR 0029).
Breaking changes:
- Manifest version 2. Manifests describe component state, overlays and scrolling, which a 0.2.0 Figma plugin would misread, so it refuses them and says so. Update the plugin before syncing a 0.3.0 manifest.
- Spec version 2. A spec node may have a
keyand initialstate, such as{ "component": "select", "key": "period", "state": { "value": "month" } }. A 0.2.0 validator rejects both. Every version 1 spec is still valid. The spec schema's id isurn:uiuxengine:spec@2. - Actions without a payload refuse one. An action used to receive whatever was dispatched to it. Now it declares a
payloadschema, every dispatch is validated against it whatever its source, and an action without a schema returnsinvalid_payloadfor any payload. A host that dispatches payloads adds a schema, for examplepayload: { value: prop.text({ nullable: true }) }. RuntimeDescriptionlists events as objects. A component'seventswere names. They are now{ name, description, payload }, soevents.map((event) => event.name)gives the old list.- Button's Figma set has 72 variants instead of 120.
focusis a BOOLEAN property that shows the ring, no longer a VARIANT. The next sync migrates a set made by 0.2.0 in place and lists the migration in the preview: unfocused variants keep their layers, instances of focused variants in the same file move to the unfocused variant withfocuson, and the 48 focused variants are removed. Instances in other files that use a published library keep their last appearance until they are swapped, so publish the library again after syncing.
New:
@uiuxengine/componentsand@uiuxengine/react:SelectandOption. A Select is a combobox button with a listbox in the top layer, controlled or uncontrolled (value,defaultValue,onValueChange, andopen,defaultOpen,onOpenChange). It follows the select-only combobox keyboard pattern, where Tab closes the list without choosing, and has typeahead. It's named byaccessibleLabel, a<label for>oraria-labelledby, and takes part in forms withname,requiredand reset. Focus stays on the trigger. A submission blocked by an empty required Select focuses its trigger, and the browser's own message doesn't show, so the host shows one withinvalidandaria-describedby. Select hasn't been tested with NVDA yet.@uiuxengine/core: contractstate, event payloads, item descriptors,keyOfconstraints and part semantics, and in designs, state dimensions, overlays, scrolling and text that shows the selected item. Collections, selection, navigation, typeahead and the keyboard contracts are pure functions,createCollection,selectItem,moveActive,typeahead,selectKeyActionand the rest, which run without a DOM.@uiuxengine/react:renderPartstakes part bindings for elements, attributes, handlers and refs, and keys slot items by their item key. An Empty State installed from 0.1.0 or 0.2.0 renders as before.- Runtime: the spec renderer holds each node's state by its identity, keeps it across spec replacement and disposes it when the node goes.
validateSpecchecks that an event's payload fits the action it's bound to.maxNodesdefaults to 500, up from 100, and counts options. - Agents:
describeRuntime, the agent index,llms.txtand the MCP server list each component's events with their payloads and the state a spec may set. @uiuxengine/tokens:color.item.bg-active,color.item.indicator,color.invalid.borderandshadow.overlay.color.border.strongis darker,palette.neutral.500in both themes, so a control's boundary has 3:1 contrast.- The Figma plugin draws overlays as absolute layers against their anchors, and scrolling frames with a maximum height.
- Browser support: the current Chrome, Edge, Firefox and Safari. The Engine uses a feature once it's Baseline newly available and ships no polyfills. The newest it relies on are CSS anchor positioning, Baseline since January 2026, and the
sourceoption ofshowPopover(). Without anchor positioning a Select's list opens centred.
0.2.0
The registry has its own format, item format 2, with JSON Schemas at https://uiuxengine.com/schema/v2/.
- Breaking: the CLI and the MCP server read item format 2 only, so they no longer read the 0.1.0 registry. In format 2 every field is at the top level, file paths are relative to the block's folder, and the content hash covers only what a project installs. The registry format guide at
https://uiuxengine.com/docs/registry/specifies the fields, the hash and the validation. @uiuxengine/cliexports the schemas asregistryItemSchemaandregistryIndexSchema, and the checks it runs on every item ascheckItemandcheckIndex.- The Empty State is unchanged and stays 0.1.0. After updating the packages,
npx @uiuxengine/cli upgrade empty-staterecords its new hash and leaves its files alone.
0.1.0
The first public preview. The architecture is proven with one component and one block. APIs may change in any minor version before 1.0.
@uiuxengine/tokens: design tokens with light and dark themes and compact, standard and comfortable density, as CSS variables and DTCG files.@uiuxengine/core: serializable component contracts and design definitions, the manifest, spec validation, and CSS generated from designs.@uiuxengine/components: the Button, its generated CSS and the Engine'sengine.manifest.json.@uiuxengine/react: the React Button with UI/UX Icons, andSpecRendererfor validated declarative specs.@uiuxengine/cli:addandupgradeblocks from a registry with a lockfile that keeps your edits,generatea project's CSS and manifest, andfigmato sync a project into Figma.@uiuxengine/mcp: a read-only MCP server that shows coding agents a project's definitions and the registry's blocks, and validates specs.- The registry at
https://uiuxengine.com/r/with one block, the Empty State.