@sentinel-nvr/web 0.19.0 → 0.19.1
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 +13 -7
- package/dist/ui/ui.css +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ on older servers, but only get their full behaviour with the matching plugin ver
|
|
|
39
39
|
| 0.16.x | any (spans: ≥ 1.3.0) | events as time spans: bar from first sighting to last movement on the timeline, running events pulse, duration/„running“ in the list (`endTs`/`open`); older servers show plain markers. 0.16.5: storage values in the UI language, today refresh during playback — client only. 0.16.7: overlapping timeline markers grouped with a count, a tap zooms in — client only. 0.16.8: the events tab counts the centred day — client only. 0.16.9: "yesterday" in front of the time in the overview events strip — client only. 0.16.10: "recording stalled" on tiles and in the status pill (`stalled` from plugin ≥ 2026-10-05; older servers: no change). 0.16.11: `header`/`externalUrl` may take the playback position — client only. |
|
|
40
40
|
| 0.17.x | plugin with `features: ["export"]` (older plugins: no clip button, everything else as 0.16.x) | clip download on the camera page: "Download clip" in the info bar and per event in the list, range as a band on the timeline, edges set over the playhead line, `api/export` → `api/export-status` → `api/export-file` (save, or share up to 100 MB); `SentinelClient.startExport/exportStatus/exportFileUrl/cancelExport`, `SentinelHttpError.code`. |
|
|
41
41
|
| 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
|
-
| 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. Client only. |
|
|
42
|
+
| 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). Client only. |
|
|
43
43
|
|
|
44
44
|
Lab note: Scrypted's WebRTC sink re-encodes (1280 px, 15 fps) for clients that are not Windows/macOS/iOS and report a
|
|
45
45
|
screen below 1920 physical pixels, unless the source declares a width ≤ 1280. Plugin ≥ 1.2.0 declares it for recorded
|
|
@@ -65,12 +65,18 @@ The server keeps its own types; `docs/API.md` in the plugin repository is the co
|
|
|
65
65
|
owns the screen: the host hides its own bars and gives the page the viewport (`.nvr-cam__body` is `100dvh`, at least
|
|
66
66
|
27rem; on a short screen the picture yields first). The picture runs edge to edge and the header row (`CameraTitle`:
|
|
67
67
|
back, name + badge, host actions) lies over it with a gradient — give icon actions the class `nvr-iconbtn` to get
|
|
68
|
-
the same round button as back. The
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
the same round button as back. The picture's card is sticky there (0.19.1; it is the only child of its column, so it
|
|
69
|
+
cannot move): according to WebKit's source, iOS 26 drops the soft blur a home-screen app on an iPhone lays over the
|
|
70
|
+
top of the page when the page has a top bar, and shows the status bar on its background (here the stage's). WebKit
|
|
71
|
+
takes the topmost fixed or sticky box at the middle of the top edge and walks up from it to the first one at least
|
|
72
|
+
90 % as wide as the viewport: keep that point free of the host's own fixed boxes on this page. A picture narrower
|
|
73
|
+
than 90 % of the viewport (a square or upright camera on a small phone) keeps the blur. The controls float as
|
|
74
|
+
capsules, the tabs are a segment with a sliding lens (`.nvr-tabs[data-active]`, only on this page), the timeline
|
|
75
|
+
reaches the bottom edge (safe areas kept). From 900 px the header stays above the columns, the
|
|
76
|
+
picture has no card frame. The timeline keeps its geometry. Meant for dark tokens: the host scopes its theme dark
|
|
77
|
+
on the page (the package re-derives its own `--nvr-*` colours there). Hooks, all optional (fallback = the default
|
|
78
|
+
look): over the picture `--nvr-ctl-bg`, `-filter`, `-rim` (1-px edge, may be a gradient), `-shadow`, `-fg`,
|
|
79
|
+
`-text-shadow`; over the timeline (date chip, zoom) `--nvr-float-bg`, `-filter`,
|
|
74
80
|
`-rim`, `-shadow`, `-fg`, `-accent` (the chip's text while a recording plays); segment `--nvr-seg-track`, `-lens`,
|
|
75
81
|
`-shadow`; LIVE badge, live jump and the live line's label `--nvr-live-bg`, `-fg` (badge and live jump also
|
|
76
82
|
`--nvr-live-shadow`); the gradients' dark end `--nvr-shade-top` (under the header, default black 70 %) and
|
package/dist/ui/ui.css
CHANGED
|
@@ -2658,7 +2658,17 @@
|
|
|
2658
2658
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body.nvr-cam__body--clip {
|
|
2659
2659
|
--stage-maxh: max(28vh, min(46vh, 100dvh - 22rem));
|
|
2660
2660
|
}
|
|
2661
|
+
/* the picture's card is sticky. It cannot move (it is its column's only child, the column is as tall as the card),
|
|
2662
|
+
so the layout stays as it is. WebKit (iOS 26, from its source) takes a fixed or sticky box at the top edge of the
|
|
2663
|
+
viewport for the page's top bar: a home-screen app then shows its status bar on the background it finds there
|
|
2664
|
+
(here the stage's) instead of laying its soft blur over what starts below the status bar, the top of the picture
|
|
2665
|
+
with the header row. WebKit hit-tests only fixed and sticky boxes (and what is inside them) at the middle of the
|
|
2666
|
+
top edge, takes the topmost one and walks up from it to the first fixed or sticky box at least 90 % as wide as
|
|
2667
|
+
the viewport; it never looks further down. So on this page the host keeps that point free of its own fixed boxes,
|
|
2668
|
+
and a picture narrower than that (a square or upright camera on a small phone) keeps the blur. */
|
|
2661
2669
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-card {
|
|
2670
|
+
position: sticky;
|
|
2671
|
+
top: 0;
|
|
2662
2672
|
border: 0;
|
|
2663
2673
|
border-radius: 0;
|
|
2664
2674
|
box-shadow: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentinel-nvr/web",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Shared browser code for the Sentinel NVR plugin for Scrypted: API model + client (/api), player (/player) and React UI with i18n + themes (/ui). Consumed by the plugin's own web UI and the HAPulse dashboard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Muggedadscher",
|