Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ jobs:

with:
node-version: 22
cache: npm
cache-dependency-path: client/web/package-lock.json

- if: ${{ steps.release.outputs.release_created }}
name: Install Dependencies
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
## NPM package, and update the CHANGELOG.md.

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write
Expand All @@ -43,8 +42,6 @@ jobs:

with:
node-version: 22
cache: npm
cache-dependency-path: client/web/package-lock.json

- name: Install dependencies
working-directory: client/web
Expand All @@ -58,8 +55,8 @@ jobs:
registry-url: "https://wombat-dressing-room.appspot.com/"

- name: Run Semantic Release
working-directory: client/web
env:
GITHUB_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}
NODE_PATH: ${{ github.workspace }}/client/web/node_modules
run: npx semantic-release
run: npm run release
3 changes: 2 additions & 1 deletion client/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"build:tsc": "wireit",
"dev": "npm run serve --watch",
"serve": "wireit",
"build-and-link": "npm install && npm run build && npm link"
"build-and-link": "npm install && npm run build && npm link",
"release": "semantic-release"
},
"wireit": {
"serve": {
Expand Down
2 changes: 1 addition & 1 deletion client/web/src/lit/a2ui_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class A2UIClient {
this.client = await A2AClient.fromCardUrl(
`${baseUrl}/.well-known/agent-card.json`,
{
fetchImpl: async (url, init) => {
fetchImpl: async (url: RequestInfo | URL, init?: RequestInit) => {
const headers = new Headers(init?.headers);
headers.set(
"X-A2A-Extensions",
Expand Down
14 changes: 11 additions & 3 deletions client/web/src/lit/custom-components/google_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
import {A2uiController, A2uiLitElement} from '@a2ui/lit/v0_9';
import {structuralStyles} from '@a2ui/web_core';
import {ComponentApi, DynamicNumberSchema, DynamicStringSchema} from '@a2ui/web_core/v0_9';
import {css, html, nothing, PropertyValues, unsafeCSS} from 'lit';
import {css, html, LitElement, nothing, PropertyValues} from 'lit';
import {customElement} from 'lit/decorators.js';
import {styleMap} from 'lit/directives/style-map.js';
import {z} from 'zod';

const sheet = new CSSStyleSheet();
sheet.replaceSync(structuralStyles);

const LatLngSchema = z.object({
lat: DynamicNumberSchema,
lng: DynamicNumberSchema,
Expand Down Expand Up @@ -102,6 +105,11 @@ interface ResolvedMarker {
/** A2UI Custom Component for GoogleMap */
@customElement("a2ui-googlemap")
export class GoogleMap extends A2uiLitElement<typeof GoogleMapApi> {
static override shadowRootOptions: ShadowRootInit = {
...LitElement.shadowRootOptions,
mode: 'closed',
};

get map3dElement(): HTMLElement&Map3DElement {
return this.renderRoot.querySelector('gmp-map-3d') as HTMLElement &
Map3DElement;
Expand All @@ -116,8 +124,8 @@ export class GoogleMap extends A2uiLitElement<typeof GoogleMapApi> {
private prevMarkers: unknown = null;
private prevRoutes: unknown = null;

static styles = [
unsafeCSS(structuralStyles),
static override styles = [
sheet,
css`
:host {
display: block;
Expand Down
14 changes: 11 additions & 3 deletions client/web/src/lit/custom-components/place_card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
import {A2uiController, A2uiLitElement} from '@a2ui/lit/v0_9';
import {structuralStyles} from '@a2ui/web_core';
import {ComponentApi, DynamicStringSchema} from '@a2ui/web_core/v0_9';
import {css, html, nothing, unsafeCSS} from 'lit';
import {css, html, LitElement, nothing} from 'lit';
import {customElement} from 'lit/decorators.js';
import {styleMap} from 'lit/directives/style-map.js';
import {z} from 'zod'

const sheet = new CSSStyleSheet();
sheet.replaceSync(structuralStyles);


export const PlaceCardApi = {
name: 'PlaceCard',
Expand All @@ -43,12 +46,17 @@ declare global {
/** A2UI Custom Component for PlaceCard */
@customElement('a2ui-placecard')
export class PlaceCard extends A2uiLitElement<typeof PlaceCardApi> {
static override shadowRootOptions: ShadowRootInit = {
...LitElement.shadowRootOptions,
mode: 'closed',
};

protected override createController() {
return new A2uiController(this, PlaceCardApi);
}

static styles = [
unsafeCSS(structuralStyles),
static override styles = [
sheet,
css`
:host {
display: block;
Expand Down
Loading