@rerun-io/web-viewer-react 0.13.0-rc.3 → 0.13.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 CHANGED
@@ -35,7 +35,7 @@ export default function App() {
35
35
  ```
36
36
 
37
37
  The `rrd` in the snippet above should be a URL pointing to either:
38
- - A hosted `.rrd` file, such as <https://app.rerun.io/version/0.13.0-rc.3/examples/dna.rrd>
38
+ - A hosted `.rrd` file, such as <https://app.rerun.io/version/0.13.0/examples/dna.rrd>
39
39
  - A WebSocket connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk-operating-modes#serve) API
40
40
 
41
41
  If `rrd` is not set, the viewer will display the same welcome screen as <https://app.rerun.io>.
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare module '@rerun-io/web-viewer-react' {
2
+ import type { default as React } from 'react';
2
3
  /**
3
4
  * Wrapper for `WebViewer` from the `@rerun-io/web-viewer`.
4
5
  *
@@ -23,7 +24,6 @@ declare module '@rerun-io/web-viewer-react' {
23
24
  }, HTMLDivElement>;
24
25
  #private;
25
26
  }
26
- export type React = typeof React;
27
27
  export type Props = {
28
28
  /**
29
29
  * URL(s) of the `.rrd` file(s) to load.
package/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import React, { createRef } from "react";
2
2
  import * as rerun from "@rerun-io/web-viewer";
3
3
 
4
- /** @typedef {import("react")} React */
5
-
6
4
  /**
7
5
  * @typedef Props
8
6
  * @property {string | string[]} rrd URL(s) of the `.rrd` file(s) to load.
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "@rerun-io/web-viewer-react",
3
- "version": "0.13.0-rc.3",
3
+ "version": "0.13.0",
4
4
  "description": "Embed the Rerun web viewer in your React app",
5
- "private": false,
5
+ "licenses": [
6
+ {
7
+ "type": "MIT"
8
+ },
9
+ {
10
+ "type": "Apache-2.0"
11
+ }
12
+ ],
6
13
  "scripts": {
7
- "build:types": "dts-buddy",
8
- "build": "npm run build:types",
9
- "prepublishOnly": "dts-buddy"
14
+ "build:types": "tsc --noEmit && dts-buddy",
15
+ "build": "npm run build:types"
10
16
  },
11
17
  "repository": {
12
18
  "type": "git",
@@ -18,6 +24,7 @@
18
24
  "url": "https://github.com/rerun-io/rerun/issues"
19
25
  },
20
26
  "homepage": "https://rerun.io",
27
+ "type": "module",
21
28
  "exports": {
22
29
  ".": {
23
30
  "types": "./index.d.ts",
@@ -32,11 +39,12 @@
32
39
  "tsconfig.json"
33
40
  ],
34
41
  "dependencies": {
35
- "@rerun-io/web-viewer": "0.13.0-rc.3",
42
+ "@rerun-io/web-viewer": "0.13.0",
36
43
  "@types/react": "^18.2.33",
37
44
  "react": "^18.2.0"
38
45
  },
39
46
  "devDependencies": {
40
- "dts-buddy": "^0.3.0"
47
+ "dts-buddy": "^0.3.0",
48
+ "typescript": "^5.2.2"
41
49
  }
42
50
  }