Skip to content

Commit 7d91d8a

Browse files
authored
Merge branch 'main' into update_docs
2 parents 2a4b454 + 8f541b7 commit 7d91d8a

File tree

20 files changed

+807
-74
lines changed

20 files changed

+807
-74
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# - An email address (e.g., octocat@github.com)
1313

1414
# Default ownership (is overriden by specfic rules below)
15-
* @dmandar @gspencer @jacobsimionato
15+
* @dmandar @gspencergoog @jacobsimionato
1616

1717
# Agents
1818
/a2a_agents/ @nan-yu @dmandar

renderers/angular/package-lock.json

Lines changed: 6 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@a2ui/angular",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
4+
"license": "Apache-2.0",
45
"scripts": {
56
"build": "ng build && node postprocess-build.mjs"
67
},

renderers/angular/postprocess-build.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
import { readFileSync, writeFileSync } from 'fs';
17+
import { readFileSync, writeFileSync, copyFileSync } from 'fs';
1818
import { join } from 'path';
1919

2020
// Locally we depend on the Core package via a relative path so we can test it from source.
@@ -33,13 +33,15 @@ const packageJson = parsePackageJson(packageJsonPath);
3333
if (!packageJson.dependencies['@a2ui/web_core']) {
3434
throw new Error(
3535
'Angular package does not depend on the Core library. ' +
36-
'Either update the package.json or remove this script.',
36+
'Either update the package.json or remove this script.',
3737
);
3838
}
3939

4040
packageJson.dependencies['@a2ui/web_core'] = '^' + coreVersion;
4141
writeFileSync(packageJsonPath, JSON.stringify(packageJson, undefined, 2));
4242

43+
copyFileSync(join(dirname, '../../LICENSE'), join(dirname, './dist/LICENSE'));
44+
4345
function parsePackageJson(path) {
4446
const content = readFileSync(path, 'utf8');
4547
return JSON.parse(content);

renderers/lit/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/lit/src/0.8/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import * as Styles from "@a2ui/web_core/styles/index";
2222
import { A2uiMessageProcessor } from "@a2ui/web_core/data/model-processor";
2323
import * as Primitives from "@a2ui/web_core/types/primitives";
2424
import { create as createSignalA2uiMessageProcessor } from "./data/signal-model-processor.js";
25-
26-
export { Types, Guards, Schemas, Styles, A2uiMessageProcessor, Primitives };
25+
import { Events as WebEvents } from "@a2ui/web_core";
26+
export { Types, Guards, Schemas, Styles, A2uiMessageProcessor, Primitives, WebEvents };
2727

2828
export const Data = {
2929
createSignalA2uiMessageProcessor,

renderers/lit/src/0.8/ui/text-field.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { Root } from "./root.js";
2020
import { A2uiMessageProcessor } from "@a2ui/web_core/data/model-processor";
2121
import * as Primitives from "@a2ui/web_core/types/primitives";
2222
import * as Types from "@a2ui/web_core/types/types";
23+
import { Events } from "@a2ui/web_core";
2324
import { classMap } from "lit/directives/class-map.js";
2425
import { styleMap } from "lit/directives/style-map.js";
2526
import { extractStringValue } from "./utils/utils.js";
@@ -115,6 +116,14 @@ export class TextField extends Root {
115116
return;
116117
}
117118
119+
this.dispatchEvent(
120+
new Events.A2UIValidationEvent({
121+
componentId: this.id,
122+
value: evt.target.value,
123+
valid: evt.target.checkValidity(),
124+
})
125+
);
126+
118127
this.#setBoundValue(evt.target.value);
119128
}}
120129
name="data"

renderers/web_core/package-lock.json

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/web_core/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"types": "./dist/src/v0_8/index.d.ts",
1010
"default": "./dist/src/v0_8/index.js"
1111
},
12+
"./v0_9": {
13+
"types": "./dist/src/v0_9/index.d.ts",
14+
"default": "./dist/src/v0_9/index.js"
15+
},
1216
"./types/*": {
1317
"types": "./dist/src/v0_8/types/*.d.ts",
1418
"default": "./dist/src/v0_8/types/*.js"
@@ -69,6 +73,7 @@
6973
"author": "Google",
7074
"license": "Apache-2.0",
7175
"devDependencies": {
76+
"@types/node": "^24.10.1",
7277
"typescript": "^5.8.3",
7378
"wireit": "^0.15.0-pre.2"
7479
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A base interface for event details.
19+
* All A2UI event payloads should extend this to ensure they have an eventType property
20+
* that matches the event name.
21+
*/
22+
export interface BaseEventDetail<EventType extends string> {
23+
readonly eventType: EventType;
24+
}

0 commit comments

Comments
 (0)