openui 0.0.1-dev.2
openui: ^0.0.1-dev.2 copied to clipboard
Flutter Renderer widget for OpenUI Lang. Owns the streaming parser, reactive store, error boundary, and form-state cache.
0.0.1-dev.2 #
- Point pubspec
repository,homepage, andissue_trackerURLs atgithub.com/mtwichel/openui_flutter.
0.0.1-dev.1 #
- BREAKING:
QueryManagerrewrite for the new@Querybuiltin. Constructor is nowQueryManager({library, store, onError}). Results flow throughstore.set(statementId, value.result)instead of an internalQueryEntrymap;QueryEntryis removed.ensureFired/invalidatetake(QueryDecl, EvalContext)and evaluate args at fire time. The renderer gates firing on!isStreamingand skips only queries whose own statement is inmeta.incomplete(so a missing trailing newline no longer blocks top-level@Querydeclarations).@Run($var)re-fires the bound query against the live store. - chore: renderer iteration paths follow the new 3-arg
@Eachshape — the template is read fromargs[2]and the named loop var is bound from the string-literal atargs[1].@Mapis unchanged. - feat:
Rendererwidget — streaming-aware Flutter renderer for OpenUI Lang. Owns the parser, reactive store, query cache, form-state cache, and a per-element error boundary. - feat:
ErrorBoundarywidget — caches the last successful child and reports captured render errors throughRenderer.onError. - feat:
FormStateCache—TextEditingControllercache keyed by(formName, fieldName)with a 250 ms grace window on disposal so focus survives mid-stream rebuilds. - feat:
QueryManager— per-renderer gate that turns@Querydeclarations into one-shot tool calls. Results flow through the store; mutations dispatch throughfireMutationand surface failures viaonError. - feat:
RendererScope—InheritedWidgetexposing the store, form-state cache, streaming flag, incomplete-statement set, and action dispatcher to descendant components. - chore: package scaffold (Phase 0).