@advt-gpt-chart/package 0.0.11 → 0.0.23

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 (118) hide show
  1. package/dist/Chart/ChartBase/constants.d.ts +101 -0
  2. package/dist/{VChartBase → Chart/ChartBase}/transformed.d.ts +1 -1
  3. package/dist/{VChartBase → Chart/ChartBase}/types.d.ts +5 -1
  4. package/dist/{ChartCodeRender → Chart/ChartCodeRender}/index.d.ts +1 -0
  5. package/dist/{ChartCodeRender → Chart/ChartCodeRender}/type.d.ts +16 -5
  6. package/dist/Chart/ChartCodeRender/visChart/ChartStoreContext.d.ts +18 -0
  7. package/dist/Chart/ChartCodeRender/visChart/VisChart.d.ts +3 -0
  8. package/dist/Chart/ChartCodeRender/visChart/style.d.ts +2 -0
  9. package/dist/Chart/ChartCodeRender/visChart/types.d.ts +16 -0
  10. package/dist/Chart/ChartControllers/Filter/FilterController.d.ts +9 -0
  11. package/dist/Chart/ChartControllers/Filter/FilterModal.d.ts +8 -0
  12. package/dist/Chart/ChartControllers/Filter/FiltersController.d.ts +7 -0
  13. package/dist/Chart/ChartControllers/Filter/styles.d.ts +6 -0
  14. package/dist/Chart/ChartControllers/Filter/types.d.ts +16 -0
  15. package/dist/Chart/ChartControllers/Filter/utils.d.ts +33 -0
  16. package/dist/Chart/ChartControllers/TimeRange/AdvancedContent.d.ts +7 -0
  17. package/dist/Chart/ChartControllers/TimeRange/CustomContent.d.ts +7 -0
  18. package/dist/Chart/ChartControllers/TimeRange/TimeRangePopover.d.ts +9 -0
  19. package/dist/Chart/ChartControllers/TimeRange/index.d.ts +7 -0
  20. package/dist/Chart/ChartControllers/TimeRange/styles.d.ts +12 -0
  21. package/dist/Chart/ChartControllers/TimeRange/types.d.ts +55 -0
  22. package/dist/Chart/ChartControllers/TimeRange/utils.d.ts +77 -0
  23. package/dist/Chart/ChartControllers/index.d.ts +15 -0
  24. package/dist/Chart/ChartControllers/style.d.ts +3 -0
  25. package/dist/Chart/ChartControllers/utils.d.ts +12 -0
  26. package/dist/Chart/ChartEvents/ChartContextMenu/ChartContextMenu.d.ts +10 -0
  27. package/dist/Chart/ChartEvents/ChartContextMenu/styles.d.ts +1 -0
  28. package/dist/Chart/ChartEvents/ChartContextMenu/utils.d.ts +5 -0
  29. package/dist/Chart/ChartEvents/DrillBy/DrillByChart.d.ts +7 -0
  30. package/dist/Chart/ChartEvents/DrillBy/styles.d.ts +1 -0
  31. package/dist/Chart/ChartWrapper/ChartHeader.d.ts +5 -0
  32. package/dist/Chart/ChartWrapper/ChartWrapper.d.ts +9 -0
  33. package/dist/Chart/ChartWrapper/style.d.ts +9 -0
  34. package/dist/Chart/ChartWrapper/utils.d.ts +22 -0
  35. package/dist/Chart/DataSource/index.d.ts +9 -0
  36. package/dist/Chart/DataSource/metricInsight.d.ts +10 -0
  37. package/dist/Chart/DataSource/simpleJson.d.ts +0 -0
  38. package/dist/Chart/DataSource/types.d.ts +24 -0
  39. package/dist/Chart/DataSource/useChartDataQuery.d.ts +15 -0
  40. package/dist/Chart/Dataset/types.d.ts +7 -0
  41. package/dist/{Area → Charts/Area}/types.d.ts +1 -1
  42. package/dist/{Bar → Charts/Bar}/types.d.ts +1 -1
  43. package/dist/{Donut → Charts/Donut}/types.d.ts +1 -1
  44. package/dist/{Funnel → Charts/Funnel}/types.d.ts +1 -1
  45. package/dist/{Gauge → Charts/Gauge}/types.d.ts +1 -1
  46. package/dist/{Heatmap → Charts/Heatmap}/types.d.ts +1 -1
  47. package/dist/{Indicator → Charts/Indicator}/types.d.ts +2 -2
  48. package/dist/{Line → Charts/Line}/types.d.ts +1 -1
  49. package/dist/{Pie → Charts/Pie}/types.d.ts +1 -1
  50. package/dist/{Radar → Charts/Radar}/types.d.ts +1 -1
  51. package/dist/{Radar → Charts/Radar}/utils.d.ts +1 -1
  52. package/dist/{Rank → Charts/Rank}/types.d.ts +1 -1
  53. package/dist/{Scatter → Charts/Scatter}/types.d.ts +1 -1
  54. package/dist/{Table → Charts/Table}/types.d.ts +4 -2
  55. package/dist/ConfigProvider/hooks/useConfig.d.ts +14 -11
  56. package/dist/GPTVis/Lite.d.ts +4 -0
  57. package/dist/GPTVis/hooks/useContext.d.ts +1 -0
  58. package/dist/GPTVis/hooks/useStore.d.ts +43 -0
  59. package/dist/components/ErrorMessage.d.ts +7 -0
  60. package/dist/components/FormatOptions.d.ts +1 -0
  61. package/dist/components/Loading.d.ts +5 -0
  62. package/dist/components/VButton.d.ts +5 -0
  63. package/dist/components/VCalendar.d.ts +6 -0
  64. package/dist/components/VSelect.d.ts +5 -0
  65. package/dist/components/VTimePicker.d.ts +5 -0
  66. package/dist/export.d.ts +26 -26
  67. package/dist/index.d.ts +2 -2
  68. package/dist/index.es.js +176125 -109719
  69. package/dist/index.es.js.gz +0 -0
  70. package/dist/index.umd.js +10206 -210
  71. package/dist/index.umd.js.gz +0 -0
  72. package/dist/locale/antdLocale.d.ts +5 -0
  73. package/dist/locale/dayjsLocale.d.ts +2 -0
  74. package/dist/locale/en-US.d.ts +95 -0
  75. package/dist/locale/index.d.ts +7 -0
  76. package/dist/locale/utils.d.ts +7 -0
  77. package/dist/locale/zh-CN.d.ts +95 -0
  78. package/dist/locale/zh-TW.d.ts +91 -0
  79. package/dist/services/constants.d.ts +2 -0
  80. package/dist/services/index.d.ts +74 -0
  81. package/dist/services/types.d.ts +14 -0
  82. package/dist/theme/antdTheme.d.ts +15 -0
  83. package/dist/types/chart.d.ts +50 -1
  84. package/dist/types/config.d.ts +1 -0
  85. package/dist/types/index.d.ts +2 -2
  86. package/dist/utils/data.d.ts +17 -0
  87. package/dist/utils/date.d.ts +13 -1
  88. package/dist/utils/downloadAsImage.d.ts +11 -0
  89. package/dist/utils/index.d.ts +2 -0
  90. package/dist/utils/useTools.d.ts +6 -0
  91. package/dist/version.d.ts +1 -1
  92. package/package.json +17 -7
  93. package/dist/ChartCodeRender/Loading.d.ts +0 -2
  94. package/dist/ChartCodeRender/VisChart.d.ts +0 -11
  95. package/dist/ChartContainer/chartContextProvider.d.ts +0 -10
  96. package/dist/ChartContainer/index.d.ts +0 -9
  97. package/dist/ChartContainer/style.d.ts +0 -5
  98. package/dist/VChartBase/constants.d.ts +0 -54
  99. /package/dist/{VChartBase → Chart/ChartBase}/index.d.ts +0 -0
  100. /package/dist/{VChartBase → Chart/ChartBase}/tooltip.d.ts +0 -0
  101. /package/dist/{VChartBase → Chart/ChartBase}/utils.d.ts +0 -0
  102. /package/dist/{Area → Charts/Area}/index.d.ts +0 -0
  103. /package/dist/{Bar → Charts/Bar}/index.d.ts +0 -0
  104. /package/dist/{Donut → Charts/Donut}/index.d.ts +0 -0
  105. /package/dist/{Funnel → Charts/Funnel}/index.d.ts +0 -0
  106. /package/dist/{Gauge → Charts/Gauge}/index.d.ts +0 -0
  107. /package/dist/{Heatmap → Charts/Heatmap}/index.d.ts +0 -0
  108. /package/dist/{Indicator → Charts/Indicator}/contants.d.ts +0 -0
  109. /package/dist/{Indicator → Charts/Indicator}/index.d.ts +0 -0
  110. /package/dist/{Indicator → Charts/Indicator}/styles.d.ts +0 -0
  111. /package/dist/{Line → Charts/Line}/index.d.ts +0 -0
  112. /package/dist/{Pie → Charts/Pie}/index.d.ts +0 -0
  113. /package/dist/{Radar → Charts/Radar}/index.d.ts +0 -0
  114. /package/dist/{Rank → Charts/Rank}/index.d.ts +0 -0
  115. /package/dist/{Scatter → Charts/Scatter}/index.d.ts +0 -0
  116. /package/dist/{Table → Charts/Table}/index.d.ts +0 -0
  117. /package/dist/{Table → Charts/Table}/theme.d.ts +0 -0
  118. /package/dist/{constants → theme}/light.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ import { FilterItem } from '../ChartControllers/Filter/types';
2
+ import { TimeRange } from '../ChartControllers/TimeRange/types';
3
+ import { FieldInfoItem } from '../Dataset/types';
4
+ export declare const DataSourceTypes: {
5
+ METRIC: string;
6
+ SJ: string;
7
+ };
8
+ export type DataSourceType = 'metricInsight' | 'simpleJson';
9
+ export type DataSource = {
10
+ type: DataSourceType;
11
+ url: string;
12
+ params?: {
13
+ metricId: string[];
14
+ timeRange?: TimeRange;
15
+ timeGrain?: string;
16
+ filters?: FilterItem[];
17
+ };
18
+ mql?: any;
19
+ };
20
+ export type DataSourceQueryInfo = {
21
+ metrics?: any[];
22
+ dimensions?: any[];
23
+ fieldInfo?: FieldInfoItem[];
24
+ };
@@ -0,0 +1,15 @@
1
+ import { QueryData } from '../ChartControllers/TimeRange/types';
2
+ import { DataSourceType } from './types';
3
+ type QueryChartData = {
4
+ queryData: QueryData;
5
+ };
6
+ type DrillByQueryData = QueryChartData & {
7
+ isHasTime: boolean;
8
+ setDrillLoading: (loading: boolean) => void;
9
+ setDrillError: (error: any) => void;
10
+ };
11
+ export declare const useChartDataQuery: (dataSourceType: DataSourceType) => {
12
+ queryChartData: (queryData: QueryData, isInit?: Boolean) => Promise<void>;
13
+ queryDrillByChartData: ({ queryData, setDrillLoading, setDrillError, }: DrillByQueryData) => Promise<void>;
14
+ };
15
+ export {};
@@ -0,0 +1,7 @@
1
+ export type FieldDataType = 'BIGINT' | 'TIMESTAMP' | 'STRING';
2
+ export type FieldInfoItem = {
3
+ fieldName?: string;
4
+ name?: string;
5
+ type?: FieldDataType | string;
6
+ role?: string;
7
+ };
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type AreaDataItem = DataItem & {};
3
3
  export type AreaConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type BarDataItem = DataItem & {};
3
3
  export type BarConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type DonutDataItem = DataItem & {};
3
3
  export type DonutConfig = BaseVChartConfig & {
4
4
  nameField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type FunnelConfig = BaseVChartConfig & {
4
4
  nameField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type GaugeConfig = BaseVChartConfig & {
4
4
  nameField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type HeatmapDataItem = DataItem & {};
3
3
  export type HeatmapConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
- import type { DataItem } from '../types';
3
- import { VChartGlobalConfig } from '../types/config';
2
+ import type { DataItem } from '../../types';
3
+ import { VChartGlobalConfig } from '../../types/config';
4
4
  export type TableDataItem = DataItem & {};
5
5
  export type IndicatorConfig = VChartGlobalConfig & {
6
6
  data: TableDataItem[];
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type LineConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type PieConfig = BaseVChartConfig & {
4
4
  nameField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type RadarConfig = BaseVChartConfig & {
4
4
  nameField: string;
@@ -1,2 +1,2 @@
1
- import { DataItem } from "../types";
1
+ import { DataItem } from "../../types";
2
2
  export declare const findRadarMaxValues: (item: DataItem, dimensions: string[]) => number | null;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type RankDataItem = DataItem & {};
3
3
  export type RankConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,4 +1,4 @@
1
- import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../types';
1
+ import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
2
2
  export type LineDataItem = DataItem & {};
3
3
  export type ScatterConfig = BaseVChartConfig & {
4
4
  xField: string;
@@ -1,7 +1,9 @@
1
- import type { BaseChartProps, DataItem } from '../types';
2
- import { CommonGlobalConfig } from '../types/config';
1
+ import type { BaseChartProps, DataItem } from '../../types';
2
+ import { CommonGlobalConfig } from '../../types/config';
3
3
  export type TableDataItem = DataItem & {};
4
4
  export type TableConfig = CommonGlobalConfig & {
5
5
  data: TableDataItem[];
6
+ metrics?: string[];
7
+ dimensions?: string[];
6
8
  };
7
9
  export type TableProps = BaseChartProps & Partial<TableConfig>;
@@ -1,19 +1,20 @@
1
- import { AreaConfig } from '../../Area/types';
2
- import { BarConfig } from '../../Bar/types';
3
- import { FunnelConfig } from '../../Funnel/types';
4
- import { GaugeConfig } from '../../Gauge/types';
5
- import { HeatmapConfig } from '../../Heatmap/types';
6
- import { IndicatorConfig } from '../../Indicator/types';
7
- import { LineConfig } from '../../Line/types';
8
- import { PieConfig } from '../../Pie/types';
9
- import { RadarConfig } from '../../Radar/types';
10
- import { ScatterConfig } from '../../Scatter/types';
11
- import { TableConfig } from '../../Table/types';
1
+ import { AreaConfig } from '../../Charts/Area/types';
2
+ import { BarConfig } from '../../Charts/Bar/types';
3
+ import { FunnelConfig } from '../../Charts/Funnel/types';
4
+ import { GaugeConfig } from '../../Charts/Gauge/types';
5
+ import { HeatmapConfig } from '../../Charts/Heatmap/types';
6
+ import { IndicatorConfig } from '../../Charts/Indicator/types';
7
+ import { LineConfig } from '../../Charts/Line/types';
8
+ import { PieConfig } from '../../Charts/Pie/types';
9
+ import { RadarConfig } from '../../Charts/Radar/types';
10
+ import { ScatterConfig } from '../../Charts/Scatter/types';
11
+ import { TableConfig } from '../../Charts/Table/types';
12
12
  import { type Charts } from '../../types';
13
13
  export declare function useComponentGlobalConfig(name: Charts): Record<string, any> | undefined;
14
14
  export declare function useCommonGlobalConfig(name: Charts): {
15
15
  [x: string]: any;
16
16
  theme?: string;
17
+ lang?: string;
17
18
  };
18
19
  export type ChartConfig = AreaConfig | BarConfig | FunnelConfig | GaugeConfig | HeatmapConfig | LineConfig | PieConfig | RadarConfig | ScatterConfig | TableConfig | IndicatorConfig;
19
20
  export declare function useVChartConfig<T1 extends ChartConfig>(name: Charts, defaultConfig: Partial<T1> | ((props: T1) => any), props: Partial<T1>): {
@@ -21,6 +22,7 @@ export declare function useVChartConfig<T1 extends ChartConfig>(name: Charts, de
21
22
  [x: string]: any;
22
23
  color?: string[];
23
24
  theme?: string;
25
+ lang?: string;
24
26
  } & Partial<T1>;
25
27
  options: any;
26
28
  };
@@ -28,5 +30,6 @@ export declare function useCommonConfig<T>(name: Charts, props: Partial<T>): {
28
30
  transformedProps: {
29
31
  [x: string]: any;
30
32
  theme?: string;
33
+ lang?: string;
31
34
  } & Partial<T>;
32
35
  };
@@ -13,6 +13,10 @@ export interface GPTVisLiteProps extends Options {
13
13
  * 用于子组件与容器组件通信
14
14
  */
15
15
  eventSubs?: Record<string, (data?: any) => void>;
16
+ /**
17
+ * 渲染模式,默认为 markdown
18
+ */
19
+ renderMode?: 'json' | 'md';
16
20
  }
17
21
  export { useEventPublish };
18
22
  declare const _default: React.NamedExoticComponent<GPTVisLiteProps>;
@@ -2,6 +2,7 @@ import type EventEmitter from '@antv/event-emitter';
2
2
  import React from 'react';
3
3
  type GPTVisContextValue = {
4
4
  eventBus: EventEmitter;
5
+ theme?: string;
5
6
  };
6
7
  export declare const GPTVisContext: React.Context<GPTVisContextValue>;
7
8
  export declare function useGPTVisContext<T = GPTVisContextValue>(): T;
@@ -0,0 +1,43 @@
1
+ import { ChartJson } from '../../Chart/ChartCodeRender/type';
2
+ import { ChartControllersState } from '../../Chart/ChartControllers';
3
+ import { DataSourceQueryInfo } from '../../Chart/DataSource/types';
4
+ import { BaseChartProps } from '../../types';
5
+ export interface ContextMenu {
6
+ visible: boolean;
7
+ clientX?: number;
8
+ clientY?: number;
9
+ selected?: any;
10
+ }
11
+ export interface DrillBy {
12
+ visible: boolean;
13
+ config?: {
14
+ history?: any[];
15
+ current?: any;
16
+ };
17
+ chartState?: any;
18
+ }
19
+ export interface QueryError {
20
+ visible: boolean;
21
+ title: string;
22
+ message: string;
23
+ }
24
+ export interface VizChartState {
25
+ theme: string;
26
+ chartLoading?: boolean;
27
+ chartJson: ChartJson;
28
+ controllerConfig: ChartControllersState;
29
+ contextMenu: ContextMenu;
30
+ drillBy: DrillBy;
31
+ dataSourceQueryInfo: DataSourceQueryInfo;
32
+ error: QueryError;
33
+ setTheme: (theme: string) => void;
34
+ setLoading: (loading: boolean) => void;
35
+ setChartJson: (chartJson: ChartJson) => void;
36
+ setControllerConfig: (controller: ChartControllersState) => void;
37
+ setContextMenu: (contextMenu: ContextMenu) => void;
38
+ setChartDrillBy: (drillBy: DrillBy) => void;
39
+ setDataSourceQueryInfo: (dataSourceQueryInfo: DataSourceQueryInfo) => void;
40
+ setError: (error: QueryError) => void;
41
+ }
42
+ export type Props = BaseChartProps & ChartJson;
43
+ export declare const useChartStore: <T>(chartId: string, chartProps: Props, selector: (state: VizChartState) => T) => T;
@@ -0,0 +1,7 @@
1
+ interface ErrorProps {
2
+ visible: boolean;
3
+ title: string;
4
+ message: string;
5
+ }
6
+ declare const ErrorMessage: ({ visible, title, message }: ErrorProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export default ErrorMessage;
@@ -0,0 +1 @@
1
+ export declare const formatOptions: (options: any[] | undefined) => any[];
@@ -0,0 +1,5 @@
1
+ interface LoadingProps {
2
+ loadingText?: string;
3
+ }
4
+ declare const Loading: ({ loadingText }: LoadingProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default Loading;
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from 'antd';
2
+ interface VButtonProps extends ButtonProps {
3
+ }
4
+ export declare const VButton: import("react").ForwardRefExoticComponent<VButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CalendarProps } from 'antd';
2
+ import type { Dayjs } from 'dayjs';
3
+ interface VCalendarProps extends CalendarProps<Dayjs> {
4
+ }
5
+ export declare const VCalendar: (props: VCalendarProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import { SelectProps } from 'antd';
2
+ interface VSelectProps extends SelectProps {
3
+ }
4
+ export declare const VSelect: (props: VSelectProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { TimePickerProps } from 'antd';
2
+ interface VTimePickerProps extends TimePickerProps {
3
+ }
4
+ export declare const VTimePicker: (props: VTimePickerProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
package/dist/export.d.ts CHANGED
@@ -1,33 +1,33 @@
1
1
  import React from 'react';
2
2
  /********** Vcharts chart **********/
3
- import { default as Area } from './Area';
4
- import { AreaProps } from './Area/types';
5
- import { default as Bar } from './Bar';
6
- import type { BarProps } from './Bar/types';
7
- import { default as Donut } from './Donut';
8
- import type { DonutProps } from './Donut/types';
9
- import { default as Funnel } from './Funnel';
10
- import type { FunnelProps } from './Funnel/types';
11
- import { default as Gauge } from './Gauge';
12
- import type { GaugeProps } from './Gauge/types';
13
- import { default as Heatmap } from './Heatmap';
14
- import type { HeatmapProps } from './Heatmap/types';
3
+ import { default as Area } from './Charts/Area';
4
+ import { AreaProps } from './Charts/Area/types';
5
+ import { default as Bar } from './Charts/Bar';
6
+ import type { BarProps } from './Charts/Bar/types';
7
+ import { default as Donut } from './Charts/Donut';
8
+ import type { DonutProps } from './Charts/Donut/types';
9
+ import { default as Funnel } from './Charts/Funnel';
10
+ import type { FunnelProps } from './Charts/Funnel/types';
11
+ import { default as Gauge } from './Charts/Gauge';
12
+ import type { GaugeProps } from './Charts/Gauge/types';
13
+ import { default as Heatmap } from './Charts/Heatmap';
14
+ import type { HeatmapProps } from './Charts/Heatmap/types';
15
15
  /********** Indicator *********/
16
- import { default as Indicator } from './Indicator';
17
- import type { IndicatorProps } from './Indicator/types';
18
- import { default as Line } from './Line';
19
- import type { LineProps } from './Line/types';
20
- import { default as Pie } from './Pie';
21
- import type { PieProps } from './Pie/types';
22
- import { default as Radar } from './Radar';
23
- import type { RadarProps } from './Radar/types';
24
- import { default as Rank } from './Rank';
25
- import type { RankProps } from './Rank/types';
26
- import { default as Scatter } from './Scatter';
27
- import type { ScatterProps } from './Scatter/types';
16
+ import { default as Indicator } from './Charts/Indicator';
17
+ import type { IndicatorProps } from './Charts/Indicator/types';
18
+ import { default as Line } from './Charts/Line';
19
+ import type { LineProps } from './Charts/Line/types';
20
+ import { default as Pie } from './Charts/Pie';
21
+ import type { PieProps } from './Charts/Pie/types';
22
+ import { default as Radar } from './Charts/Radar';
23
+ import type { RadarProps } from './Charts/Radar/types';
24
+ import { default as Rank } from './Charts/Rank';
25
+ import type { RankProps } from './Charts/Rank/types';
26
+ import { default as Scatter } from './Charts/Scatter';
27
+ import type { ScatterProps } from './Charts/Scatter/types';
28
28
  /********** Table **********/
29
- import { default as Table } from './Table';
30
- import type { TableProps } from './Table/types';
29
+ import { default as Table } from './Charts/Table';
30
+ import type { TableProps } from './Charts/Table/types';
31
31
  /********** NTV **********/
32
32
  export { VisText, type VisTextProps } from './Text';
33
33
  export { Area, type AreaProps, Bar, type BarProps, Donut, type DonutProps, Funnel, type FunnelProps, Gauge, type GaugeProps, Heatmap, type HeatmapProps, Indicator, type IndicatorProps, Line, type LineProps, Pie, type PieProps, Radar, type RadarProps, Rank, type RankProps, Scatter, type ScatterProps, Table, type TableProps, };
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ export * from './export';
3
3
  /********** export types **********/
4
4
  export * from './types';
5
5
  /********** export GPTVis **********/
6
- export { withChartCode, withDefaultChartCode } from './ChartCodeRender';
7
- export type { CodeBlockComponent, WithChartCodeOptions } from './ChartCodeRender/type';
6
+ export { withChartCode, withDefaultChartCode } from './Chart/ChartCodeRender';
7
+ export type { CodeBlockComponent, WithChartCodeOptions } from './Chart/ChartCodeRender/type';
8
8
  export { default as ConfigProvider, type ConfigProviderProps } from './ConfigProvider';
9
9
  export { default as GPTVis, type GPTVisProps } from './GPTVis';
10
10
  export { default as GPTVisLite, type GPTVisLiteProps, useEventPublish } from './GPTVis/Lite';