@ethlete/core 5.0.0-next.0 → 5.0.0-next.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "5.0.0-next.0",
3
+ "version": "5.0.0-next.2",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -11,7 +11,7 @@
11
11
  "@angular/forms": "21.2.1",
12
12
  "@angular/platform-browser": "21.2.1",
13
13
  "@angular/router": "21.2.1",
14
- "@ethlete/types": "^1.6.2",
14
+ "@ethlete/types": "^2.0.0-next.0",
15
15
  "@floating-ui/dom": "1.7.6",
16
16
  "@nx/devkit": "22.5.4",
17
17
  "@nx/vite": "22.5.4",
@@ -1033,7 +1033,8 @@ declare const injectRenderer: {
1033
1033
  removeClass: (element: HTMLElement, ...classes: string[]) => void;
1034
1034
  toggleClass: (element: HTMLElement, className: string, force?: boolean) => boolean;
1035
1035
  setStyle: (element: HTMLElement, style: Partial<Record<keyof CSSStyleDeclaration, string | null>>, flags?: RendererStyleFlags2) => void;
1036
- removeStyle: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration)[]) => void;
1036
+ removeStyle: (element: HTMLElement, style: keyof CSSStyleDeclaration | string, flags?: RendererStyleFlags2) => void;
1037
+ removeStyles: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration | string)[]) => void;
1037
1038
  setAttribute: (element: HTMLElement, name: string, value: string | null, namespace?: string | null) => void;
1038
1039
  removeAttribute: (element: HTMLElement, ...names: string[]) => void;
1039
1040
  setProperty: (element: HTMLElement, name: string, value: unknown) => void;
@@ -1067,7 +1068,8 @@ declare const injectRenderer: {
1067
1068
  removeClass: (element: HTMLElement, ...classes: string[]) => void;
1068
1069
  toggleClass: (element: HTMLElement, className: string, force?: boolean) => boolean;
1069
1070
  setStyle: (element: HTMLElement, style: Partial<Record<keyof CSSStyleDeclaration, string | null>>, flags?: RendererStyleFlags2) => void;
1070
- removeStyle: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration)[]) => void;
1071
+ removeStyle: (element: HTMLElement, style: keyof CSSStyleDeclaration | string, flags?: RendererStyleFlags2) => void;
1072
+ removeStyles: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration | string)[]) => void;
1071
1073
  setAttribute: (element: HTMLElement, name: string, value: string | null, namespace?: string | null) => void;
1072
1074
  removeAttribute: (element: HTMLElement, ...names: string[]) => void;
1073
1075
  setProperty: (element: HTMLElement, name: string, value: unknown) => void;
@@ -1099,7 +1101,8 @@ declare const injectRenderer: {
1099
1101
  removeClass: (element: HTMLElement, ...classes: string[]) => void;
1100
1102
  toggleClass: (element: HTMLElement, className: string, force?: boolean) => boolean;
1101
1103
  setStyle: (element: HTMLElement, style: Partial<Record<keyof CSSStyleDeclaration, string | null>>, flags?: RendererStyleFlags2) => void;
1102
- removeStyle: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration)[]) => void;
1104
+ removeStyle: (element: HTMLElement, style: keyof CSSStyleDeclaration | string, flags?: RendererStyleFlags2) => void;
1105
+ removeStyles: (element: HTMLElement, ...styles: (keyof CSSStyleDeclaration | string)[]) => void;
1103
1106
  setAttribute: (element: HTMLElement, name: string, value: string | null, namespace?: string | null) => void;
1104
1107
  removeAttribute: (element: HTMLElement, ...names: string[]) => void;
1105
1108
  setProperty: (element: HTMLElement, name: string, value: unknown) => void;
@@ -1442,7 +1445,10 @@ declare const injectCanHover: () => _angular_core.Signal<boolean>;
1442
1445
  /** Inject a signal containing the viewport dimensions */
1443
1446
  declare const injectViewportDimensions: () => _angular_core.Signal<_ethlete_core.NullableElementDimensions>;
1444
1447
  /** Inject a signal containing the scrollbar dimensions. Dimensions will be 0 if scrollbars overlap the page contents (like on mobile). */
1445
- declare const injectScrollbarDimensions: () => _angular_core.Signal<_ethlete_core.NullableElementDimensions>;
1448
+ declare const injectScrollbarDimensions: () => _angular_core.Signal<{
1449
+ width: number;
1450
+ height: number;
1451
+ } | null>;
1446
1452
 
1447
1453
  /**
1448
1454
  * Applies scrollbar size CSS variables to the documentElement (html tag) in pixels.