@dominevo/ui-library 0.1.0 → 0.1.1

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{SceneMonitorEditor-CU24Au1r.cjs → SceneMonitorEditor-Bres0ZEA.cjs} +1 -1
  3. package/dist/{SceneMonitorEditor-Bj_BN2Ar.js → SceneMonitorEditor-grGP7vRI.js} +1 -1
  4. package/dist/composites/adaptive-downlink.d.ts +1 -1
  5. package/dist/composites/camera-stream-player.d.ts +1 -1
  6. package/dist/composites/charts/StateTimeline.d.ts +3 -1
  7. package/dist/composites/charts/TimeSeriesChart.d.ts +3 -1
  8. package/dist/composites/charts/chart-frame.d.ts +3 -1
  9. package/dist/composites/charts/chart-palette.d.ts +1 -1
  10. package/dist/composites/clips/ClipBandBar.d.ts +1 -1
  11. package/dist/composites/clips/ClipTile.d.ts +1 -1
  12. package/dist/composites/clips/ClipsSection.d.ts +1 -1
  13. package/dist/composites/clips/clip-tile-media.d.ts +2 -2
  14. package/dist/composites/device-card/connected/MeasuredPieCard.d.ts +1 -11
  15. package/dist/composites/device-card/connected/ReadingHistory.d.ts +20 -0
  16. package/dist/composites/device-card/scenes/sensor/ReadingTile.d.ts +1 -1
  17. package/dist/composites/device-card/scenes/sensor/SensorPieCard.d.ts +9 -7
  18. package/dist/composites/device-card/scenes/sensor/pie-css.d.ts +4 -4
  19. package/dist/composites/device-card/scenes/sensor/pie-model.d.ts +5 -0
  20. package/dist/composites/device-card/scenes/sensor/reading-colour.d.ts +32 -0
  21. package/dist/composites/device-export-panel.d.ts +1 -1
  22. package/dist/composites/device-list/url-state.d.ts +1 -1
  23. package/dist/composites/device-picker/device-picker-grouping.d.ts +1 -1
  24. package/dist/composites/device-picker/device-selection.d.ts +1 -1
  25. package/dist/contexts/recorded-playback.d.ts +2 -2
  26. package/dist/contexts/widget-registry.d.ts +1 -1
  27. package/dist/hooks/use-capability-presence.d.ts +21 -0
  28. package/dist/hooks/use-device-list-page-size.d.ts +2 -2
  29. package/dist/hooks/use-url-query.d.ts +2 -2
  30. package/dist/index.cjs +740 -656
  31. package/dist/index.js +741 -657
  32. package/dist/lib/recorded-control-protocol.d.ts +1 -1
  33. package/dist/lib/shared-context.d.ts +1 -1
  34. package/dist/theme/create-theme.d.ts +2 -2
  35. package/dist/theme/defaults.d.ts +4 -4
  36. package/dist/theme/index.cjs +1 -1
  37. package/dist/theme/index.d.ts +1 -1
  38. package/dist/theme/index.js +1 -1
  39. package/dist/theme/theme-to-css.d.ts +2 -2
  40. package/dist/theme/theme-to-root-css.d.ts +2 -2
  41. package/dist/theme/tokens.d.ts +1 -1
  42. package/dist/theme/types.d.ts +4 -4
  43. package/dist/trpc-react.d.ts +3 -3
  44. package/package.json +7 -7
  45. /package/src/tailwind/{camstack-theme.css → dominevo-theme.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.1] - 2026-11-28
11
+
12
+ ### Changed
13
+
14
+ - The device-template help link points at dominevo.app
15
+ - A composed sensor card (pie for two to six readings, grid for seven or more) draws exactly one layout, gives every reading its own chart colour, runs each reading's animation inside its wedge or tile, and opens a compact untitled chart in the reading's unit
16
+ - Network > Device networks lists the mesh networks of a connected Zigbee/Thread gateway: presence of a device-native capability now comes from the device search instead of the empty provider registry
17
+
10
18
  ## [0.1.0] - 2026-11-28
11
19
 
12
20
  ### Changed
@@ -21,7 +21,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
21
21
  *
22
22
  * A bare `<img>` against the `event-media` data plane
23
23
  * (`/addon/pipeline-analytics/event-media/m/<mediaId>` — D482), which is
24
- * `access: 'authenticated'` — that accepts the `camstack_session` cookie, and a
24
+ * `access: 'authenticated'` — that accepts the `dominevo_session` cookie, and a
25
25
  * cookie is the only credential an `<img>` can send. Same mechanism, and the
26
26
  * same reasoning, as `use-device-snapshot`; no bearer-token blob fetch is
27
27
  * needed and no second copy of the auth plumbing is introduced here.
@@ -21,7 +21,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
21
21
  *
22
22
  * A bare `<img>` against the `event-media` data plane
23
23
  * (`/addon/pipeline-analytics/event-media/m/<mediaId>` — D482), which is
24
- * `access: 'authenticated'` — that accepts the `camstack_session` cookie, and a
24
+ * `access: 'authenticated'` — that accepts the `dominevo_session` cookie, and a
25
25
  * cookie is the only credential an `<img>` can send. Same mechanism, and the
26
26
  * same reasoning, as `use-device-snapshot`; no bearer-token blob fetch is
27
27
  * needed and no second copy of the auth plumbing is introduced here.
@@ -44,7 +44,7 @@ export declare function shouldUpgradeAfterProbe(mbps: number): boolean;
44
44
  * `adaptive-probe.routes.ts`) and it is only true for the web viewer and the
45
45
  * iframe embed, both served by the hub. The NATIVE viewer loads this same
46
46
  * player from an asset bundled with the app (`useNativeEmbedSource` resolves
47
- * `assets/embed/camstack-embed.html` through `Image.resolveAssetSource`), so
47
+ * `assets/embed/dominevo-embed.html` through `Image.resolveAssetSource`), so
48
48
  * inside the WKWebView `window.location.origin` is `file://` — and
49
49
  * `file:///adaptive-probe` is not a request any hub can answer. The probe
50
50
  * therefore returned null on EVERY native connect, `downlinkMbps` was never
@@ -293,7 +293,7 @@ export interface CameraStreamPlayerProps {
293
293
  reconnectSignal?: number;
294
294
  /**
295
295
  * Optional control data-channel hook (client-offer mode only). When
296
- * provided, the player opens a `camstack-control` `RTCDataChannel` on the
296
+ * provided, the player opens a `dominevo-control` `RTCDataChannel` on the
297
297
  * PeerConnection BEFORE building the offer (so it is negotiated into the
298
298
  * m=application section) and hands the channel to this callback for each new
299
299
  * connection. Used by the recorded-playback timeline embed to drive the
@@ -32,6 +32,8 @@ export interface StateRowDef {
32
32
  }
33
33
  export interface StateTimelineProps {
34
34
  readonly title: string;
35
+ /** The title stays for screen readers only (a chart whose caller already names it). */
36
+ readonly hideTitle?: boolean;
35
37
  readonly rows: readonly StateRowDef[];
36
38
  readonly range: ChartRange;
37
39
  readonly syncKey?: string;
@@ -46,4 +48,4 @@ export interface StateTimelineProps {
46
48
  export declare function stateStyle(row: Pick<StateRowDef, "kind" | "states" | "colorIndex">, state: string): {
47
49
  readonly token: ChartSwatchToken;
48
50
  };
49
- export declare function StateTimeline({ title, rows, range, syncKey, reserveRightAxis, pending, emptyMessage, actions, className }: StateTimelineProps): JSX.Element;
51
+ export declare function StateTimeline({ title, hideTitle, rows, range, syncKey, reserveRightAxis, pending, emptyMessage, actions, className }: StateTimelineProps): JSX.Element;
@@ -24,6 +24,8 @@ export interface ChartRange {
24
24
  }
25
25
  export interface TimeSeriesChartProps<TId extends string = string> {
26
26
  readonly title: string;
27
+ /** The title is for screen readers only: the chart sits under a heading that names it. */
28
+ readonly hideTitle?: boolean;
27
29
  readonly series: readonly TimeSeriesDef[];
28
30
  /** Spans shaded behind the lines (a run, a window); the point tooltip names the ones under the cursor. */
29
31
  readonly bands?: readonly ChartBand[];
@@ -54,4 +56,4 @@ export interface TimeSeriesChartProps<TId extends string = string> {
54
56
  readonly windowToggle?: ChartWindowToggleProps<TId>;
55
57
  readonly className?: string;
56
58
  }
57
- export declare function TimeSeriesChart<TId extends string = string>({ title, series, bands, range, height, stacked, area, syncKey, reserveRightAxis, formatValue, displayPreference, axisFor, emptyMessage, pending, actions, footer, windowToggle, className }: TimeSeriesChartProps<TId>): JSX.Element;
59
+ export declare function TimeSeriesChart<TId extends string = string>({ title, hideTitle, series, bands, range, height, stacked, area, syncKey, reserveRightAxis, formatValue, displayPreference, axisFor, emptyMessage, pending, actions, footer, windowToggle, className }: TimeSeriesChartProps<TId>): JSX.Element;
@@ -24,6 +24,8 @@ export interface ChartLegendEntry {
24
24
  }
25
25
  export interface ChartFrameProps {
26
26
  readonly title: string;
27
+ /** The caption is read by screen readers only (a chart a heading already names). */
28
+ readonly hideTitle?: boolean;
27
29
  /** Controls at the right of the title (a ⋯ menu). */
28
30
  readonly actions?: ReactNode;
29
31
  /** The instant the readout shows, when the cursor is on the plot. */
@@ -40,7 +42,7 @@ export interface ChartFrameProps {
40
42
  readonly className?: string;
41
43
  readonly children?: ReactNode;
42
44
  }
43
- export declare function ChartFrame({ title, actions, readoutTime, legend, summary, footer, placeholder, controls, className, children }: ChartFrameProps): JSX.Element;
45
+ export declare function ChartFrame({ title, hideTitle, actions, readoutTime, legend, summary, footer, placeholder, controls, className, children }: ChartFrameProps): JSX.Element;
44
46
  /** The swatch: a filled square, or a dashed bar for a dashed series. */
45
47
  export declare function ChartSwatch({ token, dashed }: {
46
48
  readonly token: ChartSwatchToken;
@@ -2,7 +2,7 @@
2
2
  * The chart family's colours — theme tokens only.
3
3
  *
4
4
  * Categorical identity comes from the eight `--color-chart-series-*` tokens in
5
- * `tailwind/camstack-theme.css`, in FIXED order (a blue, b magenta, c yellow,
5
+ * `tailwind/dominevo-theme.css`, in FIXED order (a blue, b magenta, c yellow,
6
6
  * d aqua, e orange, f violet, g green, h red). A series keeps its slot for as
7
7
  * long as it is on screen: the caller assigns the index, never the rank, so a
8
8
  * filter that hides one series does not repaint the others.
@@ -14,7 +14,7 @@
14
14
  * ## What it does NOT take from the recording timeline
15
15
  *
16
16
  * `CoverageTrack` stays behind. There it is the seek surface — a click drives
17
- * the hero player through the `camstack-control` channel or an HLS VOD
17
+ * the hero player through the `dominevo-control` channel or an HLS VOD
18
18
  * request. A copy here would either be a dead bar or a SECOND thing claiming
19
19
  * to move the playhead, and two components holding two ideas of the same
20
20
  * position is the defect this repo keeps paying for. The clips section plays a
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The picture is resolved by `resolveTileMedia` — vouched JPEG, an offer, or
5
5
  * the reason there is none (D549 decision 5). An offer is fetched rather than
6
- * dropped into an `<img src>`, because the route's **204 + x-camstack-reason**
6
+ * dropped into an `<img src>`, because the route's **204 + x-dominevo-reason**
7
7
  * is invisible to an `<img>`: it fires `onerror` with nothing to say. The
8
8
  * refusal is LATCHED for the life of the tile and never retried behind the
9
9
  * operator's back.
@@ -63,7 +63,7 @@
63
63
  * configuration that lives somewhere else. The operator put it exactly:
64
64
  * *"non è affatto necessario lo stato di abilitato o meno delle sources. Loro
65
65
  * vivono lì, ad esempio hksv c'è se la camera è esportata su homekit, reolink
66
- * la dà di suo così come il camstack."* [the enabled-or-not state of the sources is not necessary at all. They live there, for example hksv is there if the camera is exported to homekit, reolink provides it on its own, as does camstack.] HKSV is there if the camera is
66
+ * la dà di suo così come il dominevo."* [the enabled-or-not state of the sources is not necessary at all. They live there, for example hksv is there if the camera is exported to homekit, reolink provides it on its own, as does dominevo.] HKSV is there if the camera is
67
67
  * exported to HomeKit; the Reolink source is there because Reolink is that
68
68
  * camera's provider; Dominevo's is always there. None of that is a decision to
69
69
  * make in a clips list, so this surface offers no switch and writes no
@@ -19,8 +19,8 @@
19
19
  *
20
20
  * ## "Not yet" and "never" are two answers (D563)
21
21
  *
22
- * The 204 carries a CODE (`x-camstack-reason-code`), the camera's own PROSE
23
- * (`x-camstack-reason`) and a DISPOSITION (`x-camstack-disposition`). Only the
22
+ * The 204 carries a CODE (`x-dominevo-reason-code`), the camera's own PROSE
23
+ * (`x-dominevo-reason`) and a DISPOSITION (`x-dominevo-disposition`). Only the
24
24
  * disposition decides whether the tile comes back — this file does not
25
25
  * classify codes, because a client that pattern-matches a server's words
26
26
  * drifts the first time a word changes, and it already had: the route sends
@@ -1,4 +1,4 @@
1
- import type { HeroMeasurement, HeroMeasurementQuantity } from "@dominevo/types";
1
+ import type { HeroMeasurement } from "@dominevo/types";
2
2
  import { type ReactElement } from "react";
3
3
  import type { CardOrientation } from "../shell/model";
4
4
  export interface MeasuredPieCardProps {
@@ -13,13 +13,3 @@ export interface MeasuredPieCardProps {
13
13
  }
14
14
  /** A sensor with several readings: the pie (or, past six, the grid), and the history behind each reading. */
15
15
  export declare function MeasuredPieCard({ deviceId, canActuate, shown, grid, orientation, showName, onDrawn }: MeasuredPieCardProps): ReactElement;
16
- interface ReadingHistoryProps {
17
- readonly deviceId: number;
18
- readonly measurement: HeroMeasurement;
19
- readonly since: string | null;
20
- }
21
- /** The state series of a reading that is on/off rather than a number (no trend line). */
22
- export declare const STATE_READING_HISTORY_KEY: Readonly<Partial<Record<HeroMeasurementQuantity, string>>>;
23
- /** One reading's value and the last day of it; a state reading shows ITS series only, never the device's whole History. */
24
- export declare function ReadingHistory({ deviceId, measurement, since }: ReadingHistoryProps): ReactElement;
25
- export {};
@@ -0,0 +1,20 @@
1
+ import type { HeroMeasurement, HeroMeasurementQuantity } from "@dominevo/types";
2
+ import { type ReactElement } from "react";
3
+ /** The state series of a reading that is on/off rather than a number (no trend line). */
4
+ export declare const STATE_READING_HISTORY_KEY: Readonly<Partial<Record<HeroMeasurementQuantity, string>>>;
5
+ export interface ReadingHistoryProps {
6
+ readonly deviceId: number;
7
+ readonly measurement: HeroMeasurement;
8
+ readonly since: string | null;
9
+ /** The unit the reading is shown in (the card's own text); `null` = none. */
10
+ readonly unit?: string | null;
11
+ /** The reading's chart-palette slot on its card; absent = its quantity's own. */
12
+ readonly slot?: number;
13
+ }
14
+ /**
15
+ * One reading's last day, under the card: no title (the highlighted wedge or tile
16
+ * names it), the axis in the unit the reading is shown in, the line in the reading's
17
+ * own colour. A state reading (motion, contact) is one state band of ITS
18
+ * series, never the device's whole History.
19
+ */
20
+ export declare function ReadingHistory({ deviceId, measurement, since, unit, slot }: ReadingHistoryProps): ReactElement;
@@ -11,7 +11,7 @@ export interface ReadingTileProps {
11
11
  /**
12
12
  * One reading as a tile: its quantity's tint, value and unit big, the short name above,
13
13
  * the single-reading card's own motion behind it and its last-day trend under it. A
14
- * reading with no data is a dashed tile with a "—". The grid and the pie's legend draw it.
14
+ * reading with no data is a dashed tile with a "—". The grid draws it.
15
15
  */
16
16
  export declare function ReadingTile({ reading, selected, dimmed, onSelect, testId }: ReadingTileProps): ReactElement;
17
17
  /** The columns a row of reading tiles holds: as many as the card's width fits (two on a phone). */
@@ -1,5 +1,5 @@
1
1
  import type { HeroMeasurementQuantity } from "@dominevo/types";
2
- import { type ReactElement, type ReactNode } from "react";
2
+ import type { ReactElement, ReactNode } from "react";
3
3
  import type { SceneVisual } from "../../../hero-scene/types";
4
4
  import type { CardCommon, CardCommonActions, CardOrientation, CardState } from "../../shell/model";
5
5
  import { type ReadingState } from "./pie-model";
@@ -18,6 +18,8 @@ export interface PieReading {
18
18
  readonly visual?: SceneVisual | null;
19
19
  /** The reading's last day, the single-reading card's `SensorTrend`; absent until it answers. */
20
20
  readonly trend?: ReactNode;
21
+ /** The chart-palette slot (`assignReadingSlots`) the wedge, tile and history chart share; absent = the quantity's own. */
22
+ readonly slot?: number;
21
23
  }
22
24
  export interface SensorPieCardModel {
23
25
  readonly common: CardCommon;
@@ -41,11 +43,11 @@ export interface SensorPieCardProps {
41
43
  readonly detail?: ReactNode;
42
44
  }
43
45
  /**
44
- * A sensor with several readings: a pie of equal wedges from 12 o'clock, each
45
- * tinted by its quantity, its value, unit and short name at the wedge's centre. A
46
- * reading that is on or alarming breathes, with its quantity's motion clipped
47
- * inside the wedge; one with no data is a dashed wedge with a "—". Under the pie each
48
- * reading is also a `ReadingTile` (its motion and trend, as in the grid). Tapping a
49
- * wedge or a tile highlights it (the others dim) and draws its history below the pie. Seven or more readings are `SensorGridCard`.
46
+ * A sensor with two to six readings: a pie of equal wedges from 12 o'clock, each in
47
+ * its own chart-palette colour, its value, unit and short name at the wedge's centre.
48
+ * Each wedge that has a value carries its reading's own motion (the single-reading card's
49
+ * backdrop), clipped to the wedge; a reading with no data is a still, dashed wedge with a "—". Tapping
50
+ * a wedge highlights it (the others dim) and draws its history below the pie. This is
51
+ * the ONLY layout of such a card: seven or more readings are `SensorGridCard`.
50
52
  */
51
53
  export declare function SensorPieCard({ model, actions, orientation, showName, onSelect, selectedId, detail }: SensorPieCardProps): ReactElement;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The pie's motion: a breathing fill and one small animation per quantity, kept
3
- * inside its wedge by a clip path. Colours come through `currentColor` / theme
4
- * token classes on the elements; under `prefers-reduced-motion` nothing moves.
2
+ * The pie's own motion: a breathing fill on an active wedge. The reading's backdrop
3
+ * motion is the single-reading card's (`MeasurementFx`), clipped to the wedge. Under
4
+ * `prefers-reduced-motion` nothing moves.
5
5
  */
6
- export declare const SENSOR_PIE_CSS = "\n.dc-pie-wedge{outline:none}\n.dc-pie-wedge:focus-visible>path{stroke-width:3}\n.dc-pie-empty{stroke-dasharray:4 4}\n.dc-pie-breathe{animation:dc-pie-breathe 2.8s ease-in-out infinite}\n@keyframes dc-pie-breathe{0%,100%{fill-opacity:.55}50%{fill-opacity:1}}\n.dc-pie-ring{transform-box:fill-box;transform-origin:center;stroke-width:1.4;opacity:0;animation:dc-pie-ring 2.4s ease-out infinite}\n@keyframes dc-pie-ring{0%{transform:scale(.4);opacity:.7}100%{transform:scale(5);opacity:0}}\n.dc-pie-drop{opacity:0;animation:dc-pie-drop 2s linear infinite}\n@keyframes dc-pie-drop{0%{transform:translateY(0);opacity:0}20%,70%{opacity:.7}100%{transform:translateY(56px);opacity:0}}\n.dc-pie-wisp{stroke-width:1.4;stroke-linecap:round;opacity:0;animation:dc-pie-wisp 2.2s ease-out infinite}\n@keyframes dc-pie-wisp{0%{transform:translateY(0);opacity:0}30%{opacity:.7}100%{transform:translateY(-26px);opacity:0}}\n.dc-pie-flow{stroke-width:1.6;stroke-dasharray:5 6;opacity:.7;animation:dc-pie-flow 1.2s linear infinite}\n@keyframes dc-pie-flow{to{stroke-dashoffset:-11}}\n.dc-pie-step-1{animation-delay:.6s}\n.dc-pie-step-2{animation-delay:1.2s}\n@media (prefers-reduced-motion:reduce){.dc-pie-breathe,.dc-pie-ring,.dc-pie-drop,.dc-pie-wisp,.dc-pie-flow{animation:none!important}.dc-pie-ring,.dc-pie-drop,.dc-pie-wisp{opacity:.35}}\n";
6
+ export declare const SENSOR_PIE_CSS = "\n.dc-pie-wedge{outline:none}\n.dc-pie-wedge:focus-visible>path{stroke-width:3}\n.dc-pie-empty{stroke-dasharray:4 4}\n.dc-pie-breathe{animation:dc-pie-breathe 2.8s ease-in-out infinite}\n@keyframes dc-pie-breathe{0%,100%{fill-opacity:.55}50%{fill-opacity:1}}\n@media (prefers-reduced-motion:reduce){.dc-pie-breathe{animation:none!important}}\n";
@@ -47,3 +47,8 @@ export interface PieWedge {
47
47
  }
48
48
  /** `count` equal wedges starting at 12 o'clock, clockwise. */
49
49
  export declare function pieGeometry(count: number): readonly PieWedge[];
50
+ /**
51
+ * The CSS `polygon()` of a wedge as percentages of the pie's square (so it scales with
52
+ * it): the centre, then the arc from its start to its end.
53
+ */
54
+ export declare function wedgeClipPolygon(wedge: PieWedge): string;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The colour of one reading of a composed sensor: a slot of the chart palette
3
+ * (`--color-chart-series-a..h`, `charts/chart-palette.ts`), so the wedge or tile and
4
+ * the history chart under it wear the same token. Each quantity has a PREFERRED slot
5
+ * (humidity is the blue one wherever it is free); when two readings of ONE card want
6
+ * the same slot the later one takes the next free slot, so on one card no two readings
7
+ * share a colour. The preferred slots of the quantities that sit together on a sensor
8
+ * (humidity, voc, illuminance, co2, temperature, motion, pm25, pm10) are all different;
9
+ * aqi and power take the slots of pm25 and pm10, which they do not share a card with.
10
+ * The palette has eight slots, so a card with more than eight readings repeats slots,
11
+ * like the chart's own lap.
12
+ */
13
+ import type { HeroMeasurementQuantity } from "@dominevo/types";
14
+ /** The slot of each reading of a card, in order; all different while the palette lasts. */
15
+ export declare function assignReadingSlots(quantities: readonly HeroMeasurementQuantity[]): readonly number[];
16
+ export interface ReadingSlotClasses {
17
+ /** A pie wedge: fill and edge. */
18
+ readonly wedge: string;
19
+ readonly wedgeSelected: string;
20
+ /** A grid tile: tint and border. */
21
+ readonly tile: string;
22
+ readonly tileSelected: string;
23
+ }
24
+ /** The slot a reading wears: the card-assigned one, else its quantity's preferred one. */
25
+ export declare function readingSlot(reading: {
26
+ readonly quantity: HeroMeasurementQuantity;
27
+ readonly slot?: number | undefined;
28
+ }): number;
29
+ export declare function readingClasses(reading: {
30
+ readonly quantity: HeroMeasurementQuantity;
31
+ readonly slot?: number | undefined;
32
+ }): ReadingSlotClasses;
@@ -1,7 +1,7 @@
1
1
  import { type ExportInstance } from "@dominevo/types";
2
2
  import { type ReactElement } from "react";
3
3
  /** Where the viewer's "rows per page" choice for this table is remembered. */
4
- export declare const DEVICE_EXPORT_PAGE_SIZE_KEY = "camstack.device-export.pageSize";
4
+ export declare const DEVICE_EXPORT_PAGE_SIZE_KEY = "dominevo.device-export.pageSize";
5
5
  export interface DeviceExportPanelProps {
6
6
  /**
7
7
  * Addon id of the export addon whose surface is rendered. Used for
@@ -28,7 +28,7 @@ export interface DeviceListUrlState {
28
28
  }
29
29
  export interface UseDeviceListUrlStateOptions {
30
30
  readonly scope: "root" | "nested";
31
- /** LocalStorage key prefix, e.g. `'devices'` → `camstack:devices:lastFilters`. */
31
+ /** LocalStorage key prefix, e.g. `'devices'` → `dominevo:devices:lastFilters`. */
32
32
  readonly lsKey: string;
33
33
  }
34
34
  export interface UseDeviceListUrlStateResult {
@@ -1,5 +1,5 @@
1
1
  import { type PickerGroupBy, type PickerZonesRead } from "./device-picker-model";
2
- export declare const DEVICE_PICKER_GROUP_STORAGE_KEY = "camstack.admin.device-picker.group-by";
2
+ export declare const DEVICE_PICKER_GROUP_STORAGE_KEY = "dominevo.admin.device-picker.group-by";
3
3
  /** The stored choice; the default when storage is absent, throws or is unreadable. */
4
4
  export declare function readStoredGroupBy(): PickerGroupBy;
5
5
  /** Remember the choice; a storage that refuses keeps it for this page only. */
@@ -21,7 +21,7 @@
21
21
  * device-selection.ts` (viewer) and `packages/addon-admin-ui/src/pages/system/
22
22
  * device-selection.ts` (admin). The viewer resolves `@dominevo/types` from a
23
23
  * published release, so a helper added to the workspace would not exist
24
- * there. `scripts/check-device-selection-in-sync.ts` (camstack-server) fails
24
+ * there. `scripts/check-device-selection-in-sync.ts` (dominevo-server) fails
25
25
  * the commit when the copies differ; edit both.
26
26
  */
27
27
  /** A selected id: a device id, or a node id / package name (D637). */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * RecordedPlayback — shared context wiring the hero player's
3
- * `camstack-control` RTCDataChannel to the Recording timeline (R9).
3
+ * `dominevo-control` RTCDataChannel to the Recording timeline (R9).
4
4
  *
5
5
  * The hero `StreamPanel` (host side) BINDS the channel that
6
6
  * `CameraStreamPlayer` opens on the live WebRTC session; the Recording
@@ -11,7 +11,7 @@
11
11
  * server's playback state + ~1 Hz position reports.
12
12
  *
13
13
  * This is the admin-ui port of the shipped viewer's default recorded path
14
- * (srcV2 → embed → `camstack-control`), replacing "manifest-window HLS only".
14
+ * (srcV2 → embed → `dominevo-control`), replacing "manifest-window HLS only".
15
15
  * The HLS VOD path (VodPlayback context) remains available as a fallback.
16
16
  *
17
17
  * Built on `createSharedContext` (NOT a plain `createContext`) so it crosses
@@ -21,7 +21,7 @@
21
21
  * Why MF instead of raw ESM:
22
22
  * - automatic dedup of shared deps (react/react-dom/@tanstack/etc.)
23
23
  * against the host's instances — no more hand-rolled vendor stubs +
24
- * importmap shims pointing at `window.__camstack*` globals.
24
+ * importmap shims pointing at `window.__dominevo*` globals.
25
25
  * - version negotiation (we pin `singleton: true` everywhere; the host
26
26
  * wins by default).
27
27
  * - cross-bundle context invariant preserved automatically: every
@@ -67,6 +67,27 @@ export declare function classifyCapability(row: CapabilityInfo | null): "present
67
67
  * exact collapse this hook exists to make unrepresentable.
68
68
  */
69
69
  export declare function useCapabilityPresence(capabilityName: string): CapabilityPresence;
70
+ /** A `deviceManager.search` read as React Query reports it, narrowed to what presence needs. */
71
+ export interface DeviceSearchAnswer {
72
+ readonly status: "pending" | "error" | "success";
73
+ readonly data?: {
74
+ readonly items: readonly {
75
+ readonly compatible: boolean;
76
+ }[];
77
+ } | undefined;
78
+ }
79
+ /**
80
+ * Presence of a DEVICE-NATIVE capability, from a device search that requires it.
81
+ *
82
+ * A device-native capability has no addon-level provider: providers register it
83
+ * on the devices they own, so the registry row (`getCapability`) answers
84
+ * `providers: []` forever and `useCapabilityPresence` would say `absent` while
85
+ * the cluster has the capability on many devices. The authority is the device
86
+ * search: `present` when at least one compatible device carries it, `absent`
87
+ * only when the search ANSWERED with none, `pending` until it answers,
88
+ * `unknown` when it failed (D315).
89
+ */
90
+ export declare function classifyDeviceNativePresence(answer: DeviceSearchAnswer): CapabilityPresence;
70
91
  /** A registry read as React Query reports it: its status and, once settled, its row. */
71
92
  export interface CapabilityRegistryAnswer {
72
93
  readonly status: "pending" | "error" | "success";
@@ -2,7 +2,7 @@
2
2
  * useDeviceListPageSize — global page-size preference for the device-list
3
3
  * surfaces (Devices, Integrations, integration detail).
4
4
  *
5
- * ONE shared localStorage key (`camstack.device-list.pageSize`) so changing
5
+ * ONE shared localStorage key (`dominevo.device-list.pageSize`) so changing
6
6
  * the per-page size on any device-list page applies everywhere. The stored
7
7
  * value is validated against {@link DEVICE_LIST_PAGE_SIZE_OPTIONS}; any
8
8
  * garbage / out-of-range value falls back to the provided default.
@@ -17,7 +17,7 @@ export declare const DEVICE_LIST_PAGE_SIZE_OPTIONS: readonly number[];
17
17
  /** Canonical default — used whenever a caller's `defaultSize` is itself invalid. */
18
18
  export declare const DEVICE_LIST_PAGE_SIZE_DEFAULT = 50;
19
19
  /** Single global key shared across every device-list surface. */
20
- export declare const DEVICE_LIST_PAGE_SIZE_KEY = "camstack.device-list.pageSize";
20
+ export declare const DEVICE_LIST_PAGE_SIZE_KEY = "dominevo.device-list.pageSize";
21
21
  export type SetDeviceListPageSize = SetPageSize;
22
22
  /**
23
23
  * @param defaultSize fallback when nothing valid is stored. If it is not itself
@@ -1,8 +1,8 @@
1
1
  /** Marks a history entry an editor was opened on, so closing it can go back instead of stacking. */
2
- export declare const FORM_OPEN_STATE_KEY = "camstackFormOpen";
2
+ export declare const FORM_OPEN_STATE_KEY = "dominevoFormOpen";
3
3
  /** Router-made entries keep their `state` option under `usr`. */
4
4
  export declare const FORM_OPEN_ROUTER_STATE: {
5
- readonly camstackFormOpen: true;
5
+ readonly dominevoFormOpen: true;
6
6
  };
7
7
  /** True when the current history entry was pushed by an editor opening. */
8
8
  export declare function isFormOpenEntry(): boolean;