Recursive AI

Changelog

All oneui docs

All notable changes to this project are documented here. The format follows Keep a Changelog.

[Unreleased]

[1.0.0] - 2026-12-01

Changed

  • The CSS table tool pins the stable OneHtml 1.7.0 and OneRender 1.5.0.
  • The tools project pins OneHtml 1.7.0-preview.3 (fixes an AccessViolation and memory corruption on Apple silicon and arm64 Linux).
  • The CSS table is regenerated against OneRender 1.5.0-preview.4: cursor, text-overflow, scrollbar-width, scrollbar-color and scrollbar-gutter are accepted in component stylesheets. The tool pins match the versions OneApp uses.
  • The markup build (RecursiveAI.OneUI.targets: the .html and .css component items) is packed under buildTransitive/ instead of build/, so a project that references only a package built on OneUI gets it, and the generator, without referencing OneUI itself.

Changed (API)

  • Types that only generated code uses moved to the new OneUI.GeneratorSupport namespace and are hidden from IntelliSense (EditorBrowsable(Never), documented as not a stable authoring API): OneUI.Components.Fmt → OneUI.GeneratorSupport.Fmt, OneUI.Components.SlotContent → OneUI.GeneratorSupport.SlotContent, OneUI.Components.ComponentSlotsAttribute → OneUI.GeneratorSupport.ComponentSlotsAttribute. Component.SetState, SetSlot, TryGetState, StateNames, Scope.Param, Scope.ItemDeps and Scope.AllDeps are hidden the same way. The compiler emits the new names; rebuild assemblies generated by an earlier version (an old library's ComponentSlots attribute is no longer read). Scope, BlockBuilder, Row<T> and RowBuilder<T> stay in OneUI.Components because components written without markup use them. See docs/markup.md.

  • UiKit.SetTreeClipboard(UiTree, IClipboard) is public. A host calls it once per tree to connect text fields to the system clipboard; a second call replaces the first (it used to throw) and a null argument throws ArgumentNullException.

  • ChangeSetException derives from InvalidOperationException (it was Exception), like UiTreeException and TweenException.

  • SelectorSyntaxException and UiStyleException derive from FormatException (they were Exception), and UiStyleException is sealed.

  • Documentation comments, README and PACKAGE.md describe OneUI as an application UI library; examples in them are checked by tests.

Added

  • CSS table regenerated from OneHtml 1.7.0-preview.2 and OneRender 1.5.0-preview.2. The engine's SVG renderer now takes presentation properties from the page cascade, so these pass instead of OUI0101: fill, fill-opacity, fill-rule, clip-rule, stroke, stroke-width, stroke-opacity, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-dasharray, stroke-dashoffset, paint-order, vector-effect, shape-rendering, text-rendering, text-anchor, dominant-baseline, writing-mode, color-interpolation, flood-color, flood-opacity, lighting-color, stop-color, stop-opacity, marker-start, marker-mid, marker-end, font-variant. Keyword values of nine of them are checked (OUI0102). color-rendering stays rejected.
  • Layout and focus queries for components: IDocumentQueries (implemented by a sink, defaulting through UiContext.Queries) with GetBoundingClientRect, GetViewportSize, GetScrollMetrics, GetTabbableNodes, FocusFirstTabbable, GetActiveElement, Contains and IsInert on UiContext, the same on ElementRef, and UiContext.Commit(). Every query commits pending changes first. The reference document answers from test-set boxes (SetBox, BoxResolver, Viewport, SetScrollMetrics). The change-set protocol stays at version 2.
  • Timers: IUiScheduler set on UiContext.Scheduler, UiContext.SetTimeout/SetInterval, and protected Component.SetTimeout/SetInterval that cancel with the component; ManualScheduler for deterministic tests.
  • Components from referenced assemblies: a template tag resolves component classes declared in any referenced assembly that uses OneUI, with parameters, slots (written into the library as ComponentSlots attributes) and scoped styles checked and applied as for local components; OUI0064 for a name two references both declare.
  • ElementRef, the ref="{Member}" markup attribute (OUI0070) and ElementRef.Focus(); change-set protocol version 2 adds ChangeKind.Focus and ChangeKind.CreateElementNS (existing kinds unchanged). The reference document tracks ActiveElement per the HTML focus rules, raises focus events, moves focus on Tab and implements label, Enter and Space activation for Click and Press.
  • Inline <svg> in templates (shapes, gradients, clip paths and masks; presentation attributes; bound attributes) created in the SVG namespace.
  • Generated members carry <inheritdoc />, so a library with GenerateDocumentationFile needs no NoWarn.
  • The retained UI tree with its C# builder, CSS-model styling, flexbox layout, display-list painting, input routing, inspection and tweens, and the base kit of themed controls.
  • Markup components: a template (.html), an optional scoped stylesheet (.css) and a partial class, compiled by a source generator that ships in the package into create code and fine-grained update code, with every binding, event, element, attribute and CSS property checked at build time (OUI diagnostics).
  • The change-set protocol that every document backend consumes, and a reference document with selector queries and event dispatch for tests and the harness. See docs/markup.md, docs/change-sets.md, docs/diagnostics.md, docs/css-support.md.