@perses-dev/log-explorer-plugin 0.1.0 → 0.2.0-beta.2

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.
Files changed (120) hide show
  1. package/__mf/js/{LogExplorer.06015274.js → LogExplorer.f79aa558.js} +3 -3
  2. package/__mf/js/async/1299.40399562.js +1 -0
  3. package/__mf/js/async/1522.bd893a10.js +22 -0
  4. package/__mf/js/async/1616.2109b6f3.js +1 -0
  5. package/__mf/js/async/{1629.362e7ce6.js → 1629.640f6594.js} +4 -4
  6. package/__mf/js/async/1969.b2b53e73.js +1 -0
  7. package/__mf/js/async/2043.8a14ddd5.js +2 -0
  8. package/__mf/js/async/2377.8669325a.js +1 -0
  9. package/__mf/js/async/2650.253536c6.js +3 -0
  10. package/__mf/js/async/3059.e4f87194.js +1 -0
  11. package/__mf/js/async/3210.3411e969.js +1 -0
  12. package/__mf/js/async/392.201cbc95.js +2 -0
  13. package/__mf/js/async/4077.40711111.js +1 -0
  14. package/__mf/js/async/4121.5b2c50ec.js +2 -0
  15. package/__mf/js/async/4350.bef5ecb9.js +1 -0
  16. package/__mf/js/async/4496.491fb4ea.js +1 -0
  17. package/__mf/js/async/{4540.ac074e48.js → 4540.a328ece2.js} +4 -4
  18. package/__mf/js/async/5071.110e3901.js +1 -0
  19. package/__mf/js/async/5247.045f1564.js +2 -0
  20. package/__mf/js/async/5440.3be10029.js +2 -0
  21. package/__mf/js/async/5587.2dd31f4a.js +1 -0
  22. package/__mf/js/async/6274.34fc859e.js +2 -0
  23. package/__mf/js/async/672.f2126e56.js +7 -0
  24. package/__mf/js/async/{6155.de192e6a.js.LICENSE.txt → 672.f2126e56.js.LICENSE.txt} +41 -1
  25. package/__mf/js/async/6854.3fa8058f.js +1 -0
  26. package/__mf/js/async/7127.d3284d3c.js +1 -0
  27. package/__mf/js/async/7177.65bff3d1.js +1 -0
  28. package/__mf/js/async/7192.67396049.js +1 -0
  29. package/__mf/js/async/7862.d23ccd67.js +2 -0
  30. package/__mf/js/async/7968.1f8fa69a.js +1 -0
  31. package/__mf/js/async/7978.4a548866.js +1 -0
  32. package/__mf/js/async/8356.c608e289.js +1 -0
  33. package/__mf/js/async/8470.6e143be7.js +2 -0
  34. package/__mf/js/async/873.cfdc476e.js +1 -0
  35. package/__mf/js/async/8869.6bb085d6.js +37 -0
  36. package/__mf/js/async/9235.5ad5a0af.js +1 -0
  37. package/__mf/js/async/941.98cbe236.js +2 -0
  38. package/__mf/js/async/9558.d43ee429.js +1 -0
  39. package/__mf/js/async/9588.ac652181.js +1 -0
  40. package/__mf/js/async/9836.9002ab7d.js +1 -0
  41. package/__mf/js/async/__federation_expose_LogExplorer.d4037ba9.js +1 -0
  42. package/__mf/js/{main.e0139ef3.js → main.5abb29ab.js} +2 -2
  43. package/lib/bootstrap.js +2 -2
  44. package/lib/explore/index.js +1 -1
  45. package/lib/explore/index.js.map +1 -1
  46. package/lib/explore/log-explorer/LogExplorer.d.ts +1 -1
  47. package/lib/explore/log-explorer/LogExplorer.d.ts.map +1 -1
  48. package/lib/explore/log-explorer/LogExplorer.js +6 -6
  49. package/lib/explore/log-explorer/LogExplorer.js.map +1 -1
  50. package/lib/explore/log-explorer/index.js +1 -1
  51. package/lib/explore/log-explorer/index.js.map +1 -1
  52. package/lib/getPluginModule.d.ts +1 -1
  53. package/lib/getPluginModule.d.ts.map +1 -1
  54. package/lib/getPluginModule.js +3 -1
  55. package/lib/getPluginModule.js.map +1 -1
  56. package/lib/index-federation.js +1 -1
  57. package/lib/index.js +2 -2
  58. package/lib/index.js.map +1 -1
  59. package/lib/setup-tests.d.ts +1 -1
  60. package/lib/setup-tests.d.ts.map +1 -1
  61. package/lib/setup-tests.js +2 -2
  62. package/lib/setup-tests.js.map +1 -1
  63. package/mf-manifest.json +49 -46
  64. package/mf-stats.json +49 -46
  65. package/package.json +12 -12
  66. package/__mf/js/async/1616.395e3ca2.js +0 -1
  67. package/__mf/js/async/1728.c422454f.js +0 -1
  68. package/__mf/js/async/1918.65f235ca.js +0 -1
  69. package/__mf/js/async/1969.0997d1af.js +0 -1
  70. package/__mf/js/async/2043.9b38749d.js +0 -2
  71. package/__mf/js/async/2377.f0459e09.js +0 -1
  72. package/__mf/js/async/3059.5da6749f.js +0 -1
  73. package/__mf/js/async/392.186a8d93.js +0 -2
  74. package/__mf/js/async/3981.702d8d4c.js +0 -3
  75. package/__mf/js/async/4121.fa36ad03.js +0 -2
  76. package/__mf/js/async/4350.899dcf32.js +0 -1
  77. package/__mf/js/async/5071.ae015049.js +0 -1
  78. package/__mf/js/async/5440.4b68d7db.js +0 -2
  79. package/__mf/js/async/5481.20ec775a.js +0 -2
  80. package/__mf/js/async/5587.18509444.js +0 -1
  81. package/__mf/js/async/6155.de192e6a.js +0 -2
  82. package/__mf/js/async/6274.684a77e6.js +0 -2
  83. package/__mf/js/async/6854.77621c34.js +0 -1
  84. package/__mf/js/async/7177.f68e42bf.js +0 -1
  85. package/__mf/js/async/7192.083e20fa.js +0 -1
  86. package/__mf/js/async/7968.39f513d3.js +0 -1
  87. package/__mf/js/async/7978.418f4fba.js +0 -1
  88. package/__mf/js/async/7984.27fe4273.js +0 -22
  89. package/__mf/js/async/8187.33892c7e.js +0 -7
  90. package/__mf/js/async/8187.33892c7e.js.LICENSE.txt +0 -39
  91. package/__mf/js/async/8356.edd5de8e.js +0 -1
  92. package/__mf/js/async/8470.ef582b4c.js +0 -2
  93. package/__mf/js/async/873.038fc7b8.js +0 -1
  94. package/__mf/js/async/9235.6b36b50f.js +0 -1
  95. package/__mf/js/async/941.998a8cf0.js +0 -2
  96. package/__mf/js/async/9558.9155c53c.js +0 -1
  97. package/__mf/js/async/9588.d892e127.js +0 -1
  98. package/__mf/js/async/9836.769f0f5b.js +0 -1
  99. package/__mf/js/async/9877.9d2de522.js +0 -38
  100. package/__mf/js/async/__federation_expose_LogExplorer.cf1794a5.js +0 -1
  101. package/lib/cjs/bootstrap.js +0 -26
  102. package/lib/cjs/env.d.js +0 -14
  103. package/lib/cjs/explore/index.js +0 -30
  104. package/lib/cjs/explore/log-explorer/LogExplorer.js +0 -173
  105. package/lib/cjs/explore/log-explorer/index.js +0 -30
  106. package/lib/cjs/getPluginModule.js +0 -39
  107. package/lib/cjs/index-federation.js +0 -55
  108. package/lib/cjs/index.js +0 -37
  109. package/lib/cjs/setup-tests.js +0 -19
  110. /package/__mf/css/async/{8187.85c2cbf6.css → 672.85c2cbf6.css} +0 -0
  111. /package/__mf/js/async/{7984.27fe4273.js.LICENSE.txt → 1522.bd893a10.js.LICENSE.txt} +0 -0
  112. /package/__mf/js/async/{1629.362e7ce6.js.LICENSE.txt → 1629.640f6594.js.LICENSE.txt} +0 -0
  113. /package/__mf/js/async/{2043.9b38749d.js.LICENSE.txt → 2043.8a14ddd5.js.LICENSE.txt} +0 -0
  114. /package/__mf/js/async/{392.186a8d93.js.LICENSE.txt → 392.201cbc95.js.LICENSE.txt} +0 -0
  115. /package/__mf/js/async/{4121.fa36ad03.js.LICENSE.txt → 4121.5b2c50ec.js.LICENSE.txt} +0 -0
  116. /package/__mf/js/async/{5440.4b68d7db.js.LICENSE.txt → 5440.3be10029.js.LICENSE.txt} +0 -0
  117. /package/__mf/js/async/{6274.684a77e6.js.LICENSE.txt → 6274.34fc859e.js.LICENSE.txt} +0 -0
  118. /package/__mf/js/async/{5481.20ec775a.js.LICENSE.txt → 7862.d23ccd67.js.LICENSE.txt} +0 -0
  119. /package/__mf/js/async/{8470.ef582b4c.js.LICENSE.txt → 8470.6e143be7.js.LICENSE.txt} +0 -0
  120. /package/__mf/js/async/{941.998a8cf0.js.LICENSE.txt → 941.98cbe236.js.LICENSE.txt} +0 -0
@@ -10,6 +10,6 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- export * from './log-explorer';
13
+ export * from "./log-explorer/index.js";
14
14
 
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/explore/index.ts"],"sourcesContent":["// Copyright 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\nexport * from './log-explorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,iBAAiB"}
1
+ {"version":3,"sources":["../../../src/explore/index.ts"],"sourcesContent":["// Copyright 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\nexport * from './log-explorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,0BAAiB"}
@@ -1,3 +1,3 @@
1
- import { ReactElement } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  export declare function LogExplorer(): ReactElement;
3
3
  //# sourceMappingURL=LogExplorer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogExplorer.d.ts","sourceRoot":"","sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAC;AAuExD,wBAAgB,WAAW,IAAI,YAAY,CAqE1C"}
1
+ {"version":3,"file":"LogExplorer.d.ts","sourceRoot":"","sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAoE1C,wBAAgB,WAAW,IAAI,YAAY,CAqE1C"}
@@ -11,12 +11,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { Box, Stack } from '@mui/material';
15
- import { DataQueriesProvider, MultiQueryEditor, useAllVariableValues, useDatasourceStore, useListPluginMetadata, usePluginRegistry, useTimeRange } from '@perses-dev/plugin-system';
16
- import { useState, useMemo } from 'react';
17
- import { Panel } from '@perses-dev/dashboards';
18
- import { useExplorerManagerContext } from '@perses-dev/explore';
19
- import { useQuery } from '@tanstack/react-query';
14
+ import { Box, Stack } from "@mui/material";
15
+ import { Panel } from "@perses-dev/dashboards";
16
+ import { useExplorerManagerContext } from "@perses-dev/explore";
17
+ import { DataQueriesProvider, MultiQueryEditor, useAllVariableValues, useDatasourceStore, useListPluginMetadata, usePluginRegistry, useTimeRange } from "@perses-dev/plugin-system";
18
+ import { useQuery } from "@tanstack/react-query";
19
+ import { useState, useMemo } from "react";
20
20
  const PANEL_PREVIEW_HEIGHT = 700;
21
21
  const HISTOGRAM_HEIGHT = 200;
22
22
  const EMPTY_QUERIES = [];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"sourcesContent":["// Copyright 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 { Box, Stack } from '@mui/material';\nimport {\n DataQueriesProvider,\n LogQueryContext,\n MultiQueryEditor,\n useAllVariableValues,\n useDatasourceStore,\n useListPluginMetadata,\n usePluginRegistry,\n useTimeRange,\n} from '@perses-dev/plugin-system';\nimport { ReactElement, useState, useMemo } from 'react';\nimport { QueryDefinition } from '@perses-dev/spec';\nimport { Panel } from '@perses-dev/dashboards';\nimport { useExplorerManagerContext } from '@perses-dev/explore';\nimport { useQuery } from '@tanstack/react-query';\n\ninterface LogExplorerQueryParams {\n queries?: QueryDefinition[];\n}\n\nconst PANEL_PREVIEW_HEIGHT = 700;\nconst HISTOGRAM_HEIGHT = 200;\nconst EMPTY_QUERIES: QueryDefinition[] = [];\n\nfunction LogsTablePanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n const height = PANEL_PREVIEW_HEIGHT;\n\n return (\n <Box height={height}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: { queries: queries, display: { name: '' }, plugin: { kind: 'LogsTable', spec: {} } },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nfunction VolumeHistogramPanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n return (\n <Box height={HISTOGRAM_HEIGHT}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: {\n queries: queries,\n display: { name: 'Log Volume' },\n plugin: {\n kind: 'TimeSeriesChart',\n spec: {\n legend: {\n position: 'bottom',\n mode: 'list',\n },\n visual: {\n display: 'bar',\n stack: 'all',\n },\n yAxis: {\n label: 'Logs per second',\n },\n },\n },\n },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nexport function LogExplorer(): ReactElement {\n const {\n data: { queries = EMPTY_QUERIES },\n setData,\n } = useExplorerManagerContext<LogExplorerQueryParams>();\n\n const [queryDefinitions, setQueryDefinitions] = useState<QueryDefinition[]>(queries);\n\n const { getPlugin } = usePluginRegistry();\n const { absoluteTimeRange } = useTimeRange();\n const datasourceStore = useDatasourceStore();\n const variableState = useAllVariableValues();\n\n const logQueryContext: LogQueryContext = useMemo(\n () => ({\n timeRange: absoluteTimeRange,\n variableState,\n datasourceStore,\n refreshKey: '',\n }),\n [absoluteTimeRange, variableState, datasourceStore]\n );\n\n // Get all datasource plugins that support LogQuery\n const { data: datasourcePlugins } = useListPluginMetadata(['Datasource']);\n\n const logDatasourcePlugins = useMemo(\n () =>\n datasourcePlugins\n ?.filter((plugin) => {\n const pluginSpec = plugin.spec as { supportedQueryTypes?: string[] };\n return pluginSpec?.supportedQueryTypes?.includes('LogQuery');\n })\n .map((p) => p.kind) ?? [],\n [datasourcePlugins]\n );\n\n const { data: volumeQueries = EMPTY_QUERIES } = useQuery({\n queryKey: ['logexplorer-volume-queries', queries, logQueryContext],\n queryFn: async (): Promise<QueryDefinition[]> => {\n const results = await Promise.all(\n queries.map(async (query) => {\n if (query.kind !== 'LogQuery') return null;\n try {\n const plugin = await getPlugin({ kind: 'LogQuery', name: query.spec.plugin.kind });\n return plugin?.createVolumeQuery?.(query.spec.plugin.spec, logQueryContext) ?? null;\n } catch (error) {\n console.error(`[LogExplorer] Failed to create volume query for ${query.spec.plugin.kind}:`, error);\n return null;\n }\n })\n );\n return results.filter((q): q is QueryDefinition => q !== null);\n },\n });\n\n return (\n <Stack gap={2} sx={{ width: '100%' }}>\n <MultiQueryEditor\n queryTypes={['LogQuery']}\n filteredQueryPlugins={logDatasourcePlugins}\n queries={queryDefinitions}\n onChange={(state) => setQueryDefinitions(state)}\n onQueryRun={() => setData({ queries: queryDefinitions })}\n />\n {volumeQueries.length > 0 && <VolumeHistogramPanel queries={volumeQueries} />}\n <LogsTablePanel queries={queries} />\n </Stack>\n );\n}\n"],"names":["Box","Stack","DataQueriesProvider","MultiQueryEditor","useAllVariableValues","useDatasourceStore","useListPluginMetadata","usePluginRegistry","useTimeRange","useState","useMemo","Panel","useExplorerManagerContext","useQuery","PANEL_PREVIEW_HEIGHT","HISTOGRAM_HEIGHT","EMPTY_QUERIES","LogsTablePanel","queries","height","definitions","panelOptions","hideHeader","definition","kind","spec","display","name","plugin","VolumeHistogramPanel","legend","position","mode","visual","stack","yAxis","label","LogExplorer","data","setData","queryDefinitions","setQueryDefinitions","getPlugin","absoluteTimeRange","datasourceStore","variableState","logQueryContext","timeRange","refreshKey","datasourcePlugins","logDatasourcePlugins","filter","pluginSpec","supportedQueryTypes","includes","map","p","volumeQueries","queryKey","queryFn","results","Promise","all","query","createVolumeQuery","error","console","q","gap","sx","width","queryTypes","filteredQueryPlugins","onChange","state","onQueryRun","length"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,GAAG,EAAEC,KAAK,QAAQ,gBAAgB;AAC3C,SACEC,mBAAmB,EAEnBC,gBAAgB,EAChBC,oBAAoB,EACpBC,kBAAkB,EAClBC,qBAAqB,EACrBC,iBAAiB,EACjBC,YAAY,QACP,4BAA4B;AACnC,SAAuBC,QAAQ,EAAEC,OAAO,QAAQ,QAAQ;AAExD,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,QAAQ,QAAQ,wBAAwB;AAMjD,MAAMC,uBAAuB;AAC7B,MAAMC,mBAAmB;AACzB,MAAMC,g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B;oBAAiB;;YAEvDiB,cAAcmB,MAAM,GAAG,mBAAK,KAAC/C;gBAAqBX,SAASuC;;0BAC5D,KAACxC;gBAAeC,SAASA;;;;AAG/B"}
1
+ {"version":3,"sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"sourcesContent":["// Copyright 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 { Box, Stack } from '@mui/material';\nimport { Panel } from '@perses-dev/dashboards';\nimport { useExplorerManagerContext } from '@perses-dev/explore';\nimport type { LogQueryContext } from '@perses-dev/plugin-system';\nimport {\n DataQueriesProvider,\n MultiQueryEditor,\n useAllVariableValues,\n useDatasourceStore,\n useListPluginMetadata,\n usePluginRegistry,\n useTimeRange,\n} from '@perses-dev/plugin-system';\nimport type { QueryDefinition } from '@perses-dev/spec';\nimport { useQuery } from '@tanstack/react-query';\nimport type { ReactElement } from 'react';\nimport { useState, useMemo } from 'react';\n\ninterface LogExplorerQueryParams {\n queries?: QueryDefinition[];\n}\n\nconst PANEL_PREVIEW_HEIGHT = 700;\nconst HISTOGRAM_HEIGHT = 200;\nconst EMPTY_QUERIES: QueryDefinition[] = [];\n\nfunction LogsTablePanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n const height = PANEL_PREVIEW_HEIGHT;\n\n return (\n <Box height={height}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: { queries: queries, display: { name: '' }, plugin: { kind: 'LogsTable', spec: {} } },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nfunction VolumeHistogramPanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n return (\n <Box height={HISTOGRAM_HEIGHT}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: {\n queries: queries,\n display: { name: 'Log Volume' },\n plugin: {\n kind: 'TimeSeriesChart',\n spec: {\n legend: {\n position: 'bottom',\n mode: 'list',\n },\n visual: {\n display: 'bar',\n stack: 'all',\n },\n yAxis: {\n label: 'Logs per second',\n },\n },\n },\n },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nexport function LogExplorer(): ReactElement {\n const {\n data: { queries = EMPTY_QUERIES },\n setData,\n } = useExplorerManagerContext<LogExplorerQueryParams>();\n\n const [queryDefinitions, setQueryDefinitions] = useState<QueryDefinition[]>(queries);\n\n const { getPlugin } = usePluginRegistry();\n const { absoluteTimeRange } = useTimeRange();\n const datasourceStore = useDatasourceStore();\n const variableState = useAllVariableValues();\n\n const logQueryContext: LogQueryContext = useMemo(\n () => ({\n timeRange: absoluteTimeRange,\n variableState,\n datasourceStore,\n refreshKey: '',\n }),\n [absoluteTimeRange, variableState, datasourceStore],\n );\n\n // Get all datasource plugins that support LogQuery\n const { data: datasourcePlugins } = useListPluginMetadata(['Datasource']);\n\n const logDatasourcePlugins = useMemo(\n () =>\n datasourcePlugins\n ?.filter((plugin) => {\n const pluginSpec = plugin.spec as { supportedQueryTypes?: string[] };\n return pluginSpec?.supportedQueryTypes?.includes('LogQuery');\n })\n .map((p) => p.kind) ?? [],\n [datasourcePlugins],\n );\n\n const { data: volumeQueries = EMPTY_QUERIES } = useQuery({\n queryKey: ['logexplorer-volume-queries', queries, logQueryContext],\n queryFn: async (): Promise<QueryDefinition[]> => {\n const results = await Promise.all(\n queries.map(async (query) => {\n if (query.kind !== 'LogQuery') return null;\n try {\n const plugin = await getPlugin({ kind: 'LogQuery', name: query.spec.plugin.kind });\n return plugin?.createVolumeQuery?.(query.spec.plugin.spec, logQueryContext) ?? null;\n } catch (error) {\n console.error(`[LogExplorer] Failed to create volume query for ${query.spec.plugin.kind}:`, error);\n return null;\n }\n }),\n );\n return results.filter((q): q is QueryDefinition => q !== null);\n },\n });\n\n return (\n <Stack gap={2} sx={{ width: '100%' }}>\n <MultiQueryEditor\n queryTypes={['LogQuery']}\n filteredQueryPlugins={logDatasourcePlugins}\n queries={queryDefinitions}\n onChange={(state) => setQueryDefinitions(state)}\n onQueryRun={() => setData({ queries: queryDefinitions })}\n />\n {volumeQueries.length > 0 && <VolumeHistogramPanel queries={volumeQueries} />}\n <LogsTablePanel queries={queries} />\n </Stack>\n );\n}\n"],"names":["Box","Stack","Panel","useExplorerManagerContext","DataQueriesProvider","MultiQueryEditor","useAllVariableValues","useDatasourceStore","useListPluginMetadata","usePluginRegistry","useTimeRange","useQuery","useState","useMemo","PANEL_PREVIEW_HEIGHT","HISTOGRAM_HEIGHT","EMPTY_QUERIES","LogsTablePanel","queries","height","definitions","panelOptions","hideHeader","definition","kind","spec","display","name","plugin","VolumeHistogramPanel","legend","position","mode","visual","stack","yAxis","label","LogExplorer","data","setData","queryDefinitions","setQueryDefinitions","getPlugin","absoluteTimeRange","datasourceStore","variableState","logQueryContext","timeRange","refreshKey","datasourcePlugins","logDatasourcePlugins","filter","pluginSpec","supportedQueryTypes","includes","map","p","volumeQueries","queryKey","queryFn","results","Promise","all","query","createVolumeQuery","error","console","q","gap","sx","width","queryTypes","filteredQueryPlugins","onChange","state","onQueryRun","length"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,GAAG,EAAEC,KAAK,QAAQ,gBAAgB;AAC3C,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,yBAAyB,QAAQ,sBAAsB;AAEhE,SACEC,mBAAmB,EACnB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AAM;QAC3D;IACF;IAEA,qBACE,MAAClE;QAAMmE,KAAK;QAAGC,IAAI;YAAEC,OAAO;QAAO;;0BACjC,KAACjE;gBACCkE,YAAY;oBAAC;iBAAW;gBACxBC,sBAAsBtB;gBACtBhC,SAASsB;gBACTiC,UAAU,CAACC,QAAUjC,oBAAoBiC;gBACzCC,YAAY,IAAMpC,QAAQ;wBAAErB,SAASsB;oBAAiB;;YAEvDiB,cAAcmB,MAAM,GAAG,mBAAK,KAAC/C;gBAAqBX,SAASuC;;0BAC5D,KAACxC;gBAAeC,SAASA;;;;AAG/B"}
@@ -10,6 +10,6 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- export * from './LogExplorer';
13
+ export * from "./LogExplorer.js";
14
14
 
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/explore/log-explorer/index.ts"],"sourcesContent":["// Copyright 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\nexport * from './LogExplorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,gBAAgB"}
1
+ {"version":3,"sources":["../../../../src/explore/log-explorer/index.ts"],"sourcesContent":["// Copyright 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\nexport * from './LogExplorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,mBAAgB"}
@@ -1,4 +1,4 @@
1
- import { PluginModuleResource } from '@perses-dev/plugin-system';
1
+ import type { PluginModuleResource } from '@perses-dev/plugin-system';
2
2
  /**
3
3
  * Returns the plugin module information from package.json
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAGnF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
1
+ {"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAIxF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
@@ -10,7 +10,9 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import packageJson from '../package.json';
13
+ import packageJson from "../package.json" with {
14
+ type: 'json'
15
+ };
14
16
  /**
15
17
  * Returns the plugin module information from package.json
16
18
  */ export function getPluginModule() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright 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 { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAOA,iBAAiB,kBAAkB;AAE1C;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAClC,OAAO;QACLK,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
1
+ {"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright 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 type { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\n\nimport packageJson from '../package.json' with { type: 'json' };\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","type","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,OAAOA,iBAAiB,uBAAuB;IAAEC,MAAM;AAAO,EAAE;AAEhE;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGL;IAClC,OAAO;QACLM,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
@@ -10,6 +10,6 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import('./bootstrap');
13
+ import("./bootstrap.js");
14
14
 
15
15
  //# sourceMappingURL=index-federation.js.map
package/lib/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- export { getPluginModule } from './getPluginModule';
14
- export * from './explore';
13
+ export { getPluginModule } from "./getPluginModule.js";
14
+ export * from "./explore/index.js";
15
15
 
16
16
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright 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\nexport { getPluginModule } from './getPluginModule';\nexport * from './explore';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,YAAY"}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright 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\nexport { getPluginModule } from './getPluginModule';\nexport * from './explore';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,uBAAoB;AACpD,cAAc,qBAAY"}
@@ -1,2 +1,2 @@
1
- import '@testing-library/jest-dom';
1
+ import '@testing-library/jest-dom/vitest';
2
2
  //# sourceMappingURL=setup-tests.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,2BAA2B,CAAC"}
1
+ {"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,kCAAkC,CAAC"}
@@ -10,8 +10,8 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import '@testing-library/jest-dom';
13
+ import "@testing-library/jest-dom/vitest";
14
14
  // Always mock e-charts during tests since we don't have a proper canvas in jsdom
15
- jest.mock('echarts/core');
15
+ vi.mock('echarts/core');
16
16
 
17
17
  //# sourceMappingURL=setup-tests.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright 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 '@testing-library/jest-dom';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\njest.mock('echarts/core');\n"],"names":["jest","mock"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,4BAA4B;AAEnC,iFAAiF;AACjFA,KAAKC,IAAI,CAAC"}
1
+ {"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright 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 '@testing-library/jest-dom/vitest';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\nvi.mock('echarts/core');\n"],"names":["vi","mock"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,mCAAmC;AAE1C,iFAAiF;AACjFA,GAAGC,IAAI,CAAC"}
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "LogExplorer",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.1.0",
8
+ "buildVersion": "0.2.0-beta.2",
9
9
  "buildName": "@perses-dev/log-explorer-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/LogExplorer.06015274.js",
12
+ "name": "__mf/js/LogExplorer.f79aa558.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -19,9 +19,9 @@
19
19
  "zip": "",
20
20
  "api": ""
21
21
  },
22
- "globalName": "LogExplorer",
22
+ "globalName": "LogExplorer_0_2_0_beta_2",
23
23
  "pluginVersion": "2.6.0",
24
- "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/LogExplorer/\"; }"
24
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/LogExplorer~0.2.0-beta.2/\"; }"
25
25
  },
26
26
  "shared": [
27
27
  {
@@ -34,7 +34,7 @@
34
34
  "js": {
35
35
  "async": [],
36
36
  "sync": [
37
- "__mf/js/async/6274.684a77e6.js"
37
+ "__mf/js/async/6274.34fc859e.js"
38
38
  ]
39
39
  },
40
40
  "css": {
@@ -54,9 +54,9 @@
54
54
  "js": {
55
55
  "async": [],
56
56
  "sync": [
57
- "__mf/js/async/1616.395e3ca2.js",
58
- "__mf/js/async/6854.77621c34.js",
59
- "__mf/js/async/9235.6b36b50f.js"
57
+ "__mf/js/async/1616.2109b6f3.js",
58
+ "__mf/js/async/6854.3fa8058f.js",
59
+ "__mf/js/async/9235.5ad5a0af.js"
60
60
  ]
61
61
  },
62
62
  "css": {
@@ -76,8 +76,8 @@
76
76
  "js": {
77
77
  "async": [],
78
78
  "sync": [
79
- "__mf/js/async/5587.18509444.js",
80
- "__mf/js/async/7968.39f513d3.js"
79
+ "__mf/js/async/5587.2dd31f4a.js",
80
+ "__mf/js/async/7968.1f8fa69a.js"
81
81
  ]
82
82
  },
83
83
  "css": {
@@ -90,20 +90,20 @@
90
90
  {
91
91
  "id": "LogExplorer:@perses-dev/components",
92
92
  "name": "@perses-dev/components",
93
- "version": "0.54.0",
93
+ "version": "0.55.0-beta.7",
94
94
  "singleton": true,
95
- "requiredVersion": "^0.54.0",
95
+ "requiredVersion": "^0.55.0-beta.7",
96
96
  "assets": {
97
97
  "js": {
98
98
  "async": [],
99
99
  "sync": [
100
- "__mf/js/async/8187.33892c7e.js"
100
+ "__mf/js/async/672.f2126e56.js"
101
101
  ]
102
102
  },
103
103
  "css": {
104
104
  "async": [],
105
105
  "sync": [
106
- "__mf/css/async/8187.85c2cbf6.css"
106
+ "__mf/css/async/672.85c2cbf6.css"
107
107
  ]
108
108
  }
109
109
  },
@@ -112,14 +112,14 @@
112
112
  {
113
113
  "id": "LogExplorer:@perses-dev/dashboards",
114
114
  "name": "@perses-dev/dashboards",
115
- "version": "0.54.0",
115
+ "version": "0.55.0-beta.7",
116
116
  "singleton": true,
117
- "requiredVersion": "^0.54.0",
117
+ "requiredVersion": "^0.55.0-beta.7",
118
118
  "assets": {
119
119
  "js": {
120
120
  "async": [],
121
121
  "sync": [
122
- "__mf/js/async/7984.27fe4273.js"
122
+ "__mf/js/async/1522.bd893a10.js"
123
123
  ]
124
124
  },
125
125
  "css": {
@@ -132,14 +132,14 @@
132
132
  {
133
133
  "id": "LogExplorer:@perses-dev/explore",
134
134
  "name": "@perses-dev/explore",
135
- "version": "0.54.0",
135
+ "version": "0.55.0-beta.7",
136
136
  "singleton": true,
137
- "requiredVersion": "^0.54.0",
137
+ "requiredVersion": "^0.55.0-beta.7",
138
138
  "assets": {
139
139
  "js": {
140
140
  "async": [],
141
141
  "sync": [
142
- "__mf/js/async/1728.c422454f.js"
142
+ "__mf/js/async/1299.40399562.js"
143
143
  ]
144
144
  },
145
145
  "css": {
@@ -152,14 +152,14 @@
152
152
  {
153
153
  "id": "LogExplorer:@perses-dev/plugin-system",
154
154
  "name": "@perses-dev/plugin-system",
155
- "version": "0.54.0",
155
+ "version": "0.55.0-beta.7",
156
156
  "singleton": true,
157
- "requiredVersion": "^0.54.0",
157
+ "requiredVersion": "^0.55.0-beta.7",
158
158
  "assets": {
159
159
  "js": {
160
160
  "async": [],
161
161
  "sync": [
162
- "__mf/js/async/3981.702d8d4c.js"
162
+ "__mf/js/async/2650.253536c6.js"
163
163
  ]
164
164
  },
165
165
  "css": {
@@ -179,7 +179,7 @@
179
179
  "js": {
180
180
  "async": [],
181
181
  "sync": [
182
- "__mf/js/async/5481.20ec775a.js"
182
+ "__mf/js/async/7862.d23ccd67.js"
183
183
  ]
184
184
  },
185
185
  "css": {
@@ -199,7 +199,7 @@
199
199
  "js": {
200
200
  "async": [],
201
201
  "sync": [
202
- "__mf/js/async/7192.083e20fa.js"
202
+ "__mf/js/async/7192.67396049.js"
203
203
  ]
204
204
  },
205
205
  "css": {
@@ -219,7 +219,7 @@
219
219
  "js": {
220
220
  "async": [],
221
221
  "sync": [
222
- "__mf/js/async/873.038fc7b8.js"
222
+ "__mf/js/async/873.cfdc476e.js"
223
223
  ]
224
224
  },
225
225
  "css": {
@@ -239,7 +239,7 @@
239
239
  "js": {
240
240
  "async": [],
241
241
  "sync": [
242
- "__mf/js/async/392.186a8d93.js"
242
+ "__mf/js/async/392.201cbc95.js"
243
243
  ]
244
244
  },
245
245
  "css": {
@@ -259,7 +259,7 @@
259
259
  "js": {
260
260
  "async": [],
261
261
  "sync": [
262
- "__mf/js/async/8470.ef582b4c.js"
262
+ "__mf/js/async/8470.6e143be7.js"
263
263
  ]
264
264
  },
265
265
  "css": {
@@ -279,7 +279,7 @@
279
279
  "js": {
280
280
  "async": [],
281
281
  "sync": [
282
- "__mf/js/async/8356.edd5de8e.js"
282
+ "__mf/js/async/8356.c608e289.js"
283
283
  ]
284
284
  },
285
285
  "css": {
@@ -299,7 +299,7 @@
299
299
  "js": {
300
300
  "async": [],
301
301
  "sync": [
302
- "__mf/js/async/5440.4b68d7db.js"
302
+ "__mf/js/async/5440.3be10029.js"
303
303
  ]
304
304
  },
305
305
  "css": {
@@ -319,7 +319,7 @@
319
319
  "js": {
320
320
  "async": [],
321
321
  "sync": [
322
- "__mf/js/async/4121.fa36ad03.js"
322
+ "__mf/js/async/4121.5b2c50ec.js"
323
323
  ]
324
324
  },
325
325
  "css": {
@@ -339,7 +339,7 @@
339
339
  "js": {
340
340
  "async": [],
341
341
  "sync": [
342
- "__mf/js/async/7978.418f4fba.js"
342
+ "__mf/js/async/7978.4a548866.js"
343
343
  ]
344
344
  },
345
345
  "css": {
@@ -358,27 +358,30 @@
358
358
  "assets": {
359
359
  "js": {
360
360
  "sync": [
361
- "__mf/js/async/1629.362e7ce6.js",
362
- "__mf/js/async/__federation_expose_LogExplorer.cf1794a5.js"
361
+ "__mf/js/async/1629.640f6594.js",
362
+ "__mf/js/async/__federation_expose_LogExplorer.d4037ba9.js"
363
363
  ],
364
364
  "async": [
365
- "__mf/js/async/4540.ac074e48.js",
366
- "__mf/js/async/9836.769f0f5b.js",
367
- "__mf/js/async/3059.5da6749f.js",
368
- "__mf/js/async/9558.9155c53c.js",
369
- "__mf/js/async/1918.65f235ca.js",
370
- "__mf/js/async/6155.de192e6a.js",
371
- "__mf/js/async/9588.d892e127.js",
372
- "__mf/js/async/5071.ae015049.js",
373
- "__mf/js/async/2043.9b38749d.js",
374
- "__mf/js/async/9877.9d2de522.js",
375
- "__mf/js/async/4350.899dcf32.js"
365
+ "__mf/js/async/5247.045f1564.js",
366
+ "__mf/js/async/4540.a328ece2.js",
367
+ "__mf/js/async/3059.e4f87194.js",
368
+ "__mf/js/async/3210.3411e969.js",
369
+ "__mf/js/async/8869.6bb085d6.js",
370
+ "__mf/js/async/1969.b2b53e73.js",
371
+ "__mf/js/async/9836.9002ab7d.js",
372
+ "__mf/js/async/7127.d3284d3c.js",
373
+ "__mf/js/async/9588.ac652181.js",
374
+ "__mf/js/async/5071.110e3901.js",
375
+ "__mf/js/async/2043.8a14ddd5.js",
376
+ "__mf/js/async/4077.40711111.js",
377
+ "__mf/js/async/4496.491fb4ea.js",
378
+ "__mf/js/async/7177.65bff3d1.js"
376
379
  ]
377
380
  },
378
381
  "css": {
379
382
  "sync": [],
380
383
  "async": [
381
- "__mf/css/async/8187.85c2cbf6.css"
384
+ "__mf/css/async/672.85c2cbf6.css"
382
385
  ]
383
386
  }
384
387
  },