@vitrinka/web 0.3.1 → 0.3.3
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 +49 -0
- package/README.md +5 -0
- package/build/hud.d.ts +1 -1
- package/build/hud.iife.js +7 -7
- package/build/protocol/index.d.ts +11 -1
- package/build/recorder/RecorderProvider.js +4 -1
- package/build/recorder/control.js +2 -1
- package/build/recorder/hud/Hud.js +2 -2
- package/build/recorder/hud/RecorderPill.js +12 -4
- package/build/recorder/hud/controller.d.ts +11 -6
- package/build/recorder/hud/flow.d.ts +5 -1
- package/build/recorder/hud/flow.js +6 -1
- package/build/recorder/page-controller.js +5 -5
- package/build/recorder/queue.d.ts +38 -0
- package/build/recorder/queue.js +153 -4
- package/build/recorder/recents.d.ts +32 -0
- package/build/recorder/recents.js +58 -2
- package/build/recorder/report.d.ts +1 -0
- package/build/recorder/report.js +5 -3
- package/build/recorder/session.d.ts +10 -2
- package/build/recorder/session.js +64 -9
- package/build/recorder/storage/index.d.ts +6 -0
- package/build/recorder/storage/index.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @vitrinka/web
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
- **The other tabs leave the recording at the Stop, not when the save
|
|
6
|
+
ends.** 0.3.2 told them only once the stopping tab had drained its
|
|
7
|
+
queue and the server had closed the session, so for as long as that
|
|
8
|
+
took (seconds on a busy page) their pills still said rec with a running
|
|
9
|
+
clock, and their lanes kept capturing. The stopping tab now writes the
|
|
10
|
+
shared record as paused, with its clock frozen at the Stop, and marked
|
|
11
|
+
`stopping`. The other tabs stop capturing and painting rec within
|
|
12
|
+
milliseconds, and turn idle when the save ends. Its own tail still
|
|
13
|
+
lands. A stop that keeps the session (server unreachable) hands it back
|
|
14
|
+
to them as it is. Pause and resume are refused on a session another tab
|
|
15
|
+
is stopping. That tab renews its mark every 20 s while its Stop is out,
|
|
16
|
+
and a mark left by a tab closed mid-stop expires after 90 s into an
|
|
17
|
+
ordinary pause.
|
|
18
|
+
- **"Open board" appears once the board exists.** The server builds a
|
|
19
|
+
session's board after the stop, rendering stills first (30–60 s), so
|
|
20
|
+
neither the create nor the done answer carried a link. The pill said
|
|
21
|
+
"Saved · in Recents" (or "Sent · in Recents" for a bug report) and
|
|
22
|
+
never offered the board. The recorder also read only `board.url`,
|
|
23
|
+
while the server answers `boardUrl`. Both are read now. A stop or
|
|
24
|
+
report saved before its board exists reads the session every 1.5 s, for
|
|
25
|
+
up to 10 minutes (the extension's numbers), until the server names the
|
|
26
|
+
board. The link then lands on the recent, and the Saved / Sent face
|
|
27
|
+
turns into "Open board". A `HudController` host may return the saved
|
|
28
|
+
`sessionId` from `stop()` / `report()` (`HudSaved`) to get the same.
|
|
29
|
+
Recents opened after a reload pick up the wait for a board still being
|
|
30
|
+
projected, and `window.__vitrinkaRecorder.stop()` reads `boardUrl` too.
|
|
31
|
+
|
|
32
|
+
## 0.3.2
|
|
33
|
+
|
|
34
|
+
- **A Stop in one tab ends the recording in every tab.** A second tab of
|
|
35
|
+
the app opened during a recording joins it (it reads the shared
|
|
36
|
+
`localStorage` record, as a reload does), but nothing told it when
|
|
37
|
+
another tab stopped: its pill kept a running recording — the clock
|
|
38
|
+
counting from the original start, Start hidden — and its clicks and
|
|
39
|
+
navigations kept going to a session the server had closed, until a
|
|
40
|
+
reload. Each tab now follows the record the others write: a Stop
|
|
41
|
+
there turns this pill idle and drops this tab's undelivered tail for
|
|
42
|
+
that session, a Start there is joined, a pause follows. Recents
|
|
43
|
+
follow too. A custom `RecorderStorage` driver may implement the new
|
|
44
|
+
optional `watch(key, onChange)` to get the same; the memory driver has
|
|
45
|
+
nothing to share.
|
|
46
|
+
- **A stopped recording leaves no trace on the pill.** While "Saved"
|
|
47
|
+
showed (and after it), the pill still said `data-state="rec"` and the
|
|
48
|
+
folded clock kept counting from the ended session's start. The state
|
|
49
|
+
now follows the live recording only, and the clock stands where it
|
|
50
|
+
stopped.
|
|
51
|
+
|
|
3
52
|
## 0.3.1
|
|
4
53
|
|
|
5
54
|
- **A bug report always carries the current screen.** When a checkout
|
package/README.md
CHANGED
|
@@ -277,6 +277,11 @@ of its tab). Where that is unavailable (private mode, a storage-disabled
|
|
|
277
277
|
profile) the recorder falls back to memory and says so once; plug your own
|
|
278
278
|
synchronous driver with `configureRecorderStorage()` before mounting.
|
|
279
279
|
|
|
280
|
+
The session record is shared by every tab of the app: a tab opened during
|
|
281
|
+
a recording joins it, and a Start, pause or Stop in one tab reaches the
|
|
282
|
+
others through the driver's optional `watch(key, onChange)` (the
|
|
283
|
+
`localStorage` driver implements it with the `storage` event).
|
|
284
|
+
|
|
280
285
|
## Development
|
|
281
286
|
|
|
282
287
|
```bash
|
package/build/hud.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* defining `globalThis.VitrinkaHud.mount`.
|
|
6
6
|
*/
|
|
7
7
|
export { mountRecorderHud, type MountHudOptions } from './recorder/hud/mount';
|
|
8
|
-
export { DEFAULT_PREFS, type HudAccount, type HudAnnotation, type HudController, type HudLinkCode, type HudLinkFlow, type HudPrefs, type HudRecent, type HudRecentStatus, type HudRecording, type HudRect, type HudReport, type HudSize, type HudSnapshot, type HudSync, type HudSyncState, } from './recorder/hud/controller';
|
|
8
|
+
export { DEFAULT_PREFS, type HudAccount, type HudAnnotation, type HudController, type HudLinkCode, type HudLinkFlow, type HudPrefs, type HudRecent, type HudRecentStatus, type HudRecording, type HudRect, type HudReport, type HudSaved, type HudSize, type HudSnapshot, type HudSync, type HudSyncState, } from './recorder/hud/controller';
|
|
9
9
|
export type { RecorderStorage } from './recorder/storage';
|