leesto-connect 0.5.0 → 0.7.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 +40 -1
- package/dist/leesto-connect.js +1454 -804
- package/dist/leesto-connect.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ sessions** of your pages.
|
|
|
27
27
|
release needs a new tag. unpkg resolves the range by redirecting to the exact
|
|
28
28
|
version, so the entry and its lazy chunks always come from the same build
|
|
29
29
|
(avoid CDNs that serve ranges without redirecting). To freeze a build instead,
|
|
30
|
-
pin it exactly: `https://unpkg.com/leesto-connect@0.
|
|
30
|
+
pin it exactly: `https://unpkg.com/leesto-connect@0.7.0/dist/leesto-connect.js`.
|
|
31
31
|
|
|
32
32
|
Options via data attributes:
|
|
33
33
|
|
|
@@ -44,6 +44,12 @@ and submits it with the test account chosen in the Lab. It never touches sign-up
|
|
|
44
44
|
password-reset, magic-link or newsletter forms, never logs credentials, and does
|
|
45
45
|
nothing outside an authorised Leesto shell. No configuration on your side.
|
|
46
46
|
|
|
47
|
+
The `login-anchor` capability: when the Lab asks for it (`leesto:login-watch`
|
|
48
|
+
with `anchor: true`), the connector reports the position of the login field
|
|
49
|
+
(`leesto:login-anchor`, a rectangle, never its value) and signals the tester's
|
|
50
|
+
clicks and typing (`leesto:login-interaction`). The Lab draws its sign-in button
|
|
51
|
+
on top; nothing is added to your page.
|
|
52
|
+
|
|
47
53
|
## Install (React / bundled app)
|
|
48
54
|
|
|
49
55
|
If your app bundles its own dependencies, import the package once in your client
|
|
@@ -72,9 +78,42 @@ markers always apply and no setting can lift them:
|
|
|
72
78
|
(placeholder only).
|
|
73
79
|
- `.leesto-mask-text` / `[data-private]` — structure kept, text masked.
|
|
74
80
|
|
|
81
|
+
At every level, links and image addresses in the replay (`href`, `src`,
|
|
82
|
+
`srcset`, `url()` in `style`…) are cut to origin and path, `mailto:` / `tel:`
|
|
83
|
+
links to their scheme, and emails or card numbers are removed from `data-*`
|
|
84
|
+
attributes.
|
|
85
|
+
|
|
86
|
+
Screenshots are taken by the tester, who sees them before sending. They keep
|
|
87
|
+
the page text readable, whatever the level, but always mask field values and
|
|
88
|
+
the text of `.leesto-mask-text` / `[data-private]`; `.leesto-mask` /
|
|
89
|
+
`[data-leesto-block]` areas are covered, and an element inside one of them is
|
|
90
|
+
never captured on its own.
|
|
91
|
+
|
|
75
92
|
Console and network diagnostics are redacted separately (emails, card numbers,
|
|
76
93
|
tokens in URLs).
|
|
77
94
|
|
|
95
|
+
## Ambient color
|
|
96
|
+
|
|
97
|
+
From 0.6.0 the connector also reports the page's background colors to the Leesto Lab, so
|
|
98
|
+
the Lab can paint its own backdrop in the opposite brightness and your app's dominant hue.
|
|
99
|
+
It reads only computed CSS background colors and gradients, on a grid of 16 × 10 points:
|
|
100
|
+
no text, no field values, no images, no URLs. Each message carries two numbers (average
|
|
101
|
+
lightness and a hue in degrees). It starts when the connector connects in an embedded page
|
|
102
|
+
(the Lab strips the referrer, so its origin may be unknown at first); messages only go to
|
|
103
|
+
the pinned origin or the allowlisted shell origins, so an app framed by any other site
|
|
104
|
+
delivers nothing. It measures at most 4 times
|
|
105
|
+
per second, never while the tab is hidden, and stops when the connector disconnects.
|
|
106
|
+
|
|
107
|
+
## Scrollbars
|
|
108
|
+
|
|
109
|
+
Inside the Leesto Lab only, the connector makes your app's scrollbars thin and drops their
|
|
110
|
+
track, so they don't draw a wide strip along the Lab frame. It adds one `<style
|
|
111
|
+
data-leesto-scrollbars>` at the start of `<head>` and removes it when the connector
|
|
112
|
+
disconnects. Your own scrollbar styles always win: the sheet comes first in the document,
|
|
113
|
+
uses no stronger selectors than yours, and Chrome ignores it as soon as you set
|
|
114
|
+
`scrollbar-width` or `scrollbar-color`. Nothing changes with overlay scrollbars (trackpads,
|
|
115
|
+
mobile), nor when your page is framed by any other site.
|
|
116
|
+
|
|
78
117
|
## Security model
|
|
79
118
|
|
|
80
119
|
The connector is keyless, so it does **not** authenticate the shell — it
|