@devicechain/dashboards 1.10.1 → 1.11.0-rc.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.
package/dist/types.d.ts CHANGED
@@ -206,9 +206,14 @@ export type CanvasDensity = (typeof CANVAS_DENSITIES)[number];
206
206
  export declare const DEFAULT_CANVAS_DENSITY: CanvasDensity;
207
207
  export declare const DENSITY_SCALE: Readonly<Record<CanvasDensity, number>>;
208
208
  export declare function isCanvasDensity(value: unknown): value is CanvasDensity;
209
+ export declare const CANVAS_PALETTES: readonly ['standard', 'operator'];
210
+ export type CanvasPalette = (typeof CANVAS_PALETTES)[number];
211
+ export declare const DEFAULT_CANVAS_PALETTE: CanvasPalette;
212
+ export declare function isCanvasPalette(value: unknown): value is CanvasPalette;
209
213
  export interface Canvas {
210
214
  background?: CanvasBackground;
211
215
  density?: CanvasDensity;
216
+ palette?: CanvasPalette;
212
217
  grid: CanvasGrid;
213
218
  sizing: CanvasSizing;
214
219
  breakpoints: Breakpoints;
@@ -252,6 +257,8 @@ export interface SelectionTarget {
252
257
  binding: SlotBinding;
253
258
  }
254
259
  export declare const CURRENT_SCHEMA_VERSION = 3;
260
+ export declare const PALETTE_SCHEMA_VERSION = 4;
261
+ export declare function schemaVersionFor(canvas: Pick<Canvas, 'palette'>): number;
255
262
  export interface BoardTimeRange {
256
263
  defaultSeconds: number;
257
264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devicechain/dashboards",
3
- "version": "1.10.1",
3
+ "version": "1.11.0-rc.1",
4
4
  "description": "DeviceChain dashboard runtime — the DashboardHub (telemetry subscription multiplexing over the client wire, plus the alarm, command and location channels) and the dashboard-definition, selector, slot, and binding-manifest types.",
5
5
  "keywords": [
6
6
  "devicechain",
@@ -47,14 +47,14 @@
47
47
  "@graphql-typed-document-node/core": "^3.2.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@devicechain/client": "1.10.1",
50
+ "@devicechain/client": "1.11.0-rc.1",
51
51
  "graphql": "^16.0.0 || ^17.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@devicechain/client": "1.10.1",
54
+ "@devicechain/client": "1.11.0-rc.1",
55
55
  "@types/node": "^26.6.6",
56
56
  "graphql": "^17.1.0",
57
57
  "typescript": "~7.0.2",
58
- "vitest": "^5.1.1"
58
+ "vitest": "^5.1.2"
59
59
  }
60
60
  }