Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More →
Socket
Sign inDemoInstall
Socket

@rerun-io/web-viewer-react

Package Overview
Dependencies
Maintainers
0
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rerun-io/web-viewer-react - npm Package Compare versions

Comparing version 0.17.0-alpha.8 to 0.17.0-alpha.9

4

index.js

@@ -47,2 +47,4 @@ import React, { createRef } from "react";

hide_welcome_screen: this.#hide_welcome_screen,
width: "100%",
height: "100%",
});

@@ -65,3 +67,3 @@ }

render() {
const { width = "100%", height = "640px" } = this.props;
const { width = "640px", height = "360px" } = this.props;
return React.createElement("div", {

@@ -68,0 +70,0 @@ className: "rerun-web-viewer",

{
"name": "@rerun-io/web-viewer-react",
"version": "0.17.0-alpha.8",
"version": "0.17.0-alpha.9",
"description": "Embed the Rerun web viewer in your React app",

@@ -42,3 +42,3 @@ "licenses": [

"dependencies": {
"@rerun-io/web-viewer": "0.17.0-alpha.8",
"@rerun-io/web-viewer": "0.17.0-alpha.9",
"@types/react": "^18.2.33",

@@ -45,0 +45,0 @@ "react": "^18.2.0"

@@ -24,3 +24,3 @@ # Rerun web viewer

ℹī¸ Note:
The package version is equal to the supported Rerun SDK version.
The package version is equal to the supported Rerun SDK version, and [RRD files are not yet stable across different versions](https://github.com/rerun-io/rerun/issues/6410).
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`!

@@ -34,3 +34,3 @@

export default function App() {
return <WebViewer rrd="...">
return <WebViewer width="800px" height="600px" rrd="...">
}

@@ -40,9 +40,13 @@ ```

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.17.0-alpha.8/examples/dna.rrd>
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.17.0-alpha.9/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>.
This can be disabled by setting the `hide_welcome_screen` prop to `true`.
⚠ It's important to set the viewer's width and height, as without it the viewer may not display correctly.
Setting the values to empty strings is valid, as long as you style the canvas through other means.
ℹī¸ Note:
This package only targets recent versions of browsers.
If your target browser does not support Wasm imports or top-level await, you may need to install additional plugins for your bundler.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ī¸ by Socket Inc