@perses-dev/loki-plugin 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{Loki.2f631825.js → Loki.c48c56a7.js} +3 -3
- package/__mf/js/async/1398.ca579c40.js +2 -0
- package/__mf/js/async/{4310.b96a5c66.js → 4310.6d2d2ce3.js} +2 -2
- package/__mf/js/async/{4421.5adcbc2d.js → 4421.28cc8e2d.js} +1 -1
- package/__mf/js/async/4557.fd670526.js +2 -0
- package/__mf/js/async/4676.d4c41b7a.js +22 -0
- package/__mf/js/async/7797.822237c9.js +1 -0
- package/__mf/js/async/9554.728cf7b9.js +2 -0
- package/__mf/js/async/{__federation_expose_LokiDatasource.a9871645.js → __federation_expose_LokiDatasource.3ce6abca.js} +2 -2
- package/__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js +1 -0
- package/__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js +1 -0
- package/__mf/js/{main.174be1bc.js → main.ccf461ea.js} +3 -3
- package/lib/cjs/queries/loki-log-query/LokiLogQueryEditor.js +5 -16
- package/lib/cjs/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js +5 -16
- package/lib/queries/loki-log-query/LokiLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/loki-log-query/LokiLogQueryEditor.js +4 -15
- package/lib/queries/loki-log-query/LokiLogQueryEditor.js.map +1 -1
- package/lib/queries/loki-log-query/log-query-plugin-interface.d.ts +0 -1
- package/lib/queries/loki-log-query/log-query-plugin-interface.d.ts.map +1 -1
- package/lib/queries/loki-log-query/log-query-plugin-interface.js.map +1 -1
- package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js +4 -15
- package/lib/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.js.map +1 -1
- package/mf-manifest.json +27 -27
- package/mf-stats.json +27 -27
- package/package.json +6 -6
- package/__mf/js/async/2178.c22bac1c.js +0 -2
- package/__mf/js/async/2472.75bb97e0.js +0 -22
- package/__mf/js/async/2708.9651e2da.js +0 -1
- package/__mf/js/async/529.f12e49de.js +0 -2
- package/__mf/js/async/9563.0375701c.js +0 -2
- package/__mf/js/async/__federation_expose_LokiLogQuery.9b430d01.js +0 -1
- package/__mf/js/async/__federation_expose_LokiTimeSeriesQuery.61feff51.js +0 -1
- /package/__mf/js/async/{9563.0375701c.js.LICENSE.txt → 1398.ca579c40.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4310.b96a5c66.js.LICENSE.txt → 4310.6d2d2ce3.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2178.c22bac1c.js.LICENSE.txt → 4557.fd670526.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2472.75bb97e0.js.LICENSE.txt → 4676.d4c41b7a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{529.f12e49de.js.LICENSE.txt → 9554.728cf7b9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_LokiDatasource.a9871645.js.LICENSE.txt → __federation_expose_LokiDatasource.3ce6abca.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LokiLogQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-log-query/LokiLogQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"LokiLogQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-log-query/LokiLogQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;AAOlD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,KAAK,oBAAoB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAEjE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAoH5E"}
|
|
@@ -16,12 +16,12 @@ import { InputLabel, Stack, ToggleButton, ToggleButtonGroup } from '@mui/materia
|
|
|
16
16
|
import { useCallback } from 'react';
|
|
17
17
|
import { produce } from 'immer';
|
|
18
18
|
import { OptionsEditorControl } from '@perses-dev/components';
|
|
19
|
-
import { LogQLEditor } from '../../components
|
|
19
|
+
import { LogQLEditor } from '../../components';
|
|
20
20
|
import { isDefaultLokiSelector, LOKI_DATASOURCE_KIND } from '../../model';
|
|
21
21
|
import { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';
|
|
22
22
|
import { useQueryState } from '../query-editor-model';
|
|
23
23
|
export function LokiLogQueryEditor(props) {
|
|
24
|
-
const { onChange, value
|
|
24
|
+
const { onChange, value } = props;
|
|
25
25
|
const { datasource } = value;
|
|
26
26
|
const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;
|
|
27
27
|
const selectedDatasource = useDatasourceSelectValueToSelector(datasourceSelectValue, LOKI_DATASOURCE_KIND);
|
|
@@ -33,10 +33,6 @@ export function LokiLogQueryEditor(props) {
|
|
|
33
33
|
const nextDatasource = isDefaultLokiSelector(newDatasourceSelection) ? undefined : newDatasourceSelection;
|
|
34
34
|
draft.datasource = nextDatasource;
|
|
35
35
|
}));
|
|
36
|
-
if (queryHandlerSettings?.setWatchOtherSpecs) queryHandlerSettings.setWatchOtherSpecs({
|
|
37
|
-
...value,
|
|
38
|
-
datasource: newDatasourceSelection
|
|
39
|
-
});
|
|
40
36
|
return;
|
|
41
37
|
}
|
|
42
38
|
throw new Error('Got unexpected non LokiQuery datasource selection');
|
|
@@ -46,21 +42,14 @@ export function LokiLogQueryEditor(props) {
|
|
|
46
42
|
}));
|
|
47
43
|
// Immediate query execution on Enter or blur
|
|
48
44
|
const handleQueryExecute = (query)=>{
|
|
49
|
-
if (queryHandlerSettings?.watchQueryChanges) {
|
|
50
|
-
queryHandlerSettings.watchQueryChanges(query);
|
|
51
|
-
}
|
|
52
45
|
onChange(produce(value, (draft)=>{
|
|
53
46
|
draft.query = query;
|
|
54
47
|
}));
|
|
55
48
|
};
|
|
56
49
|
const handleLogsQueryChange = useCallback((e)=>{
|
|
57
50
|
handleQueryChange(e);
|
|
58
|
-
if (queryHandlerSettings?.watchQueryChanges) {
|
|
59
|
-
queryHandlerSettings.watchQueryChanges(e);
|
|
60
|
-
}
|
|
61
51
|
}, [
|
|
62
|
-
handleQueryChange
|
|
63
|
-
queryHandlerSettings
|
|
52
|
+
handleQueryChange
|
|
64
53
|
]);
|
|
65
54
|
return /*#__PURE__*/ _jsxs(Stack, {
|
|
66
55
|
spacing: 1.5,
|
|
@@ -98,7 +87,7 @@ export function LokiLogQueryEditor(props) {
|
|
|
98
87
|
/*#__PURE__*/ _jsx(LogQLEditor, {
|
|
99
88
|
value: query,
|
|
100
89
|
onChange: handleLogsQueryChange,
|
|
101
|
-
onBlur:
|
|
90
|
+
onBlur: handleQueryBlur,
|
|
102
91
|
onKeyDown: (event)=>{
|
|
103
92
|
if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {
|
|
104
93
|
event.preventDefault();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/queries/loki-log-query/LokiLogQueryEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack, ToggleButton, ToggleButtonGroup } from '@mui/material';\nimport { ReactElement, useCallback
|
|
1
|
+
{"version":3,"sources":["../../../../src/queries/loki-log-query/LokiLogQueryEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack, ToggleButton, ToggleButtonGroup } from '@mui/material';\nimport { ReactElement, useCallback } from 'react';\nimport { produce } from 'immer';\nimport { OptionsEditorControl } from '@perses-dev/components';\nimport { LogQLEditor } from '../../components';\nimport { isDefaultLokiSelector, LOKI_DATASOURCE_KIND, LokiDatasourceSelector } from '../../model';\nimport { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';\nimport { useQueryState } from '../query-editor-model';\nimport { LokiLogQuerySpec } from './loki-log-query-types';\n\ntype LokiQueryEditorProps = OptionsEditorProps<LokiLogQuerySpec>;\n\nexport function LokiLogQueryEditor(props: LokiQueryEditorProps): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n LOKI_DATASOURCE_KIND\n ) as LokiDatasourceSelector;\n const { query, handleQueryChange, handleQueryBlur } = useQueryState(props);\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (newDatasourceSelection) => {\n if (!isVariableDatasource(newDatasourceSelection) && newDatasourceSelection.kind === DATASOURCE_KIND) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n const nextDatasource = isDefaultLokiSelector(newDatasourceSelection) ? undefined : newDatasourceSelection;\n draft.datasource = nextDatasource;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non LokiQuery datasource selection');\n };\n\n const handleLogsDirection = (_: React.MouseEvent, v: 'backward' | 'forward') =>\n onChange(\n produce(value, (draft: LokiLogQuerySpec) => {\n draft.direction = v;\n })\n );\n\n // Immediate query execution on Enter or blur\n const handleQueryExecute = (query: string) => {\n onChange(\n produce(value, (draft) => {\n draft.query = query;\n })\n );\n };\n\n const handleLogsQueryChange = useCallback(\n (e: string) => {\n handleQueryChange(e);\n },\n [handleQueryChange]\n );\n\n return (\n <Stack spacing={1.5} paddingBottom={1}>\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n Datasource\n </InputLabel>\n <DatasourceSelect\n datasourcePluginKind={DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n label=\"Loki Datasource\"\n notched\n />\n </div>\n\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n LogQL Query\n </InputLabel>\n <LogQLEditor\n value={query}\n onChange={handleLogsQueryChange}\n onBlur={handleQueryBlur}\n onKeyDown={(event) => {\n if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {\n event.preventDefault();\n handleQueryExecute(query);\n }\n }}\n placeholder='Enter LogQL query (e.g. {job=\"mysql\"} |= \"error\")'\n // height=\"120px\"\n />\n </div>\n <div>\n <OptionsEditorControl\n label=\"Order\"\n // description=\"Percentage means thresholds relative to min & max\"\n control={\n <ToggleButtonGroup\n exclusive\n value={value?.direction ?? 'backward'}\n onChange={handleLogsDirection}\n sx={{ height: '36px', marginLeft: '10px', width: 'max-content' }}\n >\n <ToggleButton aria-label=\"backward\" value=\"backward\" sx={{ fontWeight: 500 }}>\n Newest first\n </ToggleButton>\n <ToggleButton aria-label=\"forward\" value=\"forward\" sx={{ fontWeight: 500 }}>\n Oldest first\n </ToggleButton>\n </ToggleButtonGroup>\n }\n />\n </div>\n </Stack>\n );\n}\n"],"names":["DatasourceSelect","isVariableDatasource","useDatasourceSelectValueToSelector","InputLabel","Stack","ToggleButton","ToggleButtonGroup","useCallback","produce","OptionsEditorControl","LogQLEditor","isDefaultLokiSelector","LOKI_DATASOURCE_KIND","DATASOURCE_KIND","DEFAULT_DATASOURCE","useQueryState","LokiLogQueryEditor","props","onChange","value","datasource","datasourceSelectValue","selectedDatasource","query","handleQueryChange","handleQueryBlur","handleDatasourceChange","newDatasourceSelection","kind","draft","nextDatasource","undefined","Error","handleLogsDirection","_","v","direction","handleQueryExecute","handleLogsQueryChange","e","spacing","paddingBottom","div","sx","display","marginBottom","fontWeight","datasourcePluginKind","label","notched","onBlur","onKeyDown","event","key","ctrlKey","metaKey","preventDefault","placeholder","control","exclusive","height","marginLeft","width","aria-label"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SACEA,gBAAgB,EAEhBC,oBAAoB,EAEpBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,UAAU,EAAEC,KAAK,EAAEC,YAAY,EAAEC,iBAAiB,QAAQ,gBAAgB;AACnF,SAAuBC,WAAW,QAAQ,QAAQ;AAClD,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,oBAAoB,QAAQ,yBAAyB;AAC9D,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,qBAAqB,EAAEC,oBAAoB,QAAgC,cAAc;AAClG,SAASC,eAAe,EAAEC,kBAAkB,QAAQ,eAAe;AACnE,SAASC,aAAa,QAAQ,wBAAwB;AAKtD,OAAO,SAASC,mBAAmBC,KAA2B;IAC5D,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAE,GAAGF;IAC5B,MAAM,EAAEG,UAAU,EAAE,GAAGD;IACvB,MAAME,wBAAwBD,cAAcN;IAC5C,MAAMQ,qBAAqBpB,mCACzBmB,uBACAT;IAEF,MAAM,EAAEW,KAAK,EAAEC,iBAAiB,EAAEC,eAAe,EAAE,GAAGV,cAAcE;IAEpE,MAAMS,yBAA4D,CAACC;QACjE,IAAI,CAAC1B,qBAAqB0B,2BAA2BA,uBAAuBC,IAAI,KAAKf,iBAAiB;YACpGK,SACEV,QAAQW,OAAO,CAACU;gBACd,sFAAsF;gBACtF,MAAMC,iBAAiBnB,sBAAsBgB,0BAA0BI,YAAYJ;gBACnFE,MAAMT,UAAU,GAAGU;YACrB;YAEF;QACF;QAEA,MAAM,IAAIE,MAAM;IAClB;IAEA,MAAMC,sBAAsB,CAACC,GAAqBC,IAChDjB,SACEV,QAAQW,OAAO,CAACU;YACdA,MAAMO,SAAS,GAAGD;QACpB;IAGJ,6CAA6C;IAC7C,MAAME,qBAAqB,CAACd;QAC1BL,SACEV,QAAQW,OAAO,CAACU;YACdA,MAAMN,KAAK,GAAGA;QAChB;IAEJ;IAEA,MAAMe,wBAAwB/B,YAC5B,CAACgC;QACCf,kBAAkBe;IACpB,GACA;QAACf;KAAkB;IAGrB,qBACE,MAACpB;QAAMoC,SAAS;QAAKC,eAAe;;0BAClC,MAACC;;kCACC,KAACvC;wBACCwC,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAAC9C;wBACC+C,sBAAsBlC;wBACtBM,OAAOG;wBACPJ,UAAUQ;wBACVsB,OAAM;wBACNC,OAAO;;;;0BAIX,MAACP;;kCACC,KAACvC;wBACCwC,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAACpC;wBACCS,OAAOI;wBACPL,UAAUoB;wBACVY,QAAQzB;wBACR0B,WAAW,CAACC;4BACV,IAAIA,MAAMC,GAAG,KAAK,WAAYD,CAAAA,MAAME,OAAO,IAAIF,MAAMG,OAAO,AAAD,GAAI;gCAC7DH,MAAMI,cAAc;gCACpBnB,mBAAmBd;4BACrB;wBACF;wBACAkC,aAAY;;;;0BAIhB,KAACf;0BACC,cAAA,KAACjC;oBACCuC,OAAM;oBACN,kEAAkE;oBAClEU,uBACE,MAACpD;wBACCqD,SAAS;wBACTxC,OAAOA,OAAOiB,aAAa;wBAC3BlB,UAAUe;wBACVU,IAAI;4BAAEiB,QAAQ;4BAAQC,YAAY;4BAAQC,OAAO;wBAAc;;0CAE/D,KAACzD;gCAAa0D,cAAW;gCAAW5C,OAAM;gCAAWwB,IAAI;oCAAEG,YAAY;gCAAI;0CAAG;;0CAG9E,KAACzC;gCAAa0D,cAAW;gCAAU5C,OAAM;gCAAUwB,IAAI;oCAAEG,YAAY;gCAAI;0CAAG;;;;;;;;AAS1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-query-plugin-interface.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-log-query/log-query-plugin-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEtF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE;QACT,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,aAAa,EAAE,gBAAgB,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"log-query-plugin-interface.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-log-query/log-query-plugin-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEtF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE;QACT,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,aAAa,EAAE,gBAAgB,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,cAAc,CAAC,IAAI,GAAG,WAAW,CAAE,SAAQ,MAAM,CAAC,IAAI,CAAC;IACtE,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,eAAe,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,eAAe,KAAK,0BAA0B,CAAC;CAC9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/queries/loki-log-query/log-query-plugin-interface.ts"],"sourcesContent":["import { LogData, AbsoluteTimeRange, UnknownSpec } from '@perses-dev/core';\nimport { DatasourceStore, Plugin, VariableStateMap } from '@perses-dev/plugin-system';\n\nexport interface LogQueryResult {\n logs: LogData;\n timeRange: AbsoluteTimeRange;\n metadata?: {\n executedQueryString: string;\n };\n}\n\nexport interface LogQueryContext {\n timeRange: AbsoluteTimeRange;\n variableState: VariableStateMap;\n datasourceStore: DatasourceStore;\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/queries/loki-log-query/log-query-plugin-interface.ts"],"sourcesContent":["import { LogData, AbsoluteTimeRange, UnknownSpec } from '@perses-dev/core';\nimport { DatasourceStore, Plugin, VariableStateMap } from '@perses-dev/plugin-system';\n\nexport interface LogQueryResult {\n logs: LogData;\n timeRange: AbsoluteTimeRange;\n metadata?: {\n executedQueryString: string;\n };\n}\n\nexport interface LogQueryContext {\n timeRange: AbsoluteTimeRange;\n variableState: VariableStateMap;\n datasourceStore: DatasourceStore;\n}\n\ntype LogQueryPluginDependencies = {\n variables?: string[];\n};\n\nexport interface LogQueryPlugin<Spec = UnknownSpec> extends Plugin<Spec> {\n getLogData: (spec: Spec, ctx: LogQueryContext) => Promise<LogQueryResult>;\n dependsOn?: (spec: Spec, ctx: LogQueryContext) => LogQueryPluginDependencies;\n}\n"],"names":[],"mappings":"AAqBA,WAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LokiTimeSeriesQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LokiTimeSeriesQueryEditor.d.ts","sourceRoot":"","sources":["../../../../src/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.tsx"],"names":[],"mappings":"AAaA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAC;AAMlD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,KAAK,oBAAoB,GAAG,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;AAExE,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAsFzE"}
|
|
@@ -15,12 +15,12 @@ import { DatasourceSelect, isVariableDatasource, useDatasourceSelectValueToSelec
|
|
|
15
15
|
import { InputLabel, Stack } from '@mui/material';
|
|
16
16
|
import { useCallback } from 'react';
|
|
17
17
|
import { produce } from 'immer';
|
|
18
|
-
import { LogQLEditor } from '../../components
|
|
18
|
+
import { LogQLEditor } from '../../components';
|
|
19
19
|
import { LOKI_DATASOURCE_KIND } from '../../model';
|
|
20
20
|
import { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';
|
|
21
21
|
import { useQueryState } from '../query-editor-model';
|
|
22
22
|
export function LokiQueryEditor(props) {
|
|
23
|
-
const { onChange, value
|
|
23
|
+
const { onChange, value } = props;
|
|
24
24
|
const { datasource } = value;
|
|
25
25
|
const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;
|
|
26
26
|
const selectedDatasource = useDatasourceSelectValueToSelector(datasourceSelectValue, LOKI_DATASOURCE_KIND);
|
|
@@ -30,31 +30,20 @@ export function LokiQueryEditor(props) {
|
|
|
30
30
|
onChange(produce(value, (draft)=>{
|
|
31
31
|
draft.datasource = newDatasourceSelection;
|
|
32
32
|
}));
|
|
33
|
-
if (queryHandlerSettings?.setWatchOtherSpecs) queryHandlerSettings.setWatchOtherSpecs({
|
|
34
|
-
...value,
|
|
35
|
-
datasource: newDatasourceSelection
|
|
36
|
-
});
|
|
37
33
|
return;
|
|
38
34
|
}
|
|
39
35
|
throw new Error('Got unexpected non LokiQuery datasource selection');
|
|
40
36
|
};
|
|
41
37
|
// Immediate query execution on Enter or blur
|
|
42
38
|
const handleQueryExecute = (query)=>{
|
|
43
|
-
if (queryHandlerSettings?.watchQueryChanges) {
|
|
44
|
-
queryHandlerSettings.watchQueryChanges(query);
|
|
45
|
-
}
|
|
46
39
|
onChange(produce(value, (draft)=>{
|
|
47
40
|
draft.query = query;
|
|
48
41
|
}));
|
|
49
42
|
};
|
|
50
43
|
const handleLogsQueryChange = useCallback((e)=>{
|
|
51
44
|
handleQueryChange(e);
|
|
52
|
-
if (queryHandlerSettings?.watchQueryChanges) {
|
|
53
|
-
queryHandlerSettings.watchQueryChanges(e);
|
|
54
|
-
}
|
|
55
45
|
}, [
|
|
56
|
-
handleQueryChange
|
|
57
|
-
queryHandlerSettings
|
|
46
|
+
handleQueryChange
|
|
58
47
|
]);
|
|
59
48
|
return /*#__PURE__*/ _jsxs(Stack, {
|
|
60
49
|
spacing: 1.5,
|
|
@@ -92,7 +81,7 @@ export function LokiQueryEditor(props) {
|
|
|
92
81
|
/*#__PURE__*/ _jsx(LogQLEditor, {
|
|
93
82
|
value: query,
|
|
94
83
|
onChange: handleLogsQueryChange,
|
|
95
|
-
onBlur:
|
|
84
|
+
onBlur: handleQueryBlur,
|
|
96
85
|
onKeyDown: (event)=>{
|
|
97
86
|
if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {
|
|
98
87
|
event.preventDefault();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack } from '@mui/material';\nimport { ReactElement, useCallback } from 'react';\nimport { produce } from 'immer';\nimport { LogQLEditor } from '../../components
|
|
1
|
+
{"version":3,"sources":["../../../../src/queries/loki-time-series-query/LokiTimeSeriesQueryEditor.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n isVariableDatasource,\n OptionsEditorProps,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { InputLabel, Stack } from '@mui/material';\nimport { ReactElement, useCallback } from 'react';\nimport { produce } from 'immer';\nimport { LogQLEditor } from '../../components';\nimport { LOKI_DATASOURCE_KIND, LokiDatasourceSelector } from '../../model';\nimport { DATASOURCE_KIND, DEFAULT_DATASOURCE } from '../constants';\nimport { useQueryState } from '../query-editor-model';\nimport { LokiTimeSeriesQuerySpec } from './loki-time-series-query-types';\n\ntype LokiQueryEditorProps = OptionsEditorProps<LokiTimeSeriesQuerySpec>;\n\nexport function LokiQueryEditor(props: LokiQueryEditorProps): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const datasourceSelectValue = datasource ?? DEFAULT_DATASOURCE;\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n LOKI_DATASOURCE_KIND\n ) as LokiDatasourceSelector;\n const { query, handleQueryChange, handleQueryBlur } = useQueryState(props);\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (newDatasourceSelection) => {\n if (!isVariableDatasource(newDatasourceSelection) && newDatasourceSelection.kind === DATASOURCE_KIND) {\n onChange(\n produce(value, (draft) => {\n draft.datasource = newDatasourceSelection;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non LokiQuery datasource selection');\n };\n\n // Immediate query execution on Enter or blur\n const handleQueryExecute = (query: string) => {\n onChange(\n produce(value, (draft) => {\n draft.query = query;\n })\n );\n };\n\n const handleLogsQueryChange = useCallback(\n (e: string) => {\n handleQueryChange(e);\n },\n [handleQueryChange]\n );\n\n return (\n <Stack spacing={1.5} paddingBottom={1}>\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n Datasource\n </InputLabel>\n <DatasourceSelect\n datasourcePluginKind={DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n label=\"Loki Datasource\"\n notched\n />\n </div>\n\n <div>\n <InputLabel\n sx={{\n display: 'block',\n marginBottom: '4px',\n fontWeight: 500,\n }}\n >\n LogQL Query\n </InputLabel>\n <LogQLEditor\n value={query}\n onChange={handleLogsQueryChange}\n onBlur={handleQueryBlur}\n onKeyDown={(event) => {\n if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {\n event.preventDefault();\n handleQueryExecute(query);\n }\n }}\n placeholder='Enter LogQL query (e.g. {job=\"mysql\"} |= \"error\")'\n // height=\"120px\"\n />\n </div>\n </Stack>\n );\n}\n"],"names":["DatasourceSelect","isVariableDatasource","useDatasourceSelectValueToSelector","InputLabel","Stack","useCallback","produce","LogQLEditor","LOKI_DATASOURCE_KIND","DATASOURCE_KIND","DEFAULT_DATASOURCE","useQueryState","LokiQueryEditor","props","onChange","value","datasource","datasourceSelectValue","selectedDatasource","query","handleQueryChange","handleQueryBlur","handleDatasourceChange","newDatasourceSelection","kind","draft","Error","handleQueryExecute","handleLogsQueryChange","e","spacing","paddingBottom","div","sx","display","marginBottom","fontWeight","datasourcePluginKind","label","notched","onBlur","onKeyDown","event","key","ctrlKey","metaKey","preventDefault","placeholder"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SACEA,gBAAgB,EAEhBC,oBAAoB,EAEpBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,UAAU,EAAEC,KAAK,QAAQ,gBAAgB;AAClD,SAAuBC,WAAW,QAAQ,QAAQ;AAClD,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,oBAAoB,QAAgC,cAAc;AAC3E,SAASC,eAAe,EAAEC,kBAAkB,QAAQ,eAAe;AACnE,SAASC,aAAa,QAAQ,wBAAwB;AAKtD,OAAO,SAASC,gBAAgBC,KAA2B;IACzD,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAE,GAAGF;IAC5B,MAAM,EAAEG,UAAU,EAAE,GAAGD;IACvB,MAAME,wBAAwBD,cAAcN;IAC5C,MAAMQ,qBAAqBhB,mCACzBe,uBACAT;IAEF,MAAM,EAAEW,KAAK,EAAEC,iBAAiB,EAAEC,eAAe,EAAE,GAAGV,cAAcE;IAEpE,MAAMS,yBAA4D,CAACC;QACjE,IAAI,CAACtB,qBAAqBsB,2BAA2BA,uBAAuBC,IAAI,KAAKf,iBAAiB;YACpGK,SACER,QAAQS,OAAO,CAACU;gBACdA,MAAMT,UAAU,GAAGO;YACrB;YAEF;QACF;QAEA,MAAM,IAAIG,MAAM;IAClB;IAEA,6CAA6C;IAC7C,MAAMC,qBAAqB,CAACR;QAC1BL,SACER,QAAQS,OAAO,CAACU;YACdA,MAAMN,KAAK,GAAGA;QAChB;IAEJ;IAEA,MAAMS,wBAAwBvB,YAC5B,CAACwB;QACCT,kBAAkBS;IACpB,GACA;QAACT;KAAkB;IAGrB,qBACE,MAAChB;QAAM0B,SAAS;QAAKC,eAAe;;0BAClC,MAACC;;kCACC,KAAC7B;wBACC8B,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAACpC;wBACCqC,sBAAsB5B;wBACtBM,OAAOG;wBACPJ,UAAUQ;wBACVgB,OAAM;wBACNC,OAAO;;;;0BAIX,MAACP;;kCACC,KAAC7B;wBACC8B,IAAI;4BACFC,SAAS;4BACTC,cAAc;4BACdC,YAAY;wBACd;kCACD;;kCAGD,KAAC7B;wBACCQ,OAAOI;wBACPL,UAAUc;wBACVY,QAAQnB;wBACRoB,WAAW,CAACC;4BACV,IAAIA,MAAMC,GAAG,KAAK,WAAYD,CAAAA,MAAME,OAAO,IAAIF,MAAMG,OAAO,AAAD,GAAI;gCAC7DH,MAAMI,cAAc;gCACpBnB,mBAAmBR;4BACrB;wBACF;wBACA4B,aAAY;;;;;;AAMtB"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Loki",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.4.0",
|
|
9
9
|
"buildName": "@perses-dev/loki-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Loki.
|
|
12
|
+
"name": "__mf/js/Loki.c48c56a7.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
{
|
|
88
88
|
"id": "Loki:@perses-dev/components",
|
|
89
89
|
"name": "@perses-dev/components",
|
|
90
|
-
"version": "0.53.0-beta.
|
|
90
|
+
"version": "0.53.0-beta.2",
|
|
91
91
|
"singleton": true,
|
|
92
|
-
"requiredVersion": "^0.53.0-beta.
|
|
92
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
93
93
|
"assets": {
|
|
94
94
|
"js": {
|
|
95
95
|
"async": [],
|
|
96
96
|
"sync": [
|
|
97
|
-
"__mf/js/async/4310.
|
|
97
|
+
"__mf/js/async/4310.6d2d2ce3.js"
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
"css": {
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
{
|
|
107
107
|
"id": "Loki:@perses-dev/dashboards",
|
|
108
108
|
"name": "@perses-dev/dashboards",
|
|
109
|
-
"version": "0.53.0-beta.
|
|
109
|
+
"version": "0.53.0-beta.2",
|
|
110
110
|
"singleton": true,
|
|
111
|
-
"requiredVersion": "^0.53.0-beta.
|
|
111
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
112
112
|
"assets": {
|
|
113
113
|
"js": {
|
|
114
114
|
"async": [],
|
|
115
115
|
"sync": [
|
|
116
|
-
"__mf/js/async/
|
|
116
|
+
"__mf/js/async/4676.d4c41b7a.js"
|
|
117
117
|
]
|
|
118
118
|
},
|
|
119
119
|
"css": {
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
{
|
|
126
126
|
"id": "Loki:@perses-dev/explore",
|
|
127
127
|
"name": "@perses-dev/explore",
|
|
128
|
-
"version": "0.53.0-beta.
|
|
128
|
+
"version": "0.53.0-beta.2",
|
|
129
129
|
"singleton": true,
|
|
130
|
-
"requiredVersion": "^0.53.0-beta.
|
|
130
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
131
131
|
"assets": {
|
|
132
132
|
"js": {
|
|
133
133
|
"async": [],
|
|
134
134
|
"sync": [
|
|
135
|
-
"__mf/js/async/4421.
|
|
135
|
+
"__mf/js/async/4421.28cc8e2d.js"
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
138
|
"css": {
|
|
@@ -144,14 +144,14 @@
|
|
|
144
144
|
{
|
|
145
145
|
"id": "Loki:@perses-dev/plugin-system",
|
|
146
146
|
"name": "@perses-dev/plugin-system",
|
|
147
|
-
"version": "0.53.0-beta.
|
|
147
|
+
"version": "0.53.0-beta.2",
|
|
148
148
|
"singleton": true,
|
|
149
|
-
"requiredVersion": "^0.53.0-beta.
|
|
149
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
150
150
|
"assets": {
|
|
151
151
|
"js": {
|
|
152
152
|
"async": [],
|
|
153
153
|
"sync": [
|
|
154
|
-
"__mf/js/async/
|
|
154
|
+
"__mf/js/async/4557.fd670526.js"
|
|
155
155
|
]
|
|
156
156
|
},
|
|
157
157
|
"css": {
|
|
@@ -340,20 +340,20 @@
|
|
|
340
340
|
"assets": {
|
|
341
341
|
"js": {
|
|
342
342
|
"sync": [
|
|
343
|
-
"__mf/js/async/__federation_expose_LokiDatasource.
|
|
343
|
+
"__mf/js/async/__federation_expose_LokiDatasource.3ce6abca.js"
|
|
344
344
|
],
|
|
345
345
|
"async": [
|
|
346
346
|
"__mf/js/async/282.6c4c5a94.js",
|
|
347
347
|
"__mf/js/async/1360.2348e2a7.js",
|
|
348
348
|
"__mf/js/async/8537.dc791586.js",
|
|
349
349
|
"__mf/js/async/6329.9c3a3698.js",
|
|
350
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
350
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js",
|
|
351
351
|
"__mf/js/async/1540.6b797827.js",
|
|
352
352
|
"__mf/js/async/5780.d837c3cd.js",
|
|
353
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
353
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js",
|
|
354
354
|
"__mf/js/async/2226.a056d1a3.js",
|
|
355
355
|
"__mf/js/async/7376.0459aaf7.js",
|
|
356
|
-
"__mf/js/async/
|
|
356
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
357
357
|
"__mf/js/async/2652.7b7038d2.js",
|
|
358
358
|
"__mf/js/async/3431.2270637c.js",
|
|
359
359
|
"__mf/js/async/6134.f7ee513c.js",
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"__mf/js/async/2292.35c2eeec.js",
|
|
363
363
|
"__mf/js/async/8488.5b4b7170.js",
|
|
364
364
|
"__mf/js/async/8216.d9cc6234.js",
|
|
365
|
-
"__mf/js/async/
|
|
365
|
+
"__mf/js/async/7797.822237c9.js"
|
|
366
366
|
]
|
|
367
367
|
},
|
|
368
368
|
"css": {
|
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
"__mf/js/async/1360.2348e2a7.js",
|
|
385
385
|
"__mf/js/async/8537.dc791586.js",
|
|
386
386
|
"__mf/js/async/6329.9c3a3698.js",
|
|
387
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
387
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js"
|
|
388
388
|
],
|
|
389
389
|
"async": [
|
|
390
390
|
"__mf/js/async/4238.155e3b8a.js",
|
|
391
391
|
"__mf/js/async/3224.b1170acc.js",
|
|
392
392
|
"__mf/js/async/2226.a056d1a3.js",
|
|
393
393
|
"__mf/js/async/7376.0459aaf7.js",
|
|
394
|
-
"__mf/js/async/
|
|
394
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
395
395
|
"__mf/js/async/2652.7b7038d2.js",
|
|
396
396
|
"__mf/js/async/1540.6b797827.js",
|
|
397
397
|
"__mf/js/async/282.6c4c5a94.js",
|
|
@@ -399,13 +399,13 @@
|
|
|
399
399
|
"__mf/js/async/5780.d837c3cd.js",
|
|
400
400
|
"__mf/js/async/8537.dc791586.js",
|
|
401
401
|
"__mf/js/async/6329.9c3a3698.js",
|
|
402
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
402
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js",
|
|
403
403
|
"__mf/js/async/3431.2270637c.js",
|
|
404
404
|
"__mf/js/async/6134.f7ee513c.js",
|
|
405
405
|
"__mf/js/async/2292.35c2eeec.js",
|
|
406
406
|
"__mf/js/async/8488.5b4b7170.js",
|
|
407
407
|
"__mf/js/async/8216.d9cc6234.js",
|
|
408
|
-
"__mf/js/async/
|
|
408
|
+
"__mf/js/async/7797.822237c9.js"
|
|
409
409
|
]
|
|
410
410
|
},
|
|
411
411
|
"css": {
|
|
@@ -429,26 +429,26 @@
|
|
|
429
429
|
"__mf/js/async/5780.d837c3cd.js",
|
|
430
430
|
"__mf/js/async/8537.dc791586.js",
|
|
431
431
|
"__mf/js/async/6329.9c3a3698.js",
|
|
432
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
432
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js"
|
|
433
433
|
],
|
|
434
434
|
"async": [
|
|
435
435
|
"__mf/js/async/2226.a056d1a3.js",
|
|
436
436
|
"__mf/js/async/7376.0459aaf7.js",
|
|
437
|
-
"__mf/js/async/
|
|
437
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
438
438
|
"__mf/js/async/2652.7b7038d2.js",
|
|
439
439
|
"__mf/js/async/3431.2270637c.js",
|
|
440
440
|
"__mf/js/async/282.6c4c5a94.js",
|
|
441
441
|
"__mf/js/async/1360.2348e2a7.js",
|
|
442
442
|
"__mf/js/async/8537.dc791586.js",
|
|
443
443
|
"__mf/js/async/6329.9c3a3698.js",
|
|
444
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
444
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js",
|
|
445
445
|
"__mf/js/async/6134.f7ee513c.js",
|
|
446
446
|
"__mf/js/async/4238.155e3b8a.js",
|
|
447
447
|
"__mf/js/async/3224.b1170acc.js",
|
|
448
448
|
"__mf/js/async/2292.35c2eeec.js",
|
|
449
449
|
"__mf/js/async/8488.5b4b7170.js",
|
|
450
450
|
"__mf/js/async/8216.d9cc6234.js",
|
|
451
|
-
"__mf/js/async/
|
|
451
|
+
"__mf/js/async/7797.822237c9.js"
|
|
452
452
|
]
|
|
453
453
|
},
|
|
454
454
|
"css": {
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Loki",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.
|
|
8
|
+
"buildVersion": "0.4.0",
|
|
9
9
|
"buildName": "@perses-dev/loki-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Loki.
|
|
12
|
+
"name": "__mf/js/Loki.c48c56a7.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"singleton": true,
|
|
98
|
-
"requiredVersion": "^0.53.0-beta.
|
|
98
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
99
99
|
"shareScope": "default",
|
|
100
100
|
"name": "@perses-dev/components",
|
|
101
|
-
"version": "0.53.0-beta.
|
|
101
|
+
"version": "0.53.0-beta.2",
|
|
102
102
|
"eager": false,
|
|
103
103
|
"id": "Loki:@perses-dev/components",
|
|
104
104
|
"assets": {
|
|
105
105
|
"js": {
|
|
106
106
|
"async": [],
|
|
107
107
|
"sync": [
|
|
108
|
-
"__mf/js/async/4310.
|
|
108
|
+
"__mf/js/async/4310.6d2d2ce3.js"
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"css": {
|
|
@@ -117,17 +117,17 @@
|
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"singleton": true,
|
|
120
|
-
"requiredVersion": "^0.53.0-beta.
|
|
120
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
121
121
|
"shareScope": "default",
|
|
122
122
|
"name": "@perses-dev/dashboards",
|
|
123
|
-
"version": "0.53.0-beta.
|
|
123
|
+
"version": "0.53.0-beta.2",
|
|
124
124
|
"eager": false,
|
|
125
125
|
"id": "Loki:@perses-dev/dashboards",
|
|
126
126
|
"assets": {
|
|
127
127
|
"js": {
|
|
128
128
|
"async": [],
|
|
129
129
|
"sync": [
|
|
130
|
-
"__mf/js/async/
|
|
130
|
+
"__mf/js/async/4676.d4c41b7a.js"
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
133
|
"css": {
|
|
@@ -139,17 +139,17 @@
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"singleton": true,
|
|
142
|
-
"requiredVersion": "^0.53.0-beta.
|
|
142
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
143
143
|
"shareScope": "default",
|
|
144
144
|
"name": "@perses-dev/explore",
|
|
145
|
-
"version": "0.53.0-beta.
|
|
145
|
+
"version": "0.53.0-beta.2",
|
|
146
146
|
"eager": false,
|
|
147
147
|
"id": "Loki:@perses-dev/explore",
|
|
148
148
|
"assets": {
|
|
149
149
|
"js": {
|
|
150
150
|
"async": [],
|
|
151
151
|
"sync": [
|
|
152
|
-
"__mf/js/async/4421.
|
|
152
|
+
"__mf/js/async/4421.28cc8e2d.js"
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
155
|
"css": {
|
|
@@ -161,17 +161,17 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"singleton": true,
|
|
164
|
-
"requiredVersion": "^0.53.0-beta.
|
|
164
|
+
"requiredVersion": "^0.53.0-beta.2",
|
|
165
165
|
"shareScope": "default",
|
|
166
166
|
"name": "@perses-dev/plugin-system",
|
|
167
|
-
"version": "0.53.0-beta.
|
|
167
|
+
"version": "0.53.0-beta.2",
|
|
168
168
|
"eager": false,
|
|
169
169
|
"id": "Loki:@perses-dev/plugin-system",
|
|
170
170
|
"assets": {
|
|
171
171
|
"js": {
|
|
172
172
|
"async": [],
|
|
173
173
|
"sync": [
|
|
174
|
-
"__mf/js/async/
|
|
174
|
+
"__mf/js/async/4557.fd670526.js"
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
177
|
"css": {
|
|
@@ -391,20 +391,20 @@
|
|
|
391
391
|
"assets": {
|
|
392
392
|
"js": {
|
|
393
393
|
"sync": [
|
|
394
|
-
"__mf/js/async/__federation_expose_LokiDatasource.
|
|
394
|
+
"__mf/js/async/__federation_expose_LokiDatasource.3ce6abca.js"
|
|
395
395
|
],
|
|
396
396
|
"async": [
|
|
397
397
|
"__mf/js/async/282.6c4c5a94.js",
|
|
398
398
|
"__mf/js/async/1360.2348e2a7.js",
|
|
399
399
|
"__mf/js/async/8537.dc791586.js",
|
|
400
400
|
"__mf/js/async/6329.9c3a3698.js",
|
|
401
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
401
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js",
|
|
402
402
|
"__mf/js/async/1540.6b797827.js",
|
|
403
403
|
"__mf/js/async/5780.d837c3cd.js",
|
|
404
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
404
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js",
|
|
405
405
|
"__mf/js/async/2226.a056d1a3.js",
|
|
406
406
|
"__mf/js/async/7376.0459aaf7.js",
|
|
407
|
-
"__mf/js/async/
|
|
407
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
408
408
|
"__mf/js/async/2652.7b7038d2.js",
|
|
409
409
|
"__mf/js/async/3431.2270637c.js",
|
|
410
410
|
"__mf/js/async/6134.f7ee513c.js",
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
"__mf/js/async/2292.35c2eeec.js",
|
|
414
414
|
"__mf/js/async/8488.5b4b7170.js",
|
|
415
415
|
"__mf/js/async/8216.d9cc6234.js",
|
|
416
|
-
"__mf/js/async/
|
|
416
|
+
"__mf/js/async/7797.822237c9.js"
|
|
417
417
|
]
|
|
418
418
|
},
|
|
419
419
|
"css": {
|
|
@@ -437,14 +437,14 @@
|
|
|
437
437
|
"__mf/js/async/1360.2348e2a7.js",
|
|
438
438
|
"__mf/js/async/8537.dc791586.js",
|
|
439
439
|
"__mf/js/async/6329.9c3a3698.js",
|
|
440
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
440
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js"
|
|
441
441
|
],
|
|
442
442
|
"async": [
|
|
443
443
|
"__mf/js/async/4238.155e3b8a.js",
|
|
444
444
|
"__mf/js/async/3224.b1170acc.js",
|
|
445
445
|
"__mf/js/async/2226.a056d1a3.js",
|
|
446
446
|
"__mf/js/async/7376.0459aaf7.js",
|
|
447
|
-
"__mf/js/async/
|
|
447
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
448
448
|
"__mf/js/async/2652.7b7038d2.js",
|
|
449
449
|
"__mf/js/async/1540.6b797827.js",
|
|
450
450
|
"__mf/js/async/282.6c4c5a94.js",
|
|
@@ -452,13 +452,13 @@
|
|
|
452
452
|
"__mf/js/async/5780.d837c3cd.js",
|
|
453
453
|
"__mf/js/async/8537.dc791586.js",
|
|
454
454
|
"__mf/js/async/6329.9c3a3698.js",
|
|
455
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
455
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js",
|
|
456
456
|
"__mf/js/async/3431.2270637c.js",
|
|
457
457
|
"__mf/js/async/6134.f7ee513c.js",
|
|
458
458
|
"__mf/js/async/2292.35c2eeec.js",
|
|
459
459
|
"__mf/js/async/8488.5b4b7170.js",
|
|
460
460
|
"__mf/js/async/8216.d9cc6234.js",
|
|
461
|
-
"__mf/js/async/
|
|
461
|
+
"__mf/js/async/7797.822237c9.js"
|
|
462
462
|
]
|
|
463
463
|
},
|
|
464
464
|
"css": {
|
|
@@ -484,26 +484,26 @@
|
|
|
484
484
|
"__mf/js/async/5780.d837c3cd.js",
|
|
485
485
|
"__mf/js/async/8537.dc791586.js",
|
|
486
486
|
"__mf/js/async/6329.9c3a3698.js",
|
|
487
|
-
"__mf/js/async/__federation_expose_LokiLogQuery.
|
|
487
|
+
"__mf/js/async/__federation_expose_LokiLogQuery.c446c7ff.js"
|
|
488
488
|
],
|
|
489
489
|
"async": [
|
|
490
490
|
"__mf/js/async/2226.a056d1a3.js",
|
|
491
491
|
"__mf/js/async/7376.0459aaf7.js",
|
|
492
|
-
"__mf/js/async/
|
|
492
|
+
"__mf/js/async/9554.728cf7b9.js",
|
|
493
493
|
"__mf/js/async/2652.7b7038d2.js",
|
|
494
494
|
"__mf/js/async/3431.2270637c.js",
|
|
495
495
|
"__mf/js/async/282.6c4c5a94.js",
|
|
496
496
|
"__mf/js/async/1360.2348e2a7.js",
|
|
497
497
|
"__mf/js/async/8537.dc791586.js",
|
|
498
498
|
"__mf/js/async/6329.9c3a3698.js",
|
|
499
|
-
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.
|
|
499
|
+
"__mf/js/async/__federation_expose_LokiTimeSeriesQuery.eda99bf8.js",
|
|
500
500
|
"__mf/js/async/6134.f7ee513c.js",
|
|
501
501
|
"__mf/js/async/4238.155e3b8a.js",
|
|
502
502
|
"__mf/js/async/3224.b1170acc.js",
|
|
503
503
|
"__mf/js/async/2292.35c2eeec.js",
|
|
504
504
|
"__mf/js/async/8488.5b4b7170.js",
|
|
505
505
|
"__mf/js/async/8216.d9cc6234.js",
|
|
506
|
-
"__mf/js/async/
|
|
506
|
+
"__mf/js/async/7797.822237c9.js"
|
|
507
507
|
]
|
|
508
508
|
},
|
|
509
509
|
"css": {
|