@rerun-io/web-viewer-react
Advanced tools
Comparing version 0.15.1 to 0.16.0-rc.1
@@ -42,2 +42,6 @@ declare module '@rerun-io/web-viewer-react' { | ||
height?: string | undefined; | ||
/** | ||
* Whether to hide the welcome screen. Default is `false`. | ||
*/ | ||
hide_welcome_screen?: boolean | undefined; | ||
}; | ||
@@ -44,0 +48,0 @@ } |
@@ -11,2 +11,3 @@ import React, { createRef } from "react"; | ||
* @property {string} [height] CSS height of the viewer's parent div | ||
* @property {boolean} [hide_welcome_screen] Whether to hide the welcome screen. Default is `false`. | ||
*/ | ||
@@ -31,2 +32,5 @@ | ||
/** @type {boolean} */ | ||
#hide_welcome_screen = false; | ||
/** @param {Props} props */ | ||
@@ -38,2 +42,3 @@ constructor(props) { | ||
this.#recordings = toArray(props.rrd); | ||
this.#hide_welcome_screen = props.hide_welcome_screen ?? false; | ||
} | ||
@@ -43,3 +48,3 @@ | ||
const current = /** @type {HTMLDivElement} */ (this.#parent.current); | ||
this.#handle.start(this.#recordings, current); | ||
this.#handle.start(this.#recordings, current, this.#hide_welcome_screen); | ||
} | ||
@@ -46,0 +51,0 @@ |
{ | ||
"name": "@rerun-io/web-viewer-react", | ||
"version": "0.15.1", | ||
"version": "0.16.0-rc.1", | ||
"description": "Embed the Rerun web viewer in your React app", | ||
@@ -42,3 +42,3 @@ "licenses": [ | ||
"dependencies": { | ||
"@rerun-io/web-viewer": "0.15.1", | ||
"@rerun-io/web-viewer": "0.16.0-rc.1", | ||
"@types/react": "^18.2.33", | ||
@@ -45,0 +45,0 @@ "react": "^18.2.0" |
@@ -24,4 +24,4 @@ # Rerun web viewer | ||
ℹ️ Note: | ||
The package version is equal to the supported rerun SDK version. | ||
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`! | ||
The package version is equal to the supported Rerun SDK version. | ||
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`! | ||
@@ -39,6 +39,6 @@ ## Usage | ||
The `rrd` in the snippet above should be a URL pointing to either: | ||
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.15.1/examples/dna.rrd> | ||
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.16.0-rc.1/examples/dna.rrd> | ||
- A WebSocket connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk-operating-modes#serve) API | ||
If `rrd` is not set, the viewer will display the same welcome screen as <https://app.rerun.io>. | ||
If `rrd` is not set, the Viewer will display the same welcome screen as <https://app.rerun.io>. | ||
@@ -45,0 +45,0 @@ ℹ️ Note: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7267
143
+ Added@rerun-io/web-viewer@0.16.0-rc.1(transitive)
- Removed@rerun-io/web-viewer@0.15.1(transitive)