@raineworks/ha-dashboards 1.1.0 → 1.1.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.
@@ -15,5 +15,19 @@ export declare const addDays: (date: Date, days: number) => Date;
15
15
  export declare function daysBetween(a: Date, b: Date): number;
16
16
  /** A time of day: "8:00 AM". */
17
17
  export declare const formatTime: (date: Date) => string;
18
+ /** A clock's three numbers (`clockParts`). */
19
+ export interface ClockParts {
20
+ /** Whole hours (0 when under an hour: the clock shows no hours). */
21
+ hours: number;
22
+ /** Minutes past the hour (0–59, or every minute when under an hour). */
23
+ minutes: number;
24
+ /** Seconds past the minute (0–59). */
25
+ seconds: number;
26
+ }
27
+ /**
28
+ * A position or length in seconds split as a clock writes it (`formatClock`), for a clock drawn a
29
+ * number at a time (`NumberFlowClock`). Nothing (undefined, negative, not finite) is 0:00.
30
+ */
31
+ export declare function clockParts(seconds: number | undefined): ClockParts;
18
32
  /** A position or length in seconds as a clock: "0:07", "3:05", "1:02:09" ("0:00" for nothing). */
19
33
  export declare function formatClock(seconds: number | undefined): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raineworks/ha-dashboards",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "description": "Raineworks Dashboards' house settings parser, bedtime routines and setup MCP server, for a house's own Home Assistant config repository",
6
6
  "license": "MIT",