@sentinel-nvr/web 0.20.2 → 0.22.0
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/README.md +23 -0
- package/dist/chunk-Z5USWUIE.js +1102 -0
- package/dist/chunk-Z5USWUIE.js.map +1 -0
- package/dist/glas/index.d.ts +76 -0
- package/dist/glas/index.js +221 -0
- package/dist/glas/index.js.map +1 -0
- package/dist/glas-data-CSRWRmcF.d.ts +368 -0
- package/dist/ui/glas.css +1629 -0
- package/dist/ui/index.d.ts +68 -96
- package/dist/ui/index.js +925 -685
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/locales/de.json +15 -1
- package/dist/ui/locales/en.json +14 -0
- package/dist/ui/locales/es.json +15 -1
- package/dist/ui/locales/fr.json +15 -1
- package/dist/ui/locales/it.json +15 -1
- package/dist/ui/locales/pt.json +15 -1
- package/dist/ui/locales/sv.json +15 -1
- package/dist/ui/ui.css +44 -0
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ One npm package, **`@sentinel-nvr/web`**, with subpath entry points (one version
|
|
|
16
16
|
| `@sentinel-nvr/web/api` | **available** | DOM-free data model + types mirroring the plugin's `docs/API.md`, URL/setup parsing, event classification, storage forecast, timeline clip-run merge, locale formatters, and a `fetch`/WebSocket `SentinelClient`. No framework deps. |
|
|
17
17
|
| `@sentinel-nvr/web/player` | **available** | `PlayerController`, WebRTC signaling, the no-reneg recorded-playback relay client, watchdog and the live/recorded fallback chain. |
|
|
18
18
|
| `@sentinel-nvr/web/ui` | **available** | React components — the whole **camera page** (`CameraPage`: stage, control pill, info bar, tabs, class filters, vertical timeline, events list, date chip; `CameraTitle` header row), class badges, event strip, camera tiles, date picker, stat cards — the i18n dictionaries (`nvr.*`, 7 locales) and the theme system (4 identities × light/dark/auto + accent hue). Styles in `@sentinel-nvr/web/ui/ui.css` (HAPulse tokens). |
|
|
19
|
+
| `@sentinel-nvr/web/glas` | **available** (0.21.0) | The style "Glas" without React: its values (`glas-data`, a verbatim copy of HAPulse's `glasTokens.ts`) and `applyAppearance`/`watchAppearance`, which write them on `<html>` next to the classic theme. Its stylesheet for the package's parts is `@sentinel-nvr/web/ui/glas.css` (load after `ui.css`). |
|
|
19
20
|
|
|
20
21
|
The earlier `@sentinel-nvr/api@0.1.0` is deprecated in favour of `@sentinel-nvr/web/api`.
|
|
21
22
|
|
|
@@ -41,6 +42,8 @@ on older servers, but only get their full behaviour with the matching plugin ver
|
|
|
41
42
|
| 0.18.x | any | opt-in immersive camera page: `CameraPage appearance="immersive"` (`data-nvr-appearance` on the page) — picture edge to edge with the header over it on phones, floating controls, tabs as a segment, styled by the host through `--nvr-ctl-*`, `--nvr-float-*`, `--nvr-seg-*`, `--nvr-live-*`, `--nvr-shade-top`/`-bottom`, `--nvr-ease`/`--nvr-dur`; `header(at, { live })`, `CameraTitle` `live`/`at` (LIVE badge or the picture's time). Without the prop the page is unchanged. Client only. |
|
|
42
43
|
| 0.19.x | any (clip download: as 0.17.x) | immersive clip mode (`CameraPage appearance="immersive"`): the clip bar as a floating card with the edges as a segment, the picture edge to edge on phones; the clip bar's close button never wraps (both appearances); optional `icon` in front of the `EventsStrip` / `CameraGrid` titles. 0.19.1: below 900 px the immersive picture card is sticky (it cannot move), so that, according to WebKit's source, an iOS 26 home-screen app on an iPhone shows the status bar on the stage's background instead of blurring the top of the picture (pictures at least 90 % as wide as the screen). 0.19.2: camera tiles carry `data-nvr-camera` and hold the picture in one box (`.nvr-camtile__pic`); a tile that mounts again shows the camera's last picture (`.nvr-camtile__img--last`, also while the remembered image loads its next snapshot) until its own snapshot is decoded (`drawLastTileSnapshot` / `hasLastTileSnapshot` for a host's own pictures). Client only. |
|
|
43
44
|
| 0.20.x | any (start picture: plugin with `features: ["frame"]`, older plugins keep the detection frame) | event click: the still picture until the video runs is the first picture of the playback (`api/frame`), so the video no longer jumps back when it takes over; `PlayerController.posterEvent(ts, start?)`. 0.20.1: a jump into a gap of up to 2 s between two recordings plays the next one instead of "no recording" (`clipAt`, `GAP_SNAP_MS`); MSE fallback: the next segment is fetched only after the previous one is appended (sporadic decode error) — client only. 0.20.2: while scrubbing the playhead moves at the speed of the picture (`relay-pos` `v`, plugin from 19.10.2026; older plugins: the former rate interpolation). |
|
|
45
|
+
| 0.21.x | any (client only) | the style "Glas": entry `@sentinel-nvr/web/glas`, `ui/glas.css`, the Glas overview parts (`GlassCameras`, `GlassEvents`, `GlassNvr`, `GlassSections`), `Hero appearance="glass"`, the style rows in `AppearanceSection`. Without them every part renders as in 0.20.x. |
|
|
46
|
+
| 0.22.x | any (client only) | Glas: the settings section (`AppearanceSection`) as HAPulse's settings list, the choices as the Glas segment (`GlassSegment`, `.nvr-gl-seg`); "Auto" for the automatic language in every locale. |
|
|
44
47
|
|
|
45
48
|
Lab note: Scrypted's WebRTC sink re-encodes (1280 px, 15 fps) for clients that are not Windows/macOS/iOS and report a
|
|
46
49
|
screen below 1920 physical pixels, unless the source declares a width ≤ 1280. Plugin ≥ 1.2.0 declares it for recorded
|
|
@@ -90,6 +93,26 @@ The server keeps its own types; `docs/API.md` in the plugin repository is the co
|
|
|
90
93
|
surface must carry them), its edges are a segment with the `--nvr-seg-*` hooks (`.nvr-clipbar__edges[data-edge]`,
|
|
91
94
|
`data-was` = the edge before).
|
|
92
95
|
|
|
96
|
+
- **Glas** (0.21.0, opt-in; HAPulse leads the look, the package holds what both apps show): `applyAppearance({ theme,
|
|
97
|
+
mode, accentHue, uiStyle, glassStrength, reduceTransparency })` from `@sentinel-nvr/web/glas` applies the classic theme
|
|
98
|
+
and, for `uiStyle: 'glas'`, the Glas values and `data-style="glas"` on `<html>` (`data-glass` = the strength, opaque
|
|
99
|
+
under more contrast or reduced transparency; a `<style id="glas-dark-scope">` for the dark subtree). Back to
|
|
100
|
+
Klassisch nothing of Glas stays. `watchAppearance(get)` re-applies on the system's light/dark, contrast and
|
|
101
|
+
transparency changes. `setAppearanceHost({ floating, classicThemeColor })` names the host's floating surfaces over the
|
|
102
|
+
camera page and who sets the browser colour in Klassisch. Every rule of `ui/glas.css` sits under
|
|
103
|
+
`:root[data-style='glas']`; without the attribute the file does nothing. Host contract (as HAPulse's base): the root
|
|
104
|
+
values (`--g-font`, `--font-*`, `--radius-card`, tabular figures), the class `nvr-overview` on the overview's content,
|
|
105
|
+
`--nvr-gl-bleed` (default 16 px, how far the strips reach past the content on a phone), `data-glas-scheme="dark"`
|
|
106
|
+
on the part that shows the camera page. Parts: `GlassNvr` (cameras and events as strips, the snapshots refresh every
|
|
107
|
+
`refreshMs`, a failed one shows the last thumbnail until a background probe loads, every 30 s), `GlassSections` (the
|
|
108
|
+
same with section titles), `GlassCameras`, `GlassEvents`; a tile is the `button[data-nvr-camera]` with its picture
|
|
109
|
+
box `.nvr-camtile__pic` as first child (a host's transition between tile and camera page finds it there); opening
|
|
110
|
+
goes through `nav.openCamera(id)` (tile) or `nav.openCamera(id, at, ev)` (event). `Hero appearance="glass"` is the
|
|
111
|
+
status board (`.nvr-tafel`). `AppearanceSection` shows the style rows when the host passes `onUiStyle` (and in Glas
|
|
112
|
+
`onGlassStrength`, `onReduceTransparency`); in Glas a hint replaces the theme cards, the choices are the Glas segment
|
|
113
|
+
(`role="radiogroup"`, `.nvr-gl-seg`, choose with Space/Enter or a click) and `ui/glas.css` draws the rows as HAPulse's
|
|
114
|
+
settings list (0.22.0). Without these props every part renders the markup of 0.20.x (test `classic-markup`).
|
|
115
|
+
|
|
93
116
|
## Develop
|
|
94
117
|
|
|
95
118
|
```bash
|