Skip to content

Commit f99e7ed

Browse files
JeanMecheleonsenft
authored andcommitted
refactor(platform-browser): remove Hammer integration
The integration was deprecated in v20 and will now be removed. BREAKING CHANGE: Hammer.js integration has been removed. Use your own implementation.
1 parent dacd357 commit f99e7ed

File tree

11 files changed

+13
-596
lines changed

11 files changed

+13
-596
lines changed

goldens/public-api/platform-browser/index.api.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -97,48 +97,6 @@ export abstract class EventManagerPlugin {
9797
abstract supports(eventName: string): boolean;
9898
}
9999

100-
// @public @deprecated
101-
export const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
102-
103-
// @public @deprecated
104-
export const HAMMER_LOADER: InjectionToken<HammerLoader>;
105-
106-
// @public @deprecated
107-
export class HammerGestureConfig {
108-
buildHammer(element: HTMLElement): HammerInstance;
109-
events: string[];
110-
options?: {
111-
cssProps?: any;
112-
domEvents?: boolean;
113-
enable?: boolean | ((manager: any) => boolean);
114-
preset?: any[];
115-
touchAction?: string;
116-
recognizers?: any[];
117-
inputClass?: any;
118-
inputTarget?: EventTarget;
119-
};
120-
overrides: {
121-
[key: string]: Object;
122-
};
123-
// (undocumented)
124-
static ɵfac: i0.ɵɵFactoryDeclaration<HammerGestureConfig, never>;
125-
// (undocumented)
126-
static ɵprov: i0.ɵɵInjectableDeclaration<HammerGestureConfig>;
127-
}
128-
129-
// @public @deprecated
130-
export type HammerLoader = () => Promise<void>;
131-
132-
// @public @deprecated
133-
export class HammerModule {
134-
// (undocumented)
135-
static ɵfac: i0.ɵɵFactoryDeclaration<HammerModule, never>;
136-
// (undocumented)
137-
static ɵinj: i0.ɵɵInjectorDeclaration<HammerModule>;
138-
// (undocumented)
139-
static ɵmod: i0.ɵɵNgModuleDeclaration<HammerModule, never, never, never>;
140-
}
141-
142100
// @public
143101
export interface HydrationFeature<FeatureKind extends HydrationFeatureKind> {
144102
// (undocumented)

modules/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
// This file contains all ambient imports needed to compile the modules/ source code
1010

11-
/// <reference types="hammerjs" />
1211
/// <reference types="jasmine" />
1312
/// <reference types="jasminewd2" />
1413
/// <reference types="node" />

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"@types/convert-source-map": "^2.0.0",
9898
"@types/dom-navigation": "^1.0.5",
9999
"@types/firefox-webext-browser": "^143.0.0",
100-
"@types/hammerjs": "2.0.46",
101100
"@types/jasmine": "^6.0.0",
102101
"@types/jasminewd2": "^2.0.8",
103102
"@types/node": "^20.14.8",

packages/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ ts_project(
3131
),
3232
deps = [
3333
":goog_types",
34-
"//:node_modules/@types/hammerjs",
3534
"//:node_modules/tslib",
3635
"//:node_modules/zone.js",
3736
],

packages/platform-browser/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ng_project(
1111
],
1212
),
1313
deps = [
14-
"//:node_modules/@types/hammerjs",
1514
"//packages:goog_types",
1615
"//packages:types",
1716
"//packages/common",

0 commit comments

Comments
 (0)