diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index 499077b7a..4c13fc9f1 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@buster/ui-components", - "version": "1.0.0", + "version": "0.0.1", "description": "Modern, tree-shakeable UI component library for Buster", "type": "module", "sideEffects": ["**/*.css", "**/styles/*"], diff --git a/packages/ui-components/src/components/charts/BusterChartJS/ChartJSTheme.ts b/packages/ui-components/src/components/charts/BusterChartJS/ChartJSTheme.ts index 45c618399..a1900614e 100644 --- a/packages/ui-components/src/components/charts/BusterChartJS/ChartJSTheme.ts +++ b/packages/ui-components/src/components/charts/BusterChartJS/ChartJSTheme.ts @@ -3,13 +3,13 @@ import { truncateText } from '@/lib/text'; import { isServer } from '@/lib/window'; import { DEFAULT_CHART_THEME } from '@buster/server-shared/metrics'; +import { Chart as ChartJS } from 'chart.js'; import { ArcElement, BarController, BarElement, BubbleController, CategoryScale, - Chart as ChartJS, Colors, DoughnutController, Legend, diff --git a/packages/ui-components/src/components/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts b/packages/ui-components/src/components/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts index b4c3859f0..ec73c6620 100644 --- a/packages/ui-components/src/components/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts +++ b/packages/ui-components/src/components/charts/BusterChartJS/hooks/useSeriesOptions/lineSeriesBuilder.ts @@ -7,7 +7,7 @@ import { DEFAULT_COLUMN_LABEL_FORMAT, DEFAULT_COLUMN_SETTINGS, } from '@buster/server-shared/metrics'; -import { Chart, Filler, type Scale, type ScriptableContext } from 'chart.js'; +import { Chart as ChartJS, Filler, type Scale, type ScriptableContext } from 'chart.js'; import type { DatasetOption } from '../../../chartHooks'; import { formatLabelForDataset } from '../../../commonHelpers'; import type { ChartProps } from '../../core'; @@ -17,7 +17,7 @@ import { createTrendlineOnSeries } from './createTrendlines'; import type { SeriesBuilderProps } from './interfaces'; import type { LabelBuilderProps } from './useSeriesOptions'; -Chart.register(Filler); +ChartJS.register(Filler); // Removed to reduce bundle size const HOVER_RADIUS_MULTIPLIER = 1;