Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pielambr committed Jan 8, 2021
1 parent 1d79634 commit 35a9582
Show file tree
Hide file tree
Showing 4 changed files with 2,291 additions and 911 deletions.
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@
"author": "Factry BV",
"license": "Apache-2.0",
"devDependencies": {
"@grafana/data": "^7.1.0",
"@grafana/toolkit": "^7.1.0",
"@grafana/ui": "^7.1.0",
"@grafana/data": "^7.3.6",
"@grafana/toolkit": "^7.3.6",
"@grafana/ui": "^7.3.6",
"@popperjs/core": "^2.6.0",
"@types/flot": "^0.0.31",
"@types/jquery": "^3.3.32",
"@types/react": "^16.9.19",
"@typescript-eslint/eslint-plugin": "^2.19.0",
"@typescript-eslint/parser": "^2.19.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^1.7.0",
"@types/react": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"eslint": "^7.17.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"jquery": "^3.4.1",
"react": "^16.12.0"
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-popper": "^2.2.4"
}
}
6 changes: 3 additions & 3 deletions src/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ interface State {
xSerie?: XValue[];
}

interface Plot extends jquery.flot.plot {
interface Plot extends jquery.flot.plot { // eslint-disable-line
clearSelection(): void;
findNearbyItem(x: number, y: number, radius: number): any;
}

interface PlotOptions extends jquery.flot.plotOptions {
interface PlotOptions extends jquery.flot.plotOptions { // eslint-disable-line
selection: object;
}

export class Panel extends PureComponent<Props, State> {
element: HTMLElement | null = null;

$element: JQuery<HTMLElement> | null = null;
$element: JQuery<HTMLElement> | null = null; // eslint-disable-line

constructor(props: Props) {
super(props);
Expand Down
6 changes: 5 additions & 1 deletion src/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ export class Tooltip extends PureComponent<Props, State> {
}

return ReactDOM.createPortal(
<Popper placement="right-start" referenceElement={virtualElement} modifiers={{ offset: { offset: '25,25' } }}>
<Popper
placement="right-start"
referenceElement={virtualElement}
modifiers={[{ name: 'offset', options: { offset: [25, 25] } }]}
>
{({
ref, style, placement, arrowProps,
}) => (
Expand Down
Loading

0 comments on commit 35a9582

Please sign in to comment.