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.cjs CHANGED
@@ -6,13 +6,12 @@ var lucideReact = require('lucide-react');
6
6
  var rosmsg = require('@foxglove/rosmsg');
7
7
  var rosmsg2Serialization = require('@foxglove/rosmsg2-serialization');
8
8
  var wsProtocol = require('@foxglove/ws-protocol');
9
- var EventEmitter = require('eventemitter3');
9
+ var eventemitter3 = require('eventemitter3');
10
10
  var WebSocket = require('isomorphic-ws');
11
11
 
12
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
13
 
14
14
  var React9__default = /*#__PURE__*/_interopDefault(React9);
15
- var EventEmitter__default = /*#__PURE__*/_interopDefault(EventEmitter);
16
15
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
17
16
 
18
17
  var __typeError = (msg) => {
@@ -2247,7 +2246,7 @@ var _client, _connecting, _messageReaders, _messageWriters, _channelsById, _chan
2247
2246
  var Impl = class {
2248
2247
  constructor(url) {
2249
2248
  __privateAdd(this, _Impl_instances);
2250
- this.emitter = new EventEmitter__default.default();
2249
+ this.emitter = new eventemitter3.EventEmitter();
2251
2250
  __privateAdd(this, _client);
2252
2251
  __privateAdd(this, _connecting);
2253
2252
  // Message Readers / Writers
@@ -2737,7 +2736,7 @@ var RosConnectionManager = ({
2737
2736
  ros.connect(url);
2738
2737
  ros.on("connection", () => {
2739
2738
  onClearHistory();
2740
- console.log("Connected to Foxglove bridge at " + url);
2739
+ console.log("Connected to mRobotic server at " + url);
2741
2740
  onConnectionStatusChange(true);
2742
2741
  diagnosticsTopic.subscribe((message) => {
2743
2742
  clearTimeout(staleTimeoutId.current);
@@ -2777,12 +2776,12 @@ var RosConnectionManager = ({
2777
2776
  console.log(`Subscribed to topic: ${diagnosticsTopic.name}`);
2778
2777
  });
2779
2778
  ros.on("error", (error) => {
2780
- console.error("Error connecting to Foxglove bridge:", error);
2779
+ console.error("Error connecting to mRobotic server:", error);
2781
2780
  ros.close();
2782
2781
  });
2783
2782
  ros.on("close", () => {
2784
2783
  onConnectionStatusChange(false);
2785
- console.log("Connection to Foxglove bridge closed");
2784
+ console.log("Connection to mRobotic server closed");
2786
2785
  onClearHistory();
2787
2786
  clearTimeout(staleTimeoutId.current);
2788
2787
  clearTimeout(retryTimeoutId.current);
@@ -3043,7 +3042,7 @@ var useDiagHistory = (isPaused) => {
3043
3042
  return { diagHistory, updateDiagHistory, clearDiagHistory };
3044
3043
  };
3045
3044
  var ROS2Diagnostics = ({
3046
- foxgloveUrl,
3045
+ mroboticServerUrl,
3047
3046
  namespace: initialNamespace = "/robot",
3048
3047
  onDiagnosticUpdate
3049
3048
  }) => {
@@ -3053,7 +3052,7 @@ var ROS2Diagnostics = ({
3053
3052
  invalidNamespaceMessage,
3054
3053
  manualEntryRequired
3055
3054
  } = useNamespace(initialNamespace);
3056
- const wsUrl = useWebSocketUrl(foxgloveUrl);
3055
+ const wsUrl = useWebSocketUrl(mroboticServerUrl);
3057
3056
  const [diagStatusDisplay, setDiagStatusDisplay] = React9.useState(null);
3058
3057
  const [bridgeConnected, setBridgeConnected] = React9.useState(false);
3059
3058
  const [selectedRawName, setSelectedRawName] = React9.useState(null);
@@ -3122,7 +3121,7 @@ var ROS2Diagnostics = ({
3122
3121
  theme: "warning",
3123
3122
  title: "Waiting for connection...",
3124
3123
  children: [
3125
- "Attempting to connect to Foxglove bridge at ",
3124
+ "Attempting to connect to mRobotic server at ",
3126
3125
  wsUrl
3127
3126
  ]
3128
3127
  }