@rerun-io/web-viewer-react 0.0.6 → 0.0.8-alpha.1

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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.js +1 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -12,6 +12,10 @@ Embed the Rerun web viewer within your React app.
12
12
  $ npm i @rerun-io/web-viewer-react
13
13
  ```
14
14
 
15
+ ℹ️ Note:
16
+ The package version is equal to the supported rerun SDK version.
17
+ This means that `@rerun-io/web-viewer-react@0.10.0` can only connect to a data source (`.rrd` file, websocket connection, etc.) that originates from a rerun SDK with version `0.10.0`!
18
+
15
19
  ## Usage
16
20
 
17
21
  ```jsx
package/index.js CHANGED
@@ -39,7 +39,7 @@ export default function WebViewer(props) {
39
39
  if (parent.current) {
40
40
  // Start the web viewer when the parent div is mounted to the DOM.
41
41
  const w = new rerun.WebViewer();
42
- w.start(rrd);
42
+ w.start(rrd, parent.current);
43
43
  viewer.current = w;
44
44
  return () => {
45
45
  // Stop the web viewer when the component is unmounted.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rerun-io/web-viewer-react",
3
- "version": "0.0.6",
3
+ "version": "0.0.8-alpha.1",
4
4
  "description": "Embed the Rerun web viewer in your React app",
5
5
  "private": false,
6
6
  "scripts": {
@@ -31,11 +31,11 @@
31
31
  "tsconfig.json"
32
32
  ],
33
33
  "dependencies": {
34
- "@rerun-io/web-viewer": "^0.0.5",
34
+ "@rerun-io/web-viewer": "0.0.8-alpha.1",
35
35
  "@types/react": "^18.2.33",
36
36
  "react": "^18.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "dts-buddy": "^0.3.0"
40
40
  }
41
- }
41
+ }