fix(core): remove core animation import symbols (#22692)
This patch removes the deprecated support for animation symbol imports from @angular/core. BREAKING CHANGE: it is no longer possible to import animation-related functions from @angular/core. All animation symbols must now be imported from @angular/animations. PR Close #22692
This commit is contained in:

committed by
Kara Erickson

parent
c09bd67aee
commit
f5a98f41fe
112
tools/public_api_guard/core/core.d.ts
vendored
112
tools/public_api_guard/core/core.d.ts
vendored
@ -21,90 +21,6 @@ export interface AfterViewInit {
|
||||
/** @experimental */
|
||||
export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
|
||||
|
||||
/** @deprecated */
|
||||
export declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata): AnimationAnimateMetadata;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationAnimateMetadata extends AnimationMetadata {
|
||||
styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null;
|
||||
timings: string | number | AnimateTimings;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare type AnimationEntryMetadata = any;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationGroupMetadata extends AnimationMetadata {
|
||||
steps: AnimationMetadata[];
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare type AnimationKeyframe = any;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
|
||||
steps: AnimationStyleMetadata[];
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationMetadata {
|
||||
type: AnimationMetadataType;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare type AnimationPlayer = any;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationSequenceMetadata extends AnimationMetadata {
|
||||
steps: AnimationMetadata[];
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationStateMetadata extends AnimationMetadata {
|
||||
name: string;
|
||||
styles: AnimationStyleMetadata;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare type AnimationStateTransitionMetadata = any;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationStyleMetadata extends AnimationMetadata {
|
||||
offset: number | null;
|
||||
styles: '*' | {
|
||||
[key: string]: string | number;
|
||||
} | Array<{
|
||||
[key: string]: string | number;
|
||||
} | '*'>;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare type AnimationStyles = any;
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationTransitionEvent {
|
||||
element: any;
|
||||
fromState: string;
|
||||
phaseName: string;
|
||||
toState: string;
|
||||
totalTime: number;
|
||||
triggerName: string;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationTransitionMetadata extends AnimationMetadata {
|
||||
animation: AnimationMetadata | AnimationMetadata[];
|
||||
expr: string | ((fromState: string, toState: string, element: any, params: {
|
||||
[key: string]: any;
|
||||
}) => boolean);
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export interface AnimationTriggerMetadata {
|
||||
definitions: AnimationMetadata[];
|
||||
name: string;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
||||
|
||||
@ -147,9 +63,6 @@ export declare function assertPlatform(requiredToken: any): PlatformRef;
|
||||
/** @stable */
|
||||
export declare const Attribute: AttributeDecorator;
|
||||
|
||||
/** @deprecated */
|
||||
export declare const AUTO_STYLE = "*";
|
||||
|
||||
/** @stable */
|
||||
export declare enum ChangeDetectionStrategy {
|
||||
OnPush = 0,
|
||||
@ -431,9 +344,6 @@ export interface GetTestability {
|
||||
findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function group(steps: AnimationMetadata[]): AnimationGroupMetadata;
|
||||
|
||||
/** @stable */
|
||||
export declare const Host: HostDecorator;
|
||||
|
||||
@ -562,9 +472,6 @@ export declare class IterableDiffers {
|
||||
static extend(factories: IterableDifferFactory[]): StaticProvider;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
|
||||
|
||||
/** @stable */
|
||||
export interface KeyValueChangeRecord<K, V> {
|
||||
readonly currentValue: V | null;
|
||||
@ -935,9 +842,6 @@ export interface SelfDecorator {
|
||||
new (): Self;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceMetadata;
|
||||
|
||||
/** @experimental */
|
||||
export declare function setTestabilityGetter(getter: GetTestability): void;
|
||||
|
||||
@ -964,19 +868,9 @@ export interface SkipSelfDecorator {
|
||||
new (): SkipSelf;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function state(name: string, styles: AnimationStyleMetadata): AnimationStateMetadata;
|
||||
|
||||
/** @stable */
|
||||
export declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
|
||||
|
||||
/** @deprecated */
|
||||
export declare function style(tokens: {
|
||||
[key: string]: string | number;
|
||||
} | Array<{
|
||||
[key: string]: string | number;
|
||||
}>): AnimationStyleMetadata;
|
||||
|
||||
/** @experimental */
|
||||
export declare class SystemJsNgModuleLoader implements NgModuleFactoryLoader {
|
||||
constructor(_compiler: Compiler, config?: SystemJsNgModuleLoaderConfig);
|
||||
@ -1023,18 +917,12 @@ export interface TrackByFunction<T> {
|
||||
(index: number, item: T): any;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]): AnimationTransitionMetadata;
|
||||
|
||||
/** @experimental */
|
||||
export declare const TRANSLATIONS: InjectionToken<string>;
|
||||
|
||||
/** @experimental */
|
||||
export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
|
||||
|
||||
/** @deprecated */
|
||||
export declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
|
||||
|
||||
/** @stable */
|
||||
export declare const Type: FunctionConstructor;
|
||||
|
||||
|
Reference in New Issue
Block a user