Skip to content

Commit d2a0af7

Browse files
committed
Fix build.
1 parent 060a206 commit d2a0af7

8 files changed

Lines changed: 17602 additions & 28129 deletions

File tree

package-lock.json

Lines changed: 17569 additions & 28093 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
"license": "AGPL-3.0",
2222
"devDependencies": {
2323
"@babel/core": "^7.21.4",
24-
"@grafana/e2e": "10.1.9",
24+
"@grafana/e2e": "^6.7.6",
2525
"@grafana/e2e-selectors": "10.1.9",
2626
"@grafana/eslint-config": "^6.0.0",
2727
"@grafana/tsconfig": "^1.2.0-rc1",
28-
"@storybook/addon-essentials": "^7.6.17",
28+
"@storybook/addon-essentials": "^8.6.14",
2929
"@storybook/addon-interactions": "^7.6.17",
3030
"@storybook/addon-links": "^7.6.17",
31-
"@storybook/addon-onboarding": "^1.0.11",
32-
"@storybook/blocks": "^7.6.17",
33-
"@storybook/react": "^7.6.17",
34-
"@storybook/react-webpack5": "^7.6.17",
31+
"@storybook/addon-onboarding": "^9.0.17",
32+
"@storybook/blocks": "^8.6.14",
33+
"@storybook/react": "^9.0.17",
34+
"@storybook/react-webpack5": "^9.0.17",
3535
"@storybook/test": "^7.6.17",
3636
"@swc/core": "^1.3.90",
3737
"@swc/helpers": "^0.5.0",
@@ -59,7 +59,7 @@
5959
"replace-in-file-webpack-plugin": "^1.0.6",
6060
"sass": "1.63.2",
6161
"sass-loader": "13.3.1",
62-
"storybook": "^7.6.17",
62+
"storybook": "^9.0.17",
6363
"style-loader": "3.3.3",
6464
"swc-loader": "^0.2.3",
6565
"ts-node": "^10.9.1",
@@ -74,16 +74,18 @@
7474
},
7575
"dependencies": {
7676
"@emotion/css": "^11.11",
77-
"@grafana/data": "10.1.9",
78-
"@grafana/experimental": "^1.7.10",
79-
"@grafana/runtime": "10.1.9",
80-
"@grafana/ui": "10.1.9",
77+
"@grafana/data": "^11.3.0",
78+
"@grafana/runtime": "^11.3.0",
79+
"@grafana/ui": "^11.3.0",
8180
"@reduxjs/toolkit": "^1.9.5",
8281
"@uiw/react-codemirror": "^4.21.21",
8382
"lucene": "^2.1.1",
8483
"observable-hooks": "^4.2.3",
8584
"react": "17.0.2",
8685
"react-dom": "17.0.2",
86+
"react-select": "^5.10.2",
87+
"react-select-event": "^5.5.1",
88+
"rxjs": "^7.8.1",
8789
"tslib": "2.5.3",
8890
"usehooks-ts": "^3.1.0"
8991
},

src/LogContext/components/LogContextUI.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export function LogContextUI(props: LogContextUIProps ){
8181
</div>
8282
), [setQuery, canRunQuery, origQuery, runQuery])
8383

84-
const processFilter = useCallback((f: GrafanaField<any, any[]>): Field => {
84+
const processFilter = useCallback((f: GrafanaField<any>): Field => {
8585
let contingency: FieldContingency = {};
86-
f.values.forEach((value: string, i) => {
86+
f.values.forEach((value: string, i: number) => {
8787
if (!contingency[value]) {
8888
contingency[value] = {
8989
count: 0,

src/components/QueryEditor/AnnotationQueryEditor.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react';
22

33
import { AnnotationQuery } from '@grafana/data';
4-
import { EditorField, EditorRow } from '@grafana/experimental';
5-
import { Input } from '@grafana/ui';
4+
import { Input, InlineField, InlineFieldRow } from '@grafana/ui';
65

76
import { ElasticsearchQuery } from '@/types';
87

@@ -41,8 +40,8 @@ export function ElasticsearchAnnotationsQueryEditor(props: Props) {
4140

4241
<div className="gf-form-group">
4342
<h6>Field mappings</h6>
44-
<EditorRow>
45-
<EditorField label="Time">
43+
<InlineFieldRow>
44+
<InlineField label="Time">
4645
<Input
4746
type="text"
4847
placeholder="@timestamp"
@@ -54,8 +53,8 @@ export function ElasticsearchAnnotationsQueryEditor(props: Props) {
5453
});
5554
}}
5655
/>
57-
</EditorField>
58-
<EditorField label="Time End">
56+
</InlineField>
57+
<InlineField label="Time End">
5958
<Input
6059
type="text"
6160
value={annotation.timeEndField}
@@ -66,8 +65,8 @@ export function ElasticsearchAnnotationsQueryEditor(props: Props) {
6665
});
6766
}}
6867
/>
69-
</EditorField>
70-
<EditorField label="Text">
68+
</InlineField>
69+
<InlineField label="Text">
7170
<Input
7271
type="text"
7372
value={annotation.textField}
@@ -78,8 +77,8 @@ export function ElasticsearchAnnotationsQueryEditor(props: Props) {
7877
});
7978
}}
8079
/>
81-
</EditorField>
82-
<EditorField label="Tags">
80+
</InlineField>
81+
<InlineField label="Tags">
8382
<Input
8483
type="text"
8584
placeholder="tags"
@@ -91,8 +90,8 @@ export function ElasticsearchAnnotationsQueryEditor(props: Props) {
9190
});
9291
}}
9392
/>
94-
</EditorField>
95-
</EditorRow>
93+
</InlineField>
94+
</InlineFieldRow>
9695
</div>
9796
</>
9897
);

src/configuration/DataLinks.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { css } from '@emotion/css';
22
import React from 'react';
33

44
import { GrafanaTheme2, VariableOrigin, DataLinkBuiltInVars } from '@grafana/data';
5-
import { ConfigSubSection } from '@grafana/experimental';
6-
import { Button, useStyles2 } from '@grafana/ui';
5+
import { Button, useStyles2, FieldSet } from '@grafana/ui';
76

87
import { DataLinkConfig } from '../types';
98

@@ -32,10 +31,8 @@ export const DataLinks = (props: Props) => {
3231
const styles = useStyles2(getStyles);
3332

3433
return (
35-
<ConfigSubSection
36-
title="Data links"
37-
description="Add links to existing fields. Links will be shown in log row details next to the field value."
38-
>
34+
<FieldSet label="Data links">
35+
<p>Add links to existing fields. Links will be shown in log row details next to the field value.</p>
3936
<div className={styles.container}>
4037
{value && value.length > 0 && (
4138
<div className="gf-form-group">
@@ -83,6 +80,6 @@ export const DataLinks = (props: Props) => {
8380
Add
8481
</Button>
8582
</div>
86-
</ConfigSubSection>
83+
</FieldSet>
8784
);
8885
};

src/datasource/base.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { Observable, lastValueFrom, from, of } from 'rxjs';
2-
import { map, mergeMap } from 'rxjs/operators';
1+
import { Observable, lastValueFrom, from, of, map, mergeMap } from 'rxjs';
32

43
import {
54
AbstractQuery,

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"updated": "%TODAY%"
5858
},
5959
"dependencies": {
60-
"grafanaDependency": ">=10.0",
60+
"grafanaDependency": ">=11.0.0",
6161
"plugins": []
6262
}
6363
}

src/quickwit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DefaultsConfigOverrides } from "store/defaults/conf";
44

55
export interface QuickwitOptions extends DataSourceJsonData {
66
timeField: string;
7-
interval?: Interval;
7+
interval?: string;
88
logMessageField?: string;
99
logLevelField?: string;
1010
dataLinks?: DataLinkConfig[];

0 commit comments

Comments
 (0)