@perses-dev/plugin-system 0.54.0-beta.4 → 0.54.0-beta.6

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 (54) hide show
  1. package/dist/cjs/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +283 -0
  2. package/dist/cjs/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +252 -0
  3. package/dist/cjs/components/Annotations/AnnotationEditorForm/index.js +30 -0
  4. package/dist/cjs/components/Annotations/index.js +30 -0
  5. package/dist/cjs/components/index.js +1 -0
  6. package/dist/cjs/context/ValidationProvider.js +7 -1
  7. package/dist/cjs/model/annotations.js +16 -0
  8. package/dist/cjs/model/index.js +1 -0
  9. package/dist/cjs/runtime/annotations.js +148 -0
  10. package/dist/cjs/runtime/index.js +1 -0
  11. package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts +16 -0
  12. package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts.map +1 -0
  13. package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +270 -0
  14. package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js.map +1 -0
  15. package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts +8 -0
  16. package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts.map +1 -0
  17. package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +198 -0
  18. package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js.map +1 -0
  19. package/dist/components/Annotations/AnnotationEditorForm/index.d.ts +2 -0
  20. package/dist/components/Annotations/AnnotationEditorForm/index.d.ts.map +1 -0
  21. package/dist/components/Annotations/AnnotationEditorForm/index.js +15 -0
  22. package/dist/components/Annotations/AnnotationEditorForm/index.js.map +1 -0
  23. package/dist/components/Annotations/index.d.ts +2 -0
  24. package/dist/components/Annotations/index.d.ts.map +1 -0
  25. package/dist/components/Annotations/index.js +15 -0
  26. package/dist/components/Annotations/index.js.map +1 -0
  27. package/dist/components/index.d.ts +1 -0
  28. package/dist/components/index.d.ts.map +1 -1
  29. package/dist/components/index.js +1 -0
  30. package/dist/components/index.js.map +1 -1
  31. package/dist/context/ValidationProvider.d.ts +3 -1
  32. package/dist/context/ValidationProvider.d.ts.map +1 -1
  33. package/dist/context/ValidationProvider.js +8 -2
  34. package/dist/context/ValidationProvider.js.map +1 -1
  35. package/dist/model/annotations.d.ts +28 -0
  36. package/dist/model/annotations.d.ts.map +1 -0
  37. package/dist/model/annotations.js +17 -0
  38. package/dist/model/annotations.js.map +1 -0
  39. package/dist/model/index.d.ts +1 -0
  40. package/dist/model/index.d.ts.map +1 -1
  41. package/dist/model/index.js +1 -0
  42. package/dist/model/index.js.map +1 -1
  43. package/dist/model/plugins.d.ts +2 -0
  44. package/dist/model/plugins.d.ts.map +1 -1
  45. package/dist/model/plugins.js.map +1 -1
  46. package/dist/runtime/annotations.d.ts +6 -0
  47. package/dist/runtime/annotations.d.ts.map +1 -0
  48. package/dist/runtime/annotations.js +129 -0
  49. package/dist/runtime/annotations.js.map +1 -0
  50. package/dist/runtime/index.d.ts +1 -0
  51. package/dist/runtime/index.d.ts.map +1 -1
  52. package/dist/runtime/index.js +1 -0
  53. package/dist/runtime/index.js.map +1 -1
  54. package/package.json +3 -3
@@ -0,0 +1,129 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { useQueries, useQuery } from '@tanstack/react-query';
14
+ import { usePlugin, usePluginRegistry, usePlugins } from './plugin-registry';
15
+ import { useTimeRange } from './TimeRangeProvider';
16
+ import { useAllVariableValues } from './variables';
17
+ import { useDatasourceStore } from './datasources';
18
+ import { filterVariableStateMap, getVariableValuesKey } from './utils';
19
+ export const ANNOTATION_KEY = 'Annotation';
20
+ function useAnnotationContext() {
21
+ const { absoluteTimeRange } = useTimeRange();
22
+ const variableState = useAllVariableValues();
23
+ const datasourceStore = useDatasourceStore();
24
+ return {
25
+ variableState,
26
+ datasourceStore,
27
+ absoluteTimeRange
28
+ };
29
+ }
30
+ function getQueryOptions({ plugin, definition, context }) {
31
+ const { variableState, absoluteTimeRange } = context;
32
+ const dependencies = plugin?.dependsOn ? plugin.dependsOn(definition.plugin.spec, context) : {};
33
+ const variableDependencies = dependencies?.variables;
34
+ const filteredVariableState = filterVariableStateMap(variableState, variableDependencies);
35
+ const variablesValueKey = getVariableValuesKey(filteredVariableState);
36
+ const queryKey = [
37
+ ANNOTATION_KEY,
38
+ definition,
39
+ absoluteTimeRange,
40
+ variablesValueKey
41
+ ];
42
+ let waitToLoad = false;
43
+ if (variableDependencies) {
44
+ waitToLoad = variableDependencies.some((v)=>variableState[v]?.loading);
45
+ }
46
+ const queryEnabled = plugin !== undefined && !waitToLoad;
47
+ return {
48
+ queryKey,
49
+ queryEnabled
50
+ };
51
+ }
52
+ export function useAnnotations(definitions) {
53
+ const { getPlugin } = usePluginRegistry();
54
+ const context = useAnnotationContext();
55
+ const pluginLoaderResponse = usePlugins('Annotation', definitions.map((d)=>({
56
+ kind: d.plugin.kind
57
+ })));
58
+ // useQueries() handles data fetching from query plugins
59
+ return useQueries({
60
+ queries: definitions.map((definition, idx)=>{
61
+ const plugin = pluginLoaderResponse[idx]?.data;
62
+ const { queryEnabled, queryKey } = getQueryOptions({
63
+ context,
64
+ definition,
65
+ plugin
66
+ });
67
+ const annotationKind = definition?.plugin?.kind;
68
+ return {
69
+ enabled: queryEnabled,
70
+ queryKey: queryKey,
71
+ refetchOnMount: false,
72
+ refetchOnWindowFocus: false,
73
+ refetchOnReconnect: false,
74
+ staleTime: Infinity,
75
+ queryFn: async ({ signal })=>{
76
+ const plugin = await getPlugin({
77
+ kind: ANNOTATION_KEY,
78
+ name: annotationKind
79
+ });
80
+ const data = await plugin.getAnnotationData(definition.plugin.spec, context, signal);
81
+ return data;
82
+ }
83
+ };
84
+ })
85
+ });
86
+ }
87
+ export function useAnnotationData(spec) {
88
+ const { data: annotationPlugin } = usePlugin('Annotation', spec.plugin.kind);
89
+ const datasourceStore = useDatasourceStore();
90
+ const allVariables = useAllVariableValues();
91
+ const { absoluteTimeRange: timeRange } = useTimeRange();
92
+ const variablePluginCtx = {
93
+ absoluteTimeRange: timeRange,
94
+ datasourceStore,
95
+ variableState: allVariables
96
+ };
97
+ let dependsOnVariables = Object.keys(allVariables); // Default to all variables
98
+ if (annotationPlugin?.dependsOn) {
99
+ const dependencies = annotationPlugin.dependsOn(spec.plugin.spec, variablePluginCtx);
100
+ dependsOnVariables = dependencies.variables ? dependencies.variables : dependsOnVariables;
101
+ }
102
+ const variables = useAllVariableValues(dependsOnVariables);
103
+ let waitToLoad = false;
104
+ if (dependsOnVariables) {
105
+ waitToLoad = dependsOnVariables.some((v)=>variables[v]?.loading);
106
+ }
107
+ const variablesValueKey = getVariableValuesKey(variables);
108
+ return useQuery({
109
+ queryKey: [
110
+ 'annotation',
111
+ spec,
112
+ timeRange,
113
+ variablesValueKey
114
+ ],
115
+ queryFn: async ({ signal })=>{
116
+ const resp = await annotationPlugin?.getAnnotationData(spec.plugin.spec, {
117
+ ...variablePluginCtx,
118
+ variableState: variables
119
+ }, signal);
120
+ if (!resp?.length) {
121
+ return [];
122
+ }
123
+ return resp;
124
+ },
125
+ enabled: !!annotationPlugin || waitToLoad
126
+ });
127
+ }
128
+
129
+ //# sourceMappingURL=annotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/runtime/annotations.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 { AnnotationData, AnnotationSpec } from '@perses-dev/spec';\nimport { QueryKey, useQueries, useQuery, UseQueryResult } from '@tanstack/react-query';\nimport { AnnotationContext, AnnotationPlugin } from '../model';\nimport { usePlugin, usePluginRegistry, usePlugins } from './plugin-registry';\nimport { useTimeRange } from './TimeRangeProvider';\nimport { useAllVariableValues } from './variables';\nimport { useDatasourceStore } from './datasources';\nimport { filterVariableStateMap, getVariableValuesKey } from './utils';\n\nexport const ANNOTATION_KEY = 'Annotation';\n\nfunction useAnnotationContext(): AnnotationContext {\n const { absoluteTimeRange } = useTimeRange();\n const variableState = useAllVariableValues();\n const datasourceStore = useDatasourceStore();\n\n return {\n variableState,\n datasourceStore,\n absoluteTimeRange,\n };\n}\n\nfunction getQueryOptions({\n plugin,\n definition,\n context,\n}: {\n plugin?: AnnotationPlugin;\n definition: AnnotationSpec;\n context: AnnotationContext;\n}): {\n queryKey: QueryKey;\n queryEnabled: boolean;\n} {\n const { variableState, absoluteTimeRange } = context;\n\n const dependencies = plugin?.dependsOn ? plugin.dependsOn(definition.plugin.spec, context) : {};\n const variableDependencies = dependencies?.variables;\n\n const filteredVariableState = filterVariableStateMap(variableState, variableDependencies);\n const variablesValueKey = getVariableValuesKey(filteredVariableState);\n const queryKey = [ANNOTATION_KEY, definition, absoluteTimeRange, variablesValueKey] as const;\n\n let waitToLoad = false;\n if (variableDependencies) {\n waitToLoad = variableDependencies.some((v) => variableState[v]?.loading);\n }\n\n const queryEnabled = plugin !== undefined && !waitToLoad;\n return {\n queryKey,\n queryEnabled,\n };\n}\n\nexport function useAnnotations(definitions: AnnotationSpec[]): Array<UseQueryResult<AnnotationData[]>> {\n const { getPlugin } = usePluginRegistry();\n const context = useAnnotationContext();\n\n const pluginLoaderResponse = usePlugins(\n 'Annotation',\n definitions.map((d) => ({ kind: d.plugin.kind }))\n );\n\n // useQueries() handles data fetching from query plugins\n return useQueries({\n queries: definitions.map((definition, idx) => {\n const plugin = pluginLoaderResponse[idx]?.data;\n const { queryEnabled, queryKey } = getQueryOptions({ context, definition, plugin });\n const annotationKind = definition?.plugin?.kind;\n return {\n enabled: queryEnabled,\n queryKey: queryKey,\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n staleTime: Infinity,\n queryFn: async ({ signal }: { signal?: AbortSignal }): Promise<AnnotationData[]> => {\n const plugin = await getPlugin({ kind: ANNOTATION_KEY, name: annotationKind });\n const data = await plugin.getAnnotationData(definition.plugin.spec, context, signal);\n return data;\n },\n };\n }),\n });\n}\n\nexport function useAnnotationData(spec: AnnotationSpec): UseQueryResult<AnnotationData[]> {\n const { data: annotationPlugin } = usePlugin('Annotation', spec.plugin.kind);\n\n const datasourceStore = useDatasourceStore();\n const allVariables = useAllVariableValues();\n const { absoluteTimeRange: timeRange } = useTimeRange();\n const variablePluginCtx = { absoluteTimeRange: timeRange, datasourceStore, variableState: allVariables };\n\n let dependsOnVariables: string[] = Object.keys(allVariables); // Default to all variables\n if (annotationPlugin?.dependsOn) {\n const dependencies = annotationPlugin.dependsOn(spec.plugin.spec, variablePluginCtx);\n dependsOnVariables = dependencies.variables ? dependencies.variables : dependsOnVariables;\n }\n\n const variables = useAllVariableValues(dependsOnVariables);\n\n let waitToLoad = false;\n if (dependsOnVariables) {\n waitToLoad = dependsOnVariables.some((v) => variables[v]?.loading);\n }\n\n const variablesValueKey = getVariableValuesKey(variables);\n\n return useQuery({\n queryKey: ['annotation', spec, timeRange, variablesValueKey],\n queryFn: async ({ signal }) => {\n const resp = await annotationPlugin?.getAnnotationData(\n spec.plugin.spec,\n { ...variablePluginCtx, variableState: variables },\n signal\n );\n if (!resp?.length) {\n return [];\n }\n return resp;\n },\n enabled: !!annotationPlugin || waitToLoad,\n });\n}\n"],"names":["useQueries","useQuery","usePlugin","usePluginRegistry","usePlugins","useTimeRange","useAllVariableValues","useDatasourceStore","filterVariableStateMap","getVariableValuesKey","ANNOTATION_KEY","useAnnotationContext","absoluteTimeRange","variableState","datasourceStore","getQueryOptions","plugin","definition","context","dependencies","dependsOn","spec","variableDependencies","variables","filteredVariableState","variablesValueKey","queryKey","waitToLoad","some","v","loading","queryEnabled","undefined","useAnnotations","definitions","getPlugin","pluginLoaderResponse","map","d","kind","queries","idx","data","annotationKind","enabled","refetchOnMount","refetchOnWindowFocus","refetchOnReconnect","staleTime","Infinity","queryFn","signal","name","getAnnotationData","useAnnotationData","annotationPlugin","allVariables","timeRange","variablePluginCtx","dependsOnVariables","Object","keys","resp","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;AAGjC,SAAmBA,UAAU,EAAEC,QAAQ,QAAwB,wBAAwB;AAEvF,SAASC,SAAS,EAAEC,iBAAiB,EAAEC,UAAU,QAAQ,oBAAoB;AAC7E,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,oBAAoB,QAAQ,cAAc;AACnD,SAASC,kBAAkB,QAAQ,gBAAgB;AACnD,SAASC,sBAAsB,EAAEC,oBAAoB,QAAQ,UAAU;AAEvE,OAAO,MAAMC,iBAAiB,aAAa;AAE3C,SAASC;IACP,MAAM,EAAEC,iBAAiB,EAAE,GAAGP;IAC9B,MAAMQ,gBAAgBP;IACtB,MAAMQ,kBAAkBP;IAExB,OAAO;QACLM;QACAC;QACAF;IACF;AACF;AAEA,SAASG,gBAAgB,EACvBC,MAAM,EACNC,UAAU,EACVC,OAAO,EAKR;IAIC,MAAM,EAAEL,aAAa,EAAED,iBAAi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1
2
  export * from './builtin-variables';
2
3
  export * from './datasources';
3
4
  export * from './plugin-registry';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAaA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAaA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
@@ -10,6 +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 * from './annotations';
13
14
  export * from './builtin-variables';
14
15
  export * from './datasources';
15
16
  export * from './plugin-registry';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/runtime/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 './builtin-variables';\nexport * from './datasources';\nexport * from './plugin-registry';\nexport * from './variables';\nexport * from './TimeRangeProvider';\nexport * from './time-series-queries';\nexport * from './trace-queries';\nexport * from './profile-queries';\nexport * from './alerts-queries';\nexport * from './silences-queries';\nexport * from './item-actions';\nexport * from './DataQueriesProvider';\nexport * from './QueryCountProvider';\nexport * from './RouterProvider';\nexport * from './UsageMetricsProvider';\n"],"names":[],"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,cAAc,sBAAsB;AACpC,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,cAAc;AAC5B,cAAc,sBAAsB;AACpC,cAAc,wBAAwB;AACtC,cAAc,kBAAkB;AAChC,cAAc,oBAAoB;AAClC,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB"}
1
+ {"version":3,"sources":["../../src/runtime/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 './annotations';\nexport * from './builtin-variables';\nexport * from './datasources';\nexport * from './plugin-registry';\nexport * from './variables';\nexport * from './TimeRangeProvider';\nexport * from './time-series-queries';\nexport * from './trace-queries';\nexport * from './profile-queries';\nexport * from './alerts-queries';\nexport * from './silences-queries';\nexport * from './item-actions';\nexport * from './DataQueriesProvider';\nexport * from './QueryCountProvider';\nexport * from './RouterProvider';\nexport * from './UsageMetricsProvider';\n"],"names":[],"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,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,cAAc;AAC5B,cAAc,sBAAsB;AACpC,cAAc,wBAAwB;AACtC,cAAc,kBAAkB;AAChC,cAAc,oBAAoB;AAClC,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/plugin-system",
3
- "version": "0.54.0-beta.4",
3
+ "version": "0.54.0-beta.6",
4
4
  "description": "The plugin feature in Pereses",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/perses/perses/blob/main/README.md",
@@ -29,10 +29,10 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@module-federation/enhanced": "^2.3.3",
32
- "@perses-dev/components": "0.54.0-beta.4",
32
+ "@perses-dev/components": "0.54.0-beta.6",
33
33
  "@perses-dev/core": "0.53.0",
34
34
  "@perses-dev/spec": "0.2.0-beta.2",
35
- "@perses-dev/client": "0.54.0-beta.4",
35
+ "@perses-dev/client": "0.54.0-beta.6",
36
36
  "date-fns": "^4.1.0",
37
37
  "date-fns-tz": "^3.2.0",
38
38
  "immer": "^10.1.1",