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
1 change: 1 addition & 0 deletions renderers/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased

- Standardize package entry points to `index.ts` while maintaining `public-api.ts` wrappers for backward compatibility.
- (v0_8) Export `A2uiMessageSchema` in public API.

## 0.10.4
Expand Down
40 changes: 40 additions & 0 deletions renderers/angular/src/v0_8/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './catalog/index';
export * from './components/audio';
export * from './components/button';
export * from './components/card';
export * from './components/checkbox';
export * from './components/column';
export * from './components/datetime-input';
export * from './components/divider';
export * from './components/icon';
export * from './components/image';
export * from './components/list';
export * from './components/modal';
export * from './components/multiple-choice';
export * from './components/row';
export * from './components/slider';
export * from './components/surface';
export * from './components/tabs';
export * from './components/text-field';
export * from './components/text';
export * from './components/video';
export * from './config';
export * from './data/index';
export * from './rendering/index';
export * as Types from './types';
2 changes: 1 addition & 1 deletion renderers/angular/src/v0_8/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public-api.ts"
"entryFile": "index.ts"
}
}
28 changes: 4 additions & 24 deletions renderers/angular/src/v0_8/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,7 @@
* limitations under the License.
*/

export * from './catalog/index';
export * from './components/audio';
export * from './components/button';
export * from './components/card';
export * from './components/checkbox';
export * from './components/column';
export * from './components/datetime-input';
export * from './components/divider';
export * from './components/icon';
export * from './components/image';
export * from './components/list';
export * from './components/modal';
export * from './components/multiple-choice';
export * from './components/row';
export * from './components/slider';
export * from './components/surface';
export * from './components/tabs';
export * from './components/text-field';
export * from './components/text';
export * from './components/video';
export * from './config';
export * from './data/index';
export * from './rendering/index';
export * as Types from './types';
/**
* @deprecated Please import from `./index` instead. Will be removed in v1.0.
*/
export * from './index';
58 changes: 58 additions & 0 deletions renderers/angular/src/v0_9/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* Public API surface for A2UI Angular Renderer v0.9.
*
* This module provides the core services, components, and catalogs required
* to render A2UI surfaces using the v0.9 protocol.
*
* @module v0.9
*/

// Core Services and Components
export * from './core/a2ui-renderer.service';
export * from './core/component-host.component';
export * from './core/surface.component';
export * from './core/catalog_component';
export * from './core/component-binder.service';
export * from './core/types';
export * from './core/utils';
export * from './core/markdown';

// Catalog Types and Implementations
export * from './catalog/types';
export * from './catalog/basic/basic-catalog';

// Basic Catalog Components
export * from './catalog/basic/text.component';
export * from './catalog/basic/row.component';
export * from './catalog/basic/column.component';
export * from './catalog/basic/button.component';
export * from './catalog/basic/text-field.component';
export * from './catalog/basic/image.component';
export * from './catalog/basic/icon.component';
export * from './catalog/basic/video.component';
export * from './catalog/basic/audio-player.component';
export * from './catalog/basic/list.component';
export * from './catalog/basic/card.component';
export * from './catalog/basic/tabs.component';
export * from './catalog/basic/modal.component';
export * from './catalog/basic/divider.component';
export * from './catalog/basic/check-box.component';
export * from './catalog/basic/choice-picker.component';
export * from './catalog/basic/slider.component';
export * from './catalog/basic/date-time-input.component';
2 changes: 1 addition & 1 deletion renderers/angular/src/v0_9/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public-api.ts"
"entryFile": "index.ts"
}
}
44 changes: 3 additions & 41 deletions renderers/angular/src/v0_9/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,44 +15,6 @@
*/

/**
* Public API surface for A2UI Angular Renderer v0.9.
*
* This module provides the core services, components, and catalogs required
* to render A2UI surfaces using the v0.9 protocol.
*
* @module v0.9
* @deprecated Please import from `./index` instead. Will be removed in v1.0.
*/

// Core Services and Components
export * from './core/a2ui-renderer.service';
export * from './core/component-host.component';
export * from './core/surface.component';
export * from './core/catalog_component';
export * from './core/component-binder.service';
export * from './core/types';
export * from './core/utils';
export * from './core/markdown';

// Catalog Types and Implementations
export * from './catalog/types';
export * from './catalog/basic/basic-catalog';

// Basic Catalog Components
export * from './catalog/basic/text.component';
export * from './catalog/basic/row.component';
export * from './catalog/basic/column.component';
export * from './catalog/basic/button.component';
export * from './catalog/basic/text-field.component';
export * from './catalog/basic/image.component';
export * from './catalog/basic/icon.component';
export * from './catalog/basic/video.component';
export * from './catalog/basic/audio-player.component';
export * from './catalog/basic/list.component';
export * from './catalog/basic/card.component';
export * from './catalog/basic/tabs.component';
export * from './catalog/basic/modal.component';
export * from './catalog/basic/divider.component';
export * from './catalog/basic/check-box.component';
export * from './catalog/basic/choice-picker.component';
export * from './catalog/basic/slider.component';
export * from './catalog/basic/date-time-input.component';
export * from './index';
17 changes: 17 additions & 0 deletions renderers/angular/src/v0_9/testing/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export {type ComponentToProps, setComponentProps, createBoundProperty} from './test-utils';
2 changes: 1 addition & 1 deletion renderers/angular/src/v0_9/testing/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public-api.ts"
"entryFile": "index.ts"
}
}
7 changes: 5 additions & 2 deletions renderers/angular/src/v0_9/testing/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,4 +14,7 @@
* limitations under the License.
*/

export {type ComponentToProps, setComponentProps, createBoundProperty} from './test-utils';
/**
* @deprecated Please import from `./index` instead. Will be removed in v1.0.
*/
export * from './index';
8 changes: 4 additions & 4 deletions renderers/angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"moduleResolution": "bundler",
"types": ["jasmine"],
"paths": {
"@a2ui/angular/v0_8": ["./src/v0_8/public-api.ts"],
"@a2ui/angular/v0_9": ["./src/v0_9/public-api.ts"],
"@a2ui/angular/v0_9/testing": ["./src/v0_9/testing/public-api.ts"],
"@a2ui/angular/testing": ["./src/v0_9/testing/public-api.ts"]
"@a2ui/angular/v0_8": ["./src/v0_8/index.ts"],
"@a2ui/angular/v0_9": ["./src/v0_9/index.ts"],
"@a2ui/angular/v0_9/testing": ["./src/v0_9/testing/index.ts"],
"@a2ui/angular/testing": ["./src/v0_9/testing/index.ts"]
}
},
"angularCompilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion samples/client/angular/projects/lib/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/lib",
"lib": {
"entryFile": "src/public-api.ts"
"entryFile": "src/index.ts"
},
"allowedNonPeerDependencies": ["markdown-it", "@a2ui/web_core"]
}
2 changes: 1 addition & 1 deletion samples/client/angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"paths": {
"@a2ui/angular-sample-lib": ["./projects/lib/src/public-api.ts"],
"@a2ui/angular-sample-lib": ["./projects/lib/src/index.ts"],
"@a2ui/angular": ["../../../renderers/angular/dist"],
"@a2ui/angular/*": ["../../../renderers/angular/dist/*"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "dist",
"lib": {
"entryFile": "src/public-api.ts"
"entryFile": "src/index.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"outDir": "./out-tsc/app",
"types": [],
"paths": {
"@a2ui/angular": ["../../../../../../renderers/angular/src/public-api.ts"],
"@a2ui/angular": ["../../../../../../renderers/angular/src/index.ts"],
"@angular/*": ["./node_modules/@angular/*"]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"outDir": "./out-tsc/app",
"types": [],
"paths": {
"@a2ui/angular": ["../../../../../../renderers/angular/src/public-api.ts"],
"@a2ui/angular": ["../../../../../../renderers/angular/src/index.ts"],
"@angular/*": ["./node_modules/@angular/*"]
}
},
Expand Down
Loading