@reticlehq/react 3.2.0 → 3.4.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 +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @reticlehq/react
|
|
2
2
|
|
|
3
|
-
React adapter for [Reticle](https://github.com/reticlehq/reticle). Walks the React fiber tree so `
|
|
3
|
+
React adapter for [Reticle](https://github.com/reticlehq/reticle). Walks the React fiber tree so `reticle_look { action: "element" }` can map a DOM element back to its **component stack and source file** — the bridge from "the agent sees a bug in the UI" to "the agent edits the right file".
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm i -D @reticlehq/react
|
|
@@ -13,6 +13,6 @@ if (import.meta.env.DEV) install(); // call before reticle.connect()
|
|
|
13
13
|
|
|
14
14
|
Requires [`@reticlehq/browser`](https://www.npmjs.com/package/@reticlehq/browser).
|
|
15
15
|
|
|
16
|
-
**Source-file mapping:** on React ≤18, uses dev `_debugSource` automatically. On **React 19** (`_debugSource` removed), add [`@reticlehq/babel-plugin`](https://www.npmjs.com/package/@reticlehq/babel-plugin) to your dev build — the adapter then reads its `data-reticle-source` stamp so `
|
|
16
|
+
**Source-file mapping:** on React ≤18, uses dev `_debugSource` automatically. On **React 19** (`_debugSource` removed), add [`@reticlehq/babel-plugin`](https://www.npmjs.com/package/@reticlehq/babel-plugin) to your dev build — the adapter then reads its `data-reticle-source` stamp so `reticle_look { action: "element" }` returns `component.source = { file, line, column }`.
|
|
17
17
|
|
|
18
18
|
See the [main README](https://github.com/reticlehq/reticle). Apache-2.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Reticle React adapter — maps a DOM ref to its component stack and source file via the fiber tree.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"./package.json": "./package.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@reticlehq/browser": "3.
|
|
21
|
-
"@reticlehq/core": "3.
|
|
20
|
+
"@reticlehq/browser": "3.4.0",
|
|
21
|
+
"@reticlehq/core": "3.4.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/react": "^19.
|
|
27
|
+
"@types/react": "^19.3.0",
|
|
28
28
|
"jsdom": "^30.0.1",
|
|
29
|
-
"react": "^19.
|
|
30
|
-
"react-dom": "^19.
|
|
31
|
-
"@types/react-dom": "^19.
|
|
29
|
+
"react": "^19.3.0",
|
|
30
|
+
"react-dom": "^19.3.0",
|
|
31
|
+
"@types/react-dom": "^19.3.0"
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"author": "Reticle contributors",
|