@camstack/addon-osd-manager 0.1.79 → 0.1.81

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.
@@ -1,14 +1,14 @@
1
1
  import { c as e, h as t, m as n, p as r, u as i, y as a } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
2
2
  import { a as ee, n as te, r as ne, s as o, t as s } from "./responsive-veJ_u_lF.mjs";
3
- import { n as re, t as c } from "./player-overlays-DPEo1CnK.mjs";
4
- import { n as l, r as ie, t as ae } from "./square-BKRxPrj2.mjs";
5
- import { t as oe } from "./trash-2-B_FOJHPE.mjs";
6
- import { n as u, r as d, t as se } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
7
- import { MaskShapeCanvas as ce } from "./MaskShapeCanvas-BEVxAjNq.mjs";
8
- var le = o("hexagon", [["path", {
3
+ import { n as re, t as ie } from "./player-overlays-DPEo1CnK.mjs";
4
+ import { n as ae, r as oe, t as se } from "./square-BKRxPrj2.mjs";
5
+ import { t as c } from "./trash-2-B_FOJHPE.mjs";
6
+ import { n as l, r as u, t as ce } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
7
+ import { MaskShapeCanvas as le } from "./MaskShapeCanvas-BEVxAjNq.mjs";
8
+ var ue = o("hexagon", [["path", {
9
9
  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",
10
10
  key: "yt0hxn"
11
- }]]), ue = o("mic-off", [
11
+ }]]), de = o("mic-off", [
12
12
  ["path", {
13
13
  d: "M12 19v3",
14
14
  key: "npa21l"
@@ -37,15 +37,15 @@ var le = o("hexagon", [["path", {
37
37
  //#endregion
38
38
  //#region ../ui-library/src/composites/cap-settings/privacy-mask-audio.ts
39
39
  a();
40
- var f = "Microphone", p = "The camera encodes no audio at all — live view, recordings, exports and the audio analyzer are all silent.";
41
- function de(e) {
40
+ var d = "Microphone", f = "The camera encodes no audio at all — live view, recordings, exports and the audio analyzer are all silent.";
41
+ function p(e) {
42
42
  let t = e.supportsAudioMute === !0, n = t ? e.audioEnabled : null, r = e.pendingOn ?? null;
43
43
  return {
44
- label: f,
44
+ label: d,
45
45
  supported: t,
46
46
  on: n === null ? null : r ?? n,
47
47
  available: t && n !== null,
48
- costWhenOff: p
48
+ costWhenOff: f
49
49
  };
50
50
  }
51
51
  function m(e) {
@@ -53,34 +53,38 @@ function m(e) {
53
53
  }
54
54
  //#endregion
55
55
  //#region ../ui-library/src/composites/cap-settings/PrivacyMaskSettings.tsx
56
- var fe = 120, h = "privacy-mask", g = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors", _ = "rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";
57
- function v(e) {
56
+ var fe = 120, pe = "privacy-mask", h = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors", g = "rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";
57
+ function _(e) {
58
58
  return e.kind === "rect" || e.kind === "polygon" ? e : null;
59
59
  }
60
- function pe(e) {
60
+ function me(e) {
61
61
  let t = new Set(e.map((e) => e.id)), n = 0;
62
62
  for (; t.has(n);) n += 1;
63
63
  return n;
64
64
  }
65
- function y(e, t) {
65
+ function he(e, t) {
66
66
  if (e.length !== t.length) return !1;
67
67
  for (let n = 0; n < e.length; n += 1) if (JSON.stringify(e[n]) !== JSON.stringify(t[n])) return !1;
68
68
  return !0;
69
69
  }
70
- function b({ deviceId: a }) {
71
- let o = ne(ee().trpcClient, a), [f, p] = t(null), [b, x] = t(!1), [S, C] = t(null), [w, T] = t(null), [E, D] = t(!1), [O, k] = t(!1), [A, j] = t(null), [M, N] = t(null), [me, P] = t(null), [F, I] = t(null), [L, R] = t(null), z = n(!1);
70
+ function v({ deviceId: a }) {
71
+ let o = ne(ee().trpcClient, a), [d, f] = t(null), [v, y] = t(!1), [b, x] = t(!1), [S, C] = t(null), [w, T] = t(null), [E, D] = t(!1), [O, k] = t(!1), [A, j] = t(null), [M, N] = t(null), [ge, P] = t(null), [F, I] = t(null), [L, R] = t(null), z = n(!1);
72
72
  i(() => {
73
73
  if (!o) return;
74
74
  let e = !1;
75
- return z.current = !1, p(null), x(!1), C(null), T(null), k(!1), j(null), N(null), P(null), I(null), R(null), (async () => {
75
+ return z.current = !1, f(null), y(!1), x(!1), C(null), T(null), k(!1), j(null), N(null), P(null), I(null), R(null), (async () => {
76
76
  try {
77
77
  let t = await o.privacyMask?.getOptions({});
78
78
  if (e) return;
79
79
  if (!t) throw Error("device proxy not ready");
80
- if (p(t), z.current) return;
80
+ if (f(t), z.current) return;
81
81
  let n = await o.privacyMask?.getStatus({});
82
82
  if (e) return;
83
83
  if (!n) throw Error("device proxy not ready");
84
+ if (n.regions === null) {
85
+ x(!0), P(n.audioEnabled);
86
+ return;
87
+ }
84
88
  z.current = !0;
85
89
  let r = {
86
90
  enabled: n.enabled,
@@ -89,17 +93,17 @@ function b({ deviceId: a }) {
89
93
  T(r), C(r), P(n.audioEnabled);
90
94
  } catch (t) {
91
95
  if (e) return;
92
- te(t) ? x(!0) : console.error("Privacy Mask load failed", t);
96
+ te(t) ? y(!0) : console.error("Privacy Mask load failed", t);
93
97
  }
94
98
  })(), () => {
95
99
  e = !0;
96
100
  };
97
101
  }, [o]);
98
- let B = r(() => S !== null && w !== null && (S.enabled !== w.enabled || !y(S.regions, w.regions)), [S, w]), V = S ? S.regions.length : 0, H = f ? f.maxRegions : 0, U = n(0);
102
+ let B = r(() => S !== null && w !== null && (S.enabled !== w.enabled || !he(S.regions, w.regions)), [S, w]), V = S ? S.regions.length : 0, H = d ? d.maxRegions : 0, U = n(0);
99
103
  i(() => {
100
104
  U.current = H;
101
105
  }, [H]);
102
- let W = H > 0 && V >= H, he = e(() => {
106
+ let W = H > 0 && V >= H, _e = e(() => {
103
107
  C((e) => e && {
104
108
  ...e,
105
109
  enabled: !e.enabled
@@ -112,7 +116,7 @@ function b({ deviceId: a }) {
112
116
  enabled: e.enabled,
113
117
  label: `Zone ${String(e.id)}`
114
118
  })) : [], [S]), q = e((e, t) => {
115
- let n = v(t);
119
+ let n = _(t);
116
120
  n && C((t) => t && {
117
121
  ...t,
118
122
  regions: t.regions.map((t) => t.id === e ? {
@@ -121,12 +125,12 @@ function b({ deviceId: a }) {
121
125
  } : t)
122
126
  });
123
127
  }, []), J = e((e) => {
124
- let t = v(e);
128
+ let t = _(e);
125
129
  t && (N(null), C((e) => {
126
130
  if (!e) return e;
127
131
  let n = U.current;
128
132
  if (n > 0 && e.regions.length >= n) return e;
129
- let r = pe(e.regions), i = {
133
+ let r = me(e.regions), i = {
130
134
  id: r,
131
135
  enabled: !0,
132
136
  shape: t
@@ -138,19 +142,19 @@ function b({ deviceId: a }) {
138
142
  }));
139
143
  }, []), Y = e((e) => {
140
144
  k(!0), j(null), N(e);
141
- }, []), ge = e((e) => {
145
+ }, []), ve = e((e) => {
142
146
  k(!0), N(null), j(e);
143
147
  }, []), X = e((e) => {
144
148
  j((t) => t === e ? null : t), C((t) => t && {
145
149
  ...t,
146
150
  regions: t.regions.filter((t) => t.id !== e)
147
151
  });
148
- }, []), _e = e(() => {
152
+ }, []), ye = e(() => {
149
153
  N(null), j(null), w && C({
150
154
  enabled: w.enabled,
151
155
  regions: w.regions
152
156
  });
153
- }, [w]), ve = e(async () => {
157
+ }, [w]), be = e(async () => {
154
158
  if (!(!o || !S)) {
155
159
  D(!0);
156
160
  try {
@@ -159,7 +163,7 @@ function b({ deviceId: a }) {
159
163
  regions: [...S.regions]
160
164
  } });
161
165
  let e = await o.privacyMask?.getStatus({});
162
- if (e) {
166
+ if (e && e.regions !== null) {
163
167
  let t = {
164
168
  enabled: e.enabled,
165
169
  regions: e.regions
@@ -172,11 +176,11 @@ function b({ deviceId: a }) {
172
176
  D(!1);
173
177
  }
174
178
  }
175
- }, [o, S]), Z = de({
176
- supportsAudioMute: f === null ? null : f.supportsAudioMute,
177
- audioEnabled: me,
179
+ }, [o, S]), Z = p({
180
+ supportsAudioMute: d === null ? null : d.supportsAudioMute,
181
+ audioEnabled: ge,
178
182
  pendingOn: F
179
- }), ye = e(async () => {
183
+ }), xe = e(async () => {
180
184
  let e = m(Z);
181
185
  if (!(!o || e === null)) {
182
186
  I(e.enabled), R(null);
@@ -190,17 +194,17 @@ function b({ deviceId: a }) {
190
194
  I(null);
191
195
  }
192
196
  }
193
- }, [o, Z]), be = e(() => {
197
+ }, [o, Z]), Se = e(() => {
194
198
  k((e) => (e && (N(null), j(null)), !e));
195
- }, []), Q = f?.supportedShapes ?? [];
196
- c(r(() => O && !b && f && S ? {
197
- id: h,
199
+ }, []), Q = d?.supportedShapes ?? [];
200
+ ie(r(() => O && !v && d && S ? {
201
+ id: pe,
198
202
  order: fe,
199
- node: /* @__PURE__ */ u(ce, {
203
+ node: /* @__PURE__ */ l(le, {
200
204
  transparent: !0,
201
205
  items: K,
202
206
  supportedShapes: Q,
203
- polygonVertices: f.polygonVertices,
207
+ polygonVertices: d.polygonVertices,
204
208
  selectedId: A,
205
209
  onSelect: G,
206
210
  onShapeChange: q,
@@ -209,8 +213,8 @@ function b({ deviceId: a }) {
209
213
  })
210
214
  } : null, [
211
215
  O,
212
- b,
213
- f,
216
+ v,
217
+ d,
214
218
  S,
215
219
  K,
216
220
  Q,
@@ -220,70 +224,73 @@ function b({ deviceId: a }) {
220
224
  J,
221
225
  M
222
226
  ]));
223
- let xe = f?.supportedShapes.includes("rect") ?? !1, Se = f?.supportedShapes.includes("polygon") ?? !1, $ = f !== null && (f.maxRegions <= 0 || f.supportedShapes.length === 0);
224
- return o ? /* @__PURE__ */ u(re, {
227
+ let Ce = d?.supportedShapes.includes("rect") ?? !1, we = d?.supportedShapes.includes("polygon") ?? !1, $ = d !== null && (d.maxRegions <= 0 || d.supportedShapes.length === 0);
228
+ return o ? /* @__PURE__ */ l(re, {
225
229
  title: "Privacy Mask",
226
- icon: /* @__PURE__ */ u(ie, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
227
- children: /* @__PURE__ */ d("div", {
230
+ icon: /* @__PURE__ */ l(oe, { className: "h-3.5 w-3.5 text-foreground-subtle" }),
231
+ children: /* @__PURE__ */ u("div", {
228
232
  className: "flex flex-col gap-3",
229
- children: [b || $ ? /* @__PURE__ */ u("p", {
233
+ children: [v || $ ? /* @__PURE__ */ l("p", {
230
234
  className: `${s} leading-relaxed`,
231
235
  children: "This camera doesn't support an on-board privacy mask."
232
- }) : !b && !$ && f !== null && S !== null ? /* @__PURE__ */ d(se, { children: [
233
- /* @__PURE__ */ d("p", {
236
+ }) : b ? /* @__PURE__ */ l("p", {
237
+ className: `${s} leading-relaxed`,
238
+ children: "This camera hasn't answered, so what it currently masks is unknown — the editor stays closed rather than showing an empty frame you could save over. A battery camera answers once it wakes; otherwise check that it is reachable."
239
+ }) : !v && !$ && !b && d !== null && S !== null ? /* @__PURE__ */ u(ce, { children: [
240
+ /* @__PURE__ */ u("p", {
234
241
  className: `${s} leading-relaxed`,
235
242
  children: [
236
243
  "Toggle ",
237
- /* @__PURE__ */ u("strong", {
244
+ /* @__PURE__ */ l("strong", {
238
245
  className: "text-foreground",
239
246
  children: "Edit mask"
240
247
  }),
241
248
  " to draw blanked-out zones on the live frame, then ",
242
- /* @__PURE__ */ u("strong", {
249
+ /* @__PURE__ */ l("strong", {
243
250
  className: "text-foreground",
244
251
  children: "Save"
245
252
  }),
246
253
  " to push them to the camera. Drag a rectangle to move, its corner to resize; drag polygon vertices, click an edge midpoint to add one, or right-click a vertex to remove it."
247
254
  ]
248
255
  }),
249
- /* @__PURE__ */ d("div", {
256
+ /* @__PURE__ */ u("div", {
250
257
  className: "flex items-center gap-2 flex-wrap",
251
258
  children: [
252
- /* @__PURE__ */ u("button", {
259
+ /* @__PURE__ */ l("button", {
253
260
  type: "button",
254
- onClick: be,
261
+ onClick: Se,
255
262
  disabled: E,
256
263
  "aria-pressed": O,
257
- className: O ? _ : g,
264
+ className: O ? g : h,
258
265
  children: O ? "Done editing" : "Edit mask"
259
266
  }),
260
- /* @__PURE__ */ u("button", {
267
+ /* @__PURE__ */ l("button", {
261
268
  type: "button",
262
- onClick: he,
269
+ onClick: _e,
263
270
  disabled: E,
264
271
  "aria-pressed": S.enabled,
265
- className: S.enabled ? _ : g,
272
+ className: S.enabled ? g : h,
266
273
  children: S.enabled ? "Mask on" : "Mask off"
267
274
  }),
268
- xe && /* @__PURE__ */ u("button", {
275
+ Ce && /* @__PURE__ */ l("button", {
269
276
  type: "button",
270
277
  onClick: () => Y("rect"),
271
278
  disabled: E || W,
272
279
  "aria-pressed": M === "rect",
273
- className: M === "rect" ? _ : g,
280
+ className: M === "rect" ? g : h,
274
281
  title: W ? "Maximum zones reached" : "Add a rectangle zone",
275
282
  children: "+ Rect"
276
283
  }),
277
- Se && /* @__PURE__ */ u("button", {
284
+ we && /* @__PURE__ */ l("button", {
278
285
  type: "button",
279
286
  onClick: () => Y("polygon"),
280
287
  disabled: E || W,
281
288
  "aria-pressed": M === "polygon",
282
- className: M === "polygon" ? _ : g,
289
+ className: M === "polygon" ? g : h,
283
290
  title: W ? "Maximum zones reached" : "Add a polygon zone",
284
291
  children: "+ Polygon"
285
292
  }),
286
- /* @__PURE__ */ d("span", {
293
+ /* @__PURE__ */ u("span", {
287
294
  className: `${s} ml-1 tabular-nums`,
288
295
  children: [
289
296
  V,
@@ -292,73 +299,73 @@ function b({ deviceId: a }) {
292
299
  " zones"
293
300
  ]
294
301
  }),
295
- /* @__PURE__ */ u("span", { className: "flex-1" }),
296
- /* @__PURE__ */ u("button", {
302
+ /* @__PURE__ */ l("span", { className: "flex-1" }),
303
+ /* @__PURE__ */ l("button", {
297
304
  type: "button",
298
- onClick: _e,
305
+ onClick: ye,
299
306
  disabled: E || !B,
300
307
  className: "rounded-md border border-border bg-surface px-2 py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",
301
308
  children: "Revert"
302
309
  }),
303
- /* @__PURE__ */ u("button", {
310
+ /* @__PURE__ */ l("button", {
304
311
  type: "button",
305
- onClick: () => void ve(),
312
+ onClick: () => void be(),
306
313
  disabled: E || !B,
307
- className: _,
314
+ className: g,
308
315
  children: E ? "Saving…" : "Save"
309
316
  })
310
317
  ]
311
318
  }),
312
- V > 0 ? /* @__PURE__ */ u("div", {
319
+ V > 0 ? /* @__PURE__ */ l("div", {
313
320
  className: "flex flex-col gap-1",
314
321
  children: S.regions.map((e) => {
315
- let t = A === e.id, n = e.shape.kind === "polygon" ? le : ae;
316
- return /* @__PURE__ */ d("div", {
322
+ let t = A === e.id, n = e.shape.kind === "polygon" ? ue : se;
323
+ return /* @__PURE__ */ u("div", {
317
324
  className: `flex items-center gap-2 rounded-md border px-2 py-1 transition-colors ${t ? "border-primary/50 bg-primary/10" : "border-border bg-surface"}`,
318
- children: [/* @__PURE__ */ d("button", {
325
+ children: [/* @__PURE__ */ u("button", {
319
326
  type: "button",
320
- onClick: () => ge(e.id),
327
+ onClick: () => ve(e.id),
321
328
  disabled: E,
322
329
  className: "flex flex-1 items-center gap-2 text-left text-[11px] font-medium text-foreground-subtle hover:text-foreground disabled:opacity-40 transition-colors",
323
330
  children: [
324
- /* @__PURE__ */ u(n, { className: "h-3.5 w-3.5 shrink-0" }),
325
- /* @__PURE__ */ d("span", { children: ["Zone ", e.id] }),
326
- /* @__PURE__ */ u("span", {
331
+ /* @__PURE__ */ l(n, { className: "h-3.5 w-3.5 shrink-0" }),
332
+ /* @__PURE__ */ u("span", { children: ["Zone ", e.id] }),
333
+ /* @__PURE__ */ l("span", {
327
334
  className: "text-foreground-faint capitalize",
328
335
  children: e.shape.kind
329
336
  })
330
337
  ]
331
- }), /* @__PURE__ */ u("button", {
338
+ }), /* @__PURE__ */ l("button", {
332
339
  type: "button",
333
340
  onClick: () => X(e.id),
334
341
  disabled: E,
335
342
  "aria-label": `Delete zone ${String(e.id)}`,
336
343
  title: "Delete zone",
337
344
  className: "inline-flex h-6 w-6 items-center justify-center rounded border border-border bg-surface text-foreground-subtle hover:border-red-400/40 hover:bg-red-500/10 hover:text-red-400 disabled:opacity-40 transition-colors",
338
- children: /* @__PURE__ */ u(oe, { className: "h-3.5 w-3.5" })
345
+ children: /* @__PURE__ */ l(c, { className: "h-3.5 w-3.5" })
339
346
  })]
340
347
  }, e.id);
341
348
  })
342
349
  }) : null
343
- ] }) : /* @__PURE__ */ u("p", {
350
+ ] }) : /* @__PURE__ */ l("p", {
344
351
  className: `${s} leading-relaxed`,
345
352
  children: "Loading the camera's privacy mask…"
346
- }), Z.supported && /* @__PURE__ */ d("div", {
353
+ }), Z.supported && /* @__PURE__ */ u("div", {
347
354
  className: "flex items-start gap-3 rounded-md border border-border bg-surface px-2 py-2",
348
- children: [/* @__PURE__ */ u("button", {
355
+ children: [/* @__PURE__ */ l("button", {
349
356
  type: "button",
350
357
  role: "switch",
351
358
  "aria-label": Z.label,
352
359
  "aria-checked": Z.on === !0,
353
360
  disabled: !Z.available || F !== null,
354
- onClick: () => void ye(),
361
+ onClick: () => void xe(),
355
362
  title: Z.on === null ? "Microphone — state unknown; the camera did not answer." : Z.on ? `The camera is capturing sound. Turning it off: ${Z.costWhenOff}` : `The camera is silent. ${Z.costWhenOff}`,
356
- className: Z.on === !1 || Z.on === null ? g : _,
357
- children: /* @__PURE__ */ d("span", {
363
+ className: Z.on === !1 || Z.on === null ? h : g,
364
+ children: /* @__PURE__ */ u("span", {
358
365
  className: "inline-flex items-center gap-1.5",
359
- children: [Z.on === !1 ? /* @__PURE__ */ u(ue, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ u(l, { className: "h-3.5 w-3.5" }), Z.on === null ? "Microphone unknown" : Z.on ? "Microphone on" : "Microphone off"]
366
+ children: [Z.on === !1 ? /* @__PURE__ */ l(de, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ l(ae, { className: "h-3.5 w-3.5" }), Z.on === null ? "Microphone unknown" : Z.on ? "Microphone on" : "Microphone off"]
360
367
  })
361
- }), /* @__PURE__ */ u("p", {
368
+ }), /* @__PURE__ */ l("p", {
362
369
  className: "text-[10px] text-foreground-subtle flex-1 leading-relaxed",
363
370
  children: L === null ? Z.on === null ? "The camera did not report its microphone, so this state is unknown." : Z.costWhenOff : `Write failed: ${L}`
364
371
  })]
@@ -367,4 +374,4 @@ function b({ deviceId: a }) {
367
374
  }) : null;
368
375
  }
369
376
  //#endregion
370
- export { b as PrivacyMaskSettings };
377
+ export { v as PrivacyMaskSettings };
package/dist/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-BgZ5Cn7S.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-kl_ISq9Q.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DhdrnB80.mjs";
3
3
  import { _ as e, c as t, d as n, h as r, i, l as a, m as o, n as s, p as c, r as l, t as u, u as d, y as f } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
4
4
  import { i as p, o as m, r as h, s as g } from "./responsive-veJ_u_lF.mjs";
5
5
  import { d as _, l as v, u as y } from "./use-device-snapshot-CCUZGgXd.mjs";
@@ -3471,7 +3471,7 @@ function Ur({ message: e, title: t, onRetry: n, action: r, variant: i = "danger"
3471
3471
  }
3472
3472
  //#endregion
3473
3473
  //#region ../../node_modules/qrcode.react/lib/esm/index.js
3474
- f(), f(), f(), f(), f(), i(() => import("./MotionZonesSettings-CcUQv9US.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./PrivacyMaskSettings-C1kY8VDL.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), f(), f();
3474
+ f(), f(), f(), f(), f(), i(() => import("./MotionZonesSettings-CcUQv9US.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./PrivacyMaskSettings-yTPSGJ_S.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), f(), f();
3475
3475
  var Wr = Object.defineProperty, Gr = Object.getOwnPropertySymbols, Kr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, Jr = (e, t, n) => t in e ? Wr(e, t, {
3476
3476
  enumerable: !0,
3477
3477
  configurable: !0,
@@ -15698,7 +15698,7 @@ var P_ = class {
15698
15698
  } catch {}
15699
15699
  }
15700
15700
  };
15701
- f(), new P_(), f(), f(), f(), f(), i(() => import("./MaskShapeCanvas-BEVxAjNq.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), i(() => import("./MotionZonesSettings-CcUQv9US.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./SceneMonitorEditor-DSLR3HyX.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), i(() => import("./PrivacyMaskSettings-C1kY8VDL.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
15701
+ f(), new P_(), f(), f(), f(), f(), i(() => import("./MaskShapeCanvas-BEVxAjNq.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), i(() => import("./MotionZonesSettings-CcUQv9US.mjs").then((e) => ({ default: e.MotionZonesSettings }))), i(() => import("./SceneMonitorEditor-DSLR3HyX.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), i(() => import("./PrivacyMaskSettings-yTPSGJ_S.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
15702
15702
  //#endregion
15703
15703
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
15704
15704
  var F_ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), I_ = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), L_ = (e) => {
@@ -1,9 +1,9 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-kl_ISq9Q.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DhdrnB80.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_osd_manager_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.85",
6
+ version: "1.2.87",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_osd_manager_page",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.165",
21
+ version: "1.2.167",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_osd_manager_page",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.133",
36
+ version: "1.2.135",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_osd_manager_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.165",
39
+ version: "1.2.167",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.85",
48
+ version: "1.2.87",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.133",
84
+ version: "1.2.135",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
package/dist/index.js CHANGED
@@ -21449,11 +21449,30 @@ var SensorEventSchema = object({
21449
21449
  value: record(string(), unknown()).nullable(),
21450
21450
  timestamp: number()
21451
21451
  });
21452
+ /**
21453
+ * One stored sighting on a track's trajectory.
21454
+ *
21455
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
21456
+ * arrival order, and the two detector passes interleave, so a consumer must not
21457
+ * assume the two are the same on a row written by an older build.
21458
+ */
21452
21459
  var TrackPositionSchema = object({
21453
21460
  x: number(),
21454
21461
  y: number(),
21455
21462
  timestamp: number(),
21456
- bbox: BoundingBoxSchema
21463
+ bbox: BoundingBoxSchema,
21464
+ /**
21465
+ * Which detector pass measured this box (D399): `frame` is the full-frame
21466
+ * pass on the analysis raster, `recovery` is the native-resolution
21467
+ * small-subject second pass (D377/D378). Both write into one array, and until
21468
+ * this field existed the only way to tell them apart was that full-frame boxes
21469
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
21470
+ * Absent on rows written before D399.
21471
+ */
21472
+ source: _enum(["frame", "recovery"]).optional(),
21473
+ /** Detection score of this box, so a position can be weighed and not only
21474
+ * plotted. Absent on rows written before D399. */
21475
+ score: number().optional()
21457
21476
  });
21458
21477
  var TrackSnapshotSchema = object({
21459
21478
  timestamp: number(),
@@ -21853,14 +21872,25 @@ var TrackSchema = object({
21853
21872
  */
21854
21873
  hasRider: boolean().optional(),
21855
21874
  /**
21856
- * WHY this track ended without a NATIVE best-shot tile
21857
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
21875
+ * WHY this track ended without a NATIVE best-shot FRAME
21876
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
21877
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
21858
21878
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
21859
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
21860
- * the late-keyFrame upgrade when a native tile lands after all. The
21861
- * operator-facing answer to "perché manca l'immagine?" on a track whose
21879
+ * `derive-returned-null tile=standin`,
21880
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
21881
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
21882
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
21862
21883
  * tile is a face/plate stand-in, a raster crop, or an icon.
21863
21884
  *
21885
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
21886
+ * the TILE ranked below native, so a track whose thumbnail landed natively
21887
+ * while its key frame missed carried no reason at all — three of the four
21888
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
21889
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
21890
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
21891
+ * lastFrame copy source`), so its absence is now on this line whatever the
21892
+ * tile ended up being.
21893
+ *
21864
21894
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
21865
21895
  * that predates the field, and every track whose tile landed native all
21866
21896
  * omit it. Render nothing when absent.
@@ -34228,8 +34258,27 @@ var PrivacyMaskRegionSchema = object({
34228
34258
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
34229
34259
  var PrivacyMaskStatusSchema = object({
34230
34260
  enabled: boolean(),
34231
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
34232
- regions: array(PrivacyMaskRegionSchema),
34261
+ /**
34262
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
34263
+ *
34264
+ * `null` means "no answer" — the provider has never reached this camera
34265
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
34266
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
34267
+ * has no zones": those two look identical to an operator right up to the
34268
+ * moment one of them is acted on, and acting on them differs completely.
34269
+ * The switch group turned an unanswered read into *"nothing is set up for
34270
+ * it to act on"* — an instruction to go and draw a zone that already
34271
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
34272
+ * from deleting the mask it could not read.
34273
+ *
34274
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
34275
+ * has no zones. The distinction is the same one {@link
34276
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
34277
+ * microphone, on the very same payload — both planes come from ONE refresh,
34278
+ * so it was never coherent for one of them to be able to say "unknown"
34279
+ * while the other could not.
34280
+ */
34281
+ regions: array(PrivacyMaskRegionSchema).nullable(),
34233
34282
  /**
34234
34283
  * Is the camera capturing sound right now? Read from the camera, never from
34235
34284
  * a server-side mirror.
package/dist/index.mjs CHANGED
@@ -21445,11 +21445,30 @@ var SensorEventSchema = object({
21445
21445
  value: record(string(), unknown()).nullable(),
21446
21446
  timestamp: number()
21447
21447
  });
21448
+ /**
21449
+ * One stored sighting on a track's trajectory.
21450
+ *
21451
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
21452
+ * arrival order, and the two detector passes interleave, so a consumer must not
21453
+ * assume the two are the same on a row written by an older build.
21454
+ */
21448
21455
  var TrackPositionSchema = object({
21449
21456
  x: number(),
21450
21457
  y: number(),
21451
21458
  timestamp: number(),
21452
- bbox: BoundingBoxSchema
21459
+ bbox: BoundingBoxSchema,
21460
+ /**
21461
+ * Which detector pass measured this box (D399): `frame` is the full-frame
21462
+ * pass on the analysis raster, `recovery` is the native-resolution
21463
+ * small-subject second pass (D377/D378). Both write into one array, and until
21464
+ * this field existed the only way to tell them apart was that full-frame boxes
21465
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
21466
+ * Absent on rows written before D399.
21467
+ */
21468
+ source: _enum(["frame", "recovery"]).optional(),
21469
+ /** Detection score of this box, so a position can be weighed and not only
21470
+ * plotted. Absent on rows written before D399. */
21471
+ score: number().optional()
21453
21472
  });
21454
21473
  var TrackSnapshotSchema = object({
21455
21474
  timestamp: number(),
@@ -21849,14 +21868,25 @@ var TrackSchema = object({
21849
21868
  */
21850
21869
  hasRider: boolean().optional(),
21851
21870
  /**
21852
- * WHY this track ended without a NATIVE best-shot tile
21853
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
21871
+ * WHY this track ended without a NATIVE best-shot FRAME
21872
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
21873
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
21854
21874
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
21855
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
21856
- * the late-keyFrame upgrade when a native tile lands after all. The
21857
- * operator-facing answer to "perché manca l'immagine?" on a track whose
21875
+ * `derive-returned-null tile=standin`,
21876
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
21877
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
21878
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
21858
21879
  * tile is a face/plate stand-in, a raster crop, or an icon.
21859
21880
  *
21881
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
21882
+ * the TILE ranked below native, so a track whose thumbnail landed natively
21883
+ * while its key frame missed carried no reason at all — three of the four
21884
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
21885
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
21886
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
21887
+ * lastFrame copy source`), so its absence is now on this line whatever the
21888
+ * tile ended up being.
21889
+ *
21860
21890
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
21861
21891
  * that predates the field, and every track whose tile landed native all
21862
21892
  * omit it. Render nothing when absent.
@@ -34224,8 +34254,27 @@ var PrivacyMaskRegionSchema = object({
34224
34254
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
34225
34255
  var PrivacyMaskStatusSchema = object({
34226
34256
  enabled: boolean(),
34227
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
34228
- regions: array(PrivacyMaskRegionSchema),
34257
+ /**
34258
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
34259
+ *
34260
+ * `null` means "no answer" — the provider has never reached this camera
34261
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
34262
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
34263
+ * has no zones": those two look identical to an operator right up to the
34264
+ * moment one of them is acted on, and acting on them differs completely.
34265
+ * The switch group turned an unanswered read into *"nothing is set up for
34266
+ * it to act on"* — an instruction to go and draw a zone that already
34267
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
34268
+ * from deleting the mask it could not read.
34269
+ *
34270
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
34271
+ * has no zones. The distinction is the same one {@link
34272
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
34273
+ * microphone, on the very same payload — both planes come from ONE refresh,
34274
+ * so it was never coherent for one of them to be able to say "unknown"
34275
+ * while the other could not.
34276
+ */
34277
+ regions: array(PrivacyMaskRegionSchema).nullable(),
34229
34278
  /**
34230
34279
  * Is the camera capturing sound right now? Read from the camera, never from
34231
34280
  * a server-side mirror.
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-kl_ISq9Q.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DhdrnB80.mjs";
2
2
  export { t as get, e as init };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BMp1Y2M6.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-C4pwsdzK.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-osd-manager",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "Binds camera on-screen-display slots to live state and recognitions",
5
5
  "keywords": [
6
6
  "camstack",