Skip to content

Commit 35deca6

Browse files
authored
[chore]: add tree exports to main index (#34448)
1 parent 914ee93 commit 35deca6

4 files changed

Lines changed: 59 additions & 3 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Add tree exports to main index",
4+
"packageName": "@fluentui/web-components",
5+
"email": "jes@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/web-components/docs/web-components.api.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,32 @@ export class BaseTextInput extends FASTElement {
925925
get willValidate(): boolean;
926926
}
927927

928+
// Warning: (ae-missing-release-tag) "BaseTree" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
929+
//
930+
// @public (undocumented)
931+
export class BaseTree extends FASTElement {
932+
constructor();
933+
// @internal
934+
blurHandler(e: FocusEvent): void;
935+
// @internal
936+
changeHandler(e: Event): boolean | void;
937+
// Warning: (ae-forgotten-export) The symbol "BaseTreeItem" needs to be exported by the entry point index.d.ts
938+
//
939+
// (undocumented)
940+
childTreeItems: BaseTreeItem[];
941+
// (undocumented)
942+
childTreeItemsChanged(): void;
943+
// @internal
944+
clickHandler(e: Event): boolean | void;
945+
currentSelected: HTMLElement | null;
946+
// @internal
947+
elementInternals: ElementInternals;
948+
// @internal
949+
focusHandler(e: FocusEvent): void;
950+
// @internal
951+
keydownHandler(e: KeyboardEvent): boolean | void;
952+
}
953+
928954
// @public
929955
export const borderRadiusCircular = "var(--borderRadiusCircular)";
930956

@@ -2767,8 +2793,6 @@ export function isDropdownOption(value: Node | null, tagName?: string): value is
27672793
// @public
27682794
export function isListbox(element?: Node | null, tagName?: string): element is Listbox;
27692795

2770-
// Warning: (ae-forgotten-export) The symbol "BaseTreeItem" needs to be exported by the entry point index.d.ts
2771-
//
27722796
// @public
27732797
export function isTreeItem(element?: Node | null, tagName?: string): element is BaseTreeItem;
27742798

@@ -4296,6 +4320,20 @@ export const TooltipStyles: ElementStyles;
42964320
// @public
42974321
export const TooltipTemplate: ViewTemplate<Tooltip, any>;
42984322

4323+
// Warning: (ae-missing-release-tag) "Tree" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4324+
//
4325+
// @public
4326+
export class Tree extends BaseTree {
4327+
appearance: TreeItemAppearance;
4328+
// @internal
4329+
childTreeItemsChanged(): void;
4330+
size: TreeItemSize;
4331+
updateSizeAndAppearance(): void;
4332+
}
4333+
4334+
// @public (undocumented)
4335+
export const TreeDefinition: FASTElementDefinition<typeof Tree>;
4336+
42994337
// Warning: (ae-missing-release-tag) "TreeItem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
43004338
//
43014339
// @public
@@ -4345,6 +4383,16 @@ export const TreeItemStyles: ElementStyles;
43454383
// @public (undocumented)
43464384
export const TreeItemTemplate: ViewTemplate<TreeItem, any>;
43474385

4386+
// Warning: (ae-missing-release-tag) "styles" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4387+
//
4388+
// @public (undocumented)
4389+
export const TreeStyles: ElementStyles;
4390+
4391+
// Warning: (ae-missing-release-tag) "template" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
4392+
//
4393+
// @public (undocumented)
4394+
export const TreeTemplate: ViewTemplate<Tree, any>;
4395+
43484396
// Warning: (ae-missing-release-tag) "typographyBody1StrongerStyles" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
43494397
//
43504398
// @public (undocumented)

packages/web-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"build": "yarn compile && yarn rollup -c && yarn generate-api && yarn analyze",
9393
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts",
9494
"lint:fix": "eslint . --ext .ts --fix",
95-
"format": "prettier -w src/**/*.{ts,html} --ignore-path ../../.prettierignore",
95+
"format": "prettier -w src/**/*.{ts,html} src/*.{ts,html} --ignore-path ../../.prettierignore",
9696
"format:check": "yarn format -c",
9797
"code-style": "yarn format:check && yarn lint",
9898
"start": "yarn start-storybook -p 6006 --docs",

packages/web-components/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ export {
339339
TooltipStyles,
340340
TooltipTemplate,
341341
} from './tooltip/index.js';
342+
export { BaseTree, Tree, TreeDefinition, TreeTemplate, TreeStyles } from './tree/index.js';
342343
export { TreeItem, TreeItemDefinition, TreeItemTemplate, TreeItemStyles } from './tree-item/index.js';
343344
export type { isTreeItem, TreeItemAppearance, TreeItemSize } from './tree-item/index.js';
344345
export {

0 commit comments

Comments
 (0)