@advt-gpt-chart/package 3.0.19 → 3.1.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.
Files changed (92) hide show
  1. package/dist/Chart/ChartBase/constants.d.ts +19 -4
  2. package/dist/Chart/ChartBase/index.d.ts +1 -1
  3. package/dist/Chart/ChartBase/transformed.d.ts +5 -0
  4. package/dist/Chart/ChartBase/types.d.ts +7 -1
  5. package/dist/Chart/ChartBase/utils.d.ts +1 -1
  6. package/dist/Chart/ChartCodeRender/type.d.ts +23 -0
  7. package/dist/Chart/ChartCodeRender/visChart/ChartStoreContext.d.ts +2 -2
  8. package/dist/Chart/ChartControllers/Orders/OrdersController.d.ts +1 -1
  9. package/dist/Chart/ChartControllers/index.d.ts +1 -1
  10. package/dist/Chart/ChartWrapper/style.d.ts +2 -1
  11. package/dist/Chart/ChartWrapper/utils.d.ts +7 -0
  12. package/dist/Chart/DataSource/metricInsight.d.ts +14 -1
  13. package/dist/Chart/DataSource/types.d.ts +1 -1
  14. package/dist/Chart/DataSource/useChartDataQuery.d.ts +1 -1
  15. package/dist/Charts/AgentCharts/AgentChartHeader.d.ts +7 -0
  16. package/dist/Charts/AgentCharts/AgentChartHeaderStyle.d.ts +9 -0
  17. package/dist/Charts/AgentCharts/DimensionAttribution/index.d.ts +3 -0
  18. package/dist/Charts/AgentCharts/DimensionAttribution/types.d.ts +8 -0
  19. package/dist/Charts/AgentCharts/FactorAttribution/index.d.ts +3 -0
  20. package/dist/Charts/AgentCharts/FactorAttribution/types.d.ts +8 -0
  21. package/dist/Charts/AgentCharts/index.d.ts +3 -0
  22. package/dist/Charts/AgentCharts/types.d.ts +70 -0
  23. package/dist/Charts/Area/types.d.ts +2 -2
  24. package/dist/Charts/Bar/types.d.ts +2 -2
  25. package/dist/Charts/Composite/config.d.ts +22 -0
  26. package/dist/Charts/Composite/index.d.ts +3 -0
  27. package/dist/Charts/Composite/types.d.ts +11 -0
  28. package/dist/Charts/Composite/util.d.ts +18 -0
  29. package/dist/Charts/Donut/types.d.ts +2 -2
  30. package/dist/Charts/Funnel/types.d.ts +2 -2
  31. package/dist/Charts/Gauge/types.d.ts +2 -2
  32. package/dist/Charts/Heatmap/types.d.ts +3 -3
  33. package/dist/Charts/Indicator/contants.d.ts +2 -2
  34. package/dist/Charts/Indicator/styles.d.ts +2 -0
  35. package/dist/Charts/Indicator/types.d.ts +4 -2
  36. package/dist/Charts/Line/types.d.ts +2 -2
  37. package/dist/Charts/Pie/types.d.ts +2 -2
  38. package/dist/Charts/PivotTable/index.d.ts +3 -0
  39. package/dist/Charts/PivotTable/theme.d.ts +3 -0
  40. package/dist/Charts/PivotTable/types.d.ts +22 -0
  41. package/dist/Charts/Radar/types.d.ts +1 -1
  42. package/dist/Charts/Rank/types.d.ts +2 -2
  43. package/dist/Charts/Scatter/types.d.ts +2 -2
  44. package/dist/Charts/Tabs/index.d.ts +3 -0
  45. package/dist/Charts/Tabs/styles.d.ts +3 -0
  46. package/dist/Charts/Tabs/types.d.ts +18 -0
  47. package/dist/ConfigProvider/hooks/useConfig.d.ts +3 -7
  48. package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/index.d.ts +1 -1
  49. package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/types.d.ts +4 -4
  50. package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/utils.d.ts +2 -2
  51. package/dist/components/VTabs.d.ts +5 -0
  52. package/dist/components/index.d.ts +9 -0
  53. package/dist/export.d.ts +14 -2
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.es.js +178746 -182506
  56. package/dist/index.es.js.gz +0 -0
  57. package/dist/index.umd.js +2430 -2215
  58. package/dist/index.umd.js.gz +0 -0
  59. package/dist/locale/en-US.d.ts +14 -0
  60. package/dist/locale/zh-CN.d.ts +14 -0
  61. package/dist/locale/zh-TW.d.ts +14 -0
  62. package/dist/services/constants.d.ts +5 -1
  63. package/dist/services/index.d.ts +104 -2
  64. package/dist/services/types.d.ts +15 -0
  65. package/dist/types/chart.d.ts +16 -3
  66. package/dist/types/config.d.ts +1 -0
  67. package/dist/utils/useTools.d.ts +3 -1
  68. package/dist/version.d.ts +1 -1
  69. package/package.json +32 -101
  70. /package/dist/{Text → Charts/Text}/VisText.d.ts +0 -0
  71. /package/dist/{Text → Charts/Text}/config.d.ts +0 -0
  72. /package/dist/{Text → Charts/Text}/custom-icons/index.d.ts +0 -0
  73. /package/dist/{Text → Charts/Text}/index.d.ts +0 -0
  74. /package/dist/{Text → Charts/Text}/mini-charts/hooks/getElementFontSize.d.ts +0 -0
  75. /package/dist/{Text → Charts/Text}/mini-charts/hooks/index.d.ts +0 -0
  76. /package/dist/{Text → Charts/Text}/mini-charts/hooks/useSvgWrapper.d.ts +0 -0
  77. /package/dist/{Text → Charts/Text}/mini-charts/index.d.ts +0 -0
  78. /package/dist/{Text → Charts/Text}/mini-charts/line/SingleLineChart.d.ts +0 -0
  79. /package/dist/{Text → Charts/Text}/mini-charts/line/index.d.ts +0 -0
  80. /package/dist/{Text → Charts/Text}/mini-charts/line/scaleLinear.d.ts +0 -0
  81. /package/dist/{Text → Charts/Text}/mini-charts/line/useLineCompute.d.ts +0 -0
  82. /package/dist/{Text → Charts/Text}/mini-charts/proportion/getArcPath.d.ts +0 -0
  83. /package/dist/{Text → Charts/Text}/mini-charts/proportion/index.d.ts +0 -0
  84. /package/dist/{Text → Charts/Text}/theme.d.ts +0 -0
  85. /package/dist/{Text → Charts/Text}/types.d.ts +0 -0
  86. /package/dist/{Text → Charts/Text}/utils/getThemeColor.d.ts +0 -0
  87. /package/dist/{Text → Charts/Text}/utils/index.d.ts +0 -0
  88. /package/dist/{Text → Charts/Text}/utils/useAntdDarkAlgorithm.d.ts +0 -0
  89. /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/AdvancedContent.d.ts +0 -0
  90. /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/CustomContent.d.ts +0 -0
  91. /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/TimeRangePopover.d.ts +0 -0
  92. /package/dist/{Chart/ChartControllers/TimeRange → components/CustomTimeRange}/styles.d.ts +0 -0
Binary file
@@ -102,6 +102,7 @@ export declare const en_US: {
102
102
  drillDataLoadingFailed: string;
103
103
  DownloadImage: string;
104
104
  DownloadExcel: string;
105
+ ExitFullscreen: string;
105
106
  MetricDataFormat: string;
106
107
  fullscreen: string;
107
108
  formatType: string;
@@ -118,4 +119,17 @@ export declare const en_US: {
118
119
  detailDataError: string;
119
120
  asc: string;
120
121
  desc: string;
122
+ metricName: string;
123
+ currentValue: string;
124
+ comparisonValue: string;
125
+ absoluteValue: string;
126
+ growthValue: string;
127
+ changeRate: string;
128
+ contributionRate: string;
129
+ contributionToTotalRate: string;
130
+ contributionToParentRate: string;
131
+ dimensionValue: string;
132
+ absoluteChange: string;
133
+ factorAttribution: string;
134
+ dimensionAttribution: string;
121
135
  };
@@ -102,6 +102,7 @@ export declare const zh_CN: {
102
102
  drillDataLoadingFailed: string;
103
103
  DownloadImage: string;
104
104
  DownloadExcel: string;
105
+ ExitFullscreen: string;
105
106
  MetricDataFormat: string;
106
107
  fullscreen: string;
107
108
  formatType: string;
@@ -118,4 +119,17 @@ export declare const zh_CN: {
118
119
  detailDataError: string;
119
120
  asc: string;
120
121
  desc: string;
122
+ metricName: string;
123
+ currentValue: string;
124
+ comparisonValue: string;
125
+ absoluteValue: string;
126
+ growthValue: string;
127
+ changeRate: string;
128
+ contributionRate: string;
129
+ contributionToTotalRate: string;
130
+ contributionToParentRate: string;
131
+ dimensionValue: string;
132
+ absoluteChange: string;
133
+ factorAttribution: string;
134
+ dimensionAttribution: string;
121
135
  };
@@ -102,6 +102,7 @@ export declare const zh_TW: {
102
102
  drillDataLoadingFailed: string;
103
103
  DownloadImage: string;
104
104
  DownloadExcel: string;
105
+ ExitFullscreen: string;
105
106
  MetricDataFormat: string;
106
107
  fullscreen: string;
107
108
  formatType: string;
@@ -118,4 +119,17 @@ export declare const zh_TW: {
118
119
  detailDataError: string;
119
120
  asc: string;
120
121
  desc: string;
122
+ metricName: string;
123
+ currentValue: string;
124
+ comparisonValue: string;
125
+ absoluteValue: string;
126
+ growthValue: string;
127
+ changeRate: string;
128
+ contributionRate: string;
129
+ contributionToTotalRate: string;
130
+ contributionToParentRate: string;
131
+ dimensionValue: string;
132
+ absoluteChange: string;
133
+ factorAttribution: string;
134
+ dimensionAttribution: string;
121
135
  };
@@ -1,2 +1,6 @@
1
+ import { ErrorCode } from './types';
1
2
  export declare const DEFAULT_BASE_URL = "http://localhost";
2
- export type ParseMethod = 'json' | 'json-bigint' | 'text' | 'raw' | null | undefined;
3
+ export declare const ERROR_MESSAGES: Record<number, {
4
+ code: ErrorCode;
5
+ message: string;
6
+ }>;
@@ -1,74 +1,176 @@
1
1
  import { RawAxiosRequestHeaders } from 'axios';
2
- import { Host, InitConfig, ParseMethod, Protocol, RequestConfig } from './types';
2
+ import { AppError, Host, InitConfig, ParseMethod, Protocol, RequestConfig } from './types';
3
3
  declare class backService {
4
4
  private instance;
5
+ private abortControllers;
6
+ private allowDuplicate;
5
7
  baseURL: string;
6
8
  host: Host;
7
9
  protocol: Protocol;
8
10
  timeout: number;
9
11
  headers: RawAxiosRequestHeaders;
10
- constructor({ baseURL, host, protocol, timeout, headers }?: InitConfig);
12
+ constructor({ baseURL, host, protocol, timeout, headers, allowDuplicate, }?: InitConfig);
11
13
  get<T extends ParseMethod = 'json'>(requestConfig: RequestConfig & {
12
14
  parseMethod?: T;
13
15
  }): Promise<{
14
16
  message: string;
17
+ success: boolean;
15
18
  data?: undefined;
16
19
  } | {
17
20
  data: any;
21
+ success: boolean;
18
22
  message?: undefined;
23
+ } | {
24
+ data: null;
25
+ success: boolean;
26
+ message: string;
27
+ status: number;
28
+ error?: undefined;
29
+ } | {
30
+ data: null;
31
+ success: boolean;
32
+ error: AppError;
33
+ status: number | undefined;
34
+ message: string;
19
35
  }>;
20
36
  delete<T extends ParseMethod = 'json'>(requestConfig: RequestConfig & {
21
37
  parseMethod?: T;
22
38
  }): Promise<{
23
39
  message: string;
40
+ success: boolean;
24
41
  data?: undefined;
25
42
  } | {
26
43
  data: any;
44
+ success: boolean;
27
45
  message?: undefined;
46
+ } | {
47
+ data: null;
48
+ success: boolean;
49
+ message: string;
50
+ status: number;
51
+ error?: undefined;
52
+ } | {
53
+ data: null;
54
+ success: boolean;
55
+ error: AppError;
56
+ status: number | undefined;
57
+ message: string;
28
58
  }>;
29
59
  put<T extends ParseMethod = 'json'>(requestConfig: RequestConfig & {
30
60
  parseMethod?: T;
31
61
  }): Promise<{
32
62
  message: string;
63
+ success: boolean;
33
64
  data?: undefined;
34
65
  } | {
35
66
  data: any;
67
+ success: boolean;
36
68
  message?: undefined;
69
+ } | {
70
+ data: null;
71
+ success: boolean;
72
+ message: string;
73
+ status: number;
74
+ error?: undefined;
75
+ } | {
76
+ data: null;
77
+ success: boolean;
78
+ error: AppError;
79
+ status: number | undefined;
80
+ message: string;
37
81
  }>;
38
82
  post<T extends ParseMethod = 'json'>(requestConfig: RequestConfig & {
39
83
  parseMethod?: T;
40
84
  }): Promise<{
41
85
  message: string;
86
+ success: boolean;
42
87
  data?: undefined;
43
88
  } | {
44
89
  data: any;
90
+ success: boolean;
45
91
  message?: undefined;
92
+ } | {
93
+ data: null;
94
+ success: boolean;
95
+ message: string;
96
+ status: number;
97
+ error?: undefined;
98
+ } | {
99
+ data: null;
100
+ success: boolean;
101
+ error: AppError;
102
+ status: number | undefined;
103
+ message: string;
46
104
  }>;
47
105
  patch<T extends ParseMethod = 'json'>(requestConfig: RequestConfig & {
48
106
  parseMethod?: T;
49
107
  }): Promise<{
50
108
  message: string;
109
+ success: boolean;
51
110
  data?: undefined;
52
111
  } | {
53
112
  data: any;
113
+ success: boolean;
54
114
  message?: undefined;
115
+ } | {
116
+ data: null;
117
+ success: boolean;
118
+ message: string;
119
+ status: number;
120
+ error?: undefined;
121
+ } | {
122
+ data: null;
123
+ success: boolean;
124
+ error: AppError;
125
+ status: number | undefined;
126
+ message: string;
55
127
  }>;
56
128
  ping(): Promise<{
57
129
  message: string;
130
+ success: boolean;
58
131
  data?: undefined;
59
132
  } | {
60
133
  data: any;
134
+ success: boolean;
61
135
  message?: undefined;
136
+ } | {
137
+ data: null;
138
+ success: boolean;
139
+ message: string;
140
+ status: number;
141
+ error?: undefined;
142
+ } | {
143
+ data: null;
144
+ success: boolean;
145
+ error: AppError;
146
+ status: number | undefined;
147
+ message: string;
62
148
  }>;
63
149
  request<T extends ParseMethod = 'json'>(config: RequestConfig & {
64
150
  parseMethod?: T;
65
151
  }): Promise<{
66
152
  message: string;
153
+ success: boolean;
67
154
  data?: undefined;
68
155
  } | {
69
156
  data: any;
157
+ success: boolean;
70
158
  message?: undefined;
159
+ } | {
160
+ data: null;
161
+ success: boolean;
162
+ message: string;
163
+ status: number;
164
+ error?: undefined;
165
+ } | {
166
+ data: null;
167
+ success: boolean;
168
+ error: AppError;
169
+ status: number | undefined;
170
+ message: string;
71
171
  }>;
172
+ cancelRequest(url?: string, method?: string, params?: Record<string, unknown>, data?: unknown): void;
173
+ cancelAllRequests(): void;
72
174
  }
73
175
  declare const service: backService;
74
176
  export default service;
@@ -3,6 +3,20 @@ export type Protocol = 'http:' | 'https:' | undefined;
3
3
  export type Host = string;
4
4
  export type RequestTimeout = number | undefined;
5
5
  export type ParseMethod = 'json' | 'json-bigint' | 'text' | 'raw' | null | undefined;
6
+ export type ErrorCode = 'NETWORK_ERROR' | 'TIMEOUT' | 'BAD_REQUEST' | 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'SERVER_ERROR' | 'UNKNOWN';
7
+ export interface AppError {
8
+ code: ErrorCode;
9
+ message: string;
10
+ status: number | undefined;
11
+ originalError: unknown;
12
+ }
13
+ export interface ApiResponse<T = unknown> {
14
+ data: T | null;
15
+ success: boolean;
16
+ error?: AppError;
17
+ message?: string;
18
+ status?: number;
19
+ }
6
20
  export interface InitConfig {
7
21
  baseURL?: string;
8
22
  host?: Host;
@@ -10,5 +24,6 @@ export interface InitConfig {
10
24
  headers?: RawAxiosRequestHeaders;
11
25
  timeout?: RequestTimeout;
12
26
  retry?: number;
27
+ allowDuplicate?: boolean;
13
28
  }
14
29
  export type RequestConfig = AxiosRequestConfig & InitConfig;
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
2
  import { ChartJson } from '../Chart/ChartCodeRender/type';
3
- import { OptionType } from '../Chart/ChartControllers/TimeRange/types';
3
+ import { OptionType } from '../components/CustomTimeRange/types';
4
4
  import { TimeGrainType } from '../utils';
5
5
  export declare enum ChartType {
6
6
  Area = "area",// 面积图
@@ -16,7 +16,11 @@ export declare enum ChartType {
16
16
  Scatter = "scatter",//散点图
17
17
  VisText = "vis-text",
18
18
  Table = "table",//表格
19
- Indicator = "indicator"
19
+ PivotTable = "pivot-table",// 透视表
20
+ Indicator = "indicator",// 指标卡
21
+ Composite = "composite",// 组合图
22
+ Tabs = "tabs",// 通用 Tabs
23
+ AgentCharts = "agent-charts"
20
24
  }
21
25
  export declare const chartTypeOptions: {
22
26
  key: string;
@@ -39,7 +43,7 @@ declare const ChartCategory: {
39
43
  table: ChartType[];
40
44
  };
41
45
  export type ChartCategoryType = keyof typeof ChartCategory;
42
- export declare function getChartCategory(chartType: ChartType): ChartCategoryType | 'unknown';
46
+ export declare function getChartCategory(chartType?: ChartType): ChartCategoryType | 'unknown';
43
47
  export declare const handleChartTypeChange: (chartType: ChartType, preChartJson: ChartJson) => {
44
48
  type: ChartType;
45
49
  data: DataItem[];
@@ -55,6 +59,9 @@ export declare const handleChartTypeChange: (chartType: ChartType, preChartJson:
55
59
  columns?: import("../Chart/Dataset/types").FieldInfoItem[];
56
60
  timeGrain?: TimeGrainType;
57
61
  dataFormat?: import("../Chart/Dataset/types").DataFormat;
62
+ hideChartHeader?: boolean;
63
+ series?: any[];
64
+ agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
58
65
  };
59
66
  export type ChangeInfo = {
60
67
  metrics: string[];
@@ -79,6 +86,9 @@ export declare const handleChartDataSourceChange: ({ metrics, dimensions, timeGr
79
86
  columns?: import("../Chart/Dataset/types").FieldInfoItem[];
80
87
  timeGrain?: TimeGrainType;
81
88
  dataFormat?: import("../Chart/Dataset/types").DataFormat;
89
+ hideChartHeader?: boolean;
90
+ series?: any[];
91
+ agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
82
92
  };
83
93
  export type QueryDataInfo = {
84
94
  metrics?: OptionType[];
@@ -101,5 +111,8 @@ export declare const transformQueryData2ChartJson: ({ metrics: dataMetrics, dime
101
111
  columns?: import("../Chart/Dataset/types").FieldInfoItem[];
102
112
  timeGrain?: TimeGrainType;
103
113
  dataFormat?: import("../Chart/Dataset/types").DataFormat;
114
+ hideChartHeader?: boolean;
115
+ series?: any[];
116
+ agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
104
117
  };
105
118
  export {};
@@ -6,6 +6,7 @@ export type CommonGlobalConfig = {
6
6
  };
7
7
  export type VChartGlobalConfig = {
8
8
  color?: string[];
9
+ hideChartHeader?: boolean;
9
10
  [key: string]: any;
10
11
  };
11
12
  type ComponentsGlobalConfig = Partial<Record<Charts, Record<string, any>>>;
@@ -1,4 +1,5 @@
1
1
  import { FieldInfoItem, MetricFormat } from '../Chart/Dataset/types';
2
+ import { DataItem } from '../types';
2
3
  import { GenericDataType } from './data';
3
4
  import { TimeGrainValue } from './date';
4
5
  export declare const formatTimeTool: (value: string | number, formatStr?: string) => string | number;
@@ -6,10 +7,11 @@ export declare const getFieldTypeTool: (fieldInfo: FieldInfoItem[], fieldName: s
6
7
  export declare const formatTimeValueTool: (fieldInfo: FieldInfoItem[], fieldName: string, value: any, formatStr?: string) => any;
7
8
  export declare const formatTimestampTool: (fieldInfo: FieldInfoItem[] | undefined, fieldName: string, value: any) => any;
8
9
  export declare const formatNumberTool: (value: any, dataFormat: MetricFormat) => any;
9
- export declare const useTools: () => {
10
+ export declare const useTools: (data?: DataItem[]) => {
10
11
  formatTime: (value: string | number, formatStr?: string) => string | number;
11
12
  getFieldType: (fieldName: string, value?: any) => GenericDataType | undefined;
12
13
  formatValue: (fieldName: string, value: any, formatTimeStr?: string) => any;
13
14
  getAxesType: (fieldName: string) => "linear" | "band";
14
15
  };
16
+ export declare const generateFieldInfoFromData: (data: DataItem[], targetFieldName?: string) => FieldInfoItem[];
15
17
  export declare function estimateTimeGrain(data: any[], timeFieldNames: string[]): TimeGrainValue;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const version = "3.0.19";
1
+ declare const version = "3.1.0";
2
2
  export default version;
package/package.json CHANGED
@@ -1,112 +1,43 @@
1
1
  {
2
2
  "name": "@advt-gpt-chart/package",
3
- "private": false,
4
- "version": "3.0.19",
3
+ "version": "3.1.0",
4
+ "description": "ADVT GPT Chart - A React chart component library for GPT visualization",
5
5
  "type": "module",
6
+ "main": "./dist/index.umd.js",
7
+ "module": "./dist/index.es.js",
8
+ "typings": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.es.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.umd.js"
18
+ }
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
6
22
  "files": [
7
23
  "dist"
8
24
  ],
9
- "main": "dist/index.umd.js",
10
- "module": "dist/index.es.js",
11
- "typings": "dist/index.d.ts",
12
25
  "scripts": {
13
- "dev": "vite",
14
- "build": "vite build && tsc -p ./tsconfig.types.json",
15
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
16
- "lint-fix": "eslint . --fix",
17
- "preview": "vite preview",
18
- "storybook": "storybook dev -p 6006",
19
- "docs-dev": "dumi dev",
20
- "build-storybook": "storybook build",
21
- "test": "jest --config=jest.config.ts",
22
- "test:watch": "jest --config=jest.config.ts --watch",
23
- "test:coverage": "jest --config=jest.config.ts --coverage",
24
- "test:ci": "jest --config=jest.config.ts --ci --coverage --maxWorkers=2",
25
- "publish-local": "vite build && tsc -p ./tsconfig.types.json && yalc publish",
26
- "publish-local-update": "vite build && tsc -p ./tsconfig.types.json && yalc push --replace",
27
- "publish-gitlab": "npm publish --registry https://gitlab.wise-paas.com/api/v4/projects/8545/packages/npm/",
28
- "publish-npm": "npm publish --registry https://registry.npmjs.org/ --access public",
29
- "json-server": "json-server --watch ./public/db.json --port 3008"
30
- },
31
- "dependencies": {
32
- "@antv/event-emitter": "^0.1.3",
33
- "@codemirror/lang-sql": "^6.9.0",
34
- "@uiw/react-codemirror": "^4.24.1",
35
- "@visactor/react-vchart": "^2.0.3",
36
- "@visactor/vchart": "^2.0.3",
37
- "@visactor/vdataset": "^1.0.9",
38
- "@visactor/vmind": "^2.0.10",
39
- "@visactor/vtable": "^1.19.7",
40
- "antd": "^5.29.3",
41
- "axios": "^1.10.0",
42
- "classnames": "^2.5.1",
43
- "dayjs": "^1.11.13",
44
- "dom-to-image-more": "^3.6.0",
45
- "lodash-es": "^4.17.21",
46
- "nanoid": "^5.1.5",
47
- "react-intersection-observer": "^10.0.2",
48
- "react-intl": "^7.1.11",
49
- "react-markdown": "^10.1.0",
50
- "rehype-raw": "^7.0.0",
51
- "remark-gfm": "^4.0.1",
52
- "styled-components": "^6.1.18",
53
- "vite-plugin-svgr": "^4.3.0",
54
- "xlsx": "^0.18.5",
55
- "zustand": "^4.5.2"
56
- },
57
- "devDependencies": {
58
- "@ant-design/icons": "^6.1.0",
59
- "@ant-design/x": "^2.1.1",
60
- "@chromatic-com/storybook": "4.0.0",
61
- "@eslint/js": "^9.28.0",
62
- "@storybook/addon-actions": "^9.0.4",
63
- "@storybook/addon-essentials": "^8.6.14",
64
- "@storybook/addon-interactions": "^8.6.14",
65
- "@storybook/addon-links": "^9.0.4",
66
- "@storybook/addon-onboarding": "^9.0.4",
67
- "@storybook/blocks": "^8.6.14",
68
- "@storybook/react": "^9.0.4",
69
- "@storybook/react-vite": "^9.0.4",
70
- "@storybook/test": "^8.6.14",
71
- "@testing-library/dom": "^10.4.0",
72
- "@testing-library/jest-dom": "^6.6.3",
73
- "@testing-library/react": "^16.3.0",
74
- "@types/jest": "^29.5.14",
75
- "@types/lodash-es": "^4.17.12",
76
- "@types/node": "^22.15.29",
77
- "@types/react": "^18.2.79",
78
- "@types/react-dom": "^18.2.25",
79
- "@types/testing-library__jest-dom": "^6.0.0",
80
- "@typescript-eslint/eslint-plugin": "^8.33.1",
81
- "@typescript-eslint/parser": "^8.33.1",
82
- "@vitejs/plugin-basic-ssl": "^2.1.0",
83
- "@vitejs/plugin-react": "^4.5.1",
84
- "dumi": "^2.4.21",
85
- "eslint": "^9.28.0",
86
- "eslint-plugin-react": "^7.37.5",
87
- "eslint-plugin-react-hooks": "^5.2.0",
88
- "eslint-plugin-react-refresh": "^0.4.20",
89
- "eslint-plugin-simple-import-sort": "^12.1.1",
90
- "eslint-plugin-storybook": "^9.0.4",
91
- "globals": "^16.2.0",
92
- "identity-obj-proxy": "^3.0.0",
93
- "jest": "^29.7.0",
94
- "jest-environment-jsdom": "^29.7.0",
95
- "prettier": "^3.5.3",
96
- "react": "^18.2.0",
97
- "react-dom": "^18.2.0",
98
- "rollup-plugin-visualizer": "^6.0.3",
99
- "storybook": "^9.0.4",
100
- "terser": "^5.40.0",
101
- "ts-jest": "^29.3.4",
102
- "ts-jest-mock-import-meta": "^1.3.1",
103
- "ts-node": "^10.9.2",
104
- "tslib": "^2.8.1",
105
- "typescript": "^5.8.3",
106
- "typescript-eslint": "^8.33.1",
107
- "vite": "^6.3.5",
108
- "vite-plugin-compression": "^0.5.1"
26
+ "build": "cd .. && pnpm run build:chart",
27
+ "publish-local": "cd .. && pnpm run publish-local",
28
+ "publish-local-update": "cd .. && pnpm run publish-local-update",
29
+ "publish-npm": "npm publish --registry https://registry.npmjs.org/ --access public"
109
30
  },
31
+ "keywords": [
32
+ "react",
33
+ "chart",
34
+ "gpt",
35
+ "visualization",
36
+ "antd",
37
+ "vchart"
38
+ ],
39
+ "author": "",
40
+ "license": "MIT",
110
41
  "peerDependencies": {
111
42
  "antd": ">=4.0.0",
112
43
  "react": ">=17.0.0 <19.0.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes