@dashx/react 0.5.0 → 0.5.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 CHANGED
@@ -2,7 +2,23 @@
2
2
 
3
3
  All notable changes to `@dashx/react` are documented in this file. Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), versions follow [SemVer](https://semver.org/).
4
4
 
5
- ## [Unreleased]
5
+ ## Unreleased
6
+
7
+ ### [0.5.2] - 2026-10-07
8
+
9
+ - **Click and form submit autocapture.** `<DashXProvider autocapture={{ clicks: true }}>` records clicks on links, buttons and other interactive elements, and form submits, as `$autocapture`. `autocapture` alone still captures only page views and page leaves.
10
+
11
+ ### Changed
12
+
13
+ - **Requires `@dashx/browser` 0.14.1** (for `clicks`). The range moves from `^0.14.0` to `^0.14.1`.
14
+
15
+ ## [0.5.1] - 2026-10-07
16
+
17
+ ### Changed
18
+
19
+ - **Requires `@dashx/browser` 0.14.** The range moves from `^0.13.1` to `^0.14.0`, so an app on `@dashx/browser` 0.14 (for `loadInAppChatAgent`) and `DashXProvider` share one client instead of the provider building its own from an older copy. No API changes here.
20
+
21
+ ## [0.5.0] - 2026-10-06
6
22
 
7
23
  ### Added
8
24
 
package/README.md CHANGED
@@ -42,6 +42,14 @@ Pass `autocapture` to record a `$pageview` on load and on every client-side navi
42
42
 
43
43
  Pass `autocapture={{ pageleave: false }}` (or `pageviews: false`) to turn either event off. Autocapture starts when the provider mounts and stops when it unmounts, so React StrictMode's double mount does not record a page twice.
44
44
 
45
+ Clicks and form submits are opt-in. Pass `clicks: true` to record them as `$autocapture`:
46
+
47
+ ```tsx
48
+ <DashXProvider publicKey="..." targetEnvironment="production" autocapture={{ clicks: true }}>
49
+ ```
50
+
51
+ Each click records the element's tag, visible text, link target, `id`, classes, `data-*` attributes and a short selector, never what was typed. Add the `dx-no-capture` class (or a `data-dx-no-capture` attribute) to an element to skip it and everything inside it.
52
+
45
53
  Events carry the page, a session id and the landing page's UTM campaign. See the `@dashx/browser` README for what each event contains.
46
54
 
47
55
  ### Privacy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashx/react",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "license": "UNLICENSED",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",
@@ -75,7 +75,7 @@
75
75
  "clean": "rm -rf .turbo node_modules dist tokens layout *.css"
76
76
  },
77
77
  "dependencies": {
78
- "@dashx/browser": "^0.13.1",
78
+ "@dashx/browser": "^0.14.1",
79
79
  "@radix-ui/colors": "^3.0.0",
80
80
  "@radix-ui/primitive": "^1.1.3",
81
81
  "@radix-ui/react-accessible-icon": "^1.1.8",
package/styles.css CHANGED
@@ -146,6 +146,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
146
146
  [hidden]:where(:not([hidden='until-found'])) {
147
147
  display: none !important;
148
148
  }
149
+ .visible {
150
+ visibility: visible;
151
+ }
149
152
  .absolute {
150
153
  position: absolute;
151
154
  }