@topkit/analytics-charts 35.0.1-alpha-FX-2759-quill-load.10 → 35.0.1
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/AnalyticsChart/AnalyticsChart.d.ts +1 -13
- package/AnalyticsChart/AnalyticsChart.js.map +1 -1
- package/AnalyticsChart/index.d.ts +0 -1
- package/AnalyticsChart/types.d.ts +13 -0
- package/AnalyticsChart/types.js +2 -0
- package/AnalyticsChart/types.js.map +1 -0
- package/package.json +4 -5
- package/utils/get-x-axis-ticks/get-x-axis-ticks.d.ts +1 -1
- package/utils/to-chart-format/to-chart-format.d.ts +1 -1
- package/utils/to-highlight-format/to-highlight-format.d.ts +1 -1
- package/utils/to-line-config-format/to-line-config-format.d.ts +1 -1
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseLineChartProps } from '@toptal/picasso-charts';
|
|
3
|
-
|
|
4
|
-
export declare type Point = {
|
|
5
|
-
id: string;
|
|
6
|
-
values: Record<string, number | null>;
|
|
7
|
-
};
|
|
8
|
-
export declare type Highlight = {
|
|
9
|
-
data: string[];
|
|
10
|
-
color: string;
|
|
11
|
-
};
|
|
12
|
-
export declare type ReferenceLine = {
|
|
13
|
-
data: Record<string, number>;
|
|
14
|
-
color: string;
|
|
15
|
-
};
|
|
3
|
+
import { Point, Highlight, ReferenceLine, ChartGranularity } from './types';
|
|
16
4
|
export declare type Props = BaseLineChartProps & {
|
|
17
5
|
/**
|
|
18
6
|
* A record of data points to be rendered as a line chart
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsChart.js","sourceRoot":"","sources":["../../src/AnalyticsChart/AnalyticsChart.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAsB,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEtE,OAA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E,CAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,CAAC,CACpD,CAAA;IAED,OAAO,CACL,oBAAC,SAAS,kBACR,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,cAAc,IAAI,IAAI,EAClC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,WAAW,CAAC,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,CAAC,EACrE,aAAa,EAAE,MAAM,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,EACpD,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,IACpE,IAAI,EACR,CACH,CAAA;AACH,CAAC,CAAA;AAED,cAAc,CAAC,YAAY,GAAG;IAC5B,QAAQ,EAAE,GAAG;IACb,gBAAgB,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK;CAC3C,CAAA;AAED,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAA;AAE7C,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type ChartGranularity = 'month' | 'week' | 'day' | 'hour';
|
|
2
|
+
export declare type Point = {
|
|
3
|
+
id: string;
|
|
4
|
+
values: Record<string, number | null>;
|
|
5
|
+
};
|
|
6
|
+
export declare type Highlight = {
|
|
7
|
+
data: string[];
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type ReferenceLine = {
|
|
11
|
+
data: Record<string, number>;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/AnalyticsChart/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topkit/analytics-charts",
|
|
3
|
-
"version": "35.0.1
|
|
3
|
+
"version": "35.0.1",
|
|
4
4
|
"description": "Charts utilities",
|
|
5
5
|
"author": "Toptal",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@toptal/picasso-charts": "^38.0.0",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"typescript": "4.6.x",
|
|
27
|
+
"react": ">=16.12.0 && < 19.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/d3": "^6.7.4",
|
|
@@ -34,6 +34,5 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"d3": "^6.7.0",
|
|
36
36
|
"d3-array": "^2.12.1"
|
|
37
|
-
}
|
|
38
|
-
"gitHead": "c126de9517cd02ca4bd63609253c609a012c9177"
|
|
37
|
+
}
|
|
39
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { OrderedChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
-
import { ChartGranularity } from '../../AnalyticsChart';
|
|
2
|
+
import { ChartGranularity } from '../../AnalyticsChart/types';
|
|
3
3
|
declare const getXAxisTicks: (orderedData: OrderedChartDataPoint[], granularity?: ChartGranularity | undefined) => number[];
|
|
4
4
|
export default getXAxisTicks;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
-
import { Point, ReferenceLine } from './../../AnalyticsChart';
|
|
2
|
+
import { Point, ReferenceLine } from './../../AnalyticsChart/types';
|
|
3
3
|
declare const toChartFormat: (data: Point[], referenceLines: ReferenceLine[] | undefined, xAxisKey: string, formatLabel: (label: string) => string) => ChartDataPoint[];
|
|
4
4
|
export default toChartFormat;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChartDataPoint, HighlightConfig } from '@toptal/picasso-charts';
|
|
2
|
-
import { Highlight } from './../../AnalyticsChart';
|
|
2
|
+
import { Highlight } from './../../AnalyticsChart/types';
|
|
3
3
|
declare const toHighlightFormat: (chartData: ChartDataPoint[], highlights: Highlight[], xAxisKey: string, formatLabel: (label: string) => string) => HighlightConfig[];
|
|
4
4
|
export default toHighlightFormat;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LineConfig } from '@toptal/picasso-charts';
|
|
2
|
-
import { ReferenceLine } from './../../AnalyticsChart/
|
|
2
|
+
import { ReferenceLine } from './../../AnalyticsChart/types';
|
|
3
3
|
declare const toLineConfigFormat: (lineConfig: LineConfig, referenceLines: ReferenceLine[]) => LineConfig;
|
|
4
4
|
export default toLineConfigFormat;
|