@industry-theme/backlogmd-kanban-panel 1.0.41 → 1.0.44
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.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/mocks/panelContext.d.ts.map +1 -1
- package/dist/panels/KanbanPanel.d.ts.map +1 -1
- package/dist/panels/kanban/components/BoardEmptyState.d.ts.map +1 -1
- package/dist/panels/kanban/components/TaskCard.d.ts.map +1 -1
- package/dist/panels/kanban/hooks/useKanbanData.d.ts +2 -2
- package/dist/panels/kanban/hooks/useKanbanData.d.ts.map +1 -1
- package/dist/panels.bundle.js +1345 -356
- package/dist/panels.bundle.js.map +1 -1
- package/dist/telemetry.d.ts +36 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/package.json +7 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenTelemetry instrumentation for the Kanban Panel
|
|
3
|
+
*
|
|
4
|
+
* This follows the library instrumentation pattern:
|
|
5
|
+
* - Uses only @opentelemetry/api (no provider/exporter dependencies)
|
|
6
|
+
* - Gets tracer from the global provider (set up by the application)
|
|
7
|
+
* - Returns no-op tracer if no provider is registered (safe, does nothing)
|
|
8
|
+
*
|
|
9
|
+
* The application (e.g., Storybook via storybook-addon-otel, or the Electron app)
|
|
10
|
+
* is responsible for setting up the tracer provider and exporters.
|
|
11
|
+
*/
|
|
12
|
+
import { trace, context, SpanStatusCode, type Tracer, type Span } from '@opentelemetry/api';
|
|
13
|
+
export declare const TRACER_NAME = "@industry-theme/backlogmd-kanban-panel";
|
|
14
|
+
export declare const TRACER_VERSION = "1.0.41";
|
|
15
|
+
/**
|
|
16
|
+
* Get the tracer instance for this library.
|
|
17
|
+
* Returns a no-op tracer if no provider is registered.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getTracer(): Tracer;
|
|
20
|
+
/**
|
|
21
|
+
* Get the currently active span, if any.
|
|
22
|
+
* Useful for adding events to the current span context.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getActiveSpan(): Span | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Execute a function within a span context.
|
|
27
|
+
* Ensures proper context propagation for nested operations.
|
|
28
|
+
*/
|
|
29
|
+
export declare function withSpan<T>(span: Span, fn: () => Promise<T>): Promise<T>;
|
|
30
|
+
/**
|
|
31
|
+
* Execute a synchronous function within a span context.
|
|
32
|
+
*/
|
|
33
|
+
export declare function withSpanSync<T>(span: Span, fn: () => T): T;
|
|
34
|
+
export { trace, context, SpanStatusCode };
|
|
35
|
+
export type { Tracer, Span };
|
|
36
|
+
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,EACL,OAAO,EACP,cAAc,EACd,KAAK,MAAM,EACX,KAAK,IAAI,EACV,MAAM,oBAAoB,CAAC;AAK5B,eAAO,MAAM,WAAW,2CAA2C,CAAC;AACpE,eAAO,MAAM,cAAc,WAAkB,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,IAAI,GAAG,SAAS,CAEhD;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAC9B,IAAI,EAAE,IAAI,EACV,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAE1D;AAGD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1C,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@industry-theme/backlogmd-kanban-panel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "Kanban board panel for visualizing Backlog.md tasks in the industry-themed panel framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/panels.bundle.js",
|
|
@@ -47,10 +47,14 @@
|
|
|
47
47
|
"prepare": "husky"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
+
"@opentelemetry/api": "^1.8.0",
|
|
50
51
|
"react": ">=19.0.0",
|
|
51
52
|
"react-dom": ">=19.0.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependenciesMeta": {
|
|
55
|
+
"@opentelemetry/api": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
54
58
|
"@principal-ade/panel-framework-core": {
|
|
55
59
|
"optional": true
|
|
56
60
|
}
|
|
@@ -80,7 +84,9 @@
|
|
|
80
84
|
},
|
|
81
85
|
"devDependencies": {
|
|
82
86
|
"@chromatic-com/storybook": "^4.1.3",
|
|
87
|
+
"@opentelemetry/api": "^1.8.0",
|
|
83
88
|
"@eslint/js": "^9.32.0",
|
|
89
|
+
"@principal-ai/storybook-addon-otel": "^0.3.22",
|
|
84
90
|
"@storybook/addon-docs": "10.1.2",
|
|
85
91
|
"@storybook/addon-links": "10.1.2",
|
|
86
92
|
"@storybook/addon-onboarding": "10.1.2",
|