@principal-ai/principal-view-core 0.26.31 → 0.26.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/principal-view-core",
3
- "version": "0.26.31",
3
+ "version": "0.26.32",
4
4
  "description": "Core logic and types for graph-based principal view framework",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -422,12 +422,11 @@ export class CanvasConverter {
422
422
  private static convertOtelNodeToGraph(node: OtelNode, now: number): NodeState {
423
423
  // For otel-event nodes: skip explicit colors (use scope-based coloring)
424
424
  // For other OTEL nodes: allow explicit fill/color
425
- const color = isOtelEventNode(node) ? '' : (node.fill || resolveCanvasColor(node.color) || '');
425
+ const color = isOtelEventNode(node) ? undefined : (node.fill || resolveCanvasColor(node.color) || undefined);
426
426
 
427
427
  const nodeData: Record<string, JsonValue> = {
428
428
  description: ('description' in node && node.description) || '',
429
429
  shape: node.shape || 'rectangle',
430
- color,
431
430
  width: node.width,
432
431
  height: node.height,
433
432
  sources: [], // not used for OTEL nodes
@@ -436,6 +435,11 @@ export class CanvasConverter {
436
435
  nodeType: node.type,
437
436
  };
438
437
 
438
+ // Only add color if it's defined (skip for otel-event nodes)
439
+ if (color !== undefined) {
440
+ nodeData.color = color;
441
+ }
442
+
439
443
  if (node.icon) nodeData.icon = node.icon;
440
444
  if (node.stroke) nodeData.stroke = node.stroke;
441
445