@trunkjs/browser-utils 1.0.28 → 1.0.31

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.0.31 (2026-02-07)
2
+
3
+ This was a version bump only for browser-utils to align it with other projects, there were no code changes.
4
+
5
+ ## 1.0.30 (2026-02-07)
6
+
7
+ This was a version bump only for browser-utils to align it with other projects, there were no code changes.
8
+
9
+ ## 1.0.29 (2026-02-07)
10
+
11
+ This was a version bump only for browser-utils to align it with other projects, there were no code changes.
12
+
1
13
  ## 1.0.28 (2026-02-03)
2
14
 
3
15
  This was a version bump only for browser-utils to align it with other projects, there were no code changes.
@@ -1,9 +1,12 @@
1
1
  import { Debouncer } from '../lib/Debouncer';
2
2
  type Constructor<T = object> = abstract new (...args: any[]) => T;
3
+ export interface BreakPointMixinInterface {
4
+ currentBreakPoint: string | null;
5
+ }
3
6
  export declare function BreakPointMixin<TBase extends Constructor<HTMLElement>>(Base: TBase): (abstract new (...args: any[]) => {
4
- "__#2877@#debouncer": Debouncer;
7
+ "__#2890@#debouncer": Debouncer;
5
8
  currentBreakPoint: string | null;
6
- "__#2877@#updateBreakPoint": () => Promise<void>;
9
+ "__#2890@#updateBreakPoint": () => Promise<void>;
7
10
  connectedCallback(): void;
8
11
  disconnectedCallback(): void;
9
12
  accessKey: string;
@@ -9,9 +9,9 @@ type OneOrMany<N extends EventName> = N | readonly N[];
9
9
  type EventFromInput<I extends OneOrMany<EventName>> = I extends readonly (infer K)[] ? K extends EventName ? DocumentEventMap[K] : never : I extends EventName ? DocumentEventMap[I] : never;
10
10
  export declare function Listen<I extends OneOrMany<EventName>>(type: I, opts?: ListenOpts): <This, Fn extends (this: This, ev: EventFromInput<I>, ...args: any[]) => any>(value: Fn, context: ClassMethodDecoratorContext<This, Fn>) => Fn;
11
11
  export declare function EventBindingsMixin<TBase extends Ctor<object>>(Base: TBase): (abstract new (...a: any[]) => {
12
- "__#2878@#ac"?: AbortController;
12
+ "__#2891@#ac"?: AbortController;
13
13
  connectedCallback(): void;
14
14
  disconnectedCallback(): void;
15
- "__#2878@#bindEventListeners"(): void;
15
+ "__#2891@#bindEventListeners"(): void;
16
16
  }) & TBase;
17
17
  export {};
@@ -1,5 +1,12 @@
1
1
  import { Logger } from '../lib/Logger';
2
2
  type Constructor<T = object> = abstract new (...args: any[]) => T;
3
+ export interface LoggerMixinInterface {
4
+ getLogger(instanceId?: string): Logger;
5
+ log(...args: any[]): void;
6
+ warn(...args: any[]): void;
7
+ error(...args: any[]): void;
8
+ throwError(...args: any[]): never;
9
+ }
3
10
  /**
4
11
  * LoggingMixin
5
12
  *
@@ -26,14 +33,14 @@ type Constructor<T = object> = abstract new (...args: any[]) => T;
26
33
  * <my-element debug></my-element> // enables debug logging
27
34
  */
28
35
  export declare function LoggingMixin<TBase extends Constructor<object>>(Base: TBase): (abstract new (...args: any[]) => {
29
- "__#2879@#debugCached": boolean | null;
30
- "__#2879@#myElementId": number;
36
+ "__#2892@#debugCached": boolean | null;
37
+ "__#2892@#myElementId": number;
31
38
  /**
32
39
  * Clears the cached debug flag so the attribute will be checked again
33
40
  * on the next log/warn/error call.
34
41
  */
35
42
  invalidateDebugCache(): void;
36
- "__#2879@#myLoggerInstance": Logger | null;
43
+ "__#2892@#myLoggerInstance": Logger | null;
37
44
  readonly _debug: boolean;
38
45
  getLogger(instanceId?: string): Logger;
39
46
  log(...args: any[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkjs/browser-utils",
3
- "version": "1.0.28",
3
+ "version": "1.0.31",
4
4
  "main": "./index.js",
5
5
  "dependencies": {},
6
6
  "type": "module",