@camstack/addon-osd-manager 0.1.236 → 0.1.238
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/{MaskShapeCanvas-CU-mFCnh.mjs → MaskShapeCanvas-BFhkWNJD.mjs} +2330 -2329
- package/dist/MotionZonesSettings-BU-acK9Z.mjs +309 -0
- package/dist/PrivacyMaskSettings-DMXiC1dM.mjs +368 -0
- package/dist/SceneMonitorEditor-ePI2t_wT.mjs +846 -0
- package/dist/_stub.js +6978 -6349
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BPgZSZ-3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-0ArFGpGl.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs} +1 -1
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{hostInit-iQV7js-A.mjs → hostInit-BdkaT5Cp.mjs} +3 -3
- package/dist/index.js +199 -5
- package/dist/index.mjs +199 -5
- package/dist/player-overlays-B4efNR1A.mjs +44 -0
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-BP2NYfOi.mjs → responsive-CvSyX7h3.mjs} +35 -35
- package/dist/scene-monitor-copy-QAemI7ef.mjs +227 -0
- package/dist/{square-BHCEqr7g.mjs → square-BG-oZkZc.mjs} +1 -1
- package/dist/{trash-2-BGZFyowm.mjs → trash-2-DvemWMy7.mjs} +1 -1
- package/dist/ui-text-BitwQ50T.mjs +34 -0
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Ch_9U0JF.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CnEfWp78.mjs} +1 -1
- package/package.json +1 -1
- package/dist/MotionZonesSettings--WB2aUGD.mjs +0 -310
- package/dist/PrivacyMaskSettings-TGecGZ1J.mjs +0 -377
- package/dist/SceneMonitorEditor-Cq3bsqmJ.mjs +0 -831
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DVHQfCvU.mjs +0 -26
- package/dist/player-overlays-D0twFHMl.mjs +0 -44
- package/dist/scene-monitor-copy-DYchveQT.mjs +0 -187
package/dist/index.mjs
CHANGED
|
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
|
|
|
5386
5386
|
var ZodFirstPartyTypeKind;
|
|
5387
5387
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5388
5388
|
//#endregion
|
|
5389
|
-
//#region ../types/dist/sleep-
|
|
5389
|
+
//#region ../types/dist/sleep-DRqxtc0C.mjs
|
|
5390
5390
|
/**
|
|
5391
5391
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5392
5392
|
* window to float samples (D455).
|
|
@@ -8154,8 +8154,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
8154
8154
|
kind: "mutation",
|
|
8155
8155
|
auth: "admin"
|
|
8156
8156
|
}), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
8157
|
+
object({
|
|
8158
|
+
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
8159
|
+
params: record(string(), union([string(), number()])).optional()
|
|
8160
|
+
});
|
|
8157
8161
|
//#endregion
|
|
8158
|
-
//#region ../types/dist/err-msg-
|
|
8162
|
+
//#region ../types/dist/err-msg-DLerKiVO.mjs
|
|
8159
8163
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8160
8164
|
DeviceType["Camera"] = "camera";
|
|
8161
8165
|
DeviceType["Hub"] = "hub";
|
|
@@ -8405,6 +8409,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8405
8409
|
DeviceRole["Nightvision"] = "nightvision";
|
|
8406
8410
|
DeviceRole["PrivacyMask"] = "privacy-mask";
|
|
8407
8411
|
DeviceRole["Doorbell"] = "doorbell";
|
|
8412
|
+
/** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
|
|
8413
|
+
DeviceRole["CoverBlind"] = "cover-blind";
|
|
8414
|
+
/** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
|
|
8415
|
+
DeviceRole["CoverShutter"] = "cover-shutter";
|
|
8416
|
+
/** Exterior awning. HA `device_class: awning`. */
|
|
8417
|
+
DeviceRole["CoverAwning"] = "cover-awning";
|
|
8418
|
+
/** Curtain / drape. HA `device_class: curtain`. */
|
|
8419
|
+
DeviceRole["CoverCurtain"] = "cover-curtain";
|
|
8420
|
+
/** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
|
|
8421
|
+
DeviceRole["CoverGarage"] = "cover-garage";
|
|
8422
|
+
/** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
|
|
8423
|
+
DeviceRole["CoverGate"] = "cover-gate";
|
|
8424
|
+
/** Door. HA `device_class: door`. A security actuator: exports gate it. */
|
|
8425
|
+
DeviceRole["CoverDoor"] = "cover-door";
|
|
8426
|
+
/** Window. HA `device_class: window`. */
|
|
8427
|
+
DeviceRole["CoverWindow"] = "cover-window";
|
|
8408
8428
|
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
8409
8429
|
* real Switch device for UI rendering / export adapters. */
|
|
8410
8430
|
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
@@ -8475,7 +8495,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8475
8495
|
return DeviceRole;
|
|
8476
8496
|
}({});
|
|
8477
8497
|
//#endregion
|
|
8478
|
-
//#region ../types/dist/composition-
|
|
8498
|
+
//#region ../types/dist/composition-EQ9Ok0Ee.mjs
|
|
8479
8499
|
/**
|
|
8480
8500
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8481
8501
|
*
|
|
@@ -12152,6 +12172,8 @@ var ConvertResultSchema = object({
|
|
|
12152
12172
|
})).readonly()
|
|
12153
12173
|
});
|
|
12154
12174
|
_enum(["new-session", "step-up"]);
|
|
12175
|
+
/** The languages the hub's app landing pages are written in (D858). */
|
|
12176
|
+
var AppPageLangSchema = _enum(["en", "it"]);
|
|
12155
12177
|
/** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
|
|
12156
12178
|
var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
|
|
12157
12179
|
kind: literal("browser"),
|
|
@@ -12665,7 +12687,9 @@ var ConfigTabDeclarationSchema = object({
|
|
|
12665
12687
|
var ConfigSectionWithValuesSchema = object({
|
|
12666
12688
|
id: string(),
|
|
12667
12689
|
title: string(),
|
|
12690
|
+
titleKey: string().optional(),
|
|
12668
12691
|
description: string().optional(),
|
|
12692
|
+
descriptionKey: string().optional(),
|
|
12669
12693
|
style: _enum(["card", "accordion"]).optional(),
|
|
12670
12694
|
defaultCollapsed: boolean().optional(),
|
|
12671
12695
|
columns: union([
|
|
@@ -15891,6 +15915,9 @@ method(object({
|
|
|
15891
15915
|
}), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
|
|
15892
15916
|
kind: "mutation",
|
|
15893
15917
|
auth: "admin"
|
|
15918
|
+
}), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
|
|
15919
|
+
kind: "mutation",
|
|
15920
|
+
auth: "admin"
|
|
15894
15921
|
}), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
|
|
15895
15922
|
/**
|
|
15896
15923
|
* device-history — the ONE mechanism for numeric history (D850).
|
|
@@ -37339,6 +37366,38 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
37339
37366
|
* omits it and the keyword backstop applies. */
|
|
37340
37367
|
secretConfigPaths: array(string()).optional()
|
|
37341
37368
|
});
|
|
37369
|
+
/** One deleted device, kept by device-manager so an addon that missed the
|
|
37370
|
+
* deletion can still learn of it (D865). Written by the delete path ONLY. */
|
|
37371
|
+
var DeviceTombstoneSchema = object({
|
|
37372
|
+
deviceId: number().int().positive(),
|
|
37373
|
+
/** Epoch ms the device was deleted. */
|
|
37374
|
+
deletedAt: number(),
|
|
37375
|
+
/** The addon that owned the device when it was deleted. */
|
|
37376
|
+
providerAddonId: string()
|
|
37377
|
+
});
|
|
37378
|
+
/** Data held for one device that device-manager no longer knows. */
|
|
37379
|
+
var OrphanDeviceDataSchema = object({
|
|
37380
|
+
deviceId: number().int().positive(),
|
|
37381
|
+
/** Rows/files per store (`<addonId>:<store>`). */
|
|
37382
|
+
stores: record(string(), number().int().nonnegative())
|
|
37383
|
+
});
|
|
37384
|
+
var CleanupDeletedDevicesResultSchema = object({
|
|
37385
|
+
/**
|
|
37386
|
+
* `skipped` — the absence check could not be trusted (a device-list read
|
|
37387
|
+
* failed or the two reads disagreed); nothing was listed or deleted.
|
|
37388
|
+
* `dry-run` — `devices` is what a confirmed run would delete.
|
|
37389
|
+
* `cleaned` — `devices` is what was deleted.
|
|
37390
|
+
*/
|
|
37391
|
+
status: _enum([
|
|
37392
|
+
"skipped",
|
|
37393
|
+
"dry-run",
|
|
37394
|
+
"cleaned"
|
|
37395
|
+
]),
|
|
37396
|
+
reason: string().nullable(),
|
|
37397
|
+
devices: array(OrphanDeviceDataSchema),
|
|
37398
|
+
/** Implementers that could not be asked (their stores are not in `devices`). */
|
|
37399
|
+
unreachable: array(string())
|
|
37400
|
+
});
|
|
37342
37401
|
var DeviceRemovePayloadSchema = object({ deviceId: number() });
|
|
37343
37402
|
var DevicePersistConfigPayloadSchema = object({
|
|
37344
37403
|
deviceId: number(),
|
|
@@ -37577,6 +37636,9 @@ method(object({
|
|
|
37577
37636
|
}), method(object({ deviceId: number() }), object({ success: literal(true) }), {
|
|
37578
37637
|
kind: "mutation",
|
|
37579
37638
|
auth: "admin"
|
|
37639
|
+
}), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
|
|
37640
|
+
kind: "mutation",
|
|
37641
|
+
auth: "admin"
|
|
37580
37642
|
}), method(object({ integrationId: string() }), object({ removed: number() }), {
|
|
37581
37643
|
kind: "mutation",
|
|
37582
37644
|
auth: "admin"
|
|
@@ -38039,6 +38101,72 @@ method(object({
|
|
|
38039
38101
|
auth: "admin"
|
|
38040
38102
|
});
|
|
38041
38103
|
/**
|
|
38104
|
+
* `device-removal-hook` — the reliable way an addon learns a device was DELETED,
|
|
38105
|
+
* so it can delete what it keeps for that device (D865).
|
|
38106
|
+
*
|
|
38107
|
+
* ## Why an event was not enough
|
|
38108
|
+
*
|
|
38109
|
+
* `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
|
|
38110
|
+
* hung its per-device clean-up on it left durable garbage whenever the event was
|
|
38111
|
+
* lost, the addon was down, or it was restarting at that moment — footage,
|
|
38112
|
+
* analytics rows and settings of device 4483 outlived the device. Loss of this
|
|
38113
|
+
* signal corrupts durable state, so it travels by RPC with a recorded fact
|
|
38114
|
+
* behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
|
|
38115
|
+
*
|
|
38116
|
+
* ## The three pieces
|
|
38117
|
+
*
|
|
38118
|
+
* 1. device-manager records a TOMBSTONE per deleted device
|
|
38119
|
+
* (`deviceManager.listDeletedSince`). The tombstone is written by the delete
|
|
38120
|
+
* path only — a device that is unregistered, offline or whose provider is
|
|
38121
|
+
* restarting is NOT deleted and gets none.
|
|
38122
|
+
* 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
|
|
38123
|
+
* this collection, one by one, with bounded retries, logged.
|
|
38124
|
+
* 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
|
|
38125
|
+
* (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
|
|
38126
|
+
* may have missed. Reconcile is driven by tombstones, never by "the device is
|
|
38127
|
+
* not in the current list": a failed or partial list read must not destroy data.
|
|
38128
|
+
*
|
|
38129
|
+
* ## Contract for an implementer
|
|
38130
|
+
*
|
|
38131
|
+
* - **Idempotent.** It is called again by a retry, by a reconcile and by the
|
|
38132
|
+
* admin cleanup of data that predates tombstones. A device with nothing left
|
|
38133
|
+
* answers zero counts.
|
|
38134
|
+
* - **One key per store** in `counts`, deleted rows/files per store, so the log
|
|
38135
|
+
* line and the admin dry run can say where the data was.
|
|
38136
|
+
* - **Training datasets are NOT device data** and are never deleted by a hook.
|
|
38137
|
+
* - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
|
|
38138
|
+
* per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
|
|
38139
|
+
* for every addon centrally at delete time. This hook is for device DATA
|
|
38140
|
+
* that is not settings: footage, event media, analytics rows, history.
|
|
38141
|
+
* - A provider that cannot tell is allowed to throw; the caller retries it.
|
|
38142
|
+
*
|
|
38143
|
+
* `listDeviceData` is the read side of the admin "Clean data of deleted devices"
|
|
38144
|
+
* action: which device ids this addon holds data for, and how much per store. It
|
|
38145
|
+
* never deletes. device-manager decides which of those ids are absent from the
|
|
38146
|
+
* fleet, from TWO consistent reads of the device list (D49).
|
|
38147
|
+
*/
|
|
38148
|
+
/** What a hook is told about the deletion. */
|
|
38149
|
+
var DeviceRemovedInputSchema = object({
|
|
38150
|
+
deviceId: number().int().positive(),
|
|
38151
|
+
/** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
|
|
38152
|
+
deletedAt: number(),
|
|
38153
|
+
/** The addon that owned the device, as device-manager last knew it. */
|
|
38154
|
+
providerAddonId: string()
|
|
38155
|
+
});
|
|
38156
|
+
/** Rows/files/refs deleted, per store this implementer owns. */
|
|
38157
|
+
var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
|
|
38158
|
+
/** One (store, device) pair an implementer holds data for. */
|
|
38159
|
+
var DeviceDataEntrySchema = object({
|
|
38160
|
+
store: string(),
|
|
38161
|
+
deviceId: number().int().positive(),
|
|
38162
|
+
/** Rows (or files) held for the device in the store. */
|
|
38163
|
+
count: number().int().nonnegative()
|
|
38164
|
+
});
|
|
38165
|
+
method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
|
|
38166
|
+
kind: "mutation",
|
|
38167
|
+
auth: "admin"
|
|
38168
|
+
}), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
|
|
38169
|
+
/**
|
|
38042
38170
|
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
38043
38171
|
* through, per camera, with the denominator attached. It stores nothing.
|
|
38044
38172
|
*
|
|
@@ -50167,7 +50295,9 @@ var SsoBridgeClaimsSchema = object({
|
|
|
50167
50295
|
codeChallenge: string(),
|
|
50168
50296
|
state: string(),
|
|
50169
50297
|
purpose: _enum(["new-session", "step-up"]),
|
|
50170
|
-
redirect: string()
|
|
50298
|
+
redirect: string(),
|
|
50299
|
+
/** The page language the app asked for (D858); the confirm page speaks it. */
|
|
50300
|
+
lang: _enum(["en", "it"]).optional()
|
|
50171
50301
|
}).optional()
|
|
50172
50302
|
});
|
|
50173
50303
|
method(object({
|
|
@@ -59593,6 +59723,21 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
|
|
|
59593
59723
|
on: boolean(),
|
|
59594
59724
|
lastChangedAt: number()
|
|
59595
59725
|
});
|
|
59726
|
+
/** C0 controls, DEL and the C1 range: none of them belongs in a name. */
|
|
59727
|
+
function hasControlCharacter(value) {
|
|
59728
|
+
for (const char of value) {
|
|
59729
|
+
const code = char.codePointAt(0) ?? 0;
|
|
59730
|
+
if (code <= 31 || code >= 127 && code <= 159) return true;
|
|
59731
|
+
}
|
|
59732
|
+
return false;
|
|
59733
|
+
}
|
|
59734
|
+
string().transform((value) => value.trim()).pipe(string().min(1, "The server name cannot be empty").max(48, `The server name is at most 48 characters`).refine((value) => !hasControlCharacter(value), { message: "The server name cannot contain control characters" }));
|
|
59735
|
+
/** What every reader gets: the name to show, and whether the hub chose it itself. */
|
|
59736
|
+
var ServerNameInfoSchema = object({
|
|
59737
|
+
name: string(),
|
|
59738
|
+
/** `true` when nobody named the hub: `name` is the machine hostname. */
|
|
59739
|
+
isDefault: boolean()
|
|
59740
|
+
});
|
|
59596
59741
|
/**
|
|
59597
59742
|
* system — system-scoped singleton capability exposing hub-level
|
|
59598
59743
|
* health, feature flags, network interface enumeration, and the
|
|
@@ -59622,6 +59767,12 @@ var FeatureManifestSchema = object({
|
|
|
59622
59767
|
backup: boolean(),
|
|
59623
59768
|
repl: boolean()
|
|
59624
59769
|
});
|
|
59770
|
+
/**
|
|
59771
|
+
* `system.info`: the feature flags plus the hub's human name (D861). The name is
|
|
59772
|
+
* `{ name, isDefault }` — `isDefault: true` means nobody named the hub and `name`
|
|
59773
|
+
* is the machine hostname.
|
|
59774
|
+
*/
|
|
59775
|
+
var SystemInfoSchema = FeatureManifestSchema.extend({ serverName: ServerNameInfoSchema });
|
|
59625
59776
|
var HealthStatusSchema = object({
|
|
59626
59777
|
status: literal("ok"),
|
|
59627
59778
|
uptime: number()
|
|
@@ -60094,7 +60245,7 @@ var LoggingSettingsStateSchema = object({
|
|
|
60094
60245
|
opsLogRetentionDays: number().int().min(0),
|
|
60095
60246
|
persisted: boolean()
|
|
60096
60247
|
});
|
|
60097
|
-
method(_void(),
|
|
60248
|
+
method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
60098
60249
|
kind: "mutation",
|
|
60099
60250
|
auth: "admin"
|
|
60100
60251
|
}), method(_void(), _void(), {
|
|
@@ -63461,6 +63612,12 @@ Object.freeze({
|
|
|
63461
63612
|
addonId: null,
|
|
63462
63613
|
access: "create"
|
|
63463
63614
|
},
|
|
63615
|
+
"deviceManager.cleanupDeletedDevicesData": {
|
|
63616
|
+
capName: "device-manager",
|
|
63617
|
+
capScope: "system",
|
|
63618
|
+
addonId: null,
|
|
63619
|
+
access: "create"
|
|
63620
|
+
},
|
|
63464
63621
|
"deviceManager.createDevice": {
|
|
63465
63622
|
capName: "device-manager",
|
|
63466
63623
|
capScope: "system",
|
|
@@ -63641,6 +63798,12 @@ Object.freeze({
|
|
|
63641
63798
|
addonId: null,
|
|
63642
63799
|
access: "view"
|
|
63643
63800
|
},
|
|
63801
|
+
"deviceManager.listDeletedSince": {
|
|
63802
|
+
capName: "device-manager",
|
|
63803
|
+
capScope: "system",
|
|
63804
|
+
addonId: null,
|
|
63805
|
+
access: "view"
|
|
63806
|
+
},
|
|
63644
63807
|
"deviceManager.listDeviceIdsByCaps": {
|
|
63645
63808
|
capName: "device-manager",
|
|
63646
63809
|
capScope: "system",
|
|
@@ -64049,6 +64212,18 @@ Object.freeze({
|
|
|
64049
64212
|
addonId: null,
|
|
64050
64213
|
access: "create"
|
|
64051
64214
|
},
|
|
64215
|
+
"deviceRemovalHook.listDeviceData": {
|
|
64216
|
+
capName: "device-removal-hook",
|
|
64217
|
+
capScope: "system",
|
|
64218
|
+
addonId: null,
|
|
64219
|
+
access: "view"
|
|
64220
|
+
},
|
|
64221
|
+
"deviceRemovalHook.onDeviceRemoved": {
|
|
64222
|
+
capName: "device-removal-hook",
|
|
64223
|
+
capScope: "system",
|
|
64224
|
+
addonId: null,
|
|
64225
|
+
access: "create"
|
|
64226
|
+
},
|
|
64052
64227
|
"deviceState.claimFields": {
|
|
64053
64228
|
capName: "device-state",
|
|
64054
64229
|
capScope: "system",
|
|
@@ -64481,6 +64656,12 @@ Object.freeze({
|
|
|
64481
64656
|
addonId: null,
|
|
64482
64657
|
access: "delete"
|
|
64483
64658
|
},
|
|
64659
|
+
"keychain.deleteDeviceScope": {
|
|
64660
|
+
capName: "keychain",
|
|
64661
|
+
capScope: "system",
|
|
64662
|
+
addonId: null,
|
|
64663
|
+
access: "delete"
|
|
64664
|
+
},
|
|
64484
64665
|
"keychain.getState": {
|
|
64485
64666
|
capName: "keychain",
|
|
64486
64667
|
capScope: "system",
|
|
@@ -70493,6 +70674,11 @@ Object.freeze({
|
|
|
70493
70674
|
form: "single",
|
|
70494
70675
|
optional: false
|
|
70495
70676
|
}],
|
|
70677
|
+
"deviceRemovalHook.onDeviceRemoved": [{
|
|
70678
|
+
name: "deviceId",
|
|
70679
|
+
form: "single",
|
|
70680
|
+
optional: false
|
|
70681
|
+
}],
|
|
70496
70682
|
"deviceState.claimFields": [{
|
|
70497
70683
|
name: "deviceId",
|
|
70498
70684
|
form: "single",
|
|
@@ -70682,6 +70868,11 @@ Object.freeze({
|
|
|
70682
70868
|
form: "single",
|
|
70683
70869
|
optional: false
|
|
70684
70870
|
}],
|
|
70871
|
+
"keychain.deleteDeviceScope": [{
|
|
70872
|
+
name: "deviceId",
|
|
70873
|
+
form: "single",
|
|
70874
|
+
optional: false
|
|
70875
|
+
}],
|
|
70685
70876
|
"lawnMowerControl.dock": [{
|
|
70686
70877
|
name: "deviceId",
|
|
70687
70878
|
form: "single",
|
|
@@ -73110,6 +73301,8 @@ new Set([
|
|
|
73110
73301
|
"audio-tools",
|
|
73111
73302
|
"audio-silence"
|
|
73112
73303
|
]);
|
|
73304
|
+
AppPageLangSchema.options;
|
|
73305
|
+
record(string().min(1), string());
|
|
73113
73306
|
/**
|
|
73114
73307
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
73115
73308
|
*
|
|
@@ -74485,6 +74678,7 @@ Object.freeze({
|
|
|
74485
74678
|
"device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
|
|
74486
74679
|
"device-extension": ["listSlots", "listSources"],
|
|
74487
74680
|
"device-provider": ["discoverDevices", "getDevices"],
|
|
74681
|
+
"device-removal-hook": ["listDeviceData"],
|
|
74488
74682
|
"failure-contribution": ["list"],
|
|
74489
74683
|
"llm": [
|
|
74490
74684
|
"getDefaults",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { S as e, d as t, u as n, v as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
|
|
2
|
+
import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
3
|
+
import { c as s, l as c } from "./responsive-CvSyX7h3.mjs";
|
|
4
|
+
var l = c("chevron-down", [["path", {
|
|
5
|
+
d: "m6 9 6 6 6-6",
|
|
6
|
+
key: "qrunsl"
|
|
7
|
+
}]]), u = c("chevron-right", [["path", {
|
|
8
|
+
d: "m9 18 6-6-6-6",
|
|
9
|
+
key: "mthhwq"
|
|
10
|
+
}]]);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ../ui-library/src/composites/widget-panel.tsx
|
|
13
|
+
e();
|
|
14
|
+
function d({ title: e, icon: t, headerRight: n, collapsible: s = !1, defaultOpen: c = !0, bodyClassName: d = "p-3", children: f }) {
|
|
15
|
+
let [p, m] = r(c), h = !s || p, g = /* @__PURE__ */ a(o, { children: [/* @__PURE__ */ a("span", {
|
|
16
|
+
className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground",
|
|
17
|
+
children: [t, e]
|
|
18
|
+
}), s ? i(p ? l : u, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : n] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
|
|
19
|
+
return /* @__PURE__ */ a("div", {
|
|
20
|
+
className: "rounded-lg border border-border bg-surface overflow-hidden",
|
|
21
|
+
children: [s ? /* @__PURE__ */ i("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
onClick: () => m((e) => !e),
|
|
24
|
+
className: `w-full text-left ${_}`,
|
|
25
|
+
children: g
|
|
26
|
+
}) : /* @__PURE__ */ i("div", {
|
|
27
|
+
className: _,
|
|
28
|
+
children: g
|
|
29
|
+
}), h ? /* @__PURE__ */ i("div", {
|
|
30
|
+
className: d,
|
|
31
|
+
children: f
|
|
32
|
+
}) : null]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
e(), s("camstack:player-overlays-state", null);
|
|
36
|
+
var f = s("camstack:player-overlays-actions", null);
|
|
37
|
+
function p(e) {
|
|
38
|
+
let r = n(f);
|
|
39
|
+
t(() => {
|
|
40
|
+
if (!(!r || !e)) return r.setLayer(e), () => r.removeLayer(e.id);
|
|
41
|
+
}, [r, e]);
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { l as i, d as n, u as r, p as t };
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CnEfWp78.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DVHQfCvU.mjs";
|
|
1
|
+
import { S as e, d as t, g as n, i as r, l as i, n as a, r as o, u as s, v as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
|
|
3
2
|
import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
3
|
+
import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs";
|
|
4
4
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
|
-
|
|
5
|
+
e();
|
|
6
6
|
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
7
7
|
let t = p(e);
|
|
8
8
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -19,7 +19,7 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
19
19
|
}, g = (e) => {
|
|
20
20
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
21
21
|
return !1;
|
|
22
|
-
}, _ =
|
|
22
|
+
}, _ = r(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
|
|
23
23
|
ref: l,
|
|
24
24
|
...h,
|
|
25
25
|
width: t,
|
|
@@ -32,9 +32,9 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
32
32
|
}, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]]));
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
35
|
-
|
|
35
|
+
e();
|
|
36
36
|
var v = (e, t) => {
|
|
37
|
-
let n =
|
|
37
|
+
let n = r(({ className: n, ...r }, i) => o(_, {
|
|
38
38
|
ref: i,
|
|
39
39
|
iconNode: t,
|
|
40
40
|
className: d(`lucide-${f(m(e))}`, `lucide-${e}`, n),
|
|
@@ -44,61 +44,61 @@ var v = (e, t) => {
|
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../ui-library/src/lib/shared-context.ts
|
|
47
|
-
|
|
47
|
+
e();
|
|
48
48
|
function y(e, t) {
|
|
49
|
-
if (typeof globalThis > "u") return
|
|
49
|
+
if (typeof globalThis > "u") return a(t);
|
|
50
50
|
let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
|
|
51
51
|
n || (globalThis.__camstackSharedContexts = r);
|
|
52
52
|
let i = r.get(e);
|
|
53
53
|
if (i) return i;
|
|
54
|
-
let
|
|
55
|
-
return r.set(e,
|
|
54
|
+
let o = a(t);
|
|
55
|
+
return r.set(e, o), o;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region ../ui-library/src/contexts/system-context.tsx
|
|
59
|
-
|
|
59
|
+
e();
|
|
60
60
|
var b = y("camstack:system", null);
|
|
61
61
|
function x() {
|
|
62
|
-
let e =
|
|
62
|
+
let e = s(b);
|
|
63
63
|
if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
|
|
64
64
|
return e;
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region ../ui-library/src/hooks/use-device-proxy.ts
|
|
68
|
-
|
|
68
|
+
e();
|
|
69
69
|
var S = "capability.binding-changed";
|
|
70
|
-
function C(e,
|
|
71
|
-
let [
|
|
72
|
-
return
|
|
73
|
-
if (
|
|
74
|
-
|
|
70
|
+
function C(e, r) {
|
|
71
|
+
let [i, a] = c(null);
|
|
72
|
+
return t(() => {
|
|
73
|
+
if (r === null) {
|
|
74
|
+
a(null);
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
let
|
|
77
|
+
let t = !1, n = async () => {
|
|
78
78
|
try {
|
|
79
|
-
let
|
|
80
|
-
|
|
79
|
+
let n = await e.deviceManager.getBindings.query({ deviceId: r });
|
|
80
|
+
t || a(n);
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
t || a((e) => e);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
let
|
|
87
|
-
let
|
|
88
|
-
if (!
|
|
89
|
-
|
|
85
|
+
n();
|
|
86
|
+
let i = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
|
|
87
|
+
let t = e.data?.source;
|
|
88
|
+
if (!t) {
|
|
89
|
+
n();
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
t.type === "device" && t.id === r && n();
|
|
93
93
|
} });
|
|
94
94
|
return () => {
|
|
95
|
-
|
|
95
|
+
t = !0, i?.unsubscribe();
|
|
96
96
|
};
|
|
97
|
-
}, [e,
|
|
97
|
+
}, [e, r]), n(() => i ? u(e, i) : null, [e, i]);
|
|
98
98
|
}
|
|
99
|
-
function w(
|
|
100
|
-
let
|
|
101
|
-
return
|
|
99
|
+
function w(e) {
|
|
100
|
+
let t = i((t) => e ? e.subscribe(() => t()) : () => void 0, [e]), n = i(() => e?.value, [e]);
|
|
101
|
+
return l(t, n, n);
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region ../ui-library/src/lib/cap-error.ts
|
|
@@ -117,6 +117,6 @@ function E(e) {
|
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region ../ui-library/src/lib/responsive.ts
|
|
120
|
-
var D = "
|
|
120
|
+
var D = "text-[10px] text-foreground-subtle", O = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", k = "border-primary/50 bg-primary/15 text-primary";
|
|
121
121
|
//#endregion
|
|
122
|
-
export {
|
|
122
|
+
export { C as a, y as c, E as i, v as l, O as n, w as o, D as r, x as s, k as t };
|