@liuhange/dsh-data-visualization 2.0.0 → 2.0.2

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,39 +1,53 @@
1
- {
2
- "name": "@liuhange/dsh-data-visualization",
3
- "description": "Data visualization plugin: generate self-contained HTML reports with interactive charts (bar/comparison/pie/radar/flowchart)",
4
- "version": "2.0.0",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/liuhange789/data-asset-inspector.git",
11
- "directory": "packages/data-asset/data-visualization"
12
- },
13
- "type": "module",
14
- "main": "lib/index.js",
15
- "types": "lib/types/index.d.ts",
16
- "exports": {
17
- ".": {
18
- "types": "./lib/types/index.d.ts",
19
- "default": "./lib/index.js"
20
- },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
- "./src/*": "./src/*",
26
- "./package.json": "./package.json"
27
- },
28
- "files": [
29
- "lib/index.js",
30
- "lib/invariant.js",
31
- "lib/types/**/*.d.ts"
32
- ],
33
- "license": "MIT",
34
- "peerDependencies": {
35
- "@deepseek-ai/cordis": "^0.1.0",
36
- "@deepseek-ai/dsh-tools": "^0.1.0",
37
- "@liuhange/dsh-data-asset-shared": "^2.0.0"
38
- }
39
- }
1
+ {
2
+ "name": "@liuhange/dsh-data-visualization",
3
+ "description": "Data visualization plugin: generate self-contained HTML reports with interactive charts (bar/comparison/pie/radar/flowchart) Also known as @deepseek-ai/dsh-data-visualization.",
4
+ "version": "2.0.2",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/liuhange789/data-asset-inspector.git",
11
+ "directory": "packages/data-asset/data-visualization"
12
+ },
13
+ "type": "module",
14
+ "main": "lib/index.js",
15
+ "types": "lib/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./invariant": {
22
+ "types": "./lib/types/invariant.d.ts",
23
+ "default": "./lib/invariant.js"
24
+ },
25
+ "./src/*": "./src/*",
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "lib/index.js",
30
+ "lib/invariant.js",
31
+ "lib/types/**/*.d.ts"
32
+ ],
33
+ "license": "MIT",
34
+ "scripts": {
35
+ "typecheck": "tsc --noEmit",
36
+ "test": "vitest run",
37
+ "build": "tsc"
38
+ },
39
+ "peerDependencies": {
40
+ "@deepseek-ai/cordis": "^4.0.0",
41
+ "@deepseek-ai/dsh-tools": "0.0.1-rc.1",
42
+ "@liuhange/dsh-data-asset-shared": "^2.0.0"
43
+ },
44
+ "keywords": [
45
+ "deepseek-harness",
46
+ "dsh-plugin",
47
+ "data-asset",
48
+ "data-asset-inspector",
49
+ "shujintong",
50
+ "数据资产"
51
+ ],
52
+ "homepage": "https://github.com/liuhange789/data-asset-inspector#readme"
53
+ }
@@ -1,8 +0,0 @@
1
- import type { ChartRenderResult } from '../types.js';
2
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
3
- export declare class BarChartRenderer {
4
- render(data: unknown, config: VisualizationConfig): ChartRenderResult;
5
- private extractCounts;
6
- private placeholder;
7
- }
8
- //# sourceMappingURL=barChartRenderer.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { ChartRenderResult } from '../types.js';
2
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
3
- export declare class ComparisonChartRenderer {
4
- render(data: unknown, config: VisualizationConfig): ChartRenderResult;
5
- private extractData;
6
- private placeholder;
7
- }
8
- //# sourceMappingURL=comparisonChartRenderer.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { ChartRenderResult } from '../types.js';
2
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
3
- export declare class FlowchartRenderer {
4
- render(data: unknown, config: VisualizationConfig): ChartRenderResult;
5
- private extractData;
6
- private placeholder;
7
- }
8
- //# sourceMappingURL=flowchartRenderer.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { ChartRenderResult } from '../types.js';
2
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
3
- export declare class PieChartRenderer {
4
- render(data: unknown, config: VisualizationConfig): ChartRenderResult;
5
- private extractData;
6
- private placeholder;
7
- }
8
- //# sourceMappingURL=pieChartRenderer.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { ChartRenderResult } from '../types.js';
2
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
3
- export declare class RadarChartRenderer {
4
- render(data: unknown, config: VisualizationConfig): ChartRenderResult;
5
- private extractData;
6
- private placeholder;
7
- }
8
- //# sourceMappingURL=radarChartRenderer.d.ts.map
@@ -1,3 +0,0 @@
1
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
2
- export declare const defaultVisualizationConfig: VisualizationConfig;
3
- //# sourceMappingURL=defaultVisualizationConfig.d.ts.map
@@ -1,12 +0,0 @@
1
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
2
- import type { ChartRenderResult } from './types.js';
3
- export interface HtmlAssembleInput {
4
- charts: ChartRenderResult[];
5
- config: VisualizationConfig;
6
- reportData: Record<string, unknown>;
7
- }
8
- export declare class HtmlAssembler {
9
- private interactionScript;
10
- assemble(input: HtmlAssembleInput): string;
11
- }
12
- //# sourceMappingURL=htmlAssembler.d.ts.map
@@ -1,5 +0,0 @@
1
- import type { Context } from '@deepseek-ai/cordis';
2
- export declare const name = "data-visualization";
3
- export declare const inject: string[];
4
- export declare function apply(ctx: Context): void;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +0,0 @@
1
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
2
- export declare class InteractionScript {
3
- generate(interactions: VisualizationConfig['interactions']): string;
4
- }
5
- //# sourceMappingURL=interactionScript.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare const invariant = "data-visualization";
2
- export declare function install(): void;
3
- //# sourceMappingURL=invariant.d.ts.map
@@ -1,5 +0,0 @@
1
- import type { ReportDataLoadResult } from './types.js';
2
- export declare class ReportDataLoader {
3
- load(filePath: string): Promise<ReportDataLoadResult>;
4
- }
5
- //# sourceMappingURL=reportDataLoader.d.ts.map
@@ -1,5 +0,0 @@
1
- import type { VisualizationConfig } from '@liuhange/dsh-data-asset-shared';
2
- export declare class TemplateLoader {
3
- load(config: VisualizationConfig | undefined): VisualizationConfig;
4
- }
5
- //# sourceMappingURL=templateLoader.d.ts.map
@@ -1,30 +0,0 @@
1
- export type ChartType = 'bar' | 'comparison' | 'pie' | 'radar' | 'flowchart';
2
- export interface GenerateVisualizationParams {
3
- reportPaths: {
4
- masking?: string;
5
- cleaning?: string;
6
- inventory?: string;
7
- quality?: string;
8
- lineage?: string;
9
- };
10
- outputPath: string;
11
- }
12
- export interface ChartRenderResult {
13
- type: ChartType;
14
- title: string;
15
- svgContent: string;
16
- dataAvailable: boolean;
17
- errorMessage?: string;
18
- }
19
- export interface GenerateVisualizationResult {
20
- htmlPath: string;
21
- chartCount: number;
22
- chartsRendered: string[];
23
- status: 'SUCCESS' | 'FAILED';
24
- configStatus: string;
25
- }
26
- export interface ReportDataLoadResult {
27
- data: unknown;
28
- error?: string;
29
- }
30
- //# sourceMappingURL=types.d.ts.map