@ethlete/core 3.6.1 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,20 @@
1
1
  import { AfterViewInit, EventEmitter, InjectionToken } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare const OBSERVE_VISIBILITY_TOKEN: InjectionToken<ObserveVisibilityDirective>;
4
+ export interface ObserveVisibilityChange {
5
+ visible: boolean;
6
+ isAbove: boolean;
7
+ isBelow: boolean;
8
+ isLeft: boolean;
9
+ isRight: boolean;
10
+ entry: IntersectionObserverEntry;
11
+ }
4
12
  export declare class ObserveVisibilityDirective implements AfterViewInit {
5
13
  private readonly _destroy$;
6
14
  private readonly _elementRef;
7
15
  private readonly _intersectionObserverService;
8
- protected readonly isIntersecting: import("@angular/core").WritableSignal<boolean>;
9
- readonly etObserveVisibility: EventEmitter<boolean>;
16
+ protected readonly isIntersecting: import("@angular/core").WritableSignal<ObserveVisibilityChange | null>;
17
+ readonly etObserveVisibility: EventEmitter<ObserveVisibilityChange>;
10
18
  ngAfterViewInit(): void;
11
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ObserveVisibilityDirective, never>;
12
20
  static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveVisibilityDirective, "[etObserveVisibility]", never, {}, { "etObserveVisibility": "etObserveVisibility"; }, never, never, true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "3.6.1",
3
+ "version": "3.7.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },