Skip to content

Revert "build: add API goldens for portal" #16703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2019
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
6 changes: 0 additions & 6 deletions src/cdk/portal/dom-portal-outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,3 @@ export class DomPortalOutlet extends BasePortalOutlet {
return (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
}
}

/**
* @deprecated Use `DomPortalOutlet` instead.
* @breaking-change 9.0.0
*/
export class DomPortalHost extends DomPortalOutlet {}
25 changes: 2 additions & 23 deletions src/cdk/portal/portal-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ export class CdkPortal extends TemplatePortal {
}
}

/**
* @deprecated Use `CdkPortal` instead.
* @breaking-change 9.0.0
*/
@Directive({
selector: '[cdk-portal], [cdkPortal], [portal]',
exportAs: 'cdkPortal',
})
export class TemplatePortalDirective extends CdkPortal {}

/**
* Possible attached references to the CdkPortalOutlet.
*/
Expand Down Expand Up @@ -168,20 +158,9 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
}
}

/**
* @deprecated Use `CdkPortalOutlet` instead.
* @breaking-change 9.0.0
*/
@Directive({
selector: '[cdkPortalOutlet], [cdkPortalHost], [portalHost]',
exportAs: 'cdkPortalOutlet, cdkPortalHost',
inputs: ['portal: cdkPortalOutlet']
})
export class PortalHostDirective extends CdkPortalOutlet {}


@NgModule({
exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
exports: [CdkPortal, CdkPortalOutlet],
declarations: [CdkPortal, CdkPortalOutlet],
})
export class PortalModule {}
11 changes: 0 additions & 11 deletions src/cdk/portal/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ export interface PortalOutlet {
hasAttached(): boolean;
}

/**
* @deprecated Use `PortalOutlet` instead.
* @breaking-change 9.0.0
*/
export type PortalHost = PortalOutlet;

/**
* Partial implementation of PortalOutlet that handles attaching
Expand Down Expand Up @@ -259,9 +254,3 @@ export abstract class BasePortalOutlet implements PortalOutlet {
}
}
}

/**
* @deprecated Use `BasePortalOutlet` instead.
* @breaking-change 9.0.0
*/
export abstract class BasePortalHost extends BasePortalOutlet {}
7 changes: 7 additions & 0 deletions src/cdk/portal/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ export * from './portal';
export * from './dom-portal-outlet';
export * from './portal-directives';
export * from './portal-injector';

export {DomPortalOutlet as DomPortalHost} from './dom-portal-outlet';
export {
CdkPortalOutlet as PortalHostDirective,
CdkPortal as TemplatePortalDirective,
} from './portal-directives';
export {PortalOutlet as PortalHost, BasePortalOutlet as BasePortalHost} from './portal';
3 changes: 3 additions & 0 deletions tools/public_api_guard/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ package(default_visibility = ["//visibility:public"])

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

# TODO(devversion): All entry-points except the CDK portal are currently validated. This is
# because aliases are not supported by ts-api-guardian. Re-add once we found a solution for that.

# Generate the API guard test targets for each golden file in the current package.
generate_test_targets(glob(["**/*.d.ts"]))
96 changes: 0 additions & 96 deletions tools/public_api_guard/cdk/portal.d.ts

This file was deleted.