ngx-resize-observer
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -1,3 +0,3 @@ | ||
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core'; | ||
import { NgxResizeObserverService, ResizeObserverEntry } from './ngx-resize-observer.service'; | ||
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; | ||
import { NgxResizeObserverService } from './ngx-resize-observer.service'; | ||
import * as i0 from "@angular/core"; | ||
@@ -12,3 +12,3 @@ export declare class NgxResizeObserverDirective implements AfterViewInit, OnChanges, OnDestroy { | ||
ngAfterViewInit(): void; | ||
ngOnChanges(changes: any): void; | ||
ngOnChanges(changes: SimpleChanges): void; | ||
ngOnDestroy(): void; | ||
@@ -18,3 +18,3 @@ private observe; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxResizeObserverDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxResizeObserverDirective, "[onResize]", never, { "resizeBoxModel": "resizeBoxModel"; }, { "onResize": "onResize"; }, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxResizeObserverDirective, "[onResize]", never, { "resizeBoxModel": "resizeBoxModel"; }, { "onResize": "onResize"; }, never, never, false, never>; | ||
} |
@@ -7,27 +7,6 @@ import { NgZone, OnDestroy } from '@angular/core'; | ||
} | ||
export interface ResizeObserverEntry { | ||
borderBoxSize?: ResizeObserverBoxSize; | ||
contentBoxSize?: ResizeObserverBoxSize; | ||
contentRect?: { | ||
bottom: number; | ||
height: number; | ||
left: number; | ||
right: number; | ||
top: number; | ||
width: number; | ||
x: number; | ||
y: number; | ||
}; | ||
target: Element; | ||
} | ||
export declare type ResizeObserverCallback = (resizes: ResizeObserverEntry[], observer: ResizeObserverInterface) => void; | ||
export declare type ResizeObserverCallback = (resizes: ResizeObserverEntry[], observer: ResizeObserver) => void; | ||
export interface ResizeObserverConfig { | ||
box?: 'content-box' | 'border-box'; | ||
} | ||
export interface ResizeObserverInterface { | ||
new (callback: ResizeObserverCallback): any; | ||
observe: (target: Element, config?: ResizeObserverConfig) => void; | ||
unobserve: (target: Element) => void; | ||
disconnect: () => void; | ||
} | ||
export declare type ResizeObserverServiceCallback = (resize: ResizeObserverEntry) => void; | ||
@@ -34,0 +13,0 @@ export declare class NgxResizeObserverService implements OnDestroy { |
{ | ||
"name": "ngx-resize-observer", | ||
"version": "2.3.0", | ||
"dependencies": { | ||
"tslib": "^2.3.1" | ||
}, | ||
"version": "2.4.0", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@angular/common": "^14.0.0", | ||
"@angular/core": "^14.0.0" | ||
"@angular/common": "^15.0.0", | ||
"@angular/core": "^15.0.0" | ||
}, | ||
@@ -16,3 +14,3 @@ "module": "fesm2015/ngx-resize-observer.mjs", | ||
"fesm2015": "fesm2015/ngx-resize-observer.mjs", | ||
"typings": "ngx-resize-observer.d.ts", | ||
"typings": "index.d.ts", | ||
"exports": { | ||
@@ -23,3 +21,3 @@ "./package.json": { | ||
".": { | ||
"types": "./ngx-resize-observer.d.ts", | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/ngx-resize-observer.mjs", | ||
@@ -32,3 +30,6 @@ "es2020": "./fesm2020/ngx-resize-observer.mjs", | ||
}, | ||
"sideEffects": false | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
1
54952
461
+ Added@angular/common@15.2.10(transitive)
+ Added@angular/core@15.2.10(transitive)
+ Addedzone.js@0.13.3(transitive)
- Removed@angular/common@14.3.0(transitive)
- Removed@angular/core@14.3.0(transitive)
- Removedzone.js@0.12.0(transitive)
Updatedtslib@^2.3.0