@sidebandai/sideband-web 1.4.5-rc.4 → 1.4.5
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 +12 -0
- package/dist/index.js +284 -147
- package/dist/sideband.iife.js +1 -1
- package/dist/ui/snackbar-ui.d.ts +11 -0
- package/dist/ui/snackbar-ui.d.ts.map +1 -1
- package/dist/ui/survey-ui.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -357,6 +357,18 @@ Do not track these yourself:
|
|
|
357
357
|
| `system_logout` | `untagUser` clears the user ID, or `tagUser` replaces it. `metadata.user_id` is the previous ID. |
|
|
358
358
|
| `system_did_present_pulse` | A Pulse is shown to the user. |
|
|
359
359
|
|
|
360
|
+
A snackbar or bar counts as shown only when a person can see it: the tab is
|
|
361
|
+
visible, the entry is rendered (not `display: none` or `visibility: hidden`) and
|
|
362
|
+
inside the viewport, and it is not clipped away by a scrolling container. Until
|
|
363
|
+
then the SDK checks again about every 200 ms. The browser's
|
|
364
|
+
`IntersectionObserver` decides the viewport and clipping part; in a browser
|
|
365
|
+
without it, the SDK uses its own approximate geometry check. A close, Escape or answer by the
|
|
366
|
+
person also counts. If the SDK runs in an iframe, the SDK also checks the
|
|
367
|
+
`<iframe>` element in the parent page, but only when the parent is on the same
|
|
368
|
+
origin. A cross-origin parent cannot be read, so a cross-origin `<iframe>` that
|
|
369
|
+
the parent hides with CSS (for example `visibility: hidden`) can still be counted
|
|
370
|
+
as shown.
|
|
371
|
+
|
|
360
372
|
Switching from user A to user B sends `system_logout` for A, then `system_login`
|
|
361
373
|
for B, with the same timestamp. Repeating the same ID, clearing an ID that is
|
|
362
374
|
not set, and restoring the stored ID on a page load send nothing.
|