@crelora/mark 0.3.0 → 0.3.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/README.md +2 -2
- package/dist/browser.es.js +425 -423
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.umd.js +1 -1
- package/dist/browser.umd.js.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.es.js +33 -40
- package/dist/node.es.js.map +1 -1
- package/dist/types/browser/pageEngagement.d.ts +1 -0
- package/dist/types/core/DeliveryQueue.d.ts +2 -2
- package/dist/types/core/MarkCore.d.ts +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ These behaviors matter for **compliance-sensitive** setups (GDPR-style consent,
|
|
|
186
186
|
- **Payloads cannot bypass consent** via event properties; reserved fields are sanitized.
|
|
187
187
|
- **Pre-consent attribution:** URL attribution is held in memory only until consent is granted, then persisted.
|
|
188
188
|
- **Cross-domain:** First-party iframe bridges keep identifiers under your control.
|
|
189
|
-
- **Delivery without long-lived local queues:** Failed sends can be retried from a browser outbox with a **48-hour TTL**; on tab hide / unload, pending items are flushed with **`
|
|
189
|
+
- **Delivery without long-lived local queues:** Failed sends can be retried from a browser outbox with a **48-hour TTL**; on tab hide / unload, pending items are flushed with **`fetch` keepalive** (and auth headers) where possible to improve delivery without weakening consent checks.
|
|
190
190
|
- **IP / geo:** IP is not read in the browser; it is taken server-side, hashed, and used for coarse geo only when allowed by consent and tenant settings.
|
|
191
191
|
|
|
192
192
|
For product-level privacy commitments and processor terms, rely on your OneLence agreement and [documentation](https://onelence.com/docs/integrations/overview); this README describes SDK behavior only.
|
|
@@ -251,7 +251,7 @@ All of the following are **opt-in** under `autocapture`. They respect the same c
|
|
|
251
251
|
| `form_submit` | `form_submit` | Listens for `submit`; sends `form_id`, `form_name`, `action`. |
|
|
252
252
|
| `outbound_link` | `outbound_link_click` | On click, if the link target is another origin, sends `href`. Uses `preferBeacon: true` so the event is more likely to fire before navigation. |
|
|
253
253
|
| `scroll_depth` | `scroll_depth` | Fires at **25%, 50%, 75%, and 100%** of vertical scroll depth (once each per **logical page**; resets on SPA route changes when route tracking is enabled). Payload includes `percent`. |
|
|
254
|
-
| `page_engagement` | `page_engagement` | One summary per **logical page** when the user navigates away or unloads (not on tab background alone). Emits if accumulated **visible** active time is at least `min_active_ms` (default **10000**). Tab hide/show pauses the clock. Payload includes `page`, `active_time_ms`, `total_time_ms`, and `max_scroll_percent`.
|
|
254
|
+
| `page_engagement` | `page_engagement` | One summary per **logical page** when the user navigates away or unloads (not on tab background alone). Emits if accumulated **visible** active time is at least `min_active_ms` (default **10000**). Tab hide/show pauses the clock. Payload includes `page`, `active_time_ms`, `total_time_ms`, and `max_scroll_percent`. On tab unload, uses `fetch` with `keepalive: true` by default (`use_beacon: true`) so auth headers are sent reliably. |
|
|
255
255
|
| `web_vitals` | `web_vital` | Lazy-loads the `web-vitals` dependency and reports **LCP, CLS, INP, and TTFB** with `metric`, `value`, optional `rating`, and `metric_id`. If the module fails to load, only `debug: true` logs a warning. |
|
|
256
256
|
|
|
257
257
|
Example:
|