mywhy-ui 0.3.0 → 0.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/dist/index.d.cts CHANGED
@@ -483,7 +483,7 @@ interface DiagnosticsStatus {
483
483
  */
484
484
 
485
485
  interface ROS2DiagnosticsProps {
486
- foxgloveUrl?: string;
486
+ mroboticServerUrl?: string;
487
487
  namespace?: string;
488
488
  onDiagnosticUpdate?: (diagnostics: DiagnosticsStatus) => void;
489
489
  }
package/dist/index.d.ts CHANGED
@@ -483,7 +483,7 @@ interface DiagnosticsStatus {
483
483
  */
484
484
 
485
485
  interface ROS2DiagnosticsProps {
486
- foxgloveUrl?: string;
486
+ mroboticServerUrl?: string;
487
487
  namespace?: string;
488
488
  onDiagnosticUpdate?: (diagnostics: DiagnosticsStatus) => void;
489
489
  }
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { Play, Pause, AlertCircle, Download, CheckCircle2, HelpCircle, AlertTria
4
4
  import { parseRos2idl, parse } from '@foxglove/rosmsg';
5
5
  import { MessageReader, MessageWriter } from '@foxglove/rosmsg2-serialization';
6
6
  import { FoxgloveClient } from '@foxglove/ws-protocol';
7
- import EventEmitter from 'eventemitter3';
7
+ import { EventEmitter } from 'eventemitter3';
8
8
  import WebSocket from 'isomorphic-ws';
9
9
 
10
10
  var __typeError = (msg) => {
@@ -2729,7 +2729,7 @@ var RosConnectionManager = ({
2729
2729
  ros.connect(url);
2730
2730
  ros.on("connection", () => {
2731
2731
  onClearHistory();
2732
- console.log("Connected to Foxglove bridge at " + url);
2732
+ console.log("Connected to mRobotic server at " + url);
2733
2733
  onConnectionStatusChange(true);
2734
2734
  diagnosticsTopic.subscribe((message) => {
2735
2735
  clearTimeout(staleTimeoutId.current);
@@ -2769,12 +2769,12 @@ var RosConnectionManager = ({
2769
2769
  console.log(`Subscribed to topic: ${diagnosticsTopic.name}`);
2770
2770
  });
2771
2771
  ros.on("error", (error) => {
2772
- console.error("Error connecting to Foxglove bridge:", error);
2772
+ console.error("Error connecting to mRobotic server:", error);
2773
2773
  ros.close();
2774
2774
  });
2775
2775
  ros.on("close", () => {
2776
2776
  onConnectionStatusChange(false);
2777
- console.log("Connection to Foxglove bridge closed");
2777
+ console.log("Connection to mRobotic server closed");
2778
2778
  onClearHistory();
2779
2779
  clearTimeout(staleTimeoutId.current);
2780
2780
  clearTimeout(retryTimeoutId.current);
@@ -3035,7 +3035,7 @@ var useDiagHistory = (isPaused) => {
3035
3035
  return { diagHistory, updateDiagHistory, clearDiagHistory };
3036
3036
  };
3037
3037
  var ROS2Diagnostics = ({
3038
- foxgloveUrl,
3038
+ mroboticServerUrl,
3039
3039
  namespace: initialNamespace = "/robot",
3040
3040
  onDiagnosticUpdate
3041
3041
  }) => {
@@ -3045,7 +3045,7 @@ var ROS2Diagnostics = ({
3045
3045
  invalidNamespaceMessage,
3046
3046
  manualEntryRequired
3047
3047
  } = useNamespace(initialNamespace);
3048
- const wsUrl = useWebSocketUrl(foxgloveUrl);
3048
+ const wsUrl = useWebSocketUrl(mroboticServerUrl);
3049
3049
  const [diagStatusDisplay, setDiagStatusDisplay] = useState(null);
3050
3050
  const [bridgeConnected, setBridgeConnected] = useState(false);
3051
3051
  const [selectedRawName, setSelectedRawName] = useState(null);
@@ -3114,7 +3114,7 @@ var ROS2Diagnostics = ({
3114
3114
  theme: "warning",
3115
3115
  title: "Waiting for connection...",
3116
3116
  children: [
3117
- "Attempting to connect to Foxglove bridge at ",
3117
+ "Attempting to connect to mRobotic server at ",
3118
3118
  wsUrl
3119
3119
  ]
3120
3120
  }