@vitrinka/web 0.8.0 → 0.8.2
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 +58 -0
- package/README.md +19 -6
- package/build/hud.iife.js +15 -15
- package/build/one.iife.js +1 -1
- package/build/recorder/api.d.ts +5 -3
- package/build/recorder/api.js +5 -3
- package/build/recorder/lead.d.ts +2 -0
- package/build/recorder/lead.js +4 -0
- package/build/recorder/storage/index.d.ts +1 -1
- package/build/recorder/storage/index.js +3 -2
- package/build/recorder/storage/lock.js +85 -3
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/build/report/element.d.ts +2 -19
- package/build/report/element.js +76 -4
- package/build/report/engine.d.ts +8 -0
- package/build/report/engine.js +24 -3
- package/build/report/face.d.ts +7 -0
- package/build/report/face.js +11 -0
- package/build/report/i18n.d.ts +2 -0
- package/build/report/i18n.js +2 -0
- package/build/report/styles.d.ts +1 -1
- package/build/report/styles.js +9 -3
- package/build/report/widget.d.ts +17 -2
- package/build/report/widget.js +94 -39
- package/build/report/wire.d.ts +40 -1
- package/build/report/wire.js +74 -9
- package/build/report-widget.mjs +18 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @vitrinka/web
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
- **Your own opener reaches Report a problem from the pill.** While a
|
|
6
|
+
linked member's recorder pill was on screen — after **Record**, a reload
|
|
7
|
+
onto a remembered pick, or a dev-mode member's first mount — every opener
|
|
8
|
+
the host owns did nothing: the element's and the handle's `open()`, and
|
|
9
|
+
the `open-selector` control, all spoke to the report face the pill had
|
|
10
|
+
replaced. A user menu's "Report a problem" item closed its menu and left
|
|
11
|
+
nothing open. An idle pill now swaps back, remembering Report a problem
|
|
12
|
+
as the pick exactly as the pill's own menu row does, and opens the card.
|
|
13
|
+
A pill that is recording, or still starting a recording, stays on
|
|
14
|
+
screen, since leaving would strand the session, and the console says why
|
|
15
|
+
once. `close()` on the pill still does
|
|
16
|
+
nothing. Since 0.8.0.
|
|
17
|
+
|
|
18
|
+
## 0.8.1
|
|
19
|
+
|
|
20
|
+
- **Record keeps the report you started.** A linked member's **Record**
|
|
21
|
+
swaps Report a problem for the recorder pill by unmounting the card, so a
|
|
22
|
+
typed but unsent report — the description, a mark and its note, the
|
|
23
|
+
picked type, an attached file — went with it. Record now waits while the
|
|
24
|
+
card holds any of them, as it already did while a report was sending or
|
|
25
|
+
waiting on **Try again**, and says why under its label: "Send or clear
|
|
26
|
+
the report you started first" (cs "Odešlete nebo smažte rozepsané
|
|
27
|
+
hlášení", also its accessible description). The waiting item stays
|
|
28
|
+
reachable with the menu's arrows, so a screen reader reads the reason,
|
|
29
|
+
and pressing it does nothing; it now looks unavailable. Since 0.8.0.
|
|
30
|
+
- **A report never sits on Sending….** No request of a report had a time
|
|
31
|
+
limit, so one nothing answered — a server stuck in a handler, a
|
|
32
|
+
connection or proxy holding it — left the card on **Sending…** for good:
|
|
33
|
+
a follow-up report with an attached PNG was created, then waited minutes
|
|
34
|
+
with its file, replay and submit unsent. Every leg now has a deadline,
|
|
35
|
+
30 s for a call and 30 s plus the bytes at 32 KiB/s for an upload (a
|
|
36
|
+
10 MiB file gets about six minutes), and preparing the capture gets 30 s
|
|
37
|
+
before the report goes without it. A leg past its deadline fails like a
|
|
38
|
+
dropped connection: the card shows the error and **Try again**, which
|
|
39
|
+
resumes at that leg. Since 0.7.0.
|
|
40
|
+
- **A report opened early still shows the page.** The page recorder loads
|
|
41
|
+
lazily; a card opened before it ran (a slow network, device or CI
|
|
42
|
+
runner) froze a clip with no screen in it, and the report went without
|
|
43
|
+
its replay. When the recorder runs by Send, the report now takes its view
|
|
44
|
+
then, as it already did for a recorder that had only just started.
|
|
45
|
+
Since 0.7.0.
|
|
46
|
+
- **Report a problem: motion where it belongs.** The marking bar's shape
|
|
47
|
+
indicator is in place on its first frame instead of growing in; a parked
|
|
48
|
+
card rescales and follows a resized window in its corner instead of
|
|
49
|
+
overhanging and gliding back; reduced motion now also stops the menu's
|
|
50
|
+
rise, the coach's dim and the chevron's turn. Since 0.8.0.
|
|
51
|
+
- **Two tabs no longer lose a note to a shared seq.** On the IndexedDB
|
|
52
|
+
lane (hosts without Web Locks) a browser can deliver another tab's
|
|
53
|
+
`localStorage` writes after the lock has passed to the next tab, so two
|
|
54
|
+
tabs could number captures with the same seq; the server keeps the first
|
|
55
|
+
row per seq, and a note vanished from both. Each holder now leaves a
|
|
56
|
+
fence (`vitrinka.recorder.lock.seq`) that the next one waits to read, so
|
|
57
|
+
the previous holder's writes are visible first; after 1 s it numbers
|
|
58
|
+
anyway and warns once, so a cleared store never wedges it. The Web Locks
|
|
59
|
+
lane is unchanged. Since 0.3.4.
|
|
60
|
+
|
|
3
61
|
## 0.8.0
|
|
4
62
|
|
|
5
63
|
**Report a problem grows back up.** The calm face now gives the people in
|
package/README.md
CHANGED
|
@@ -446,7 +446,13 @@ Reporters never need it: your token vouches for them.
|
|
|
446
446
|
the widget's `base` gets **Record** and **Recent recordings** in the ⋯
|
|
447
447
|
menu. **Record** swaps Report a problem for the recorder pill in place,
|
|
448
448
|
recording on the member's link, never your `vkb_` key; the idle pill's ⋯
|
|
449
|
-
menu then offers **Report a problem**, which swaps back.
|
|
449
|
+
menu then offers **Report a problem**, which swaps back. Your own opener
|
|
450
|
+
does the same: `open()` or your `open-selector` control swaps back (the
|
|
451
|
+
pick, as the pill's row remembers it) and opens the card; while the pill
|
|
452
|
+
records, or starts to, it leaves the pill on screen and warns once in the console,
|
|
453
|
+
since leaving would strand the session. **Record** waits,
|
|
454
|
+
and says so, while the card holds a report not sent yet — words, a mark,
|
|
455
|
+
a picked type, a file — since the swap would lose it. The pick is
|
|
450
456
|
remembered per browser and origin (`vitrinka.report.face`); a member who
|
|
451
457
|
never picked starts on the pill when their vitrinka display mode is dev
|
|
452
458
|
(`displayMode` from `/api/v1/recorder/me`, learned when the card opens).
|
|
@@ -499,7 +505,9 @@ happens next: a filed report says the team will take a look, with **See
|
|
|
499
505
|
your report** when the server returns the report's page; one held for
|
|
500
506
|
approval (an asserted or anonymous reporter) says the team checks it
|
|
501
507
|
before it is filed. A failed send keeps every word; **Try again** resumes
|
|
502
|
-
the same report.
|
|
508
|
+
the same report. A request nothing answers counts as failed: each call
|
|
509
|
+
gets 30 s, an upload 30 s plus its bytes at 32 KiB/s, so the card never
|
|
510
|
+
stays on Sending.
|
|
503
511
|
|
|
504
512
|
## Attach images
|
|
505
513
|
|
|
@@ -631,10 +639,15 @@ others through the driver's optional `watch(key, onChange)` (the
|
|
|
631
639
|
`localStorage` driver implements it with the `storage` event).
|
|
632
640
|
|
|
633
641
|
Event and rrweb-chunk sequence numbers are allocated under a cross-tab
|
|
634
|
-
Web Lock, or an IndexedDB transaction on hosts without Web Locks.
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
642
|
+
Web Lock, or an IndexedDB transaction on hosts without Web Locks. A
|
|
643
|
+
browser can deliver another tab's `localStorage` writes after that
|
|
644
|
+
transaction has handed over, so on that lane each holder leaves a fence in
|
|
645
|
+
`localStorage` (`vitrinka.recorder.lock.seq`) and in IndexedDB, and the
|
|
646
|
+
next one waits until it reads that fence. Stop waits for these allocations
|
|
647
|
+
before draining. A custom driver shared across documents must implement
|
|
648
|
+
`withLock(name, run)` and run the synchronous callback exclusively across
|
|
649
|
+
them, with every earlier holder's writes readable; a document-local driver
|
|
650
|
+
needs no lock.
|
|
638
651
|
A driver that shares an origin with the package's own (e.g. one that
|
|
639
652
|
re-keys a single entry) passes the package's `withRecorderLock` from
|
|
640
653
|
`@vitrinka/web/recorder`, so both number events under the same lock.
|