mywhy-ui 0.3.1 → 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.cjs CHANGED
@@ -2736,7 +2736,7 @@ var RosConnectionManager = ({
2736
2736
  ros.connect(url);
2737
2737
  ros.on("connection", () => {
2738
2738
  onClearHistory();
2739
- console.log("Connected to Foxglove bridge at " + url);
2739
+ console.log("Connected to mRobotic server at " + url);
2740
2740
  onConnectionStatusChange(true);
2741
2741
  diagnosticsTopic.subscribe((message) => {
2742
2742
  clearTimeout(staleTimeoutId.current);
@@ -2776,12 +2776,12 @@ var RosConnectionManager = ({
2776
2776
  console.log(`Subscribed to topic: ${diagnosticsTopic.name}`);
2777
2777
  });
2778
2778
  ros.on("error", (error) => {
2779
- console.error("Error connecting to Foxglove bridge:", error);
2779
+ console.error("Error connecting to mRobotic server:", error);
2780
2780
  ros.close();
2781
2781
  });
2782
2782
  ros.on("close", () => {
2783
2783
  onConnectionStatusChange(false);
2784
- console.log("Connection to Foxglove bridge closed");
2784
+ console.log("Connection to mRobotic server closed");
2785
2785
  onClearHistory();
2786
2786
  clearTimeout(staleTimeoutId.current);
2787
2787
  clearTimeout(retryTimeoutId.current);
@@ -3042,7 +3042,7 @@ var useDiagHistory = (isPaused) => {
3042
3042
  return { diagHistory, updateDiagHistory, clearDiagHistory };
3043
3043
  };
3044
3044
  var ROS2Diagnostics = ({
3045
- foxgloveUrl,
3045
+ mroboticServerUrl,
3046
3046
  namespace: initialNamespace = "/robot",
3047
3047
  onDiagnosticUpdate
3048
3048
  }) => {
@@ -3052,7 +3052,7 @@ var ROS2Diagnostics = ({
3052
3052
  invalidNamespaceMessage,
3053
3053
  manualEntryRequired
3054
3054
  } = useNamespace(initialNamespace);
3055
- const wsUrl = useWebSocketUrl(foxgloveUrl);
3055
+ const wsUrl = useWebSocketUrl(mroboticServerUrl);
3056
3056
  const [diagStatusDisplay, setDiagStatusDisplay] = React9.useState(null);
3057
3057
  const [bridgeConnected, setBridgeConnected] = React9.useState(false);
3058
3058
  const [selectedRawName, setSelectedRawName] = React9.useState(null);
@@ -3121,7 +3121,7 @@ var ROS2Diagnostics = ({
3121
3121
  theme: "warning",
3122
3122
  title: "Waiting for connection...",
3123
3123
  children: [
3124
- "Attempting to connect to Foxglove bridge at ",
3124
+ "Attempting to connect to mRobotic server at ",
3125
3125
  wsUrl
3126
3126
  ]
3127
3127
  }