@sidebandai/sideband-react 1.4.5-rc.3 → 1.4.5-rc.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 CHANGED
@@ -199,6 +199,18 @@ Do not track these yourself:
199
199
  | `system_logout` | `untagUser` clears the user ID, or `tagUser` replaces it. `metadata.user_id` is the previous ID. |
200
200
  | `system_did_present_pulse` | A Pulse is shown to the user. |
201
201
 
202
+ A snackbar or bar counts as shown only when a person can see it: the tab is
203
+ visible, the entry is rendered (not `display: none` or `visibility: hidden`) and
204
+ inside the viewport, and it is not clipped away by a scrolling container. Until
205
+ then the SDK checks again about every 200 ms. The browser's
206
+ `IntersectionObserver` decides the viewport and clipping part; in a browser
207
+ without it, the SDK uses its own approximate geometry check. A close, Escape or answer by the
208
+ person also counts. If the SDK runs in an iframe, the SDK also checks the
209
+ `<iframe>` element in the parent page, but only when the parent is on the same
210
+ origin. A cross-origin parent cannot be read, so a cross-origin `<iframe>` that
211
+ the parent hides with CSS (for example `visibility: hidden`) can still be counted
212
+ as shown.
213
+
202
214
  Switching from user A to user B sends `system_logout` for A, then `system_login`
203
215
  for B, with the same timestamp. Repeating the same ID, clearing an ID that is
204
216
  not set, and restoring the stored ID on a page load send nothing.