@moderneinc/react-charts 1.1.0-next.6c206b → 1.1.0-next.dcefa6
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/dist/components/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.d.ts → parliament-chart.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.types.d.ts → parliament-chart.types.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/package.json +3 -3
- /package/dist/components/parliament-chart/{ParliamentChart.constants.d.ts → parliament-chart.constants.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentArcCalculator.d.ts → parliament-arc-calculator.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentChartData.utils.d.ts → parliament-chart-data.utils.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgEnhanced.d.ts → parliament-svg-enhanced.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgPatterns.d.ts → parliament-svg-patterns.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvg.d.ts → parliament-svg.d.ts} +0 -0
- /package/dist/theme/{defaultColors.d.ts → default-colors.d.ts} +0 -0
package/dist/components/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { ChartConfig, HoveredData, ProcessedDataItem } from '../
|
|
2
|
+
import { ChartConfig, HoveredData, ProcessedDataItem } from '../parliament-chart.types';
|
|
3
3
|
type UseParliamentChartProps = {
|
|
4
4
|
containerRef: RefObject<HTMLDivElement>;
|
|
5
5
|
processedData: ProcessedDataItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { ParliamentChartProps } from './
|
|
2
|
+
import { ParliamentChartProps } from './parliament-chart.types';
|
|
3
3
|
/**
|
|
4
4
|
* Renders an interactive parliament-style chart visualization for repository statistics.
|
|
5
5
|
* Displays repository counts as seats in a semi-circular or arc layout, with scaling
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @moderneinc/react-charts
|
|
3
3
|
* Parliament chart visualization library for React
|
|
4
4
|
*/
|
|
5
|
-
export { ParliamentChart } from './components/parliament-chart/
|
|
6
|
-
export type { ParliamentChartProps, ProcessedDataItem, HoveredData, ChartConfig } from './components/parliament-chart/
|
|
7
|
-
export type { ParliamentChartTheme, ParliamentChartColors } from './theme/
|
|
8
|
-
export { DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS, CAMPAIGN_NOT_APPLICABLE, CAMPAIGN_NO_LST, CAMPAIGN_DATA_MISSING } from './components/parliament-chart/
|
|
9
|
-
export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/
|
|
10
|
-
export { calculateDataSeries } from './components/parliament-chart/utils/
|
|
11
|
-
export { DEFAULT_CHART_COLORS } from './theme/
|
|
5
|
+
export { ParliamentChart } from './components/parliament-chart/parliament-chart';
|
|
6
|
+
export type { ParliamentChartProps, ProcessedDataItem, HoveredData, ChartConfig } from './components/parliament-chart/parliament-chart.types';
|
|
7
|
+
export type { ParliamentChartTheme, ParliamentChartColors } from './theme/default-colors';
|
|
8
|
+
export { DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS, CAMPAIGN_NOT_APPLICABLE, CAMPAIGN_NO_LST, CAMPAIGN_DATA_MISSING } from './components/parliament-chart/parliament-chart.constants';
|
|
9
|
+
export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
|
|
10
|
+
export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
|
|
11
|
+
export { DEFAULT_CHART_COLORS } from './theme/default-colors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moderneinc/react-charts",
|
|
3
|
-
"version": "1.1.0-next.
|
|
3
|
+
"version": "1.1.0-next.dcefa6",
|
|
4
4
|
"description": "Parliament chart visualization library for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devEngines": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
78
78
|
"@typescript-eslint/parser": "^8.44.0",
|
|
79
79
|
"@vitejs/plugin-react": "^4.3.4",
|
|
80
|
-
"@vitest/ui": "^2.
|
|
80
|
+
"@vitest/ui": "^3.2.4",
|
|
81
81
|
"eslint": "^9.36.0",
|
|
82
82
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
83
83
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"typescript": "^5.9.2",
|
|
91
91
|
"vite": "^6.0.11",
|
|
92
92
|
"vite-plugin-dts": "^4.4.3",
|
|
93
|
-
"vitest": "^2.
|
|
93
|
+
"vitest": "^3.2.4"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"access": "public",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|