Skip to content

Commit a9255b2

Browse files
authored
Update react dependencies (#91)
1 parent e871031 commit a9255b2

File tree

4 files changed

+929
-803
lines changed

4 files changed

+929
-803
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"author": "Grafana Labs <[email protected]> (https://grafana.com)",
2828
"license": "Apache-2.0",
2929
"dependencies": {
30-
"@grafana/async-query-data": "0.1.4",
31-
"@grafana/experimental": "1.7.0"
30+
"@grafana/async-query-data": "0.2.0",
31+
"@grafana/experimental": "1.7.12"
3232
},
3333
"devDependencies": {
34-
"@grafana/data": "10.2.0",
34+
"@grafana/data": "10.3.6",
3535
"@grafana/eslint-config": "^6.0.1",
36-
"@grafana/runtime": "10.2.0",
37-
"@grafana/ui": "10.2.0",
36+
"@grafana/runtime": "10.3.6",
37+
"@grafana/ui": "10.3.6",
3838
"@rollup/plugin-node-resolve": "^15.0.1",
3939
"@swc/core": "^1.3.93",
4040
"@swc/jest": "^0.2.29",
@@ -44,8 +44,8 @@
4444
"@types/jest": "27.4.1",
4545
"@types/lodash": "4.14.191",
4646
"@types/node": "16.18.6",
47-
"@types/react": "17.0.42",
48-
"@types/react-dom": "17.0.14",
47+
"@types/react": "18.3.3",
48+
"@types/react-dom": "18.3.0",
4949
"@typescript-eslint/eslint-plugin": "^5.48.0",
5050
"cspell": "6.13.3",
5151
"esbuild": "^0.16.2",
@@ -55,8 +55,8 @@
5555
"eslint-plugin-react-hooks": "^4.6.0",
5656
"jest": "27.5.1",
5757
"node-notifier": "^10.0.1",
58-
"react": "17.0.2",
59-
"react-dom": "17.0.2",
58+
"react": "18.2.0",
59+
"react-dom": "18.2.0",
6060
"react-select-event": "^5.5.1",
6161
"rimraf": "^3.0.2",
6262
"rollup": "2.79.1",

src/sql/ConfigEditor/InlineInput.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import React from 'react';
1+
import React, { FormEvent } from 'react';
22
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
33
import { AwsAuthDataSourceSecureJsonData } from '../../types';
44
import { InlineField, Input } from '@grafana/ui';
5-
import { FormEvent } from 'react-dom/node_modules/@types/react';
65
import { DEFAULT_LABEL_WIDTH } from '../../components/ConnectionConfig';
76

87
export interface InlineInputProps extends DataSourcePluginOptionsEditorProps<{}, AwsAuthDataSourceSecureJsonData> {

src/sql/QueryEditor/QueryEditorHeader.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export function QueryEditorHeader<
4141
onRunQuery={onRunQuery}
4242
enableRun={enableRunButton}
4343
query={query}
44-
onCancelQuery={cancel}
44+
onCancelQuery={(target: TQuery) => {
45+
cancel?.(target);
46+
}}
4547
state={data?.state}
4648
/>
4749
) : (

0 commit comments

Comments
 (0)