Commit b59be220 by Marcus Andersson Committed by GitHub

Build: fixing failing release packaged build due to uPlot dependency not properly setup (#27887)

* removed dependency from grafana/ui on public/app.

* fixed so we don't get rollup issues when building the packages.

* fixed so import path is working properly.

* removed uncommented code.
parent 34a355fe
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
@import 'TimePicker/TimeOfDayPicker'; @import 'TimePicker/TimeOfDayPicker';
@import 'Tooltip/Tooltip'; @import 'Tooltip/Tooltip';
@import 'Slider/Slider'; @import 'Slider/Slider';
@import 'uPlot/Plot';
// importing the uPlot css so it will be bundled with the rest of the styling.
@import '../../node_modules/uplot/dist/uPlot.min.css';
import 'uplot/dist/uPlot.min.css';
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
import { css } from 'emotion'; import { css } from 'emotion';
import uPlot from 'uplot'; import uPlot from 'uplot';
......
import React from 'react'; import React from 'react';
import uPlot from 'uplot'; import uPlot from 'uplot';
import { DataFrame, FieldColor, TimeRange, TimeZone } from '@grafana/data'; import { DataFrame, FieldColor, TimeRange, TimeZone } from '@grafana/data';
import { NullValuesMode } from '../../../../../public/app/plugins/panel/graph3/types';
export type NullValuesMode = 'null' | 'connected' | 'asZero';
export enum MicroPlotAxisSide { export enum MicroPlotAxisSide {
top = 0, top = 0,
......
import { LegendOptions, GraphTooltipOptions } from '@grafana/ui'; import { LegendOptions, GraphTooltipOptions } from '@grafana/ui';
export type NullValuesMode = 'null' | 'connected' | 'asZero';
export type LegendPlacement = 'top' | 'bottom' | 'left' | 'right'; export type LegendPlacement = 'top' | 'bottom' | 'left' | 'right';
export interface GraphOptions { export interface GraphOptions {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment