Skip to content

Commit 707472c

Browse files
authored
chore: remove dummy tree-view component (#3528)
1 parent b5e054e commit 707472c

File tree

9 files changed

+0
-156
lines changed

9 files changed

+0
-156
lines changed

build-tools/utils/pluralize.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const pluralizationMap = {
7979
ToggleButton: 'ToggleButtons',
8080
TokenGroup: 'TokenGroups',
8181
TopNavigation: 'TopNavigations',
82-
TreeView: 'TreeViews',
8382
TutorialPanel: 'TutorialPanels',
8483
Wizard: 'Wizards',
8584
};

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20425,28 +20425,6 @@ The following properties are supported across all utility types:
2042520425
}
2042620426
`;
2042720427

20428-
exports[`Documenter definition for tree-view matches the snapshot: tree-view 1`] = `
20429-
{
20430-
"dashCaseName": "tree-view",
20431-
"events": [],
20432-
"functions": [],
20433-
"name": "TreeView",
20434-
"properties": [
20435-
{
20436-
"defaultValue": "[]",
20437-
"name": "items",
20438-
"optional": false,
20439-
"type": "Array<{ text: string; }>",
20440-
},
20441-
],
20442-
"regions": [],
20443-
"releaseStatus": "stable",
20444-
"systemTags": [
20445-
"core",
20446-
],
20447-
}
20448-
`;
20449-
2045020428
exports[`Documenter definition for tutorial-panel matches the snapshot: tutorial-panel 1`] = `
2045120429
{
2045220430
"dashCaseName": "tutorial-panel",

src/__tests__/snapshot-tests/__snapshots__/test-utils-selectors.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,6 @@ exports[`test-utils selectors 1`] = `
664664
"awsui_utility-wrapper_1ca1i",
665665
"awsui_utility-wrapper_k5dlb",
666666
],
667-
"tree-view": [
668-
"awsui_root_1js4f",
669-
],
670667
"tutorial-panel": [
671668
"awsui_collapse-button_ig8mp",
672669
"awsui_completed_ig8mp",

src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ import ToggleWrapper from './toggle';
8787
import ToggleButtonWrapper from './toggle-button';
8888
import TokenGroupWrapper from './token-group';
8989
import TopNavigationWrapper from './top-navigation';
90-
import TreeViewWrapper from './tree-view';
9190
import TutorialPanelWrapper from './tutorial-panel';
9291
import WizardWrapper from './wizard';
9392

@@ -170,7 +169,6 @@ export { ToggleWrapper };
170169
export { ToggleButtonWrapper };
171170
export { TokenGroupWrapper };
172171
export { TopNavigationWrapper };
173-
export { TreeViewWrapper };
174172
export { TutorialPanelWrapper };
175173
export { WizardWrapper };
176174

@@ -1659,25 +1657,6 @@ findTopNavigation(selector?: string): TopNavigationWrapper | null;
16591657
* @returns {Array<TopNavigationWrapper>}
16601658
*/
16611659
findAllTopNavigations(selector?: string): Array<TopNavigationWrapper>;
1662-
/**
1663-
* Returns the wrapper of the first TreeView that matches the specified CSS selector.
1664-
* If no CSS selector is specified, returns the wrapper of the first TreeView.
1665-
* If no matching TreeView is found, returns \`null\`.
1666-
*
1667-
* @param {string} [selector] CSS Selector
1668-
* @returns {TreeViewWrapper | null}
1669-
*/
1670-
findTreeView(selector?: string): TreeViewWrapper | null;
1671-
1672-
/**
1673-
* Returns an array of TreeView wrapper that matches the specified CSS selector.
1674-
* If no CSS selector is specified, returns all of the TreeViews inside the current wrapper.
1675-
* If no matching TreeView is found, returns an empty array.
1676-
*
1677-
* @param {string} [selector] CSS Selector
1678-
* @returns {Array<TreeViewWrapper>}
1679-
*/
1680-
findAllTreeViews(selector?: string): Array<TreeViewWrapper>;
16811660
/**
16821661
* Returns the wrapper of the first TutorialPanel that matches the specified CSS selector.
16831662
* If no CSS selector is specified, returns the wrapper of the first TutorialPanel.
@@ -2500,16 +2479,6 @@ ElementWrapper.prototype.findTopNavigation = function(selector) {
25002479
ElementWrapper.prototype.findAllTopNavigations = function(selector) {
25012480
return this.findAllComponents(TopNavigationWrapper, selector);
25022481
};
2503-
ElementWrapper.prototype.findTreeView = function(selector) {
2504-
const rootSelector = \`.\${TreeViewWrapper.rootSelector}\`;
2505-
// casting to 'any' is needed to avoid this issue with generics
2506-
// https://github.com/microsoft/TypeScript/issues/29132
2507-
return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TreeViewWrapper);
2508-
};
2509-
2510-
ElementWrapper.prototype.findAllTreeViews = function(selector) {
2511-
return this.findAllComponents(TreeViewWrapper, selector);
2512-
};
25132482
ElementWrapper.prototype.findTutorialPanel = function(selector) {
25142483
const rootSelector = \`.\${TutorialPanelWrapper.rootSelector}\`;
25152484
// casting to 'any' is needed to avoid this issue with generics
@@ -2628,7 +2597,6 @@ import ToggleWrapper from './toggle';
26282597
import ToggleButtonWrapper from './toggle-button';
26292598
import TokenGroupWrapper from './token-group';
26302599
import TopNavigationWrapper from './top-navigation';
2631-
import TreeViewWrapper from './tree-view';
26322600
import TutorialPanelWrapper from './tutorial-panel';
26332601
import WizardWrapper from './wizard';
26342602

@@ -2711,7 +2679,6 @@ export { ToggleWrapper };
27112679
export { ToggleButtonWrapper };
27122680
export { TokenGroupWrapper };
27132681
export { TopNavigationWrapper };
2714-
export { TreeViewWrapper };
27152682
export { TutorialPanelWrapper };
27162683
export { WizardWrapper };
27172684

@@ -4044,23 +4011,6 @@ findTopNavigation(selector?: string): TopNavigationWrapper;
40444011
* @returns {MultiElementWrapper<TopNavigationWrapper>}
40454012
*/
40464013
findAllTopNavigations(selector?: string): MultiElementWrapper<TopNavigationWrapper>;
4047-
/**
4048-
* Returns a wrapper that matches the TreeViews with the specified CSS selector.
4049-
* If no CSS selector is specified, returns a wrapper that matches TreeViews.
4050-
*
4051-
* @param {string} [selector] CSS Selector
4052-
* @returns {TreeViewWrapper}
4053-
*/
4054-
findTreeView(selector?: string): TreeViewWrapper;
4055-
4056-
/**
4057-
* Returns a multi-element wrapper that matches TreeViews with the specified CSS selector.
4058-
* If no CSS selector is specified, returns a multi-element wrapper that matches TreeViews.
4059-
*
4060-
* @param {string} [selector] CSS Selector
4061-
* @returns {MultiElementWrapper<TreeViewWrapper>}
4062-
*/
4063-
findAllTreeViews(selector?: string): MultiElementWrapper<TreeViewWrapper>;
40644014
/**
40654015
* Returns a wrapper that matches the TutorialPanels with the specified CSS selector.
40664016
* If no CSS selector is specified, returns a wrapper that matches TutorialPanels.
@@ -4879,16 +4829,6 @@ ElementWrapper.prototype.findTopNavigation = function(selector) {
48794829
ElementWrapper.prototype.findAllTopNavigations = function(selector) {
48804830
return this.findAllComponents(TopNavigationWrapper, selector);
48814831
};
4882-
ElementWrapper.prototype.findTreeView = function(selector) {
4883-
const rootSelector = \`.\${TreeViewWrapper.rootSelector}\`;
4884-
// casting to 'any' is needed to avoid this issue with generics
4885-
// https://github.com/microsoft/TypeScript/issues/29132
4886-
return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TreeViewWrapper);
4887-
};
4888-
4889-
ElementWrapper.prototype.findAllTreeViews = function(selector) {
4890-
return this.findAllComponents(TreeViewWrapper, selector);
4891-
};
48924832
ElementWrapper.prototype.findTutorialPanel = function(selector) {
48934833
const rootSelector = \`.\${TutorialPanelWrapper.rootSelector}\`;
48944834
// casting to 'any' is needed to avoid this issue with generics

src/test-utils/dom/tree-view/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/tree-view/__tests__/tree-view.test.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/tree-view/index.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/tree-view/interfaces.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/tree-view/test-classes/styles.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)