@camstack/addon-training 0.1.99 → 0.1.100

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,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.100] - 2026-10-28
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
10
16
  ## [0.1.99] - 2026-10-28
11
17
 
12
18
  ### Changed
package/dist/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-0m8NqEDE.mjs";
2
- import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-aLdhRRQr.mjs";
2
+ import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-4OWl-Jop.mjs";
3
3
  import { C as i, S as a, _ as o, a as s, b as c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, p as _, r as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
4
4
  import { i as T, n as E, r as D, t as O } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
5
5
  import { n as k, r as A, t as j } from "./ui-text-CqJgUCKX.mjs";
@@ -40548,15 +40548,15 @@ function fP({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
40548
40548
  min: 0,
40549
40549
  max: 100,
40550
40550
  step: 1,
40551
- value: c.percentage,
40551
+ value: c.level,
40552
40552
  disabled: u,
40553
40553
  onChange: (e) => {
40554
40554
  let t = Number(e.target.value);
40555
- l({ percentage: t }), u || a?.setBrightness({ percentage: t });
40555
+ l({ level: t }), u || a?.setBrightness({ level: t });
40556
40556
  }
40557
40557
  }), /* @__PURE__ */ D("span", {
40558
40558
  className: "tabular-nums w-8 text-right",
40559
- children: [c.percentage, "%"]
40559
+ children: [c.level, "%"]
40560
40560
  })]
40561
40561
  });
40562
40562
  }
@@ -40581,15 +40581,15 @@ function pP({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
40581
40581
  min: 0,
40582
40582
  max: 100,
40583
40583
  step: h,
40584
- value: l.percentage ?? 0,
40584
+ value: l.speed ?? 0,
40585
40585
  disabled: d,
40586
40586
  onChange: (e) => {
40587
40587
  let t = Number(e.target.value), n = Math.min(100, Math.max(0, Math.round(t / h) * h));
40588
- u({ percentage: n }), d || o?.setPercentage({ percentage: n });
40588
+ u({ speed: n }), d || o?.setPercentage({ speed: n });
40589
40589
  }
40590
40590
  }), /* @__PURE__ */ D("span", {
40591
40591
  className: "tabular-nums w-8 text-right",
40592
- children: [l.percentage ?? "—", "%"]
40592
+ children: [l.speed ?? "—", "%"]
40593
40593
  })]
40594
40594
  }), m && l.availablePresets.length > 0 && /* @__PURE__ */ E("div", {
40595
40595
  className: "flex items-center gap-2 text-xs text-foreground-subtle",
@@ -41390,25 +41390,25 @@ function qP(e, t) {
41390
41390
  var JP = {
41391
41391
  "temperature-sensor": {
41392
41392
  kind: "numeric",
41393
- field: "celsius",
41393
+ field: "temperature",
41394
41394
  quantity: "temperature",
41395
41395
  getSliceHandle: (e) => e.temperatureSensor
41396
41396
  },
41397
41397
  "humidity-sensor": {
41398
41398
  kind: "numeric",
41399
- field: "percent",
41399
+ field: "humidity",
41400
41400
  quantity: "humidity",
41401
41401
  getSliceHandle: (e) => e.humiditySensor
41402
41402
  },
41403
41403
  "ambient-light-sensor": {
41404
41404
  kind: "numeric",
41405
- field: "lux",
41405
+ field: "illuminance",
41406
41406
  quantity: "illuminance",
41407
41407
  getSliceHandle: (e) => e.ambientLightSensor
41408
41408
  },
41409
41409
  "pressure-sensor": {
41410
41410
  kind: "numeric",
41411
- field: "hpa",
41411
+ field: "pressure",
41412
41412
  quantity: "pressure",
41413
41413
  getSliceHandle: (e) => e.pressureSensor
41414
41414
  },
@@ -41450,25 +41450,25 @@ var JP = {
41450
41450
  },
41451
41451
  "power-sensor": {
41452
41452
  kind: "numeric",
41453
- field: "watts",
41453
+ field: "power",
41454
41454
  quantity: "power",
41455
41455
  getSliceHandle: (e) => e.powerMeter
41456
41456
  },
41457
41457
  "energy-sensor": {
41458
41458
  kind: "numeric",
41459
- field: "kwhTotal",
41459
+ field: "energy",
41460
41460
  quantity: "energy",
41461
41461
  getSliceHandle: (e) => e.powerMeter
41462
41462
  },
41463
41463
  "voltage-sensor": {
41464
41464
  kind: "numeric",
41465
- field: "volts",
41465
+ field: "voltage",
41466
41466
  quantity: "voltage",
41467
41467
  getSliceHandle: (e) => e.powerMeter
41468
41468
  },
41469
41469
  "current-sensor": {
41470
41470
  kind: "numeric",
41471
- field: "amps",
41471
+ field: "current",
41472
41472
  quantity: "current",
41473
41473
  getSliceHandle: (e) => e.powerMeter
41474
41474
  },
@@ -42066,9 +42066,9 @@ function vF(e, t) {
42066
42066
  }
42067
42067
  function yF(e) {
42068
42068
  let t = vF(e, "battery");
42069
- if (!(!gF(t) || typeof t.percentage != "number")) return {
42069
+ if (!(!gF(t) || typeof t.level != "number")) return {
42070
42070
  ...t,
42071
- value: t.percentage
42071
+ value: t.level
42072
42072
  };
42073
42073
  }
42074
42074
  function bF(e) {
@@ -42668,17 +42668,17 @@ function WF({ trpc: e, deviceId: t }) {
42668
42668
  children: c.label
42669
42669
  }), i?.batteryLevel != null && /* @__PURE__ */ E(VF, { level: i.batteryLevel })]
42670
42670
  }),
42671
- i?.progressPercent != null && /* @__PURE__ */ D("div", {
42671
+ i?.progress != null && /* @__PURE__ */ D("div", {
42672
42672
  className: "flex items-center gap-2",
42673
42673
  children: [/* @__PURE__ */ E("div", {
42674
42674
  className: "h-1.5 flex-1 rounded bg-surface-hover overflow-hidden",
42675
42675
  children: /* @__PURE__ */ E("div", {
42676
42676
  className: "h-full bg-primary transition-[width] duration-500",
42677
- style: { width: `${Math.max(0, Math.min(100, i.progressPercent))}%` }
42677
+ style: { width: `${Math.max(0, Math.min(100, i.progress))}%` }
42678
42678
  })
42679
42679
  }), /* @__PURE__ */ D("span", {
42680
42680
  className: "tabular-nums text-xs text-foreground-subtle",
42681
- children: [Math.round(i.progressPercent), "%"]
42681
+ children: [Math.round(i.progress), "%"]
42682
42682
  })]
42683
42683
  }),
42684
42684
  i?.errorCode != null && i.errorCode !== 0 && /* @__PURE__ */ D("div", {
@@ -43138,7 +43138,7 @@ function rI({ trpc: e, deviceId: t }) {
43138
43138
  children: c.label
43139
43139
  }), i?.batteryLevel != null && /* @__PURE__ */ E($F, { level: i.batteryLevel })]
43140
43140
  }),
43141
- i?.progressPercent != null && /* @__PURE__ */ E(ZF, { percent: i.progressPercent }),
43141
+ i?.progress != null && /* @__PURE__ */ E(ZF, { percent: i.progress }),
43142
43142
  i?.currentCode != null && /* @__PURE__ */ E(QF, {
43143
43143
  code: i.currentCode,
43144
43144
  label: i.currentCodeLabel,
@@ -45319,9 +45319,9 @@ function hL({ trpc: e, deviceId: t, layout: n }) {
45319
45319
  title: s.program,
45320
45320
  children: cL(s.program)
45321
45321
  }),
45322
- s.remainingSeconds != null && /* @__PURE__ */ D("span", {
45322
+ s.remaining != null && /* @__PURE__ */ D("span", {
45323
45323
  className: "inline-flex items-center gap-0.5 text-xs text-foreground-subtle tabular-nums shrink-0",
45324
- children: [/* @__PURE__ */ E(cr, { className: "h-3 w-3" }), dL(s.remainingSeconds, r)]
45324
+ children: [/* @__PURE__ */ E(cr, { className: "h-3 w-3" }), dL(s.remaining, r)]
45325
45325
  }),
45326
45326
  /* @__PURE__ */ E(pL, {
45327
45327
  label: r("uiLibrary.dishwasher.start", "Start"),
@@ -45347,7 +45347,7 @@ function hL({ trpc: e, deviceId: t, layout: n }) {
45347
45347
  className: "flex items-start gap-4",
45348
45348
  children: [/* @__PURE__ */ E(mL, {
45349
45349
  running: f,
45350
- progressPercent: s.progressPercent
45350
+ progressPercent: s.progress
45351
45351
  }), /* @__PURE__ */ D("div", {
45352
45352
  className: "flex min-w-0 flex-1 flex-col gap-2",
45353
45353
  children: [
@@ -45366,25 +45366,25 @@ function hL({ trpc: e, deviceId: t, layout: n }) {
45366
45366
  title: s.program,
45367
45367
  children: cL(s.program)
45368
45368
  }),
45369
- s.remainingSeconds != null && /* @__PURE__ */ D("span", {
45369
+ s.remaining != null && /* @__PURE__ */ D("span", {
45370
45370
  className: "inline-flex items-center gap-1 text-sm text-foreground-subtle tabular-nums",
45371
- children: [/* @__PURE__ */ E(cr, { className: "h-3.5 w-3.5" }), r("uiLibrary.dishwasher.remaining", "{{time}} left", { time: dL(s.remainingSeconds, r) })]
45371
+ children: [/* @__PURE__ */ E(cr, { className: "h-3.5 w-3.5" }), r("uiLibrary.dishwasher.remaining", "{{time}} left", { time: dL(s.remaining, r) })]
45372
45372
  }),
45373
- s.delayedStartSeconds != null && s.delayedStartSeconds > 0 && /* @__PURE__ */ E("span", {
45373
+ s.delayedStart != null && s.delayedStart > 0 && /* @__PURE__ */ E("span", {
45374
45374
  className: "text-xs text-foreground-subtle tabular-nums",
45375
- children: r("uiLibrary.dishwasher.startsIn", "Starts in {{time}}", { time: dL(s.delayedStartSeconds, r) })
45375
+ children: r("uiLibrary.dishwasher.startsIn", "Starts in {{time}}", { time: dL(s.delayedStart, r) })
45376
45376
  }),
45377
- s.progressPercent != null && /* @__PURE__ */ D("div", {
45377
+ s.progress != null && /* @__PURE__ */ D("div", {
45378
45378
  className: "flex items-center gap-2",
45379
45379
  children: [/* @__PURE__ */ E("div", {
45380
45380
  className: "h-1.5 flex-1 rounded bg-surface-hover overflow-hidden",
45381
45381
  children: /* @__PURE__ */ E("div", {
45382
45382
  className: "h-full bg-primary transition-[width] duration-500",
45383
- style: { width: `${Math.max(0, Math.min(100, s.progressPercent))}%` }
45383
+ style: { width: `${Math.max(0, Math.min(100, s.progress))}%` }
45384
45384
  })
45385
45385
  }), /* @__PURE__ */ D("span", {
45386
45386
  className: "tabular-nums text-xs text-foreground-subtle",
45387
- children: [Math.round(s.progressPercent), "%"]
45387
+ children: [Math.round(s.progress), "%"]
45388
45388
  })]
45389
45389
  }),
45390
45390
  /* @__PURE__ */ D("div", {
@@ -46511,7 +46511,7 @@ function mR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46511
46511
  slice: (e) => e.state.color
46512
46512
  }), c = cP(a.slice, { enabled: r ?? !0 }), l = cP(o.slice, { enabled: r ?? !0 }), u = cP(s.slice, { enabled: r ?? !0 });
46513
46513
  if (a.cap === void 0 || c.display === void 0) return null;
46514
- let d = c.display.on === !0, f = !a.available, p = l.display?.percentage ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? fR : pR, _ = (n?.includes(Ke.LightColorMired) ?? !1) && s.cap !== void 0, v = u.display?.mireds, y = !s.available;
46514
+ let d = c.display.on === !0, f = !a.available, p = l.display?.level ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? fR : pR, _ = (n?.includes(Ke.LightColorMired) ?? !1) && s.cap !== void 0, v = u.display?.colorTemperature, y = !s.available;
46515
46515
  return /* @__PURE__ */ D("div", {
46516
46516
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-4",
46517
46517
  children: [
@@ -46549,7 +46549,7 @@ function mR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46549
46549
  disabled: m || !d,
46550
46550
  onChange: (e) => {
46551
46551
  let t = Number(e.target.value);
46552
- l.applyOptimistic({ percentage: t }), m || o.cap?.setBrightness({ percentage: t });
46552
+ l.applyOptimistic({ level: t }), m || o.cap?.setBrightness({ level: t });
46553
46553
  }
46554
46554
  }),
46555
46555
  /* @__PURE__ */ D("span", {
@@ -46600,10 +46600,10 @@ function mR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46600
46600
  let t = Number(e.target.value);
46601
46601
  u.applyOptimistic({
46602
46602
  mode: "mired",
46603
- mireds: t
46603
+ colorTemperature: t
46604
46604
  }), y || s.cap?.setColor({ color: {
46605
46605
  mode: "mired",
46606
- mireds: t
46606
+ colorTemperature: t
46607
46607
  } });
46608
46608
  }
46609
46609
  }),
@@ -46636,7 +46636,7 @@ function _R({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46636
46636
  slice: (e) => e.state.fanControl
46637
46637
  }), s = cP(a.slice, { enabled: r ?? !0 }), c = cP(o.slice, { enabled: r ?? !0 });
46638
46638
  if (a.cap === void 0 || s.display === void 0) return null;
46639
- let l = s.display.on === !0, u = !a.available, d = c.display?.percentage ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? hR : gR, h = n?.includes(Ke.FanSpeed) ?? !1, g = (n?.includes(Ke.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], v = (n?.includes(Ke.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, y = c.display?.preset ?? "", b = c.display?.oscillating === !0, x = () => {
46639
+ let l = s.display.on === !0, u = !a.available, d = c.display?.speed ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? hR : gR, h = n?.includes(Ke.FanSpeed) ?? !1, g = (n?.includes(Ke.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], v = (n?.includes(Ke.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, y = c.display?.preset ?? "", b = c.display?.oscillating === !0, x = () => {
46640
46640
  if (u) return;
46641
46641
  let e = !l;
46642
46642
  s.applyOptimistic({ on: e }), a.cap?.setState({ on: e });
@@ -46649,7 +46649,7 @@ function _R({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46649
46649
  let t = c.display;
46650
46650
  if (t === void 0) return;
46651
46651
  let n = t.percentageStep !== void 0 && t.percentageStep > 0 ? t.percentageStep : 1, r = Math.min(100, Math.max(0, Math.round(e * 100 / n) * n));
46652
- c.applyOptimistic({ percentage: r }), o.cap?.setPercentage({ percentage: r });
46652
+ c.applyOptimistic({ speed: r }), o.cap?.setPercentage({ speed: r });
46653
46653
  }, w = (e) => {
46654
46654
  f || e === "" || (c.applyOptimistic({ preset: e }), o.cap?.setPreset({ preset: e }));
46655
46655
  };
@@ -46826,9 +46826,9 @@ function wR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46826
46826
  slice: (e) => e.state.mediaPlayer
46827
46827
  }), { display: c, applyOptimistic: l } = cP(o, { enabled: r ?? !0 });
46828
46828
  if (a === void 0 || c === void 0) return null;
46829
- let u = !s, d = yR(c.state), f = (n?.includes(Ke.MediaPlayerSeek) ?? !1) && c.durationMs !== null && c.durationMs > 0, p = n?.includes(Ke.MediaPlayerNext) ?? !1, m = n?.includes(Ke.MediaPlayerPrevious) ?? !1, h = (n?.includes(Ke.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
46829
+ let u = !s, d = yR(c.state), f = (n?.includes(Ke.MediaPlayerSeek) ?? !1) && c.duration !== null && c.duration > 0, p = n?.includes(Ke.MediaPlayerNext) ?? !1, m = n?.includes(Ke.MediaPlayerPrevious) ?? !1, h = (n?.includes(Ke.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
46830
46830
  u || (d === "play" ? (l({ state: "playing" }), a.play({})) : (l({ state: "paused" }), a.pause({})));
46831
- }, _ = c.currentMedia?.artist ?? c.currentMedia?.album ?? null, v = bR(c.positionMs, c.durationMs), y = c.volumeLevel ?? 0;
46831
+ }, _ = c.currentMedia?.artist ?? c.currentMedia?.album ?? null, v = bR(c.position, c.duration), y = c.volumeLevel ?? 0;
46832
46832
  return /* @__PURE__ */ D("div", {
46833
46833
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-6",
46834
46834
  children: [
@@ -46850,15 +46850,15 @@ function wR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46850
46850
  "aria-label": i("uiLibrary.mediaPlayerHero.seek", "Seek"),
46851
46851
  type: "range",
46852
46852
  min: 0,
46853
- max: c.durationMs ?? 0,
46853
+ max: c.duration ?? 0,
46854
46854
  step: 1e3,
46855
46855
  className: "absolute inset-0 h-4 w-full cursor-pointer opacity-0",
46856
- value: c.positionMs ?? 0,
46856
+ value: c.position ?? 0,
46857
46857
  disabled: u,
46858
46858
  onChange: (e) => {
46859
46859
  if (u) return;
46860
46860
  let t = Number(e.target.value);
46861
- l({ positionMs: t }), a.seek({ positionMs: t });
46861
+ l({ position: t }), a.seek({ position: t });
46862
46862
  }
46863
46863
  }),
46864
46864
  /* @__PURE__ */ E("div", {
@@ -46868,7 +46868,7 @@ function wR({ trpc: e, deviceId: t, features: n, optimistic: r }) {
46868
46868
  ]
46869
46869
  }), /* @__PURE__ */ D("div", {
46870
46870
  className: "flex justify-between text-[11px] tabular-nums text-foreground-subtle",
46871
- children: [/* @__PURE__ */ E("span", { children: xR(c.positionMs) }), /* @__PURE__ */ E("span", { children: xR(c.durationMs) })]
46871
+ children: [/* @__PURE__ */ E("span", { children: xR(c.position) }), /* @__PURE__ */ E("span", { children: xR(c.duration) })]
46872
46872
  })]
46873
46873
  }),
46874
46874
  /* @__PURE__ */ D("div", {
@@ -1,4 +1,4 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-aLdhRRQr.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-4OWl-Jop.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_training_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.434",
21
+ version: "1.2.435",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_training_page",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.342",
36
+ version: "1.2.343",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_training_page",