@principal-ai/principal-view-react 0.16.55 → 0.16.57

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 (125) hide show
  1. package/dist/graphify/consolidated.d.ts +16 -1
  2. package/dist/graphify/consolidated.d.ts.map +1 -1
  3. package/dist/graphify/index.d.ts +1 -1
  4. package/dist/graphify/index.d.ts.map +1 -1
  5. package/dist/graphify/index.js.map +1 -1
  6. package/dist/graphify/kind.d.ts +1 -1
  7. package/dist/graphify/kind.d.ts.map +1 -1
  8. package/dist/graphify/kind.js +7 -1
  9. package/dist/graphify/kind.js.map +1 -1
  10. package/dist/index.d.ts +5 -4
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +3 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/pierre/constructColors.d.ts +24 -0
  15. package/dist/pierre/constructColors.d.ts.map +1 -0
  16. package/dist/pierre/constructColors.js +91 -0
  17. package/dist/pierre/constructColors.js.map +1 -0
  18. package/dist/pierre/index.d.ts +2 -0
  19. package/dist/pierre/index.d.ts.map +1 -1
  20. package/dist/pierre/index.js +1 -0
  21. package/dist/pierre/index.js.map +1 -1
  22. package/dist/pierre/pierreSyntaxTheme.d.ts +11 -0
  23. package/dist/pierre/pierreSyntaxTheme.d.ts.map +1 -0
  24. package/dist/pierre/pierreSyntaxTheme.js +20 -0
  25. package/dist/pierre/pierreSyntaxTheme.js.map +1 -0
  26. package/dist/pierre/syntaxTokens.d.ts +11 -0
  27. package/dist/pierre/syntaxTokens.d.ts.map +1 -0
  28. package/dist/pierre/syntaxTokens.js +51 -0
  29. package/dist/pierre/syntaxTokens.js.map +1 -0
  30. package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts +8 -0
  31. package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts.map +1 -0
  32. package/dist/stories/Subsystem/ComponentGraph/fixtures.js +116 -0
  33. package/dist/stories/Subsystem/ComponentGraph/fixtures.js.map +1 -0
  34. package/dist/subsystem/ComponentDeclaration.d.ts +2 -2
  35. package/dist/subsystem/ComponentDeclaration.d.ts.map +1 -1
  36. package/dist/subsystem/ComponentDeclaration.js +47 -24
  37. package/dist/subsystem/ComponentDeclaration.js.map +1 -1
  38. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  39. package/dist/subsystem/SubsystemComponentGraph.js +23 -2
  40. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  41. package/dist/subsystem/formatDeclaration.d.ts.map +1 -1
  42. package/dist/subsystem/formatDeclaration.js +49 -10
  43. package/dist/subsystem/formatDeclaration.js.map +1 -1
  44. package/dist/subsystem/model.d.ts +57 -12
  45. package/dist/subsystem/model.d.ts.map +1 -1
  46. package/dist/subsystem/model.js +54 -24
  47. package/dist/subsystem/model.js.map +1 -1
  48. package/dist/subsystem/nodes.d.ts +4 -1
  49. package/dist/subsystem/nodes.d.ts.map +1 -1
  50. package/dist/subsystem/nodes.js +70 -21
  51. package/dist/subsystem/nodes.js.map +1 -1
  52. package/dist/subsystem/tokenizeComponent.d.ts +4 -3
  53. package/dist/subsystem/tokenizeComponent.d.ts.map +1 -1
  54. package/dist/subsystem/tokenizeComponent.js +7 -12
  55. package/dist/subsystem/tokenizeComponent.js.map +1 -1
  56. package/dist/subsystem/tokenizeFormatted.d.ts +3 -6
  57. package/dist/subsystem/tokenizeFormatted.d.ts.map +1 -1
  58. package/dist/subsystem/tokenizeFormatted.js +4 -75
  59. package/dist/subsystem/tokenizeFormatted.js.map +1 -1
  60. package/package.json +3 -1
  61. package/src/graphify/consolidated.ts +18 -1
  62. package/src/graphify/index.ts +1 -0
  63. package/src/graphify/kind.ts +7 -1
  64. package/src/index.ts +5 -3
  65. package/src/pierre/constructColors.test.ts +52 -0
  66. package/src/pierre/constructColors.ts +112 -0
  67. package/src/pierre/index.ts +5 -0
  68. package/src/pierre/pierreSyntaxTheme.ts +23 -0
  69. package/src/pierre/syntaxTokens.test.ts +35 -0
  70. package/src/pierre/syntaxTokens.ts +60 -0
  71. package/src/stories/{BoundaryNodes.stories.tsx → Audit/BoundaryNodes.stories.tsx} +1 -1
  72. package/src/stories/{CanvasEdgeTypes.stories.tsx → Audit/CanvasEdgeTypes.stories.tsx} +1 -1
  73. package/src/stories/{CanvasNodeTypes.stories.tsx → Audit/CanvasNodeTypes.stories.tsx} +1 -1
  74. package/src/stories/{ColorPriority.stories.tsx → Audit/ColorPriority.stories.tsx} +1 -1
  75. package/src/stories/{DiamondBadges.stories.tsx → Audit/DiamondBadges.stories.tsx} +1 -1
  76. package/src/stories/{NodeDimensionsTesting.stories.tsx → Audit/NodeDimensionsTesting.stories.tsx} +2 -2
  77. package/src/stories/{NodeFieldsAudit.stories.tsx → Audit/NodeFieldsAudit.stories.tsx} +1 -1
  78. package/src/stories/{NodeFontSizeTesting.stories.tsx → Audit/NodeFontSizeTesting.stories.tsx} +2 -2
  79. package/src/stories/{NodeShapes.stories.tsx → Audit/NodeShapes.stories.tsx} +1 -1
  80. package/src/stories/{WideNodesTesting.stories.tsx → Audit/WideNodesTesting.stories.tsx} +2 -2
  81. package/src/stories/{dashboard → Components}/DashboardRenderer.stories.tsx +2 -2
  82. package/src/stories/{GraphRenderer.stories.tsx → Components/GraphRenderer.stories.tsx} +2 -2
  83. package/src/stories/{MultiCanvasRenderer.stories.tsx → Components/MultiCanvasRenderer.stories.tsx} +2 -2
  84. package/src/stories/{SequenceDiagram.stories.tsx → Components/SequenceDiagram.stories.tsx} +2 -2
  85. package/src/stories/{StateView.stories.tsx → Components/StateView.stories.tsx} +2 -2
  86. package/src/stories/{TraceViewer.stories.tsx → Components/TraceViewer.stories.tsx} +3 -3
  87. package/src/stories/{WorkflowSequenceDiagram.stories.tsx → Components/WorkflowSequenceDiagram.stories.tsx} +1 -1
  88. package/src/stories/{AnimationWorkshop.stories.tsx → Features/AnimationWorkshop.stories.tsx} +5 -5
  89. package/src/stories/{ChangeTypeVisual.stories.tsx → Features/ChangeTypeVisual.stories.tsx} +2 -2
  90. package/src/stories/{EventDrivenAnimations.stories.tsx → Features/EventDrivenAnimations.stories.tsx} +2 -2
  91. package/src/stories/{MultiConfig.stories.tsx → Features/MultiConfig.stories.tsx} +2 -2
  92. package/src/stories/{ElkEdgeRouting.stories.tsx → Layout/ElkEdgeRouting.stories.tsx} +2 -2
  93. package/src/stories/{GraphOrientation.stories.tsx → Layout/GraphOrientation.stories.tsx} +3 -3
  94. package/src/stories/{MultiDirectionalConnections.stories.tsx → Layout/MultiDirectionalConnections.stories.tsx} +2 -2
  95. package/src/stories/{NodeDefinitionComparison.stories.tsx → Nodes/NodeDefinitionComparison.stories.tsx} +2 -2
  96. package/src/stories/{NodeNameFallbacks.stories.tsx → Nodes/NodeNameFallbacks.stories.tsx} +2 -2
  97. package/src/stories/{NumericColors.stories.tsx → Nodes/NumericColors.stories.tsx} +2 -2
  98. package/src/stories/{EventNameDisplay.stories.tsx → OTEL/EventNameDisplay.stories.tsx} +2 -2
  99. package/src/stories/{EventNameFallback.stories.tsx → OTEL/EventNameFallback.stories.tsx} +2 -2
  100. package/src/stories/{OtelComponents.stories.tsx → OTEL/OtelComponents.stories.tsx} +3 -3
  101. package/src/stories/{OtelNodeTypesPrototype.stories.tsx → OTEL/OtelNodeTypesPrototype.stories.tsx} +2 -2
  102. package/src/stories/{RawEventCards.stories.tsx → OTEL/RawEventCards.stories.tsx} +3 -3
  103. package/src/stories/{SpanBadges.stories.tsx → OTEL/SpanBadges.stories.tsx} +1 -1
  104. package/src/stories/{ValidationEventsCanvas.stories.tsx → OTEL/ValidationEventsCanvas.stories.tsx} +3 -3
  105. package/src/stories/{BacklogMdCanvases.stories.tsx → RealWorld/BacklogMdCanvases.stories.tsx} +2 -2
  106. package/src/stories/{FileCitySequence.stories.tsx → RealWorld/FileCitySequence.stories.tsx} +4 -4
  107. package/src/stories/{RealCanvasFiles.stories.tsx → RealWorld/RealCanvasFiles.stories.tsx} +7 -7
  108. package/src/stories/{ComponentDeclarationAudit.stories.tsx → Subsystem/ComponentDeclarationAudit.stories.tsx} +19 -20
  109. package/src/stories/Subsystem/ComponentGraph/Appearance.stories.tsx +365 -0
  110. package/src/stories/Subsystem/ComponentGraph/Basics.stories.tsx +137 -0
  111. package/src/stories/Subsystem/ComponentGraph/Captures.stories.tsx +238 -0
  112. package/src/stories/Subsystem/ComponentGraph/DetailPanel.stories.tsx +315 -0
  113. package/src/stories/Subsystem/ComponentGraph/Scenarios.stories.tsx +959 -0
  114. package/src/stories/Subsystem/ComponentGraph/Spotlights.stories.tsx +646 -0
  115. package/src/stories/Subsystem/ComponentGraph/fixtures.ts +129 -0
  116. package/src/subsystem/ComponentDeclaration.tsx +64 -26
  117. package/src/subsystem/SubsystemComponentGraph.tsx +26 -6
  118. package/src/subsystem/formatDeclaration.ts +57 -11
  119. package/src/subsystem/model.test.ts +38 -6
  120. package/src/subsystem/model.ts +110 -31
  121. package/src/subsystem/nodes.tsx +103 -27
  122. package/src/subsystem/tokenizeComponent.ts +12 -12
  123. package/src/subsystem/tokenizeFormatted.ts +9 -82
  124. package/src/stories/SubsystemComponentGraph.stories.tsx +0 -1225
  125. /package/src/stories/{dashboard/sample-dashboards → data}/activity-feed-analytics.dashboard.json +0 -0
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
  import type { Theme } from '@principal-ade/industry-theme';
7
7
 
8
8
  const meta = {
9
- title: 'Testing/Wide Nodes (16px Font)',
9
+ title: 'Audit/WideNodesTesting',
10
10
  component: GraphRenderer,
11
11
  parameters: {
12
12
  layout: 'fullscreen',
@@ -7,11 +7,11 @@
7
7
  import type { Meta, StoryObj } from '@storybook/react';
8
8
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
9
9
  import { DashboardRenderer } from '../../components/dashboard';
10
- import activityFeedDashboard from './sample-dashboards/activity-feed-analytics.dashboard.json';
10
+ import activityFeedDashboard from '../data/activity-feed-analytics.dashboard.json';
11
11
  import type { DashboardDefinition } from '../../components/dashboard';
12
12
 
13
13
  const meta: Meta<typeof DashboardRenderer> = {
14
- title: 'Dashboard/DashboardRenderer',
14
+ title: 'Components/DashboardRenderer',
15
15
  component: DashboardRenderer,
16
16
  parameters: {
17
17
  layout: 'fullscreen',
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
  import '@xyflow/react/dist/style.css';
4
- import { GraphRenderer } from '../components/GraphRenderer';
5
- import type { GraphRendererHandle, PendingChanges } from '../components/GraphRenderer';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
+ import type { GraphRendererHandle, PendingChanges } from '../../components/GraphRenderer';
6
6
  import type { ExtendedCanvas, PVEventSchema } from '@principal-ai/principal-view-core';
7
7
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
8
8
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { MultiCanvasRenderer } from '../components/MultiCanvasRenderer';
4
- import type { MultiCanvasLayout } from '../components/MultiCanvasRenderer';
3
+ import { MultiCanvasRenderer } from '../../components/MultiCanvasRenderer';
4
+ import type { MultiCanvasLayout } from '../../components/MultiCanvasRenderer';
5
5
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { SequenceDiagramRenderer } from '../components/SequenceDiagramRenderer';
4
- import type { SequenceEvent, SequenceEdge } from '../hooks/useSequenceLayout';
3
+ import { SequenceDiagramRenderer } from '../../components/SequenceDiagramRenderer';
4
+ import type { SequenceEvent, SequenceEdge } from '../../hooks/useSequenceLayout';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  const meta = {
@@ -5,10 +5,10 @@ import {
5
5
  type PipelineEvent,
6
6
  type EventSource,
7
7
  type PipelineEventType,
8
- } from '../components/state-view';
8
+ } from '../../components/state-view';
9
9
 
10
10
  const meta = {
11
- title: 'State View/Pipeline',
11
+ title: 'Components/StateView',
12
12
  component: PipelineView,
13
13
  parameters: {
14
14
  layout: 'centered',
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  // Import captured trace canvas data
8
- import testRunTrace from './__traces__/test-run.canvas.json';
8
+ import testRunTrace from '../__traces__/test-run.canvas.json';
9
9
 
10
10
  const meta = {
11
- title: 'Traces/TraceViewer',
11
+ title: 'Components/TraceViewer',
12
12
  component: GraphRenderer,
13
13
  parameters: {
14
14
  layout: 'fullscreen',
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { WorkflowSequenceDiagram } from '../components/WorkflowSequenceDiagram';
3
+ import { WorkflowSequenceDiagram } from '../../components/WorkflowSequenceDiagram';
4
4
  import type { WorkflowScenario, Canvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
@@ -1,15 +1,15 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import { ReactFlow, ReactFlowProvider, Background, Controls } from '@xyflow/react';
3
3
  import '@xyflow/react/dist/style.css';
4
- import { CustomNode } from '../nodes/CustomNode';
5
- import { CustomEdge } from '../edges/CustomEdge';
6
- import type { CustomNodeData } from '../nodes/CustomNode';
7
- import type { CustomEdgeData } from '../edges/CustomEdge';
4
+ import { CustomNode } from '../../nodes/CustomNode';
5
+ import { CustomEdge } from '../../edges/CustomEdge';
6
+ import type { CustomNodeData } from '../../nodes/CustomNode';
7
+ import type { CustomEdgeData } from '../../edges/CustomEdge';
8
8
  import type { NodeTypeDefinition, EdgeTypeDefinition } from '@principal-ai/principal-view-core';
9
9
  import React from 'react';
10
10
 
11
11
  const meta = {
12
- title: 'Workshop/Animation',
12
+ title: 'Features/AnimationWorkshop',
13
13
  component: ReactFlow,
14
14
  parameters: {
15
15
  layout: 'fullscreen',
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
  import { ThemeProvider, slateTheme } from '@principal-ade/industry-theme';
4
- import { ChangeTypeVisual } from '../../../trail-viewer/src/mainview/components/ChangeTypeVisual';
4
+ import { ChangeTypeVisual } from '../../../../trail-viewer/src/mainview/components/ChangeTypeVisual';
5
5
 
6
6
  const meta = {
7
- title: 'Concepts/ChangeTypeVisual',
7
+ title: 'Features/ChangeTypeVisual',
8
8
  component: ChangeTypeVisual,
9
9
  decorators: [
10
10
  (Story) => (
@@ -1,12 +1,12 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { GraphRenderer } from '../components/GraphRenderer';
2
+ import { GraphRenderer } from '../../components/GraphRenderer';
3
3
  import type { GraphEvent, ExtendedCanvas } from '@principal-ai/principal-view-core';
4
4
  import { useState, useEffect } from 'react';
5
5
  import React from 'react';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
8
8
  const meta = {
9
- title: 'Workshop/Event-Driven Animations',
9
+ title: 'Features/EventDrivenAnimations',
10
10
  component: GraphRenderer,
11
11
  parameters: {
12
12
  layout: 'fullscreen',
@@ -1,12 +1,12 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import { useState } from 'react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import React from 'react';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
8
8
  const meta: Meta<typeof GraphRenderer> = {
9
- title: 'Multi-Config/Configuration Switcher',
9
+ title: 'Features/MultiConfig',
10
10
  component: GraphRenderer,
11
11
  parameters: {
12
12
  layout: 'fullscreen',
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  const meta = {
8
- title: 'Layout/ELK Edge Routing',
8
+ title: 'Layout/ElkEdgeRouting',
9
9
  component: GraphRenderer,
10
10
  parameters: {
11
11
  layout: 'centered',
@@ -1,13 +1,13 @@
1
1
  import React, { useState, useMemo } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
- import { swapGraphOrientation } from '../utils/orientationUtils';
6
+ import { swapGraphOrientation } from '../../utils/orientationUtils';
7
7
  import { CanvasConverter } from '@principal-ai/principal-view-core';
8
8
 
9
9
  const meta = {
10
- title: 'Features/Graph Orientation',
10
+ title: 'Layout/GraphOrientation',
11
11
  component: GraphRenderer,
12
12
  parameters: {
13
13
  layout: 'centered',
@@ -1,10 +1,10 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { GraphRenderer } from '../components/GraphRenderer';
2
+ import { GraphRenderer } from '../../components/GraphRenderer';
3
3
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
4
4
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
5
5
 
6
6
  const meta = {
7
- title: 'Features/Multi-Directional Connections',
7
+ title: 'Layout/MultiDirectionalConnections',
8
8
  component: GraphRenderer,
9
9
  parameters: {
10
10
  layout: 'fullscreen',
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  const meta = {
8
- title: 'Documentation/Node Definition Comparison',
8
+ title: 'Nodes/NodeDefinitionComparison',
9
9
  component: GraphRenderer,
10
10
  parameters: {
11
11
  layout: 'fullscreen',
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas, ExtendedCanvasNode } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  const meta = {
8
- title: 'Documentation/Node Name Fallbacks',
8
+ title: 'Nodes/NodeNameFallbacks',
9
9
  component: GraphRenderer,
10
10
  parameters: {
11
11
  layout: 'fullscreen',
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
7
7
  const meta = {
8
- title: 'Features/NumericColors',
8
+ title: 'Nodes/NumericColors',
9
9
  component: GraphRenderer,
10
10
  parameters: {
11
11
  layout: 'centered',
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
  import type { Theme } from '@principal-ade/industry-theme';
7
7
 
8
8
  const meta = {
9
- title: 'Features/Event Name Display',
9
+ title: 'OTEL/EventNameDisplay',
10
10
  component: GraphRenderer,
11
11
  parameters: {
12
12
  layout: 'fullscreen',
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
5
5
 
6
6
  const meta = {
7
- title: 'Documentation/Event Name NOT Used for Display',
7
+ title: 'OTEL/EventNameFallback',
8
8
  component: GraphRenderer,
9
9
  parameters: {
10
10
  layout: 'fullscreen',
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import React from 'react';
3
3
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
4
- import { GraphRenderer } from '../components/GraphRenderer';
5
- import { NodeTooltip } from '../components/NodeTooltip';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
+ import { NodeTooltip } from '../../components/NodeTooltip';
6
6
 
7
7
  // OTEL Log Association canvas data
8
8
  const otelCanvas = {
@@ -165,7 +165,7 @@ Routes incoming OTEL logs to canvas nodes based on matching criteria.
165
165
  };
166
166
 
167
167
  const meta: Meta = {
168
- title: 'OTEL/Components',
168
+ title: 'OTEL/OtelComponents',
169
169
  parameters: {
170
170
  layout: 'fullscreen',
171
171
  },
@@ -1,7 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
2
  import React from 'react';
3
3
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
4
- import { GraphRenderer } from '../components/GraphRenderer';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
5
  import type { ExtendedCanvas, ComponentLibrary } from '@principal-ai/principal-view-core';
6
6
 
7
7
  /**
@@ -399,7 +399,7 @@ function buildDescription(node: NewFormatNode): string {
399
399
  // =============================================================================
400
400
 
401
401
  const meta: Meta = {
402
- title: 'OTEL/Node Types Prototype',
402
+ title: 'OTEL/OtelNodeTypesPrototype',
403
403
  parameters: {
404
404
  layout: 'fullscreen',
405
405
  },
@@ -6,11 +6,11 @@ import {
6
6
  SessionEventFeed,
7
7
  SessionEventFeedGrouped,
8
8
  type SessionEventFeedRow,
9
- } from '../components/session-events';
10
- import rawSession from './data/opencode-session-raw-events.json';
9
+ } from '../../components/session-events';
10
+ import rawSession from '../data/opencode-session-raw-events.json';
11
11
 
12
12
  const meta = {
13
- title: 'Agent Raw Events/Cards',
13
+ title: 'OTEL/RawEventCards',
14
14
  parameters: {
15
15
  layout: 'fullscreen',
16
16
  },
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { GraphRenderer } from '../components/GraphRenderer';
3
+ import { GraphRenderer } from '../../components/GraphRenderer';
4
4
  import type { ExtendedCanvas, WorkflowChip } from '@principal-ai/principal-view-core';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
6
 
@@ -1,12 +1,12 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
  import '@xyflow/react/dist/style.css';
4
- import { GraphRenderer } from '../components/GraphRenderer';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
5
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
8
8
  // Import the CLI events canvas
9
- import validationEventsCanvasUrl from '../../../../.principal-views/principal-view-cli.events.canvas?url';
9
+ import validationEventsCanvasUrl from '../../../../../.principal-views/principal-view-cli.events.canvas?url';
10
10
 
11
11
  // Helper to load canvas from URL
12
12
  async function loadCanvas(url: string): Promise<ExtendedCanvas> {
@@ -41,7 +41,7 @@ function CanvasLoader({ url, children }: { url: string; children: (canvas: Exten
41
41
  }
42
42
 
43
43
  const meta = {
44
- title: 'Validation/Event Namespace Canvas',
44
+ title: 'OTEL/ValidationEventsCanvas',
45
45
  component: GraphRenderer,
46
46
  parameters: {
47
47
  layout: 'fullscreen',
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
  import '@xyflow/react/dist/style.css';
4
- import { GraphRenderer } from '../components/GraphRenderer';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
5
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
@@ -67,7 +67,7 @@ function CanvasLoader({
67
67
  }
68
68
 
69
69
  const meta = {
70
- title: 'Real Projects/Backlog.md Canvases',
70
+ title: 'RealWorld/BacklogMdCanvases',
71
71
  component: GraphRenderer,
72
72
  parameters: {
73
73
  layout: 'fullscreen',
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
- import { SequenceDiagramRenderer } from '../components/SequenceDiagramRenderer';
4
- import { WorkflowSequenceDiagram } from '../components/WorkflowSequenceDiagram';
3
+ import { SequenceDiagramRenderer } from '../../components/SequenceDiagramRenderer';
4
+ import { WorkflowSequenceDiagram } from '../../components/WorkflowSequenceDiagram';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
- import workflowData from './data/file-city-workflows.json';
6
+ import workflowData from '../data/file-city-workflows.json';
7
7
  import type { WorkflowScenario } from '@principal-ai/principal-view-core';
8
8
 
9
9
  const meta = {
10
- title: 'Workflows/File City Image Generation',
10
+ title: 'RealWorld/FileCitySequence',
11
11
  component: SequenceDiagramRenderer,
12
12
  parameters: {
13
13
  layout: 'fullscreen',
@@ -1,16 +1,16 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
  import '@xyflow/react/dist/style.css';
4
- import { GraphRenderer } from '../components/GraphRenderer';
4
+ import { GraphRenderer } from '../../components/GraphRenderer';
5
5
  import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
6
6
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
7
7
 
8
8
  // Import canvas files as URLs
9
- import scopesCanvasUrl from '../../../../.principal-views/architecture.scopes.canvas?url';
10
- import spansCanvasUrl from '../../../../.principal-views/architecture.spans.canvas?url';
11
- import resourcesCanvasUrl from '../../../../.principal-views/resources.canvas?url';
12
- import matchingLogicCanvasUrl from '../../../../.principal-views/matching-logic-current-state.canvas?url';
13
- import validationCanvasUrl from '../../../../.principal-views/validation/validation.otel.canvas?url';
9
+ import scopesCanvasUrl from '../../../../../.principal-views/architecture.scopes.canvas?url';
10
+ import spansCanvasUrl from '../../../../../.principal-views/architecture.spans.canvas?url';
11
+ import resourcesCanvasUrl from '../../../../../.principal-views/resources.canvas?url';
12
+ import matchingLogicCanvasUrl from '../../../../../.principal-views/matching-logic-current-state.canvas?url';
13
+ import validationCanvasUrl from '../../../../../.principal-views/validation/validation.otel.canvas?url';
14
14
 
15
15
  // Helper to load canvas from URL
16
16
  async function loadCanvas(url: string): Promise<ExtendedCanvas> {
@@ -45,7 +45,7 @@ function CanvasLoader({ url, children }: { url: string; children: (canvas: Exten
45
45
  }
46
46
 
47
47
  const meta = {
48
- title: 'Real Canvas Files',
48
+ title: 'RealWorld/RealCanvasFiles',
49
49
  component: GraphRenderer,
50
50
  parameters: {
51
51
  layout: 'fullscreen',
@@ -2,12 +2,12 @@ import React from 'react';
2
2
  import '@xyflow/react/dist/style.css';
3
3
  import type { Meta, StoryObj } from '@storybook/react';
4
4
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
5
- import { ComponentDeclaration } from '../subsystem/ComponentDeclaration';
6
- import type { SubsystemComponent } from '../subsystem/model';
7
- import type { GraphifyComponentDetail } from '../graphify';
5
+ import { ComponentDeclaration } from '../../subsystem/ComponentDeclaration';
6
+ import type { SubsystemComponent } from '../../subsystem/model';
7
+ import type { GraphifyComponentDetail } from '../../graphify';
8
8
 
9
9
  const meta = {
10
- title: 'Subsystem/Component Declaration Audit',
10
+ title: 'Subsystem/ComponentDeclarationAudit',
11
11
  component: ComponentDeclaration,
12
12
  parameters: { layout: 'padded' },
13
13
  tags: ['autodocs'],
@@ -28,7 +28,6 @@ const meta = {
28
28
  ],
29
29
  } satisfies Meta<typeof ComponentDeclaration>;
30
30
  export default meta;
31
- type Story = StoryObj<typeof ComponentDeclaration>;
32
31
 
33
32
  // ---------------------------------------------------------------------------
34
33
  // All cases — one SubsystemComponent per shape, rendered stacked
@@ -40,7 +39,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
40
39
  component: {
41
40
  id: 'fn-void',
42
41
  name: 'flush',
43
- kind: 'function',
42
+ construct: 'function',
44
43
  file: 'src/event-processing/sink.ts',
45
44
  purl: 'pkg:github/principal-ai/agent-monitoring',
46
45
  symbol: 'flush',
@@ -55,7 +54,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
55
54
  component: {
56
55
  id: 'fn-one',
57
56
  name: 'normalize',
58
- kind: 'function',
57
+ construct: 'function',
59
58
  file: 'src/session/SessionReader.ts',
60
59
  purl: 'pkg:github/principal-ai/agent-monitoring',
61
60
  symbol: 'SessionReader.normalize',
@@ -71,7 +70,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
71
70
  component: {
72
71
  id: 'fn-two',
73
72
  name: 'normalizeSession',
74
- kind: 'function',
73
+ construct: 'function',
75
74
  file: 'src/event-processing/normalize.ts',
76
75
  purl: 'pkg:github/principal-ai/agent-monitoring',
77
76
  symbol: 'normalizeSession',
@@ -90,7 +89,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
90
89
  component: {
91
90
  id: 'fn-rich',
92
91
  name: 'mergeSessions',
93
- kind: 'function',
92
+ construct: 'function',
94
93
  file: 'src/session/merge.ts',
95
94
  purl: 'pkg:github/principal-ai/agent-monitoring',
96
95
  symbol: 'mergeSessions',
@@ -111,7 +110,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
111
110
  component: {
112
111
  id: 'class-empty',
113
112
  name: 'EmptyClass',
114
- kind: 'class',
113
+ construct: 'class',
115
114
  file: 'src/empty.ts',
116
115
  purl: 'pkg:github/principal-ai/agent-monitoring',
117
116
  symbol: 'EmptyClass',
@@ -125,7 +124,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
125
124
  component: {
126
125
  id: 'class-props',
127
126
  name: 'Config',
128
- kind: 'class',
127
+ construct: 'class',
129
128
  file: 'src/config.ts',
130
129
  purl: 'pkg:github/principal-ai/agent-monitoring',
131
130
  symbol: 'Config',
@@ -144,7 +143,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
144
143
  component: {
145
144
  id: 'class-rich',
146
145
  name: 'EventProcessor',
147
- kind: 'class',
146
+ construct: 'class',
148
147
  file: 'src/event-processing/EventProcessor.ts',
149
148
  purl: 'pkg:github/principal-ai/agent-monitoring',
150
149
  symbol: 'EventProcessor',
@@ -171,7 +170,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
171
170
  component: {
172
171
  id: 'type-props',
173
172
  name: 'SessionRecord',
174
- kind: 'type',
173
+ construct: 'interface',
175
174
  file: 'src/session/transcript.ts',
176
175
  purl: 'pkg:github/principal-ai/agent-monitoring',
177
176
  symbol: 'SessionRecord',
@@ -189,7 +188,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
189
188
  component: {
190
189
  id: 'type-empty',
191
190
  name: 'BrandedId',
192
- kind: 'type',
191
+ construct: 'interface',
193
192
  file: 'src/types.ts',
194
193
  purl: 'pkg:github/principal-ai/agent-monitoring',
195
194
  symbol: 'BrandedId',
@@ -203,7 +202,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
203
202
  component: {
204
203
  id: 'mod-full',
205
204
  name: 'index',
206
- kind: 'module',
205
+ construct: 'module',
207
206
  file: 'src/index.ts',
208
207
  purl: 'pkg:github/principal-ai/agent-monitoring',
209
208
  symbol: 'index',
@@ -223,7 +222,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
223
222
  component: {
224
223
  id: 'mod-plain',
225
224
  name: 'utils',
226
- kind: 'module',
225
+ construct: 'module',
227
226
  file: 'src/utils.ts',
228
227
  purl: 'pkg:github/principal-ai/agent-monitoring',
229
228
  symbol: 'utils',
@@ -234,7 +233,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
234
233
  component: {
235
234
  id: 'ext',
236
235
  name: 'trail-viewer',
237
- kind: 'external',
236
+ construct: 'external',
238
237
  file: '',
239
238
  purl: 'pkg:npm/@principal-ai/trail-viewer',
240
239
  symbol: '',
@@ -249,7 +248,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
249
248
  component: {
250
249
  id: 'fn-no-symbol',
251
250
  name: 'anonymousHelper',
252
- kind: 'function',
251
+ construct: 'function',
253
252
  file: 'src/helpers.ts',
254
253
  purl: 'pkg:github/principal-ai/agent-monitoring',
255
254
  detail: {
@@ -264,7 +263,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
264
263
  component: {
265
264
  id: 'method-normalize',
266
265
  name: 'normalize',
267
- kind: 'method',
266
+ construct: 'method',
268
267
  file: 'src/session/SessionReader.ts',
269
268
  purl: 'pkg:github/principal-ai/agent-monitoring',
270
269
  symbol: 'SessionReader.normalize',
@@ -281,7 +280,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
281
280
  component: {
282
281
  id: 'method-dispose',
283
282
  name: 'dispose',
284
- kind: 'method',
283
+ construct: 'method',
285
284
  file: 'src/event-processing/EventProcessor.ts',
286
285
  purl: 'pkg:github/principal-ai/agent-monitoring',
287
286
  symbol: 'EventProcessor.dispose',