@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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Client-side wire codec for the `camstack-control` RTCDataChannel (R9).
2
+ * Client-side wire codec for the `dominevo-control` RTCDataChannel (R9).
3
3
  *
4
4
  * Mirrors the broker's `control-protocol.ts`
5
5
  * (packages/addon-pipeline/src/stream-broker/recorded/control-protocol.ts):
@@ -25,6 +25,6 @@
25
25
  */
26
26
  import { type Context } from "react";
27
27
  declare global {
28
- var __camstackSharedContexts: Map<string, Context<unknown>> | undefined;
28
+ var __dominevoSharedContexts: Map<string, Context<unknown>> | undefined;
29
29
  }
30
30
  export declare function createSharedContext<T>(name: string, defaultValue: T): Context<T>;
@@ -1,2 +1,2 @@
1
- import type { CamStackTheme, DeepPartial } from "./types";
2
- export declare function createTheme(overrides?: DeepPartial<CamStackTheme>): CamStackTheme;
1
+ import type { DominevoTheme, DeepPartial } from "./types";
2
+ export declare function createTheme(overrides?: DeepPartial<DominevoTheme>): DominevoTheme;
@@ -1,4 +1,4 @@
1
- import type { CamStackColorTokens, CamStackTheme } from "./types";
2
- export declare const darkColors: CamStackColorTokens;
3
- export declare const lightColors: CamStackColorTokens;
4
- export declare const defaultTheme: CamStackTheme;
1
+ import type { DominevoColorTokens, DominevoTheme } from "./types";
2
+ export declare const darkColors: DominevoColorTokens;
3
+ export declare const lightColors: DominevoColorTokens;
4
+ export declare const defaultTheme: DominevoTheme;
@@ -23,7 +23,7 @@ function resolveMode(mode) {
23
23
  if (mode === "system") return getSystemPreference();
24
24
  return mode;
25
25
  }
26
- function ThemeProvider({ children, defaultMode = "system", storageKey = "camstack-theme-mode" }) {
26
+ function ThemeProvider({ children, defaultMode = "system", storageKey = "dominevo-theme-mode" }) {
27
27
  const [mode, setModeState] = (0, react.useState)(() => getInitialMode(storageKey, defaultMode));
28
28
  const [resolvedMode, setResolvedMode] = (0, react.useState)(() => resolveMode(mode));
29
29
  const setMode = (0, react.useCallback)((newMode) => {
@@ -1,4 +1,4 @@
1
- export type { CamStackColorTokens, CamStackTheme, ThemeMode, DeepPartial, UseThemeModeReturn } from "./types";
1
+ export type { DominevoColorTokens, DominevoTheme, ThemeMode, DeepPartial, UseThemeModeReturn } from "./types";
2
2
  export { darkColors, lightColors, defaultTheme } from "./defaults";
3
3
  export { createTheme } from "./create-theme";
4
4
  export { themeToCss } from "./theme-to-css";
@@ -22,7 +22,7 @@ function resolveMode(mode) {
22
22
  if (mode === "system") return getSystemPreference();
23
23
  return mode;
24
24
  }
25
- function ThemeProvider({ children, defaultMode = "system", storageKey = "camstack-theme-mode" }) {
25
+ function ThemeProvider({ children, defaultMode = "system", storageKey = "dominevo-theme-mode" }) {
26
26
  const [mode, setModeState] = useState(() => getInitialMode(storageKey, defaultMode));
27
27
  const [resolvedMode, setResolvedMode] = useState(() => resolveMode(mode));
28
28
  const setMode = useCallback((newMode) => {
@@ -1,3 +1,3 @@
1
- import type { CamStackTheme } from "./types";
1
+ import type { DominevoTheme } from "./types";
2
2
  export declare function camelToKebab(str: string): string;
3
- export declare function themeToCss(theme: CamStackTheme): string;
3
+ export declare function themeToCss(theme: DominevoTheme): string;
@@ -1,4 +1,4 @@
1
- import type { CamStackTheme } from "./types";
1
+ import type { DominevoTheme } from "./types";
2
2
  /**
3
3
  * The theme as plain CSS custom properties on `:root`, with no Tailwind
4
4
  * directive: light colours by default, dark inside `prefers-color-scheme`.
@@ -7,4 +7,4 @@ import type { CamStackTheme } from "./types";
7
7
  * UI's tokens reads the same names. For pages with no CSS toolchain, such as
8
8
  * the hub's standalone server-rendered pages.
9
9
  */
10
- export declare function themeToRootCss(theme: CamStackTheme): string;
10
+ export declare function themeToRootCss(theme: DominevoTheme): string;
@@ -3,7 +3,7 @@
3
3
  * form. A separate entry (`@dominevo/ui-library/theme/tokens`) so a Node
4
4
  * process can read the tokens without loading React.
5
5
  */
6
- export type { CamStackColorTokens, CamStackTheme } from "./types";
6
+ export type { DominevoColorTokens, DominevoTheme } from "./types";
7
7
  export { darkColors, lightColors, defaultTheme } from "./defaults";
8
8
  export { themeToCss } from "./theme-to-css";
9
9
  export { themeToRootCss } from "./theme-to-root-css";
@@ -1,4 +1,4 @@
1
- export interface CamStackColorTokens {
1
+ export interface DominevoColorTokens {
2
2
  primary: string;
3
3
  primaryForeground: string;
4
4
  background: string;
@@ -35,10 +35,10 @@ export interface CamStackColorTokens {
35
35
  rtsp: string;
36
36
  };
37
37
  }
38
- export interface CamStackTheme {
38
+ export interface DominevoTheme {
39
39
  colors: {
40
- dark: CamStackColorTokens;
41
- light: CamStackColorTokens;
40
+ dark: DominevoColorTokens;
41
+ light: DominevoColorTokens;
42
42
  };
43
43
  spacing: {
44
44
  xs: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared typed React Query proxy for the backend AppRouter.
3
3
  *
4
- * The proxy is exposed on `window.__camstackTrpcReact` so addon-page
4
+ * The proxy is exposed on `window.__dominevoTrpcReact` so addon-page
5
5
  * bundles (which load AFTER the host admin-ui sets the global) reuse
6
6
  * the host's `createTRPCReact` instance instead of creating a separate
7
7
  * one. Sharing the instance is mandatory because the typed React-Query
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * Boot order:
13
13
  * 1. admin-ui's `main.tsx` is the first script to evaluate this
14
- * module, sees `window.__camstackTrpcReact === undefined`,
14
+ * module, sees `window.__dominevoTrpcReact === undefined`,
15
15
  * creates the proxy, stashes it on the window.
16
16
  * 2. Addon bundles are loaded later by `AddonPageLoader` — when
17
17
  * their entrypoint evaluates this same module (resolved through
@@ -22,6 +22,6 @@ import { type CreateTRPCReact } from "@trpc/react-query";
22
22
  import type { AppRouter } from "@dominevo/types";
23
23
  export type AppTrpcReact = CreateTRPCReact<AppRouter, unknown>;
24
24
  declare global {
25
- var __camstackTrpcReact: AppTrpcReact | undefined;
25
+ var __dominevoTrpcReact: AppTrpcReact | undefined;
26
26
  }
27
27
  export declare const trpc: AppTrpcReact;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dominevo/ui-library",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dominevo/server.git",
7
7
  "directory": "packages/ui-library"
8
8
  },
9
- "homepage": "https://camstack-docs.zentik.app",
9
+ "homepage": "https://dominevo.app/docs",
10
10
  "bugs": {
11
11
  "url": "https://github.com/dominevo/server/issues"
12
12
  },
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "./tailwind/*": "./src/tailwind/*"
38
38
  },
39
- "camstack": {
39
+ "dominevo": {
40
40
  "system": true,
41
41
  "displayName": "UI Library",
42
42
  "description": "Shared React components and hooks for admin/agent UIs."
@@ -55,8 +55,8 @@
55
55
  "publish:npm": "npm publish --access public"
56
56
  },
57
57
  "peerDependencies": {
58
- "@dominevo/sdk": "0.1.0",
59
- "@dominevo/types": "0.1.0",
58
+ "@dominevo/sdk": "*",
59
+ "@dominevo/types": "*",
60
60
  "@tanstack/react-query": "^5.0.0",
61
61
  "@tanstack/react-table": "^8.21.3",
62
62
  "@trpc/client": "^11.16.0",
@@ -101,8 +101,8 @@
101
101
  "zod": "^4.3.6"
102
102
  },
103
103
  "devDependencies": {
104
- "@dominevo/sdk": "0.1.0",
105
- "@dominevo/types": "0.1.0",
104
+ "@dominevo/sdk": "*",
105
+ "@dominevo/types": "*",
106
106
  "@module-federation/runtime": "^2.4.0",
107
107
  "@tanstack/react-query": "^5.0.0",
108
108
  "@tanstack/react-table": "^8.21.3",