You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
BREAKING CHANGE: Make EnvironmentValues.a2uiCatalogs, EnvironmentValues.a2uiDefaultCatalogID, and EnvironmentValues.a2uiSurfaceMetadata read-only
(public internal(set)) in A2UISwiftUI, and remove A2UICatalogsKey and A2UIDefaultCatalogIDKey so catalogs and surface metadata are injected only by Surface.
Recommended migration: pass catalogs to Surface.init(viewModel:catalogs:defaultCatalogID:) or Surface.makeWithBasicCatalogs(viewModel:), update surface metadata through SurfaceViewModel
(metadata, setMetadata(_:), setExtension(_:value:), removeExtension(_:)), and read \.a2uiCatalogs, \.a2uiDefaultCatalogID, and \.a2uiSurfaceMetadata from @Environment. #4195, #4275
BREAKING CHANGE: RegexSubset.analyze, RegexSubset.compileGuarded, and the regex
function in BasicCatalog reject a repetition of a group that can match the empty string in
more than one way, such as (a?){1000}a{1000} or (a{0,2})+b, with NESTED_QUANTIFIER. Such a
pattern made NSRegularExpression run for seconds or longer on a value only a few characters
long. Recommended migration: rewrite the group so each repetition consumes at least one
character, for example (?:ab?){3} instead of (?:a?b?){3}. #4236, #4310
Add optional instructions (Markdown design guidelines for agents) to CatalogProtocol and Catalog, with an instructions: parameter on Catalog.init and Catalog.derive. derive
does not keep the source catalog's instructions, and MessageProcessor.getRendererCapabilities
writes them into v1.0 inline catalogs when set. #3842, #4312
Add an isUserActivated parameter (default false) to MessageProcessor.processMessages(_:), process(payload:), process(message:), and process(messages:). Pass true when the payload
is handled within a user gesture so a v1.0 callRendererFunction may run functions that set requiresUserActivation, such as a nested call in its arguments. #4311
Add MessageProcessor.addCatalog(_:) to register a catalog after initialization. createSurface messages, renderer function calls, and getRendererCapabilities(options:) see
the added catalog, while existing surfaces keep their original catalogs; duplicate catalog IDs
throw A2UICatalogError. #3303, #3304
Generalize direct DataBinding properties to DataBinding<JSONValue>, resolve direct FunctionCall properties, and preserve typed resolution for inline dynamic unions in NodeResolver. #3809
Report a two-way binding write that the data model rejects, such as writing /name/first while /name is a string, as a DATA_ERROR to the surface's ActionHandling and the MessageProcessor outbound listener instead of dropping it silently. The data model stays
unchanged. #4257
Draw SVG elliptical arc commands (A and a) in SVGPathParser, so IconsvgPath values
with arcs render circles and rounded shapes instead of dropping those segments. Arc flags written
without separators (for example a1 1 0 011 1) are also accepted. #4260