Skip to content

Commit 8658c30

Browse files
authored
Revert "build: add API goldens for portal" (#16703)
This reverts commit 8b5afcc.
1 parent 92d95ef commit 8658c30

File tree

6 files changed

+12
-136
lines changed

6 files changed

+12
-136
lines changed

src/cdk/portal/dom-portal-outlet.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,3 @@ export class DomPortalOutlet extends BasePortalOutlet {
108108
return (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
109109
}
110110
}
111-
112-
/**
113-
* @deprecated Use `DomPortalOutlet` instead.
114-
* @breaking-change 9.0.0
115-
*/
116-
export class DomPortalHost extends DomPortalOutlet {}

src/cdk/portal/portal-directives.ts

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ export class CdkPortal extends TemplatePortal {
3636
}
3737
}
3838

39-
/**
40-
* @deprecated Use `CdkPortal` instead.
41-
* @breaking-change 9.0.0
42-
*/
43-
@Directive({
44-
selector: '[cdk-portal], [cdkPortal], [portal]',
45-
exportAs: 'cdkPortal',
46-
})
47-
export class TemplatePortalDirective extends CdkPortal {}
48-
4939
/**
5040
* Possible attached references to the CdkPortalOutlet.
5141
*/
@@ -168,20 +158,9 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
168158
}
169159
}
170160

171-
/**
172-
* @deprecated Use `CdkPortalOutlet` instead.
173-
* @breaking-change 9.0.0
174-
*/
175-
@Directive({
176-
selector: '[cdkPortalOutlet], [cdkPortalHost], [portalHost]',
177-
exportAs: 'cdkPortalOutlet, cdkPortalHost',
178-
inputs: ['portal: cdkPortalOutlet']
179-
})
180-
export class PortalHostDirective extends CdkPortalOutlet {}
181-
182161

183162
@NgModule({
184-
exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
185-
declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
163+
exports: [CdkPortal, CdkPortalOutlet],
164+
declarations: [CdkPortal, CdkPortalOutlet],
186165
})
187166
export class PortalModule {}

src/cdk/portal/portal.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ export interface PortalOutlet {
169169
hasAttached(): boolean;
170170
}
171171

172-
/**
173-
* @deprecated Use `PortalOutlet` instead.
174-
* @breaking-change 9.0.0
175-
*/
176-
export type PortalHost = PortalOutlet;
177172

178173
/**
179174
* Partial implementation of PortalOutlet that handles attaching
@@ -259,9 +254,3 @@ export abstract class BasePortalOutlet implements PortalOutlet {
259254
}
260255
}
261256
}
262-
263-
/**
264-
* @deprecated Use `BasePortalOutlet` instead.
265-
* @breaking-change 9.0.0
266-
*/
267-
export abstract class BasePortalHost extends BasePortalOutlet {}

src/cdk/portal/public-api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ export * from './portal';
1010
export * from './dom-portal-outlet';
1111
export * from './portal-directives';
1212
export * from './portal-injector';
13+
14+
export {DomPortalOutlet as DomPortalHost} from './dom-portal-outlet';
15+
export {
16+
CdkPortalOutlet as PortalHostDirective,
17+
CdkPortal as TemplatePortalDirective,
18+
} from './portal-directives';
19+
export {PortalOutlet as PortalHost, BasePortalOutlet as BasePortalHost} from './portal';

tools/public_api_guard/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ package(default_visibility = ["//visibility:public"])
22

33
load(":generate-guard-tests.bzl", "generate_test_targets")
44

5+
# TODO(devversion): All entry-points except the CDK portal are currently validated. This is
6+
# because aliases are not supported by ts-api-guardian. Re-add once we found a solution for that.
7+
58
# Generate the API guard test targets for each golden file in the current package.
69
generate_test_targets(glob(["**/*.d.ts"]))

tools/public_api_guard/cdk/portal.d.ts

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

0 commit comments

Comments
 (0)