@luxonis/visualizer-protobuf 2.34.0 → 2.35.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.
Files changed (28) hide show
  1. package/dist/{FoxgloveServer-BssAO1ix.js → FoxgloveServer-C39Uooyk.js} +4 -15
  2. package/dist/{foxglove-protocol-BQ1FsNfG.js → foxglove-protocol-CYoMweAY.js} +1 -1
  3. package/dist/{index-DVIZBBCm.js → index-B0STFQmU.js} +3 -4
  4. package/dist/{index-BoyVvb29.js → index-B13odtD4.js} +3 -4
  5. package/dist/{index-DaG9nPZd.js → index-B1XiXp8f.js} +3 -4
  6. package/dist/{index-DdNCwO7Q.js → index-B3FXkEX-.js} +3 -4
  7. package/dist/{index-CayC6Noc.js → index-BMhXEexX.js} +3 -4
  8. package/dist/{index-eWVL02_M.js → index-BVoQTy60.js} +3 -4
  9. package/dist/{index-BypUPQGn.js → index-BfRV8GM9.js} +4190 -651
  10. package/dist/{index-DD-lbAT0.js → index-BoI3ALeF.js} +3 -4
  11. package/dist/{index-Bl542JWK.js → index-ByPsJjYK.js} +3 -4
  12. package/dist/{index-DFfyvIbO.js → index-C-cI8dE7.js} +3 -4
  13. package/dist/{index-BlyAnDCs.js → index-C4bu9CwP.js} +3 -4
  14. package/dist/{index-BkIiRxPg.js → index-CFyETGYY.js} +3 -4
  15. package/dist/{index-D4MpX4Ms.js → index-CnqkI6yW.js} +3 -4
  16. package/dist/{index-CTQA6_uM.js → index-D1HLpOAF.js} +4 -5
  17. package/dist/{index-CZuP_zm9.js → index-DCxgBMTe.js} +3 -4
  18. package/dist/{index-CmqI1XYl.js → index-DWqG1kKL.js} +3 -4
  19. package/dist/{index-BV2f5Wiz.js → index-DXRsZeIF.js} +3 -4
  20. package/dist/{index-BOaAiO3i.js → index-NHuLyXtC.js} +3 -4
  21. package/dist/{index-Di8JNkBH.js → index-denIhk8V.js} +3 -4
  22. package/dist/index.js +3 -4
  23. package/dist/lib/src/components/PanelToolbar.d.ts.map +1 -1
  24. package/dist/lib/src/components/PanelToolbar.js +6 -3
  25. package/dist/lib/src/components/PanelToolbar.js.map +1 -1
  26. package/dist/{worker-C_ZGBh4B.js → worker-B5OJw-Fq.js} +2 -2
  27. package/dist/{worker-DMpdSxSr.js → worker-aVL4LGa3.js} +1 -1
  28. package/package.json +3 -3
@@ -435,14 +435,6 @@ function parseServerMessage(buffer) {
435
435
  }
436
436
 
437
437
  const textEncoder = new TextEncoder();
438
- /**
439
- * A client to interact with the Foxglove WebSocket protocol:
440
- * https://github.com/foxglove/ws-protocol/blob/main/docs/spec.md.
441
- *
442
- * You must provide the underlying websocket client (an implementation of `IWebSocket`) and that
443
- * client must advertise a subprotocol which is compatible with the ws-protocol spec (e.g.
444
- * "foxglove.websocket.v1").
445
- */
446
438
  class FoxgloveClient {
447
439
  static SUPPORTED_SUBPROTOCOL = "foxglove.websocket.v1";
448
440
  #emitter = new EventEmitter();
@@ -462,9 +454,12 @@ class FoxgloveClient {
462
454
  #reconnect() {
463
455
  this.#ws.binaryType = "arraybuffer";
464
456
  this.#ws.onerror = (event) => {
465
- this.#emitter.emit("error", event.error ?? new Error("WebSocket error"));
457
+ this.#emitter.emit("error", event.error);
466
458
  };
467
459
  this.#ws.onopen = (_event) => {
460
+ if (this.#ws.protocol !== FoxgloveClient.SUPPORTED_SUBPROTOCOL) {
461
+ throw new Error(`Expected subprotocol ${FoxgloveClient.SUPPORTED_SUBPROTOCOL}, got '${this.#ws.protocol}'`);
462
+ }
468
463
  this.#emitter.emit("open");
469
464
  };
470
465
  this.#ws.onmessage = (event) => {
@@ -488,9 +483,6 @@ class FoxgloveClient {
488
483
  case "status":
489
484
  this.#emitter.emit("status", message);
490
485
  return;
491
- case "removeStatus":
492
- this.#emitter.emit("removeStatus", message);
493
- return;
494
486
  case "advertise":
495
487
  this.#emitter.emit("advertise", message.channels);
496
488
  return;
@@ -509,9 +501,6 @@ class FoxgloveClient {
509
501
  case "connectionGraphUpdate":
510
502
  this.#emitter.emit("connectionGraphUpdate", message);
511
503
  return;
512
- case "serviceCallFailure":
513
- this.#emitter.emit("serviceCallFailure", message);
514
- return;
515
504
  case BinaryOpcode.MESSAGE_DATA:
516
505
  this.#emitter.emit("message", message);
517
506
  return;
@@ -1,4 +1,4 @@
1
- import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-BssAO1ix.js';
1
+ import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-C39Uooyk.js';
2
2
 
3
3
  // This Source Code Form is subject to the terms of the Mozilla Public
4
4
  // License, v2.0. If a copy of the MPL was not distributed with this
@@ -1,4 +1,4 @@
1
- import { a3 as ContextTracker, V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, ac as parseMixed } from './index-BypUPQGn.js';
1
+ import { a3 as ContextTracker, V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, ac as parseMixed } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';
@@ -1,4 +1,4 @@
1
- import { a9 as EditorView, aa as EditorSelection, T as LRLanguage, O as styleTags, Q as tags, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, U as LanguageSupport, X as LRParser, $ as syntaxTree, ab as html, ac as parseMixed, V as ExternalTokenizer } from './index-BypUPQGn.js';
1
+ import { a9 as EditorView, aa as EditorSelection, T as LRLanguage, O as styleTags, Q as tags, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, U as LanguageSupport, X as LRParser, $ as syntaxTree, ab as html, ac as parseMixed, V as ExternalTokenizer } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';
@@ -1,4 +1,4 @@
1
- import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, N as foldNodeProp, a2 as foldInside, K as indentNodeProp, M as continuedIndent, a8 as defineCSSCompletionSource, U as LanguageSupport } from './index-BypUPQGn.js';
1
+ import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, N as foldNodeProp, a2 as foldInside, K as indentNodeProp, M as continuedIndent, a8 as defineCSSCompletionSource, U as LanguageSupport } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';
@@ -1,4 +1,4 @@
1
- import { K as indentNodeProp, M as continuedIndent, N as foldNodeProp, O as styleTags, Q as tags, T as LRLanguage, U as LanguageSupport, V as ExternalTokenizer, X as LRParser, Y as ifNotIn, Z as completeFromList, $ as syntaxTree } from './index-BypUPQGn.js';
1
+ import { K as indentNodeProp, M as continuedIndent, N as foldNodeProp, O as styleTags, Q as tags, T as LRLanguage, U as LanguageSupport, V as ExternalTokenizer, X as LRParser, Y as ifNotIn, Z as completeFromList, $ as syntaxTree } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';
@@ -1,4 +1,4 @@
1
- import { O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-BypUPQGn.js';
1
+ import { O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';
@@ -1,4 +1,4 @@
1
- import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, $ as syntaxTree, Y as ifNotIn, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, a6 as IterMode, Z as completeFromList, a7 as NodeWeakMap, a5 as snippetCompletion } from './index-BypUPQGn.js';
1
+ import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, $ as syntaxTree, Y as ifNotIn, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, a6 as IterMode, Z as completeFromList, a7 as NodeWeakMap, a5 as snippetCompletion } from './index-BfRV8GM9.js';
2
2
  import './tslib.es6-C73eoP_E.js';
3
3
  import 'react';
4
4
  import 'react-mosaic-component';
@@ -7,9 +7,9 @@ import '@mui/material';
7
7
  import './isArrayLikeObject-Bytw9p-q.js';
8
8
  import './comlink-DHMAu6X7.js';
9
9
  import './utils-Hzt3wxhG.js';
10
- import './FoxgloveServer-BssAO1ix.js';
10
+ import './FoxgloveServer-C39Uooyk.js';
11
11
  import 'ms';
12
- import './foxglove-protocol-BQ1FsNfG.js';
12
+ import './foxglove-protocol-CYoMweAY.js';
13
13
  import 'react-dnd';
14
14
  import 'react-dnd-html5-backend';
15
15
  import './i18next-IYI3-Nuv.js';
@@ -20,7 +20,6 @@ import 'react/jsx-runtime';
20
20
  import 'react-dom';
21
21
  import 'react-syntax-highlighter/dist/esm/styles/prism';
22
22
  import 'react-syntax-highlighter';
23
- import 'rehype-sanitize';
24
23
  import 'extend';
25
24
  import 'react-icons';
26
25
  import '@pandacss/dev';