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

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 (114) hide show
  1. package/__mf/js/{LogExplorer.06015274.js → LogExplorer.b97be7cf.js} +3 -3
  2. package/__mf/js/async/121.8b8bd338.js +2 -0
  3. package/__mf/js/async/127.d2f5c05d.js +1 -0
  4. package/__mf/js/async/175.8b000b01.js +7 -0
  5. package/__mf/js/async/175.8b000b01.js.LICENSE.txt +102 -0
  6. package/__mf/js/async/177.1a067808.js +1 -0
  7. package/__mf/js/async/192.ab7e846b.js +1 -0
  8. package/__mf/js/async/235.aea66ccd.js +1 -0
  9. package/__mf/js/async/247.5c162be4.js +2 -0
  10. package/__mf/js/async/274.1de9462c.js +2 -0
  11. package/__mf/js/async/299.91f93ea3.js +1 -0
  12. package/__mf/js/async/314.fc1a18c5.js +1 -0
  13. package/__mf/js/async/350.4d3bd3ce.js +1 -0
  14. package/__mf/js/async/356.fb1e56b5.js +1 -0
  15. package/__mf/js/async/377.1f3c55fa.js +1 -0
  16. package/__mf/js/async/392.77f19380.js +2 -0
  17. package/__mf/js/async/440.c3172ba8.js +2 -0
  18. package/__mf/js/async/470.4eea2534.js +2 -0
  19. package/__mf/js/async/522.a7d0cb62.js +22 -0
  20. package/__mf/js/async/{4540.ac074e48.js → 540.80fe4da4.js} +4 -4
  21. package/__mf/js/async/558.de1cf521.js +1 -0
  22. package/__mf/js/async/587.db19f102.js +1 -0
  23. package/__mf/js/async/59.a149a643.js +1 -0
  24. package/__mf/js/async/616.d344ffe0.js +1 -0
  25. package/__mf/js/async/{1629.362e7ce6.js → 629.09f94b44.js} +4 -4
  26. package/__mf/js/async/663.594d60bd.js +1 -0
  27. package/__mf/js/async/700.df59f564.js +3 -0
  28. package/__mf/js/async/836.0fb434d8.js +1 -0
  29. package/__mf/js/async/862.44b58830.js +2 -0
  30. package/__mf/js/async/869.fe1ce2a3.js +37 -0
  31. package/__mf/js/async/941.cf455ed5.js +2 -0
  32. package/__mf/js/async/968.556d0727.js +1 -0
  33. package/__mf/js/async/969.348a9af7.js +1 -0
  34. package/__mf/js/async/__federation_expose_LogExplorer.42654a0f.js +1 -0
  35. package/__mf/js/{main.e0139ef3.js → main.a661a7ae.js} +3 -3
  36. package/lib/bootstrap.js +2 -2
  37. package/lib/explore/index.js +1 -1
  38. package/lib/explore/index.js.map +1 -1
  39. package/lib/explore/log-explorer/LogExplorer.d.ts +1 -1
  40. package/lib/explore/log-explorer/LogExplorer.d.ts.map +1 -1
  41. package/lib/explore/log-explorer/LogExplorer.js +6 -6
  42. package/lib/explore/log-explorer/LogExplorer.js.map +1 -1
  43. package/lib/explore/log-explorer/index.js +1 -1
  44. package/lib/explore/log-explorer/index.js.map +1 -1
  45. package/lib/getPluginModule.d.ts +1 -1
  46. package/lib/getPluginModule.d.ts.map +1 -1
  47. package/lib/getPluginModule.js +3 -1
  48. package/lib/getPluginModule.js.map +1 -1
  49. package/lib/index-federation.js +1 -1
  50. package/lib/index.js +2 -2
  51. package/lib/index.js.map +1 -1
  52. package/lib/setup-tests.d.ts +1 -1
  53. package/lib/setup-tests.d.ts.map +1 -1
  54. package/lib/setup-tests.js +2 -2
  55. package/lib/setup-tests.js.map +1 -1
  56. package/mf-manifest.json +42 -84
  57. package/mf-stats.json +42 -92
  58. package/package.json +12 -12
  59. package/__mf/js/async/1616.395e3ca2.js +0 -1
  60. package/__mf/js/async/1728.c422454f.js +0 -1
  61. package/__mf/js/async/1918.65f235ca.js +0 -1
  62. package/__mf/js/async/1969.0997d1af.js +0 -1
  63. package/__mf/js/async/2043.9b38749d.js +0 -2
  64. package/__mf/js/async/2043.9b38749d.js.LICENSE.txt +0 -24
  65. package/__mf/js/async/2377.f0459e09.js +0 -1
  66. package/__mf/js/async/3059.5da6749f.js +0 -1
  67. package/__mf/js/async/392.186a8d93.js +0 -2
  68. package/__mf/js/async/3981.702d8d4c.js +0 -3
  69. package/__mf/js/async/4121.fa36ad03.js +0 -2
  70. package/__mf/js/async/4350.899dcf32.js +0 -1
  71. package/__mf/js/async/5071.ae015049.js +0 -1
  72. package/__mf/js/async/5440.4b68d7db.js +0 -2
  73. package/__mf/js/async/5481.20ec775a.js +0 -2
  74. package/__mf/js/async/5587.18509444.js +0 -1
  75. package/__mf/js/async/6155.de192e6a.js +0 -2
  76. package/__mf/js/async/6155.de192e6a.js.LICENSE.txt +0 -37
  77. package/__mf/js/async/6274.684a77e6.js +0 -2
  78. package/__mf/js/async/6854.77621c34.js +0 -1
  79. package/__mf/js/async/7177.f68e42bf.js +0 -1
  80. package/__mf/js/async/7192.083e20fa.js +0 -1
  81. package/__mf/js/async/7968.39f513d3.js +0 -1
  82. package/__mf/js/async/7978.418f4fba.js +0 -1
  83. package/__mf/js/async/7984.27fe4273.js +0 -22
  84. package/__mf/js/async/8187.33892c7e.js +0 -7
  85. package/__mf/js/async/8187.33892c7e.js.LICENSE.txt +0 -39
  86. package/__mf/js/async/8356.edd5de8e.js +0 -1
  87. package/__mf/js/async/8470.ef582b4c.js +0 -2
  88. package/__mf/js/async/873.038fc7b8.js +0 -1
  89. package/__mf/js/async/9235.6b36b50f.js +0 -1
  90. package/__mf/js/async/941.998a8cf0.js +0 -2
  91. package/__mf/js/async/9558.9155c53c.js +0 -1
  92. package/__mf/js/async/9588.d892e127.js +0 -1
  93. package/__mf/js/async/9836.769f0f5b.js +0 -1
  94. package/__mf/js/async/9877.9d2de522.js +0 -38
  95. package/__mf/js/async/__federation_expose_LogExplorer.cf1794a5.js +0 -1
  96. package/lib/cjs/bootstrap.js +0 -26
  97. package/lib/cjs/env.d.js +0 -14
  98. package/lib/cjs/explore/index.js +0 -30
  99. package/lib/cjs/explore/log-explorer/LogExplorer.js +0 -173
  100. package/lib/cjs/explore/log-explorer/index.js +0 -30
  101. package/lib/cjs/getPluginModule.js +0 -39
  102. package/lib/cjs/index-federation.js +0 -55
  103. package/lib/cjs/index.js +0 -37
  104. package/lib/cjs/setup-tests.js +0 -19
  105. /package/__mf/css/async/{8187.85c2cbf6.css → 175.85c2cbf6.css} +0 -0
  106. /package/__mf/js/async/{4121.fa36ad03.js.LICENSE.txt → 121.8b8bd338.js.LICENSE.txt} +0 -0
  107. /package/__mf/js/async/{6274.684a77e6.js.LICENSE.txt → 274.1de9462c.js.LICENSE.txt} +0 -0
  108. /package/__mf/js/async/{392.186a8d93.js.LICENSE.txt → 392.77f19380.js.LICENSE.txt} +0 -0
  109. /package/__mf/js/async/{5440.4b68d7db.js.LICENSE.txt → 440.c3172ba8.js.LICENSE.txt} +0 -0
  110. /package/__mf/js/async/{8470.ef582b4c.js.LICENSE.txt → 470.4eea2534.js.LICENSE.txt} +0 -0
  111. /package/__mf/js/async/{7984.27fe4273.js.LICENSE.txt → 522.a7d0cb62.js.LICENSE.txt} +0 -0
  112. /package/__mf/js/async/{1629.362e7ce6.js.LICENSE.txt → 629.09f94b44.js.LICENSE.txt} +0 -0
  113. /package/__mf/js/async/{5481.20ec775a.js.LICENSE.txt → 862.44b58830.js.LICENSE.txt} +0 -0
  114. /package/__mf/js/async/{941.998a8cf0.js.LICENSE.txt → 941.cf455ed5.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,gBAAmC,EAAE;AAE3C,SAASC,eAAe,EAAEC,OAAO,EAAkC;IACjE,MAAMC,SAASL;IAEf,qBACE,KAACd;QAAImB,QAAQA;kBACX,cAAA,KAACjB;YAAoBkB,aAAaF;sBAChC,cAAA,KAACP;gBACCU,cAAc;oBACZC,YAAY;gBACd;gBACAC,YAAY;oBACVC,MAAM;oBACNC,MAAM;wBAAEP,SAASA;wBAASQ,SAAS;4BAAEC,MAAM;wBAAG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EAAE,EAC7B;QAACyB;KAAkB;IAGrB,MAAM,EAAEX,MAAMmB,gBAAgBzC,aAAa,EAAE,GAAGH,SAAS;QACvD6C,UAAU;YAAC;YAA8BxC;YAAS4B;SAAgB;QAClEa,SAAS;YACP,MAAMC,UAAU,MAAMC,QAAQC,GAAG,CAC/B5C,QAAQqC,GAAG,CAAC,OAAOQ;gBACjB,IAAIA,MAAMvC,IAAI,KAAK,YAAY,OAAO;gBACtC,IAAI;oBACF,MAAMI,SAAS,MAAMc,UAAU;wBAAElB,MAAM;wBAAYG,MAAMoC,MAAMtC,IAAI,CAACG,MAAM,CAACJ,IAAI;oBAAC;oBAChF,OAAOI,QAAQoC,oBAAoBD,MAAMtC,IAAI,CAACG,MAAM,CAACH,IAAI,EAAEqB,oBAAoB;gBACjF,EAAE,OAAOmB,OAAO;oBACdC,QAAQD,KAAK,CAAC,CAAC,gDAAgD,EAAEF,MAAMtC,IAAI,CAACG,MAAM,CAACJ,IAAI,CAAC,CAAC,CAAC,EAAEyC;oBAC5F,OAAO;gBACT;YACF;YAEF,OAAOL,QAAQT,MAAM,CAAC,CAACgB,IAA4BA,MAAM;QAC3D;IACF;IAEA,qBACE,MAAClE;QAAMmE,KAAK;QAAGC,IAAI;YAAEC,OAAO;QAAO;;0BACjC,KAACnE;gBACCoE,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"}
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,EACnBC,gBAAgB,EAChBC,oBAAoB,EACpBC,kBAAkB,EAClBC,qBAAqB,EACrBC,iBAAiB,EACjBC,YAAY,QACP,4BAA4B;AAEnC,SAASC,QAAQ,QAAQ,wBAAwB;AAEjD,SAASC,QAAQ,EAAEC,OAAO,QAAQ,QAAQ;AAM1C,MAAMC,uBAAuB;AAC7B,MAAMC,mBAAmB;AACzB,MAAMC,gBAAmC,EAAE;AAE3C,SAASC,eAAe,EAAE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,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.1",
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.b97be7cf.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_1",
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.1/\"; }"
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/274.1de9462c.js"
38
38
  ]
39
39
  },
40
40
  "css": {
@@ -54,9 +54,8 @@
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/235.aea66ccd.js",
58
+ "__mf/js/async/616.d344ffe0.js"
60
59
  ]
61
60
  },
62
61
  "css": {
@@ -76,8 +75,8 @@
76
75
  "js": {
77
76
  "async": [],
78
77
  "sync": [
79
- "__mf/js/async/5587.18509444.js",
80
- "__mf/js/async/7968.39f513d3.js"
78
+ "__mf/js/async/587.db19f102.js",
79
+ "__mf/js/async/968.556d0727.js"
81
80
  ]
82
81
  },
83
82
  "css": {
@@ -90,20 +89,20 @@
90
89
  {
91
90
  "id": "LogExplorer:@perses-dev/components",
92
91
  "name": "@perses-dev/components",
93
- "version": "0.54.0",
92
+ "version": "0.55.0-beta.6",
94
93
  "singleton": true,
95
- "requiredVersion": "^0.54.0",
94
+ "requiredVersion": "^0.55.0-beta.6",
96
95
  "assets": {
97
96
  "js": {
98
97
  "async": [],
99
98
  "sync": [
100
- "__mf/js/async/8187.33892c7e.js"
99
+ "__mf/js/async/175.8b000b01.js"
101
100
  ]
102
101
  },
103
102
  "css": {
104
103
  "async": [],
105
104
  "sync": [
106
- "__mf/css/async/8187.85c2cbf6.css"
105
+ "__mf/css/async/175.85c2cbf6.css"
107
106
  ]
108
107
  }
109
108
  },
@@ -112,14 +111,14 @@
112
111
  {
113
112
  "id": "LogExplorer:@perses-dev/dashboards",
114
113
  "name": "@perses-dev/dashboards",
115
- "version": "0.54.0",
114
+ "version": "0.55.0-beta.6",
116
115
  "singleton": true,
117
- "requiredVersion": "^0.54.0",
116
+ "requiredVersion": "^0.55.0-beta.6",
118
117
  "assets": {
119
118
  "js": {
120
119
  "async": [],
121
120
  "sync": [
122
- "__mf/js/async/7984.27fe4273.js"
121
+ "__mf/js/async/522.a7d0cb62.js"
123
122
  ]
124
123
  },
125
124
  "css": {
@@ -132,14 +131,14 @@
132
131
  {
133
132
  "id": "LogExplorer:@perses-dev/explore",
134
133
  "name": "@perses-dev/explore",
135
- "version": "0.54.0",
134
+ "version": "0.55.0-beta.6",
136
135
  "singleton": true,
137
- "requiredVersion": "^0.54.0",
136
+ "requiredVersion": "^0.55.0-beta.6",
138
137
  "assets": {
139
138
  "js": {
140
139
  "async": [],
141
140
  "sync": [
142
- "__mf/js/async/1728.c422454f.js"
141
+ "__mf/js/async/299.91f93ea3.js"
143
142
  ]
144
143
  },
145
144
  "css": {
@@ -152,14 +151,14 @@
152
151
  {
153
152
  "id": "LogExplorer:@perses-dev/plugin-system",
154
153
  "name": "@perses-dev/plugin-system",
155
- "version": "0.54.0",
154
+ "version": "0.55.0-beta.6",
156
155
  "singleton": true,
157
- "requiredVersion": "^0.54.0",
156
+ "requiredVersion": "^0.55.0-beta.6",
158
157
  "assets": {
159
158
  "js": {
160
159
  "async": [],
161
160
  "sync": [
162
- "__mf/js/async/3981.702d8d4c.js"
161
+ "__mf/js/async/700.df59f564.js"
163
162
  ]
164
163
  },
165
164
  "css": {
@@ -179,7 +178,7 @@
179
178
  "js": {
180
179
  "async": [],
181
180
  "sync": [
182
- "__mf/js/async/5481.20ec775a.js"
181
+ "__mf/js/async/862.44b58830.js"
183
182
  ]
184
183
  },
185
184
  "css": {
@@ -199,27 +198,7 @@
199
198
  "js": {
200
199
  "async": [],
201
200
  "sync": [
202
- "__mf/js/async/7192.083e20fa.js"
203
- ]
204
- },
205
- "css": {
206
- "async": [],
207
- "sync": []
208
- }
209
- },
210
- "fallback": ""
211
- },
212
- {
213
- "id": "LogExplorer:echarts",
214
- "name": "echarts",
215
- "version": "5.5.0",
216
- "singleton": true,
217
- "requiredVersion": "^undefined",
218
- "assets": {
219
- "js": {
220
- "async": [],
221
- "sync": [
222
- "__mf/js/async/873.038fc7b8.js"
201
+ "__mf/js/async/192.ab7e846b.js"
223
202
  ]
224
203
  },
225
204
  "css": {
@@ -239,7 +218,7 @@
239
218
  "js": {
240
219
  "async": [],
241
220
  "sync": [
242
- "__mf/js/async/392.186a8d93.js"
221
+ "__mf/js/async/392.77f19380.js"
243
222
  ]
244
223
  },
245
224
  "css": {
@@ -259,7 +238,7 @@
259
238
  "js": {
260
239
  "async": [],
261
240
  "sync": [
262
- "__mf/js/async/8470.ef582b4c.js"
241
+ "__mf/js/async/470.4eea2534.js"
263
242
  ]
264
243
  },
265
244
  "css": {
@@ -279,7 +258,7 @@
279
258
  "js": {
280
259
  "async": [],
281
260
  "sync": [
282
- "__mf/js/async/8356.edd5de8e.js"
261
+ "__mf/js/async/356.fb1e56b5.js"
283
262
  ]
284
263
  },
285
264
  "css": {
@@ -299,7 +278,7 @@
299
278
  "js": {
300
279
  "async": [],
301
280
  "sync": [
302
- "__mf/js/async/5440.4b68d7db.js"
281
+ "__mf/js/async/440.c3172ba8.js"
303
282
  ]
304
283
  },
305
284
  "css": {
@@ -319,27 +298,7 @@
319
298
  "js": {
320
299
  "async": [],
321
300
  "sync": [
322
- "__mf/js/async/4121.fa36ad03.js"
323
- ]
324
- },
325
- "css": {
326
- "async": [],
327
- "sync": []
328
- }
329
- },
330
- "fallback": ""
331
- },
332
- {
333
- "id": "LogExplorer:date-fns-tz",
334
- "name": "date-fns-tz",
335
- "version": "3.2.0",
336
- "singleton": true,
337
- "requiredVersion": "^3.2.0",
338
- "assets": {
339
- "js": {
340
- "async": [],
341
- "sync": [
342
- "__mf/js/async/7978.418f4fba.js"
301
+ "__mf/js/async/121.8b8bd338.js"
343
302
  ]
344
303
  },
345
304
  "css": {
@@ -358,27 +317,26 @@
358
317
  "assets": {
359
318
  "js": {
360
319
  "sync": [
361
- "__mf/js/async/1629.362e7ce6.js",
362
- "__mf/js/async/__federation_expose_LogExplorer.cf1794a5.js"
320
+ "__mf/js/async/629.09f94b44.js",
321
+ "__mf/js/async/__federation_expose_LogExplorer.42654a0f.js"
363
322
  ],
364
323
  "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"
324
+ "__mf/js/async/247.5c162be4.js",
325
+ "__mf/js/async/540.80fe4da4.js",
326
+ "__mf/js/async/314.fc1a18c5.js",
327
+ "__mf/js/async/59.a149a643.js",
328
+ "__mf/js/async/869.fe1ce2a3.js",
329
+ "__mf/js/async/969.348a9af7.js",
330
+ "__mf/js/async/836.0fb434d8.js",
331
+ "__mf/js/async/127.d2f5c05d.js",
332
+ "__mf/js/async/663.594d60bd.js",
333
+ "__mf/js/async/177.1a067808.js"
376
334
  ]
377
335
  },
378
336
  "css": {
379
337
  "sync": [],
380
338
  "async": [
381
- "__mf/css/async/8187.85c2cbf6.css"
339
+ "__mf/css/async/175.85c2cbf6.css"
382
340
  ]
383
341
  }
384
342
  },