@camstack/addon-model-studio 1.1.313 → 1.1.314

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
+ ## [1.1.314] - 2026-10-28
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
10
16
  ## [1.1.313] - 2026-10-28
11
17
 
12
18
  ### Changed
package/dist/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-CWSi4E_g.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CeE6-aSe.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D2YHXWx9.mjs";
3
3
  import { S as e, _ as t, a as n, b as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, p as f, r as p, t as m, u as h, v as g, y as _ } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
4
4
  import { n as v, r as y, t as b } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
5
5
  import { n as x, r as S, t as C } from "./ui-text-BqZa5BNK.mjs";
@@ -33650,15 +33650,15 @@ function AC({ trpc: e, deviceId: t, layout: n, optimistic: r }) {
33650
33650
  min: 0,
33651
33651
  max: 100,
33652
33652
  step: 1,
33653
- value: c.percentage,
33653
+ value: c.level,
33654
33654
  disabled: u,
33655
33655
  onChange: (e) => {
33656
33656
  let t = Number(e.target.value);
33657
- l({ percentage: t }), u || a?.setBrightness({ percentage: t });
33657
+ l({ level: t }), u || a?.setBrightness({ level: t });
33658
33658
  }
33659
33659
  }), /* @__PURE__ */ y("span", {
33660
33660
  className: "tabular-nums w-8 text-right",
33661
- children: [c.percentage, "%"]
33661
+ children: [c.level, "%"]
33662
33662
  })]
33663
33663
  });
33664
33664
  }
@@ -33683,15 +33683,15 @@ function jC({ trpc: e, deviceId: t, features: n, layout: r, optimistic: i }) {
33683
33683
  min: 0,
33684
33684
  max: 100,
33685
33685
  step: h,
33686
- value: l.percentage ?? 0,
33686
+ value: l.speed ?? 0,
33687
33687
  disabled: d,
33688
33688
  onChange: (e) => {
33689
33689
  let t = Number(e.target.value), n = Math.min(100, Math.max(0, Math.round(t / h) * h));
33690
- u({ percentage: n }), d || o?.setPercentage({ percentage: n });
33690
+ u({ speed: n }), d || o?.setPercentage({ speed: n });
33691
33691
  }
33692
33692
  }), /* @__PURE__ */ y("span", {
33693
33693
  className: "tabular-nums w-8 text-right",
33694
- children: [l.percentage ?? "—", "%"]
33694
+ children: [l.speed ?? "—", "%"]
33695
33695
  })]
33696
33696
  }), m && l.availablePresets.length > 0 && /* @__PURE__ */ v("div", {
33697
33697
  className: "flex items-center gap-2 text-xs text-foreground-subtle",
@@ -34492,25 +34492,25 @@ function dw(e, t) {
34492
34492
  var fw = {
34493
34493
  "temperature-sensor": {
34494
34494
  kind: "numeric",
34495
- field: "celsius",
34495
+ field: "temperature",
34496
34496
  quantity: "temperature",
34497
34497
  getSliceHandle: (e) => e.temperatureSensor
34498
34498
  },
34499
34499
  "humidity-sensor": {
34500
34500
  kind: "numeric",
34501
- field: "percent",
34501
+ field: "humidity",
34502
34502
  quantity: "humidity",
34503
34503
  getSliceHandle: (e) => e.humiditySensor
34504
34504
  },
34505
34505
  "ambient-light-sensor": {
34506
34506
  kind: "numeric",
34507
- field: "lux",
34507
+ field: "illuminance",
34508
34508
  quantity: "illuminance",
34509
34509
  getSliceHandle: (e) => e.ambientLightSensor
34510
34510
  },
34511
34511
  "pressure-sensor": {
34512
34512
  kind: "numeric",
34513
- field: "hpa",
34513
+ field: "pressure",
34514
34514
  quantity: "pressure",
34515
34515
  getSliceHandle: (e) => e.pressureSensor
34516
34516
  },
@@ -34552,25 +34552,25 @@ var fw = {
34552
34552
  },
34553
34553
  "power-sensor": {
34554
34554
  kind: "numeric",
34555
- field: "watts",
34555
+ field: "power",
34556
34556
  quantity: "power",
34557
34557
  getSliceHandle: (e) => e.powerMeter
34558
34558
  },
34559
34559
  "energy-sensor": {
34560
34560
  kind: "numeric",
34561
- field: "kwhTotal",
34561
+ field: "energy",
34562
34562
  quantity: "energy",
34563
34563
  getSliceHandle: (e) => e.powerMeter
34564
34564
  },
34565
34565
  "voltage-sensor": {
34566
34566
  kind: "numeric",
34567
- field: "volts",
34567
+ field: "voltage",
34568
34568
  quantity: "voltage",
34569
34569
  getSliceHandle: (e) => e.powerMeter
34570
34570
  },
34571
34571
  "current-sensor": {
34572
34572
  kind: "numeric",
34573
- field: "amps",
34573
+ field: "current",
34574
34574
  quantity: "current",
34575
34575
  getSliceHandle: (e) => e.powerMeter
34576
34576
  },
@@ -35168,9 +35168,9 @@ function Iw(e, t) {
35168
35168
  }
35169
35169
  function Lw(e) {
35170
35170
  let t = Iw(e, "battery");
35171
- if (!(!Pw(t) || typeof t.percentage != "number")) return {
35171
+ if (!(!Pw(t) || typeof t.level != "number")) return {
35172
35172
  ...t,
35173
- value: t.percentage
35173
+ value: t.level
35174
35174
  };
35175
35175
  }
35176
35176
  function Rw(e) {
@@ -35770,17 +35770,17 @@ function cT({ trpc: e, deviceId: t }) {
35770
35770
  children: c.label
35771
35771
  }), i?.batteryLevel != null && /* @__PURE__ */ v(aT, { level: i.batteryLevel })]
35772
35772
  }),
35773
- i?.progressPercent != null && /* @__PURE__ */ y("div", {
35773
+ i?.progress != null && /* @__PURE__ */ y("div", {
35774
35774
  className: "flex items-center gap-2",
35775
35775
  children: [/* @__PURE__ */ v("div", {
35776
35776
  className: "h-1.5 flex-1 rounded bg-surface-hover overflow-hidden",
35777
35777
  children: /* @__PURE__ */ v("div", {
35778
35778
  className: "h-full bg-primary transition-[width] duration-500",
35779
- style: { width: `${Math.max(0, Math.min(100, i.progressPercent))}%` }
35779
+ style: { width: `${Math.max(0, Math.min(100, i.progress))}%` }
35780
35780
  })
35781
35781
  }), /* @__PURE__ */ y("span", {
35782
35782
  className: "tabular-nums text-xs text-foreground-subtle",
35783
- children: [Math.round(i.progressPercent), "%"]
35783
+ children: [Math.round(i.progress), "%"]
35784
35784
  })]
35785
35785
  }),
35786
35786
  i?.errorCode != null && i.errorCode !== 0 && /* @__PURE__ */ y("div", {
@@ -36240,7 +36240,7 @@ function xT({ trpc: e, deviceId: t }) {
36240
36240
  children: c.label
36241
36241
  }), i?.batteryLevel != null && /* @__PURE__ */ v(_T, { level: i.batteryLevel })]
36242
36242
  }),
36243
- i?.progressPercent != null && /* @__PURE__ */ v(hT, { percent: i.progressPercent }),
36243
+ i?.progress != null && /* @__PURE__ */ v(hT, { percent: i.progress }),
36244
36244
  i?.currentCode != null && /* @__PURE__ */ v(gT, {
36245
36245
  code: i.currentCode,
36246
36246
  label: i.currentCodeLabel,
@@ -38421,9 +38421,9 @@ function NE({ trpc: e, deviceId: t, layout: n }) {
38421
38421
  title: s.program,
38422
38422
  children: EE(s.program)
38423
38423
  }),
38424
- s.remainingSeconds != null && /* @__PURE__ */ y("span", {
38424
+ s.remaining != null && /* @__PURE__ */ y("span", {
38425
38425
  className: "inline-flex items-center gap-0.5 text-xs text-foreground-subtle tabular-nums shrink-0",
38426
- children: [/* @__PURE__ */ v(Ar, { className: "h-3 w-3" }), kE(s.remainingSeconds, r)]
38426
+ children: [/* @__PURE__ */ v(Ar, { className: "h-3 w-3" }), kE(s.remaining, r)]
38427
38427
  }),
38428
38428
  /* @__PURE__ */ v(jE, {
38429
38429
  label: r("uiLibrary.dishwasher.start", "Start"),
@@ -38449,7 +38449,7 @@ function NE({ trpc: e, deviceId: t, layout: n }) {
38449
38449
  className: "flex items-start gap-4",
38450
38450
  children: [/* @__PURE__ */ v(ME, {
38451
38451
  running: f,
38452
- progressPercent: s.progressPercent
38452
+ progressPercent: s.progress
38453
38453
  }), /* @__PURE__ */ y("div", {
38454
38454
  className: "flex min-w-0 flex-1 flex-col gap-2",
38455
38455
  children: [
@@ -38468,25 +38468,25 @@ function NE({ trpc: e, deviceId: t, layout: n }) {
38468
38468
  title: s.program,
38469
38469
  children: EE(s.program)
38470
38470
  }),
38471
- s.remainingSeconds != null && /* @__PURE__ */ y("span", {
38471
+ s.remaining != null && /* @__PURE__ */ y("span", {
38472
38472
  className: "inline-flex items-center gap-1 text-sm text-foreground-subtle tabular-nums",
38473
- children: [/* @__PURE__ */ v(Ar, { className: "h-3.5 w-3.5" }), r("uiLibrary.dishwasher.remaining", "{{time}} left", { time: kE(s.remainingSeconds, r) })]
38473
+ children: [/* @__PURE__ */ v(Ar, { className: "h-3.5 w-3.5" }), r("uiLibrary.dishwasher.remaining", "{{time}} left", { time: kE(s.remaining, r) })]
38474
38474
  }),
38475
- s.delayedStartSeconds != null && s.delayedStartSeconds > 0 && /* @__PURE__ */ v("span", {
38475
+ s.delayedStart != null && s.delayedStart > 0 && /* @__PURE__ */ v("span", {
38476
38476
  className: "text-xs text-foreground-subtle tabular-nums",
38477
- children: r("uiLibrary.dishwasher.startsIn", "Starts in {{time}}", { time: kE(s.delayedStartSeconds, r) })
38477
+ children: r("uiLibrary.dishwasher.startsIn", "Starts in {{time}}", { time: kE(s.delayedStart, r) })
38478
38478
  }),
38479
- s.progressPercent != null && /* @__PURE__ */ y("div", {
38479
+ s.progress != null && /* @__PURE__ */ y("div", {
38480
38480
  className: "flex items-center gap-2",
38481
38481
  children: [/* @__PURE__ */ v("div", {
38482
38482
  className: "h-1.5 flex-1 rounded bg-surface-hover overflow-hidden",
38483
38483
  children: /* @__PURE__ */ v("div", {
38484
38484
  className: "h-full bg-primary transition-[width] duration-500",
38485
- style: { width: `${Math.max(0, Math.min(100, s.progressPercent))}%` }
38485
+ style: { width: `${Math.max(0, Math.min(100, s.progress))}%` }
38486
38486
  })
38487
38487
  }), /* @__PURE__ */ y("span", {
38488
38488
  className: "tabular-nums text-xs text-foreground-subtle",
38489
- children: [Math.round(s.progressPercent), "%"]
38489
+ children: [Math.round(s.progress), "%"]
38490
38490
  })]
38491
38491
  }),
38492
38492
  /* @__PURE__ */ y("div", {
@@ -39613,7 +39613,7 @@ function MD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39613
39613
  slice: (e) => e.state.color
39614
39614
  }), c = EC(a.slice, { enabled: r ?? !0 }), l = EC(o.slice, { enabled: r ?? !0 }), u = EC(s.slice, { enabled: r ?? !0 });
39615
39615
  if (a.cap === void 0 || c.display === void 0) return null;
39616
- let d = c.display.on === !0, f = !a.available, p = l.display?.percentage ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? AD : jD, _ = (n?.includes(we.LightColorMired) ?? !1) && s.cap !== void 0, b = u.display?.mireds, x = !s.available;
39616
+ let d = c.display.on === !0, f = !a.available, p = l.display?.level ?? 0, m = !o.available, h = d ? p / 100 : 0, g = d ? AD : jD, _ = (n?.includes(we.LightColorMired) ?? !1) && s.cap !== void 0, b = u.display?.colorTemperature, x = !s.available;
39617
39617
  return /* @__PURE__ */ y("div", {
39618
39618
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-4",
39619
39619
  children: [
@@ -39651,7 +39651,7 @@ function MD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39651
39651
  disabled: m || !d,
39652
39652
  onChange: (e) => {
39653
39653
  let t = Number(e.target.value);
39654
- l.applyOptimistic({ percentage: t }), m || o.cap?.setBrightness({ percentage: t });
39654
+ l.applyOptimistic({ level: t }), m || o.cap?.setBrightness({ level: t });
39655
39655
  }
39656
39656
  }),
39657
39657
  /* @__PURE__ */ y("span", {
@@ -39702,10 +39702,10 @@ function MD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39702
39702
  let t = Number(e.target.value);
39703
39703
  u.applyOptimistic({
39704
39704
  mode: "mired",
39705
- mireds: t
39705
+ colorTemperature: t
39706
39706
  }), x || s.cap?.setColor({ color: {
39707
39707
  mode: "mired",
39708
- mireds: t
39708
+ colorTemperature: t
39709
39709
  } });
39710
39710
  }
39711
39711
  }),
@@ -39738,7 +39738,7 @@ function FD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39738
39738
  slice: (e) => e.state.fanControl
39739
39739
  }), s = EC(a.slice, { enabled: r ?? !0 }), c = EC(o.slice, { enabled: r ?? !0 });
39740
39740
  if (a.cap === void 0 || s.display === void 0) return null;
39741
- let l = s.display.on === !0, u = !a.available, d = c.display?.percentage ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? ND : PD, h = n?.includes(we.FanSpeed) ?? !1, g = (n?.includes(we.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], b = (n?.includes(we.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, x = c.display?.preset ?? "", C = c.display?.oscillating === !0, w = () => {
39741
+ let l = s.display.on === !0, u = !a.available, d = c.display?.speed ?? 0, f = !o.available, p = l ? d / 100 : 0, m = l ? ND : PD, h = n?.includes(we.FanSpeed) ?? !1, g = (n?.includes(we.FanOscillating) ?? !1) && o.cap !== void 0, _ = c.display?.availablePresets ?? [], b = (n?.includes(we.FanPreset) ?? !1) && o.cap !== void 0 && _.length > 0, x = c.display?.preset ?? "", C = c.display?.oscillating === !0, w = () => {
39742
39742
  if (u) return;
39743
39743
  let e = !l;
39744
39744
  s.applyOptimistic({ on: e }), a.cap?.setState({ on: e });
@@ -39751,7 +39751,7 @@ function FD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39751
39751
  let t = c.display;
39752
39752
  if (t === void 0) return;
39753
39753
  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));
39754
- c.applyOptimistic({ percentage: r }), o.cap?.setPercentage({ percentage: r });
39754
+ c.applyOptimistic({ speed: r }), o.cap?.setPercentage({ speed: r });
39755
39755
  }, E = (e) => {
39756
39756
  f || e === "" || (c.applyOptimistic({ preset: e }), o.cap?.setPreset({ preset: e }));
39757
39757
  };
@@ -39928,9 +39928,9 @@ function HD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39928
39928
  slice: (e) => e.state.mediaPlayer
39929
39929
  }), { display: c, applyOptimistic: l } = EC(o, { enabled: r ?? !0 });
39930
39930
  if (a === void 0 || c === void 0) return null;
39931
- let u = !s, d = LD(c.state), f = (n?.includes(we.MediaPlayerSeek) ?? !1) && c.durationMs !== null && c.durationMs > 0, p = n?.includes(we.MediaPlayerNext) ?? !1, m = n?.includes(we.MediaPlayerPrevious) ?? !1, h = (n?.includes(we.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
39931
+ let u = !s, d = LD(c.state), f = (n?.includes(we.MediaPlayerSeek) ?? !1) && c.duration !== null && c.duration > 0, p = n?.includes(we.MediaPlayerNext) ?? !1, m = n?.includes(we.MediaPlayerPrevious) ?? !1, h = (n?.includes(we.MediaPlayerVolume) ?? !1) && c.volumeLevel !== null, g = () => {
39932
39932
  u || (d === "play" ? (l({ state: "playing" }), a.play({})) : (l({ state: "paused" }), a.pause({})));
39933
- }, _ = c.currentMedia?.artist ?? c.currentMedia?.album ?? null, b = RD(c.positionMs, c.durationMs), x = c.volumeLevel ?? 0;
39933
+ }, _ = c.currentMedia?.artist ?? c.currentMedia?.album ?? null, b = RD(c.position, c.duration), x = c.volumeLevel ?? 0;
39934
39934
  return /* @__PURE__ */ y("div", {
39935
39935
  className: "flex flex-col items-stretch gap-4 rounded-lg border border-border bg-surface p-6",
39936
39936
  children: [
@@ -39952,15 +39952,15 @@ function HD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39952
39952
  "aria-label": i("uiLibrary.mediaPlayerHero.seek", "Seek"),
39953
39953
  type: "range",
39954
39954
  min: 0,
39955
- max: c.durationMs ?? 0,
39955
+ max: c.duration ?? 0,
39956
39956
  step: 1e3,
39957
39957
  className: "absolute inset-0 h-4 w-full cursor-pointer opacity-0",
39958
- value: c.positionMs ?? 0,
39958
+ value: c.position ?? 0,
39959
39959
  disabled: u,
39960
39960
  onChange: (e) => {
39961
39961
  if (u) return;
39962
39962
  let t = Number(e.target.value);
39963
- l({ positionMs: t }), a.seek({ positionMs: t });
39963
+ l({ position: t }), a.seek({ position: t });
39964
39964
  }
39965
39965
  }),
39966
39966
  /* @__PURE__ */ v("div", {
@@ -39970,7 +39970,7 @@ function HD({ trpc: e, deviceId: t, features: n, optimistic: r }) {
39970
39970
  ]
39971
39971
  }), /* @__PURE__ */ y("div", {
39972
39972
  className: "flex justify-between text-[11px] tabular-nums text-foreground-subtle",
39973
- children: [/* @__PURE__ */ v("span", { children: zD(c.positionMs) }), /* @__PURE__ */ v("span", { children: zD(c.durationMs) })]
39973
+ children: [/* @__PURE__ */ v("span", { children: zD(c.position) }), /* @__PURE__ */ v("span", { children: zD(c.duration) })]
39974
39974
  })]
39975
39975
  }),
39976
39976
  /* @__PURE__ */ y("div", {
@@ -1,4 +1,4 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CeE6-aSe.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D2YHXWx9.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_model_studio_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_model_studio_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_model_studio_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.434",
39
+ version: "1.2.435",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.342",
84
+ version: "1.2.343",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,