@dominevo/ui-library 0.1.5 → 0.1.7

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
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.7] - 2026-11-30
11
+
12
+ ### Changed
13
+
14
+ - Forms use the width they are given: a section's columns is a maximum (1 to 4 tracks at 480, 880 and 1320 px of container), long fields take the full row, helper text and one-column forms have a readable width, form dialogs are wider (new Dialog width form), and SettingRows lays settings cards out in two columns on wide windows
15
+
16
+ ## [0.1.6] - 2026-11-30
17
+
18
+ ### Changed
19
+
20
+ - Instance and provider lists also refresh at once on addon, runner, node and instance events
21
+
10
22
  ## [0.1.5] - 2026-11-30
11
23
 
12
24
  ### Changed
@@ -27,16 +27,5 @@ interface FormBuilderProps {
27
27
  */
28
28
  bare?: boolean;
29
29
  }
30
- /**
31
- * Container-query driven responsive grid. Each section is its own
32
- * `@container` so the column count adapts to the SECTION's width
33
- * (not the viewport) — important inside narrow hosts like the
34
- * device-detail right column / ItemFormDialog. Behavior:
35
- * columns=1 → always 1 col
36
- * columns=2 (default) → 1 col below 480px container, 2 cols above
37
- * columns=3 → 1 → 2 → 3 col at 480px / 880px
38
- * columns=4 → 1 → 2 → 4 col at 480px / 1140px
39
- */
40
- export declare function sectionGridClass(columns: 1 | 2 | 3 | 4 | undefined): string;
41
30
  export declare function ConfigFormBuilder({ schema, values, onChange, disabled, translationFn, onTestField, probeResults, onClearProbe, onAction, bare }: FormBuilderProps): JSX.Element;
42
31
  export {};
@@ -232,8 +232,8 @@ export type { ResponseLogProps } from "./response-log";
232
232
  export { ResponseLog } from "./response-log";
233
233
  export type { ScopeAccess } from "./scope-picker";
234
234
  export { ScopePicker, validateScopes } from "./scope-picker";
235
- export type { SettingRowElements, SettingRowProps } from "./setting-row";
236
- export { SettingRow } from "./setting-row";
235
+ export type { SettingRowElements, SettingRowProps, SettingRowsProps } from "./setting-row";
236
+ export { SettingRow, SettingRows } from "./setting-row";
237
237
  export type { SnapshotButtonProps, SnapshotButtonTrpc } from "./snapshot-button";
238
238
  export { SnapshotButton } from "./snapshot-button";
239
239
  export * from "./stat-card";
@@ -45,3 +45,21 @@ export interface SettingRowProps {
45
45
  readonly wrapValue?: boolean;
46
46
  }
47
47
  export declare function SettingRow({ label, children, actions, elements, className, valueClassName, wrapValue }: SettingRowProps): ReactNode;
48
+ export interface SettingRowsProps {
49
+ readonly children: ReactNode;
50
+ /** Extra classes on the grid (e.g. a spacing rule from the host card). */
51
+ readonly className?: string;
52
+ }
53
+ /**
54
+ * A group of independent `SettingRow`s that uses the width it is given.
55
+ *
56
+ * One column in a narrow card; from an 880px container the rows flow into two
57
+ * label/value columns, so a settings card on a wide window is not a narrow
58
+ * column hugging the left edge. The track count follows the CONTAINER, not the
59
+ * viewport, like the schema form grid (`lib/form-grid.ts`).
60
+ *
61
+ * Only group rows that do not depend on each other: a chain (source -> sensor
62
+ * -> thresholds) reads top to bottom and stays a plain stack. A row that must
63
+ * take the whole line passes `className="@[880px]:col-span-2"`.
64
+ */
65
+ export declare function SettingRows({ children, className }: SettingRowsProps): ReactNode;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The events after which `addons.listCapabilityProviders` / `addons.list` can
3
+ * answer differently: an addon came, went, crashed or was stopped, its runner
4
+ * died (terminally, or to be respawned) or its node went away or came back, or a
5
+ * capability was bound to another provider. They only make the provider lists
6
+ * faster than their 5 s poll: a capability registering with the hub
7
+ * (`registerNode`) announces nothing on the bus, so the poll stays.
8
+ */
9
+ import { EventCategory } from "@dominevo/types";
10
+ export declare const CAPABILITY_PROVIDER_EVENTS: readonly EventCategory[];
11
+ /**
12
+ * What makes the instance list of an addon's `integration-instances` holder
13
+ * move through the hub: an instance created, deleted or updated, or switched.
14
+ * It is NOT every change of the list: an instance's `status` follows the
15
+ * addon's own probes, which announce nothing, so a holder's list keeps a poll
16
+ * and follows these only to be faster than it.
17
+ */
18
+ export declare const INSTANCE_LIST_EVENTS: readonly EventCategory[];
19
+ /** `addons.listCapabilityProviders`, as a procedure path. */
20
+ export declare const LIST_CAPABILITY_PROVIDERS_PATH: readonly string[];
21
+ /** `addons.list`, as a procedure path. */
22
+ export declare const ADDONS_LIST_PATH: readonly string[];
@@ -43,6 +43,7 @@ export type { DestructiveAction, UseDestructiveActionOptions } from "./use-destr
43
43
  export { useDestructiveAction } from "./use-destructive-action";
44
44
  export type { DoorbellPressEvent, UseDoorbellEventsOptions, UseDoorbellEventsResult } from "./use-doorbell-events";
45
45
  export { useDoorbellEvents } from "./use-doorbell-events";
46
+ export { ADDONS_LIST_PATH, CAPABILITY_PROVIDER_EVENTS, INSTANCE_LIST_EVENTS, LIST_CAPABILITY_PROVIDERS_PATH } from "./capability-provider-events";
46
47
  export { LIVE_REFRESH_SAFETY_NET_MS, useEventInvalidation, type EventInvalidationHandle, type EventInvalidationKeyShape, type EventInvalidationOptions } from "./use-event-invalidation";
47
48
  export { useEventStreamLatest, useEventStreamMap } from "./use-event-stream";
48
49
  export { useIsMidWidth, useIsMobile, useIsPhone } from "./use-is-mobile";