@topkit/analytics-charts 42.0.2-alpha-FX-NULL-test-pull-request-4486a72c0.62 → 43.0.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.
- package/AnalyticsChart/AnalyticsChart.d.ts +2 -2
- package/AnalyticsChart/AnalyticsChart.js.map +1 -1
- package/CategoriesChart/CategoriesChart.d.ts +2 -2
- package/CategoriesChart/CategoriesChart.js.map +1 -1
- package/CategoriesChart/utils/format-data/format-data.d.ts +1 -1
- package/CategoriesChartTooltip/CategoriesChartTooltip.d.ts +1 -1
- package/CategoriesChartTooltip/utils/get-display-texts/get-display-texts.d.ts +1 -1
- package/CategoriesChartTooltip/utils/get-display-texts/get-display-texts.js.map +1 -1
- package/package.json +5 -6
- package/utils/get-x-axis-ticks/get-x-axis-ticks.d.ts +2 -2
- package/utils/to-chart-format/to-chart-format.d.ts +2 -2
- package/utils/to-highlight-format/to-highlight-format.d.ts +2 -2
- package/utils/to-line-config-format/to-line-config-format.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseLineChartProps } from '@toptal/picasso-charts';
|
|
3
|
-
import { Point, Highlight, ReferenceLine, ChartGranularity } from './types';
|
|
2
|
+
import type { BaseLineChartProps } from '@toptal/picasso-charts';
|
|
3
|
+
import type { Point, Highlight, ReferenceLine, ChartGranularity } from './types';
|
|
4
4
|
export declare type Props = BaseLineChartProps & {
|
|
5
5
|
/**
|
|
6
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;
|
|
1
|
+
{"version":3,"file":"AnalyticsChart.js","sourceRoot":"","sources":["../../src/AnalyticsChart/An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c,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BarChartProps } from '@toptal/picasso-charts';
|
|
3
|
-
import { DataItem, LabelMap, TooltipMap } from './types';
|
|
2
|
+
import type { BarChartProps } from '@toptal/picasso-charts';
|
|
3
|
+
import type { DataItem, LabelMap, TooltipMap } from './types';
|
|
4
4
|
export declare type Props = Pick<BarChartProps<string>, 'width' | 'height' | 'isAnimationActive'> & {
|
|
5
5
|
data: DataItem[];
|
|
6
6
|
labels: LabelMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoriesChart.js","sourceRoot":"","sources":["../../src/CategoriesChart/CategoriesChart.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"CategoriesChart.js","sourceRoot":"","sources":["../../src/CategoriesChart/CategoriesChart.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAGjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAW9D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAKxB,EAAE,EAAE;QALoB,EAC9B,IAAI,EACJ,MAAM,EACN,QAAQ,OAEF,EADH,SAAS,cAJkB,8BAK/B,CADa;IAEZ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IAEzE,MAAM,gBAAgB,GAAG,CAAC,EACxB,KAAK,EACL,OAAO,GAIR,EAAE,EAAE,CACH,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAE3E,OAAO,CACL,oBAAC,QAAQ,kBACP,QAAQ,EAAC,OAAO,EAChB,IAAI,EAAE,SAAS,EACf,OAAO,QACP,gBAAgB,EAAE,gBAAgB,EAClC,aAAa;QACX,kJAAkJ;QAClJ,oBAAC,sBAAsB,IAAC,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,EAEpE,WAAW,EAAE,QAAQ,IACjB,SAAS,EACb,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,CAAC,YAAY,GAAG,EAAE,CAAA;AAEjC,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAA;AAE/C,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-display-texts.js","sourceRoot":"","sources":["../../../../src/CategoriesChartTooltip/utils/get-display-texts/get-display-texts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-display-texts.js","sourceRoot":"","sources":["../../../../src/CategoriesChartTooltip/utils/get-display-texts/get-display-texts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAUzD,MAAM,OAAO,GAAG,CAAC,EACf,cAAc,EACd,cAAc,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EACpC,QAAQ,EACR,OAAO,GAMR,EAAE,EAAE,CACH,cAAc;KACX,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KAC9B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvB,GAAG,EAAE,GAAG,OAAO,IAAI,EAAE,EAAE;IACvB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;IAClC,KAAK;IACL,KAAK,EAAE,QAAQ,CAAC;QACd,OAAO;QACP,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;KACvC,CAAC;CACH,CAAC,CAAC,CAAA;AAEP,MAAM,eAAe,GAAG,CAAC,EACvB,WAAW,EACX,QAAQ,EACR,cAAc,GACQ,EAAE,EAAE;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,GACpE,WAAW,CAAC,MAAM,CAAA;IAEpB,OAAO;QACL,SAAS,EAAE,OAAO,CAAC;YACjB,cAAc,EAAE,kBAAkB;YAClC,cAAc;YACd,QAAQ;YACR,OAAO,EAAE,MAAM;SAChB,CAAC;QACF,SAAS,EAAE,OAAO,CAAC;YACjB,cAAc,EAAE,kBAAkB;YAClC,cAAc;YACd,QAAQ;YACR,OAAO,EAAE,MAAM;SAChB,CAAC;KACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topkit/analytics-charts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0",
|
|
4
4
|
"description": "Charts utilities",
|
|
5
5
|
"author": "Toptal",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"url": "https://github.com/toptal/picasso/issues"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@toptal/picasso-charts": "^
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"@toptal/picasso-charts": "^46.0.0",
|
|
26
|
+
"typescript": "~4.7.0",
|
|
27
|
+
"react": ">=16.12.0 < 19.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/d3": "^7.4.0",
|
|
@@ -34,6 +34,5 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"d3": "^7.8.2",
|
|
36
36
|
"d3-array": "^3.2.2"
|
|
37
|
-
}
|
|
38
|
-
"gitHead": "4486a72c0cc67c575e9d46bc0995e385f4cdc503"
|
|
37
|
+
}
|
|
39
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderedChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
-
import { ChartGranularity } from '../../AnalyticsChart/types';
|
|
1
|
+
import type { OrderedChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
+
import type { ChartGranularity } from '../../AnalyticsChart/types';
|
|
3
3
|
declare const getXAxisTicks: (orderedData: OrderedChartDataPoint[], granularity?: ChartGranularity) => number[];
|
|
4
4
|
export default getXAxisTicks;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
-
import { Point, ReferenceLine } from './../../AnalyticsChart/types';
|
|
1
|
+
import type { ChartDataPoint } from '@toptal/picasso-charts';
|
|
2
|
+
import type { 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
|
-
import { ChartDataPoint, HighlightConfig } from '@toptal/picasso-charts';
|
|
2
|
-
import { Highlight } from './../../AnalyticsChart/types';
|
|
1
|
+
import type { ChartDataPoint, HighlightConfig } from '@toptal/picasso-charts';
|
|
2
|
+
import type { 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
|
-
import { LineConfig } from '@toptal/picasso-charts';
|
|
2
|
-
import { ReferenceLine } from './../../AnalyticsChart/types';
|
|
1
|
+
import type { LineConfig } from '@toptal/picasso-charts';
|
|
2
|
+
import type { ReferenceLine } from './../../AnalyticsChart/types';
|
|
3
3
|
declare const toLineConfigFormat: (lineConfig: LineConfig, referenceLines: ReferenceLine[]) => LineConfig;
|
|
4
4
|
export default toLineConfigFormat;
|