@industry-theme/principal-view-panels 0.11.41 → 0.12.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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * OpenTelemetry instrumentation for the Principal View Panels library.
3
+ *
4
+ * This module follows the "library instrumentation" pattern:
5
+ * - Only imports @opentelemetry/api (no SDK dependencies)
6
+ * - Gets tracer from global provider (set up by host app or Storybook addon)
7
+ * - Returns no-op tracer if no provider is registered
8
+ *
9
+ * @see https://opentelemetry.io/docs/languages/js/libraries/
10
+ */
11
+ import { SpanStatusCode, type Tracer, type Span, type SpanOptions } from '@opentelemetry/api';
12
+ export declare const TRACER_NAME = "@industry-theme/principal-view-panels";
13
+ export declare const TRACER_VERSION = "0.11.40";
14
+ /**
15
+ * Get a tracer instance for this library.
16
+ * Returns a no-op tracer if no TracerProvider is registered.
17
+ */
18
+ export declare function getTracer(): Tracer;
19
+ /**
20
+ * Get the currently active span, if any.
21
+ */
22
+ export declare function getActiveSpan(): Span | undefined;
23
+ /**
24
+ * Execute a function within a span's context.
25
+ * Useful for propagating context to child operations.
26
+ */
27
+ export declare function withSpan<T>(span: Span, fn: () => Promise<T>): Promise<T>;
28
+ /**
29
+ * Create and manage a span for an async operation.
30
+ * Automatically handles errors and span ending.
31
+ */
32
+ export declare function traced<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions): Promise<T>;
33
+ /**
34
+ * Create a span for a synchronous operation.
35
+ */
36
+ export declare function tracedSync<T>(name: string, fn: (span: Span) => T, options?: SpanOptions): T;
37
+ export { SpanStatusCode };
38
+ export type { Span, SpanOptions };
39
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAGL,cAAc,EACd,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,WAAW,0CAA0C,CAAC;AACnE,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,GAAG,SAAS,CAEhD;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAE9E;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAAC,CAAC,EAC5B,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,CAAC,CAAC,CAuBZ;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,EACrB,OAAO,CAAC,EAAE,WAAW,GACpB,CAAC,CAoBH;AAGD,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/principal-view-panels",
3
- "version": "0.11.41",
3
+ "version": "0.12.0",
4
4
  "description": "Principal View Graph Panels for visualizing graph configurations from .principal-views/ folder as interactive diagrams",
5
5
  "type": "module",
6
6
  "main": "dist/panels.bundle.js",
@@ -52,26 +52,30 @@
52
52
  "build-storybook": "storybook build"
53
53
  },
54
54
  "peerDependencies": {
55
- "@opentelemetry/api": "^1.8.0",
56
- "@principal-ade/dynamic-file-tree": "^0.1.70",
57
- "@principal-ade/industry-theme": "^0.1.7",
58
- "@principal-ade/panel-framework-core": "^0.4.2",
59
- "@principal-ade/utcp-panel-event": "^0.1.0",
60
- "@principal-ai/codebase-composition": "^0.2.43",
61
- "@principal-ai/principal-view-core": "^0.24.36",
62
- "@principal-ai/repository-abstraction": "^0.5.7",
55
+ "@opentelemetry/api": ">=1.8.0",
56
+ "@principal-ade/dynamic-file-tree": ">=0.2.1",
57
+ "@principal-ade/industry-theme": ">=0.1.8",
58
+ "@principal-ade/panel-framework-core": ">=0.5.1",
59
+ "@principal-ade/panel-layouts": ">=0.4.0",
60
+ "@principal-ade/utcp-panel-event": ">=0.1.0",
61
+ "@principal-ai/codebase-composition": ">=0.2.43",
62
+ "@principal-ai/principal-view-core": ">=0.24.42",
63
+ "@principal-ai/repository-abstraction": ">=0.5.7",
63
64
  "react": ">=19.0.0",
64
65
  "react-dom": ">=19.0.0"
65
66
  },
66
67
  "dependencies": {
67
68
  "@principal-ade/panels": "^1.0.53",
68
- "@principal-ai/principal-view-react": "0.13.7",
69
+ "@principal-ai/principal-view-react": "0.13.10",
69
70
  "@xyflow/react": "^12.0.0",
70
71
  "clsx": "^2.1.1",
71
72
  "framer-motion": "^11.0.0",
72
73
  "js-yaml": "^4.1.1",
73
74
  "lucide-react": "^0.552.0",
74
- "react-json-tree": "^0.20.0"
75
+ "react-json-tree": "^0.20.0",
76
+ "react-markdown": "^10.1.0",
77
+ "remark-gfm": "^4.0.1",
78
+ "themed-markdown": "^0.1.82"
75
79
  },
76
80
  "devDependencies": {
77
81
  "@chromatic-com/storybook": "^4.1.3",
@@ -80,11 +84,11 @@
80
84
  "@principal-ai/storybook-addon-otel": "^0.3.22",
81
85
  "@principal-ade/dynamic-file-tree": "0.1.72",
82
86
  "@principal-ade/industry-theme": "^0.1.7",
83
- "@principal-ade/panel-framework-core": "^0.4.2",
84
- "@principal-ade/panel-layouts": "^0.3.20",
87
+ "@principal-ade/panel-framework-core": "0.5.1",
88
+ "@principal-ade/panel-layouts": "0.4.0",
85
89
  "@principal-ade/utcp-panel-event": "^0.1.0",
86
90
  "@principal-ai/codebase-composition": "^0.2.43",
87
- "@principal-ai/principal-view-core": "^0.24.36",
91
+ "@principal-ai/principal-view-core": "0.24.43",
88
92
  "@principal-ai/repository-abstraction": "^0.5.7",
89
93
  "@storybook/addon-docs": "10.1.2",
90
94
  "@storybook/addon-links": "10.1.2",