From 7bcbfc379348f8e125d2dd9b71b45c697de0b51d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sun, 14 Dec 2025 10:13:46 +0200 Subject: [PATCH] build: set up public-api files for aria Adds `public-api.ts` files for all the Aria packages to match the rest of the repo. --- src/aria/accordion/public-api.ts | 16 ++++++++++++++++ src/aria/combobox/index.ts | 10 +--------- src/aria/combobox/public-api.ts | 17 +++++++++++++++++ src/aria/grid/public-api.ts | 12 ++++++++++++ src/aria/listbox/index.ts | 3 +-- src/aria/listbox/public-api.ts | 10 ++++++++++ src/aria/menu/index.ts | 10 +--------- src/aria/menu/public-api.ts | 17 +++++++++++++++++ src/aria/tabs/index.ts | 10 +--------- src/aria/tabs/public-api.ts | 17 +++++++++++++++++ src/aria/toolbar/index.ts | 4 +--- src/aria/toolbar/public-api.ts | 11 +++++++++++ src/aria/tree/index.ts | 8 +------- src/aria/tree/public-api.ts | 15 +++++++++++++++ src/aria/version.ts | 2 +- 15 files changed, 122 insertions(+), 40 deletions(-) create mode 100644 src/aria/accordion/public-api.ts create mode 100644 src/aria/combobox/public-api.ts create mode 100644 src/aria/grid/public-api.ts create mode 100644 src/aria/listbox/public-api.ts create mode 100644 src/aria/menu/public-api.ts create mode 100644 src/aria/tabs/public-api.ts create mode 100644 src/aria/toolbar/public-api.ts create mode 100644 src/aria/tree/public-api.ts diff --git a/src/aria/accordion/public-api.ts b/src/aria/accordion/public-api.ts new file mode 100644 index 000000000000..8f2c83525069 --- /dev/null +++ b/src/aria/accordion/public-api.ts @@ -0,0 +1,16 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {AccordionPanel} from './accordion-panel'; +export {AccordionGroup} from './accordion-group'; +export {AccordionTrigger} from './accordion-trigger'; +export {AccordionContent} from './accordion-content'; + +// This needs to be re-exported, because it's used by the accordion components. +// See: https://github.com/angular/components/issues/30663. +export {DeferredContent as ɵɵDeferredContent} from '../private'; diff --git a/src/aria/combobox/index.ts b/src/aria/combobox/index.ts index 5b55a45e66b8..52b3c7a5156f 100644 --- a/src/aria/combobox/index.ts +++ b/src/aria/combobox/index.ts @@ -6,12 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {Combobox} from './combobox'; -export {ComboboxDialog} from './combobox-dialog'; -export {ComboboxInput} from './combobox-input'; -export {ComboboxPopup} from './combobox-popup'; -export {ComboboxPopupContainer} from './combobox-popup-container'; - -// This needs to be re-exported, because it's used by the combobox components. -// See: https://github.com/angular/components/issues/30663. -export {DeferredContent as ɵɵDeferredContent} from '../private'; +export * from './public-api'; diff --git a/src/aria/combobox/public-api.ts b/src/aria/combobox/public-api.ts new file mode 100644 index 000000000000..5b55a45e66b8 --- /dev/null +++ b/src/aria/combobox/public-api.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Combobox} from './combobox'; +export {ComboboxDialog} from './combobox-dialog'; +export {ComboboxInput} from './combobox-input'; +export {ComboboxPopup} from './combobox-popup'; +export {ComboboxPopupContainer} from './combobox-popup-container'; + +// This needs to be re-exported, because it's used by the combobox components. +// See: https://github.com/angular/components/issues/30663. +export {DeferredContent as ɵɵDeferredContent} from '../private'; diff --git a/src/aria/grid/public-api.ts b/src/aria/grid/public-api.ts new file mode 100644 index 000000000000..05e171a92d47 --- /dev/null +++ b/src/aria/grid/public-api.ts @@ -0,0 +1,12 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Grid} from './grid'; +export {GridCell} from './grid-cell'; +export {GridRow} from './grid-row'; +export {GridCellWidget} from './grid-cell-widget'; diff --git a/src/aria/listbox/index.ts b/src/aria/listbox/index.ts index d601e9cbfe33..52b3c7a5156f 100644 --- a/src/aria/listbox/index.ts +++ b/src/aria/listbox/index.ts @@ -6,5 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {Listbox} from './listbox'; -export {Option} from './option'; +export * from './public-api'; diff --git a/src/aria/listbox/public-api.ts b/src/aria/listbox/public-api.ts new file mode 100644 index 000000000000..d601e9cbfe33 --- /dev/null +++ b/src/aria/listbox/public-api.ts @@ -0,0 +1,10 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Listbox} from './listbox'; +export {Option} from './option'; diff --git a/src/aria/menu/index.ts b/src/aria/menu/index.ts index a92a1ead012d..52b3c7a5156f 100644 --- a/src/aria/menu/index.ts +++ b/src/aria/menu/index.ts @@ -6,12 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {MenuTrigger} from './menu-trigger'; -export {Menu} from './menu'; -export {MenuBar} from './menu-bar'; -export {MenuItem} from './menu-item'; -export {MenuContent} from './menu-content'; - -// This needs to be re-exported, because it's used by the menu components. -// See: https://github.com/angular/components/issues/30663. -export {DeferredContent as ɵɵDeferredContent} from '../private'; +export * from './public-api'; diff --git a/src/aria/menu/public-api.ts b/src/aria/menu/public-api.ts new file mode 100644 index 000000000000..a92a1ead012d --- /dev/null +++ b/src/aria/menu/public-api.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {MenuTrigger} from './menu-trigger'; +export {Menu} from './menu'; +export {MenuBar} from './menu-bar'; +export {MenuItem} from './menu-item'; +export {MenuContent} from './menu-content'; + +// This needs to be re-exported, because it's used by the menu components. +// See: https://github.com/angular/components/issues/30663. +export {DeferredContent as ɵɵDeferredContent} from '../private'; diff --git a/src/aria/tabs/index.ts b/src/aria/tabs/index.ts index 6dfbe8827703..52b3c7a5156f 100644 --- a/src/aria/tabs/index.ts +++ b/src/aria/tabs/index.ts @@ -6,12 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {Tabs} from './tabs'; -export {TabList} from './tab-list'; -export {Tab} from './tab'; -export {TabPanel} from './tab-panel'; -export {TabContent} from './tab-content'; - -// This needs to be re-exported, because it's used by the tab components. -// See: https://github.com/angular/components/issues/30663. -export {DeferredContent as ɵɵDeferredContent} from '../private'; +export * from './public-api'; diff --git a/src/aria/tabs/public-api.ts b/src/aria/tabs/public-api.ts new file mode 100644 index 000000000000..6dfbe8827703 --- /dev/null +++ b/src/aria/tabs/public-api.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Tabs} from './tabs'; +export {TabList} from './tab-list'; +export {Tab} from './tab'; +export {TabPanel} from './tab-panel'; +export {TabContent} from './tab-content'; + +// This needs to be re-exported, because it's used by the tab components. +// See: https://github.com/angular/components/issues/30663. +export {DeferredContent as ɵɵDeferredContent} from '../private'; diff --git a/src/aria/toolbar/index.ts b/src/aria/toolbar/index.ts index 50f6e9f89f84..52b3c7a5156f 100644 --- a/src/aria/toolbar/index.ts +++ b/src/aria/toolbar/index.ts @@ -6,6 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {Toolbar} from './toolbar'; -export {ToolbarWidget} from './toolbar-widget'; -export {ToolbarWidgetGroup} from './toolbar-widget-group'; +export * from './public-api'; diff --git a/src/aria/toolbar/public-api.ts b/src/aria/toolbar/public-api.ts new file mode 100644 index 000000000000..50f6e9f89f84 --- /dev/null +++ b/src/aria/toolbar/public-api.ts @@ -0,0 +1,11 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Toolbar} from './toolbar'; +export {ToolbarWidget} from './toolbar-widget'; +export {ToolbarWidgetGroup} from './toolbar-widget-group'; diff --git a/src/aria/tree/index.ts b/src/aria/tree/index.ts index 06449fda7530..52b3c7a5156f 100644 --- a/src/aria/tree/index.ts +++ b/src/aria/tree/index.ts @@ -6,10 +6,4 @@ * found in the LICENSE file at https://angular.dev/license */ -export {Tree} from './tree'; -export {TreeItem} from './tree-item'; -export {TreeItemGroup} from './tree-item-group'; - -// This needs to be re-exported, because it's used by the tree components. -// See: https://github.com/angular/components/issues/30663. -export {DeferredContent as ɵɵDeferredContent} from '../private'; +export * from './public-api'; diff --git a/src/aria/tree/public-api.ts b/src/aria/tree/public-api.ts new file mode 100644 index 000000000000..06449fda7530 --- /dev/null +++ b/src/aria/tree/public-api.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +export {Tree} from './tree'; +export {TreeItem} from './tree-item'; +export {TreeItemGroup} from './tree-item-group'; + +// This needs to be re-exported, because it's used by the tree components. +// See: https://github.com/angular/components/issues/30663. +export {DeferredContent as ɵɵDeferredContent} from '../private'; diff --git a/src/aria/version.ts b/src/aria/version.ts index 4093760bb305..4229bfc1984e 100644 --- a/src/aria/version.ts +++ b/src/aria/version.ts @@ -8,5 +8,5 @@ import {Version} from '@angular/core'; -/** Current version of the CDK Experimental package. */ +/** Current version of the Aria package. */ export const VERSION = new Version('0.0.0-PLACEHOLDER');