@camstack/addon-provider-homematic 1.2.168 → 1.2.169
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 +6 -0
- package/dist/{MotionZonesSettings-CEtrDR3K.mjs → MotionZonesSettings-DQgYLxfI.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BU3N5e9v.mjs → PrivacyMaskSettings-DW3aYKTP.mjs} +4 -4
- package/dist/{SceneMonitorEditor-I3XoVxO9.mjs → SceneMonitorEditor-B_VNrDhL.mjs} +36 -36
- package/dist/_stub.js +4788 -4702
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-GBXXG6qo.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CpT3Vc1u.mjs} +3 -3
- package/dist/{_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CWPakOz7.mjs → _virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-QMuGroeY.mjs} +8 -8
- package/dist/addon.js +51 -4
- package/dist/addon.mjs +51 -4
- package/dist/{hostInit-CvvmxohI.mjs → hostInit-zVT7tKXY.mjs} +2 -2
- package/dist/{player-overlays-CiO14sLC.mjs → player-overlays-D8b3BVjK.mjs} +5 -5
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-JV_yADAh.mjs → responsive-D1n7mBH2.mjs} +10 -6
- package/dist/{scene-monitor-copy-COLF3xGb.mjs → scene-monitor-copy-DlrCHwL8.mjs} +5 -5
- package/dist/{square-GBAh-8yh.mjs → square-Cpr1uTZe.mjs} +1 -1
- package/dist/{trash-2-vNbgxift.mjs → trash-2-Bs3rkUeo.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-BbrKrGhy.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-wn5Vikz_.mjs} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as e, _ as t, d as n, g as r, l as i, v as a } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react__loadShare__.js-Dh5aq0TM.mjs";
|
|
2
2
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-D_jZoh_U.mjs";
|
|
3
3
|
import { r as l, t as ee } from "./ui-text-2ABkGEt_.mjs";
|
|
4
|
-
import { a as u, c as d,
|
|
5
|
-
import { n as ne, t as m } from "./player-overlays-
|
|
4
|
+
import { a as u, c as d, f, m as p, s as te } from "./responsive-D1n7mBH2.mjs";
|
|
5
|
+
import { n as ne, t as m } from "./player-overlays-D8b3BVjK.mjs";
|
|
6
6
|
import { MaskShapeCanvas as h } from "./MaskShapeCanvas-CDl4Fjwd.mjs";
|
|
7
7
|
var g = p("grid-2x2", [
|
|
8
8
|
["path", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as e, _ as t, d as n, g as r, l as i, v as a } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react__loadShare__.js-Dh5aq0TM.mjs";
|
|
2
2
|
import { n as o, r as s, t as ee } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-D_jZoh_U.mjs";
|
|
3
3
|
import { r as te, t as ne } from "./ui-text-2ABkGEt_.mjs";
|
|
4
|
-
import { a as c, c as re,
|
|
5
|
-
import { n as oe, t as se } from "./player-overlays-
|
|
6
|
-
import { n as ce, r as le, t as ue } from "./square-
|
|
7
|
-
import { t as de } from "./trash-2-
|
|
4
|
+
import { a as c, c as re, f as ie, m as l, s as ae } from "./responsive-D1n7mBH2.mjs";
|
|
5
|
+
import { n as oe, t as se } from "./player-overlays-D8b3BVjK.mjs";
|
|
6
|
+
import { n as ce, r as le, t as ue } from "./square-Cpr1uTZe.mjs";
|
|
7
|
+
import { t as de } from "./trash-2-Bs3rkUeo.mjs";
|
|
8
8
|
import { MaskShapeCanvas as fe } from "./MaskShapeCanvas-CDl4Fjwd.mjs";
|
|
9
9
|
var pe = l("hexagon", [["path", {
|
|
10
10
|
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { S as e, _ as t, d as n, g as r, l as i, v as a } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react__loadShare__.js-Dh5aq0TM.mjs";
|
|
2
2
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-D_jZoh_U.mjs";
|
|
3
3
|
import { r as l, t as u } from "./ui-text-2ABkGEt_.mjs";
|
|
4
|
-
import { a as d, c as f,
|
|
5
|
-
import { a as _, c as v, d as y, f as b, i as
|
|
6
|
-
import { t as
|
|
7
|
-
import { MaskShapeCanvas as
|
|
8
|
-
var
|
|
4
|
+
import { a as d, c as f, f as p, m, s as h, u as g } from "./responsive-D1n7mBH2.mjs";
|
|
5
|
+
import { a as _, c as v, d as y, f as b, i as ee, n as x, o as S, p as C, r as w, s as T, t as E, u as D } from "./scene-monitor-copy-DlrCHwL8.mjs";
|
|
6
|
+
import { t as O } from "./trash-2-Bs3rkUeo.mjs";
|
|
7
|
+
import { MaskShapeCanvas as k } from "./MaskShapeCanvas-CDl4Fjwd.mjs";
|
|
8
|
+
var A = m("settings-2", [
|
|
9
9
|
["path", {
|
|
10
10
|
d: "M14 17H5",
|
|
11
11
|
key: "gfn3mx"
|
|
@@ -54,7 +54,7 @@ function P(e) {
|
|
|
54
54
|
}
|
|
55
55
|
var F = "rounded border border-danger/50 bg-danger/10 px-1 py-0.5 text-[10px] font-medium text-danger hover:bg-danger/20 disabled:opacity-40 transition-colors";
|
|
56
56
|
function te({ monitor: e, disabled: t, onDelete: n }) {
|
|
57
|
-
let r = l(), i = N(e), a = P(e), c =
|
|
57
|
+
let r = l(), i = N(e), a = P(e), c = D();
|
|
58
58
|
return i.length === 0 ? /* @__PURE__ */ o("p", {
|
|
59
59
|
className: `${d} leading-relaxed`,
|
|
60
60
|
children: r("uiLibrary.sceneReferenceGallery.empty", "No photographs captured yet. Press “Capture daylight” to take the one this scene will judge everything against.")
|
|
@@ -65,7 +65,7 @@ function te({ monitor: e, disabled: t, onDelete: n }) {
|
|
|
65
65
|
children: [/* @__PURE__ */ s("p", {
|
|
66
66
|
className: "text-[10px] font-semibold uppercase tracking-wide text-foreground-subtle",
|
|
67
67
|
children: [
|
|
68
|
-
|
|
68
|
+
S(e.condition, r),
|
|
69
69
|
" · ",
|
|
70
70
|
e.tiles.length
|
|
71
71
|
]
|
|
@@ -86,7 +86,7 @@ function te({ monitor: e, disabled: t, onDelete: n }) {
|
|
|
86
86
|
className: F,
|
|
87
87
|
disabled: t,
|
|
88
88
|
"aria-label": r("uiLibrary.sceneReferenceGallery.deleteLabel", "Delete the {{variant}} photograph from {{date}}", {
|
|
89
|
-
variant:
|
|
89
|
+
variant: S(e.condition, r).toLowerCase(),
|
|
90
90
|
date: L(i.reference.capturedAt)
|
|
91
91
|
}),
|
|
92
92
|
onClick: () => {
|
|
@@ -102,7 +102,7 @@ function te({ monitor: e, disabled: t, onDelete: n }) {
|
|
|
102
102
|
});
|
|
103
103
|
})();
|
|
104
104
|
},
|
|
105
|
-
children: [/* @__PURE__ */ o(
|
|
105
|
+
children: [/* @__PURE__ */ o(O, { className: "mr-1 inline h-3 w-3" }), r("uiLibrary.sceneReferenceGallery.delete", "Delete")]
|
|
106
106
|
})
|
|
107
107
|
]
|
|
108
108
|
}, l);
|
|
@@ -577,24 +577,24 @@ var Y = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-m
|
|
|
577
577
|
unknown: "border-border bg-surface text-foreground-subtle"
|
|
578
578
|
}, ae = .8, oe = 3;
|
|
579
579
|
function Z({ deviceId: e }) {
|
|
580
|
-
let u = l(),
|
|
580
|
+
let u = l(), m = f(p().trpcClient, e), v = g(m?.state.sceneMonitor), b = T(e, { width: 640 }), [D, j] = a(null), [M, N] = a(!1), [P, F] = a(null), [I, L] = a(null), [R, z] = a(null), [B, V] = a(null), [H, U] = a(!1), [W, G] = a(null), [K, q] = a(""), J = t(!0);
|
|
581
581
|
n(() => (J.current = !0, () => {
|
|
582
582
|
J.current = !1;
|
|
583
583
|
}), []);
|
|
584
584
|
let Z = i(async () => {
|
|
585
|
-
if (
|
|
586
|
-
let e = await
|
|
585
|
+
if (m) try {
|
|
586
|
+
let e = await m.sceneMonitor?.listScenes({});
|
|
587
587
|
if (!J.current) return;
|
|
588
588
|
e && j(e);
|
|
589
589
|
} catch (e) {
|
|
590
590
|
if (!J.current) return;
|
|
591
|
-
|
|
591
|
+
h(e) ? N(!0) : L(e instanceof Error ? e.message : String(e));
|
|
592
592
|
}
|
|
593
|
-
}, [
|
|
593
|
+
}, [m]);
|
|
594
594
|
n(() => {
|
|
595
595
|
j(null), N(!1), L(null), Z();
|
|
596
596
|
}, [Z]);
|
|
597
|
-
let Q = v?.monitors ??
|
|
597
|
+
let Q = v?.monitors ?? D?.monitors ?? [], se = Date.now(), $ = i(async (e, t) => {
|
|
598
598
|
F(e), L(null);
|
|
599
599
|
try {
|
|
600
600
|
await t(), await Z();
|
|
@@ -625,16 +625,16 @@ function Z({ deviceId: e }) {
|
|
|
625
625
|
G(t);
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
|
-
$(`roi-${String(e)}`, async () =>
|
|
628
|
+
$(`roi-${String(e)}`, async () => m?.sceneMonitor?.updateScene({
|
|
629
629
|
monitorId: String(e),
|
|
630
630
|
patch: { roi: t }
|
|
631
631
|
}));
|
|
632
632
|
}
|
|
633
|
-
}, [
|
|
633
|
+
}, [m, $]), ue = i((e) => {
|
|
634
634
|
e.kind === "rect" && G(e);
|
|
635
635
|
}, []), de = i(async () => {
|
|
636
636
|
W === null || K.trim().length === 0 || (await $("create", async () => {
|
|
637
|
-
await
|
|
637
|
+
await m?.sceneMonitor?.createScene({
|
|
638
638
|
label: K.trim(),
|
|
639
639
|
roi: W,
|
|
640
640
|
check: {
|
|
@@ -645,12 +645,12 @@ function Z({ deviceId: e }) {
|
|
|
645
645
|
});
|
|
646
646
|
}), G(null), q(""), U(!1));
|
|
647
647
|
}, [
|
|
648
|
-
|
|
648
|
+
m,
|
|
649
649
|
W,
|
|
650
650
|
K,
|
|
651
651
|
$
|
|
652
652
|
]);
|
|
653
|
-
return
|
|
653
|
+
return m ? /* @__PURE__ */ o("div", {
|
|
654
654
|
className: "flex flex-col gap-3",
|
|
655
655
|
children: M ? /* @__PURE__ */ o("p", {
|
|
656
656
|
className: `${d} leading-relaxed`,
|
|
@@ -662,7 +662,7 @@ function Z({ deviceId: e }) {
|
|
|
662
662
|
}),
|
|
663
663
|
/* @__PURE__ */ o("div", {
|
|
664
664
|
className: "relative overflow-hidden rounded-md border border-border",
|
|
665
|
-
children: /* @__PURE__ */ o(
|
|
665
|
+
children: /* @__PURE__ */ o(k, {
|
|
666
666
|
items: ce,
|
|
667
667
|
supportedShapes: ["rect"],
|
|
668
668
|
selectedId: R ?? (W === null ? null : "__draft__"),
|
|
@@ -704,7 +704,7 @@ function Z({ deviceId: e }) {
|
|
|
704
704
|
className: "text-[10px] text-foreground-subtle",
|
|
705
705
|
children: W === null ? u("uiLibrary.sceneMonitor.draftHint", "Click on the frame to drop a box, then drag its corner to fit it around the thing you want watched.") : u("uiLibrary.sceneMonitor.nameHint", "Name it, then create. You capture what “normal” looks like next.")
|
|
706
706
|
}),
|
|
707
|
-
W !== null &&
|
|
707
|
+
W !== null && ee(W) && /* @__PURE__ */ o("p", {
|
|
708
708
|
className: "text-[11px] leading-relaxed text-warning",
|
|
709
709
|
children: u("uiLibrary.sceneMonitor.tooLarge", "That box covers most of the frame. A scene that big is dominated by the weather, the sky and passing cars — it will quietly stop noticing the thing you actually care about. Draw it tighter.")
|
|
710
710
|
}),
|
|
@@ -736,7 +736,7 @@ function Z({ deviceId: e }) {
|
|
|
736
736
|
}) : /* @__PURE__ */ o("ul", {
|
|
737
737
|
className: "flex flex-col gap-2",
|
|
738
738
|
children: Q.map((e) => {
|
|
739
|
-
let t =
|
|
739
|
+
let t = x(e, u);
|
|
740
740
|
return /* @__PURE__ */ s("li", {
|
|
741
741
|
className: `flex flex-col gap-1.5 rounded-md border p-2 ${R === e.id ? "border-primary/50" : "border-border"}`,
|
|
742
742
|
children: [
|
|
@@ -758,12 +758,12 @@ function Z({ deviceId: e }) {
|
|
|
758
758
|
}),
|
|
759
759
|
/* @__PURE__ */ o("p", {
|
|
760
760
|
className: `${d} tabular-nums`,
|
|
761
|
-
children:
|
|
761
|
+
children: w(e, u)
|
|
762
762
|
}),
|
|
763
763
|
/* @__PURE__ */ o(te, {
|
|
764
764
|
monitor: e,
|
|
765
765
|
disabled: P !== null,
|
|
766
|
-
onDelete: ({ stateId: t, index: n }) => void $(`refdel-${e.id}-${t}-${String(n)}`, async () =>
|
|
766
|
+
onDelete: ({ stateId: t, index: n }) => void $(`refdel-${e.id}-${t}-${String(n)}`, async () => m.sceneMonitor?.deleteReference({
|
|
767
767
|
monitorId: e.id,
|
|
768
768
|
stateId: t,
|
|
769
769
|
index: n
|
|
@@ -772,20 +772,20 @@ function Z({ deviceId: e }) {
|
|
|
772
772
|
/* @__PURE__ */ s("div", {
|
|
773
773
|
className: "flex flex-wrap items-center gap-1.5",
|
|
774
774
|
children: [
|
|
775
|
-
|
|
775
|
+
E.map((t) => {
|
|
776
776
|
let n = t === "ir";
|
|
777
777
|
return /* @__PURE__ */ s("button", {
|
|
778
778
|
type: "button",
|
|
779
779
|
className: Y,
|
|
780
780
|
disabled: P !== null,
|
|
781
|
-
title: n ? u("uiLibrary.sceneMonitor.optionalTitle", "Optional. Without a night reference the checks in infrared are simply skipped — the scene keeps working in daylight and nothing is reported as broken.") : u("uiLibrary.sceneMonitor.captureTitle", "Take a fresh photo now and store it as the {{variant}} reference", { variant:
|
|
782
|
-
onClick: () => void $(`cap-${e.id}-${t}`, async () =>
|
|
781
|
+
title: n ? u("uiLibrary.sceneMonitor.optionalTitle", "Optional. Without a night reference the checks in infrared are simply skipped — the scene keeps working in daylight and nothing is reported as broken.") : u("uiLibrary.sceneMonitor.captureTitle", "Take a fresh photo now and store it as the {{variant}} reference", { variant: S(t, u).toLowerCase() }),
|
|
782
|
+
onClick: () => void $(`cap-${e.id}-${t}`, async () => m.sceneMonitor?.captureReference({
|
|
783
783
|
monitorId: e.id,
|
|
784
784
|
condition: t
|
|
785
785
|
})),
|
|
786
786
|
children: [
|
|
787
|
-
/* @__PURE__ */ o(
|
|
788
|
-
u("uiLibrary.sceneMonitor.capture", "Capture {{variant}}", { variant:
|
|
787
|
+
/* @__PURE__ */ o(C, { className: "mr-1 inline h-3 w-3" }),
|
|
788
|
+
u("uiLibrary.sceneMonitor.capture", "Capture {{variant}}", { variant: S(t, u).toLowerCase() }),
|
|
789
789
|
n && /* @__PURE__ */ o("span", {
|
|
790
790
|
className: "ml-1 text-foreground-subtle/70",
|
|
791
791
|
children: u("uiLibrary.sceneMonitor.optional", "(optional)")
|
|
@@ -798,14 +798,14 @@ function Z({ deviceId: e }) {
|
|
|
798
798
|
className: X,
|
|
799
799
|
disabled: P !== null || e.states.length === 0,
|
|
800
800
|
title: u("uiLibrary.sceneMonitor.resetTitle", "Clear the flag and re-photograph what normal looks like right now"),
|
|
801
|
-
onClick: () => void $(`reset-${e.id}`, async () =>
|
|
801
|
+
onClick: () => void $(`reset-${e.id}`, async () => m.sceneMonitor?.resetScene({ monitorId: e.id })),
|
|
802
802
|
children: [/* @__PURE__ */ o(y, { className: "mr-1 inline h-3 w-3" }), u("uiLibrary.sceneMonitor.reset", "Reset")]
|
|
803
803
|
}),
|
|
804
804
|
/* @__PURE__ */ o("button", {
|
|
805
805
|
type: "button",
|
|
806
806
|
className: Y,
|
|
807
807
|
disabled: P !== null,
|
|
808
|
-
onClick: () => void $(`check-${e.id}`, async () =>
|
|
808
|
+
onClick: () => void $(`check-${e.id}`, async () => m.sceneMonitor?.recheckNow({ monitorId: e.id })),
|
|
809
809
|
children: u("uiLibrary.sceneMonitor.checkNow", "Check now")
|
|
810
810
|
}),
|
|
811
811
|
/* @__PURE__ */ s("button", {
|
|
@@ -815,21 +815,21 @@ function Z({ deviceId: e }) {
|
|
|
815
815
|
"aria-label": u("uiLibrary.sceneMonitor.settingsFor", "Settings for {{label}}", { label: e.label }),
|
|
816
816
|
disabled: P !== null,
|
|
817
817
|
onClick: () => V((t) => t === e.id ? null : e.id),
|
|
818
|
-
children: [/* @__PURE__ */ o(
|
|
818
|
+
children: [/* @__PURE__ */ o(A, { className: "mr-1 inline h-3 w-3" }), u("uiLibrary.sceneMonitor.settings", "Settings")]
|
|
819
819
|
}),
|
|
820
820
|
/* @__PURE__ */ o("button", {
|
|
821
821
|
type: "button",
|
|
822
822
|
className: re,
|
|
823
823
|
disabled: P !== null,
|
|
824
|
-
onClick: () => void $(`del-${e.id}`, async () =>
|
|
825
|
-
children: /* @__PURE__ */ o(
|
|
824
|
+
onClick: () => void $(`del-${e.id}`, async () => m.sceneMonitor?.deleteScene({ monitorId: e.id })),
|
|
825
|
+
children: /* @__PURE__ */ o(O, { className: "h-3 w-3" })
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
}),
|
|
829
829
|
B === e.id && /* @__PURE__ */ o(ne, {
|
|
830
830
|
monitor: e,
|
|
831
831
|
disabled: P !== null,
|
|
832
|
-
onPatch: (t) => void $(`tune-${e.id}`, async () =>
|
|
832
|
+
onPatch: (t) => void $(`tune-${e.id}`, async () => m.sceneMonitor?.updateScene({
|
|
833
833
|
monitorId: e.id,
|
|
834
834
|
patch: t
|
|
835
835
|
}))
|