@grafana/scenes 6.35.0--canary.1240.17499066940.0 → 6.35.1--canary.1235.17607489973.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/esm/behaviors/LongFrameDetector.js +185 -0
- package/dist/esm/behaviors/LongFrameDetector.js.map +1 -0
- package/dist/esm/behaviors/SceneRenderProfiler.js +103 -19
- package/dist/esm/behaviors/SceneRenderProfiler.js.map +1 -1
- package/dist/esm/behaviors/index.js +0 -1
- package/dist/esm/behaviors/index.js.map +1 -1
- package/dist/esm/components/layout/grid/SceneGridLayout.js +14 -0
- package/dist/esm/components/layout/grid/SceneGridLayout.js.map +1 -1
- package/dist/esm/components/layout/grid/SceneGridLayoutRenderer.js +8 -9
- package/dist/esm/components/layout/grid/SceneGridLayoutRenderer.js.map +1 -1
- package/dist/esm/core/sceneGraph/index.js +0 -2
- package/dist/esm/core/sceneGraph/index.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/locales/cs-CZ/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/cs-CZ/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/de-DE/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/de-DE/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/es-ES/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/es-ES/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/fr-FR/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/fr-FR/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/hu-HU/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/hu-HU/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/id-ID/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/id-ID/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/it-IT/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/it-IT/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/ja-JP/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/ja-JP/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/ko-KR/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/ko-KR/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/nl-NL/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/nl-NL/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/pl-PL/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/pl-PL/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/pt-BR/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/pt-BR/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/pt-PT/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/pt-PT/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/ru-RU/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/ru-RU/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/sv-SE/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/sv-SE/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/tr-TR/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/tr-TR/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/zh-Hans/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/zh-Hans/grafana-scenes.json.js.map +1 -1
- package/dist/esm/locales/zh-Hant/grafana-scenes.json.js +4 -0
- package/dist/esm/locales/zh-Hant/grafana-scenes.json.js.map +1 -1
- package/dist/esm/utils/writeSceneLog.js +10 -1
- package/dist/esm/utils/writeSceneLog.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js +0 -9
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js.map +1 -1
- package/dist/esm/variables/groupby/GroupByVariable.js +0 -8
- package/dist/esm/variables/groupby/GroupByVariable.js.map +1 -1
- package/dist/{grafana-scenes-CgIzGE5F.js → grafana-scenes-BbJq3cEa.js} +5 -1
- package/dist/{grafana-scenes-B0JDDOYY.js.map → grafana-scenes-BbJq3cEa.js.map} +1 -1
- package/dist/{grafana-scenes-B3ypGD5T.js → grafana-scenes-BbRDYrqK.js} +5 -1
- package/dist/{grafana-scenes-B3ypGD5T.js.map → grafana-scenes-BbRDYrqK.js.map} +1 -1
- package/dist/{grafana-scenes-CY85TD5F.js → grafana-scenes-BcDO8gk4.js} +5 -1
- package/dist/{grafana-scenes-BGCbMCFm.js.map → grafana-scenes-BcDO8gk4.js.map} +1 -1
- package/dist/{grafana-scenes-CqRf9pRc.js → grafana-scenes-BtGEpoZT.js} +5 -1
- package/dist/{grafana-scenes-Br6NPcwR.js.map → grafana-scenes-BtGEpoZT.js.map} +1 -1
- package/dist/{grafana-scenes-Br6NPcwR.js → grafana-scenes-BwQ_A3lk.js} +5 -1
- package/dist/grafana-scenes-BwQ_A3lk.js.map +1 -0
- package/dist/{grafana-scenes-B0JDDOYY.js → grafana-scenes-C-CibbsO.js} +5 -1
- package/dist/grafana-scenes-C-CibbsO.js.map +1 -0
- package/dist/{grafana-scenes-Dy2CLUY9.js → grafana-scenes-CMtHJ23j.js} +5 -1
- package/dist/grafana-scenes-CMtHJ23j.js.map +1 -0
- package/dist/{grafana-scenes-DObtL2WT.js → grafana-scenes-CS09sc_L.js} +5 -1
- package/dist/grafana-scenes-CS09sc_L.js.map +1 -0
- package/dist/{grafana-scenes-DXM1LI4B.js → grafana-scenes-CfoPR_PZ.js} +5 -1
- package/dist/grafana-scenes-CfoPR_PZ.js.map +1 -0
- package/dist/{grafana-scenes-Cub9Gl0n.js → grafana-scenes-CixWq8rH.js} +5 -1
- package/dist/grafana-scenes-CixWq8rH.js.map +1 -0
- package/dist/{grafana-scenes-DlUSL8jI.js → grafana-scenes-CoXR5Z7T.js} +5 -1
- package/dist/grafana-scenes-CoXR5Z7T.js.map +1 -0
- package/dist/{grafana-scenes-CeVkPanY.js → grafana-scenes-CqMfWT-f.js} +5 -1
- package/dist/grafana-scenes-CqMfWT-f.js.map +1 -0
- package/dist/{grafana-scenes-n10eQkNF.js → grafana-scenes-CzZTvOrf.js} +5 -1
- package/dist/grafana-scenes-CzZTvOrf.js.map +1 -0
- package/dist/{grafana-scenes-BGCbMCFm.js → grafana-scenes-VOzZRdKp.js} +5 -1
- package/dist/grafana-scenes-VOzZRdKp.js.map +1 -0
- package/dist/{grafana-scenes-CBRfJ-2H.js → grafana-scenes-cTJt4LR7.js} +5 -1
- package/dist/grafana-scenes-cTJt4LR7.js.map +1 -0
- package/dist/{grafana-scenes-D5qs_fc9.js → grafana-scenes-kfW02M-K.js} +5 -1
- package/dist/grafana-scenes-kfW02M-K.js.map +1 -0
- package/dist/{grafana-scenes-COr0P0oM.js → grafana-scenes-naZktXG6.js} +5 -1
- package/dist/grafana-scenes-naZktXG6.js.map +1 -0
- package/dist/{grafana-scenes-YMli37Xh.js → grafana-scenes-zGpJY4O3.js} +5 -1
- package/dist/grafana-scenes-zGpJY4O3.js.map +1 -0
- package/dist/index.d.ts +32 -31
- package/dist/index.js +720 -545
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/esm/behaviors/SceneInteractionProfiler.js +0 -88
- package/dist/esm/behaviors/SceneInteractionProfiler.js.map +0 -1
- package/dist/esm/core/sceneGraph/getInteractionProfiler.js +0 -19
- package/dist/esm/core/sceneGraph/getInteractionProfiler.js.map +0 -1
- package/dist/grafana-scenes-CBRfJ-2H.js.map +0 -1
- package/dist/grafana-scenes-COr0P0oM.js.map +0 -1
- package/dist/grafana-scenes-CY85TD5F.js.map +0 -1
- package/dist/grafana-scenes-CeVkPanY.js.map +0 -1
- package/dist/grafana-scenes-CgIzGE5F.js.map +0 -1
- package/dist/grafana-scenes-CqRf9pRc.js.map +0 -1
- package/dist/grafana-scenes-Cub9Gl0n.js.map +0 -1
- package/dist/grafana-scenes-D5qs_fc9.js.map +0 -1
- package/dist/grafana-scenes-DObtL2WT.js.map +0 -1
- package/dist/grafana-scenes-DXM1LI4B.js.map +0 -1
- package/dist/grafana-scenes-DlUSL8jI.js.map +0 -1
- package/dist/grafana-scenes-Dy2CLUY9.js.map +0 -1
- package/dist/grafana-scenes-YMli37Xh.js.map +0 -1
- package/dist/grafana-scenes-n10eQkNF.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/scenes",
|
|
3
|
-
"version": "6.35.
|
|
3
|
+
"version": "6.35.1--canary.1235.17607489973.0",
|
|
4
4
|
"description": "Grafana framework for building dynamic dashboards",
|
|
5
5
|
"author": "Grafana Labs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"prettier --write"
|
|
126
126
|
]
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "67c879a7f1391b52c6b64c892c349b216416ef79"
|
|
129
129
|
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { SceneObjectBase } from '../core/SceneObjectBase.js';
|
|
2
|
-
import { writeSceneLog } from '../utils/writeSceneLog.js';
|
|
3
|
-
import { captureNetwork } from './SceneRenderProfiler.js';
|
|
4
|
-
|
|
5
|
-
var __typeError = (msg) => {
|
|
6
|
-
throw TypeError(msg);
|
|
7
|
-
};
|
|
8
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
9
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), member.get(obj));
|
|
10
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
11
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
12
|
-
var _profileInProgress;
|
|
13
|
-
function isInteractionProfiler(obj) {
|
|
14
|
-
return obj && typeof obj === "object" && "isInteractionProfiler" in obj;
|
|
15
|
-
}
|
|
16
|
-
class SceneInteractionProfiler extends SceneObjectBase {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.isInteractionProfiler = true;
|
|
20
|
-
__privateAdd(this, _profileInProgress, null);
|
|
21
|
-
}
|
|
22
|
-
startProfile(interaction) {
|
|
23
|
-
if (!this.state.enableProfiling) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (__privateGet(this, _profileInProgress)) {
|
|
27
|
-
this.cancelProfile();
|
|
28
|
-
}
|
|
29
|
-
__privateSet(this, _profileInProgress, {
|
|
30
|
-
interaction,
|
|
31
|
-
startTs: performance.now()
|
|
32
|
-
});
|
|
33
|
-
writeSceneLog("SceneInteractionProfiler", "Started profiling interaction:", interaction);
|
|
34
|
-
}
|
|
35
|
-
stopProfile() {
|
|
36
|
-
if (!__privateGet(this, _profileInProgress)) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const endTs = performance.now();
|
|
40
|
-
const interactionDuration = endTs - __privateGet(this, _profileInProgress).startTs;
|
|
41
|
-
const networkDuration = captureNetwork(__privateGet(this, _profileInProgress).startTs, endTs);
|
|
42
|
-
const result = {
|
|
43
|
-
interaction: __privateGet(this, _profileInProgress).interaction,
|
|
44
|
-
interactionDuration,
|
|
45
|
-
networkDuration,
|
|
46
|
-
startTs: __privateGet(this, _profileInProgress).startTs,
|
|
47
|
-
endTs
|
|
48
|
-
};
|
|
49
|
-
writeSceneLog("SceneInteractionProfiler", "Completed profile:", result);
|
|
50
|
-
if (this.state.onProfileComplete) {
|
|
51
|
-
this.state.onProfileComplete(result);
|
|
52
|
-
}
|
|
53
|
-
performance.mark(`${__privateGet(this, _profileInProgress).interaction}_start`, {
|
|
54
|
-
startTime: __privateGet(this, _profileInProgress).startTs
|
|
55
|
-
});
|
|
56
|
-
performance.mark(`${__privateGet(this, _profileInProgress).interaction}_end`, {
|
|
57
|
-
startTime: endTs
|
|
58
|
-
});
|
|
59
|
-
performance.measure(
|
|
60
|
-
`Interaction_${__privateGet(this, _profileInProgress).interaction}`,
|
|
61
|
-
`${__privateGet(this, _profileInProgress).interaction}_start`,
|
|
62
|
-
`${__privateGet(this, _profileInProgress).interaction}_end`
|
|
63
|
-
);
|
|
64
|
-
__privateSet(this, _profileInProgress, null);
|
|
65
|
-
}
|
|
66
|
-
cancelProfile() {
|
|
67
|
-
if (__privateGet(this, _profileInProgress)) {
|
|
68
|
-
writeSceneLog("SceneInteractionProfiler", "Cancelled profile:", __privateGet(this, _profileInProgress).interaction);
|
|
69
|
-
__privateSet(this, _profileInProgress, null);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
isProfileActive() {
|
|
73
|
-
return __privateGet(this, _profileInProgress) !== null;
|
|
74
|
-
}
|
|
75
|
-
getCurrentInteraction() {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
return (_b = (_a = __privateGet(this, _profileInProgress)) == null ? void 0 : _a.interaction) != null ? _b : null;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
_profileInProgress = new WeakMap();
|
|
81
|
-
const USER_INTERACTIONS = {
|
|
82
|
-
ADHOC_KEYS_DROPDOWN: "adhoc_keys_dropdown",
|
|
83
|
-
ADHOC_VALUES_DROPDOWN: "adhoc_values_dropdown",
|
|
84
|
-
GROUPBY_DROPDOWN: "groupby_dropdown"
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export { SceneInteractionProfiler, USER_INTERACTIONS, isInteractionProfiler };
|
|
88
|
-
//# sourceMappingURL=SceneInteractionProfiler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SceneInteractionProfiler.js","sources":["../../../src/behaviors/SceneInteractionProfiler.ts"],"sourcesContent":["import { SceneObjectBase } from '../core/SceneObjectBase';\nimport { writeSceneLog } from '../utils/writeSceneLog';\nimport { captureNetwork } from './SceneRenderProfiler';\nimport { InteractionProfileResult, InteractionProfilerState } from './types';\n\nexport function isInteractionProfiler(obj: any): obj is SceneInteractionProfiler {\n return obj && typeof obj === 'object' && 'isInteractionProfiler' in obj;\n}\n\nexport class SceneInteractionProfiler extends SceneObjectBase<InteractionProfilerState> {\n public isInteractionProfiler: true = true;\n #profileInProgress: {\n interaction: string;\n startTs: number;\n } | null = null;\n\n public startProfile(interaction: string) {\n if (!this.state.enableProfiling) {\n return;\n }\n\n // Cancel any existing profile\n if (this.#profileInProgress) {\n this.cancelProfile();\n }\n\n this.#profileInProgress = {\n interaction,\n startTs: performance.now(),\n };\n\n writeSceneLog('SceneInteractionProfiler', 'Started profiling interaction:', interaction);\n }\n\n public stopProfile() {\n if (!this.#profileInProgress) {\n return;\n }\n\n const endTs = performance.now();\n const interactionDuration = endTs - this.#profileInProgress.startTs;\n\n // Capture network requests that occurred during the interaction\n const networkDuration = captureNetwork(this.#profileInProgress.startTs, endTs);\n\n const result: InteractionProfileResult = {\n interaction: this.#profileInProgress.interaction,\n interactionDuration,\n networkDuration,\n startTs: this.#profileInProgress.startTs,\n endTs,\n };\n\n writeSceneLog('SceneInteractionProfiler', 'Completed profile:', result);\n\n if (this.state.onProfileComplete) {\n this.state.onProfileComplete(result);\n }\n\n // Create performance marks for browser dev tools\n performance.mark(`${this.#profileInProgress.interaction}_start`, {\n startTime: this.#profileInProgress.startTs,\n });\n performance.mark(`${this.#profileInProgress.interaction}_end`, {\n startTime: endTs,\n });\n performance.measure(\n `Interaction_${this.#profileInProgress.interaction}`,\n `${this.#profileInProgress.interaction}_start`,\n `${this.#profileInProgress.interaction}_end`\n );\n\n this.#profileInProgress = null;\n }\n\n private cancelProfile() {\n if (this.#profileInProgress) {\n writeSceneLog('SceneInteractionProfiler', 'Cancelled profile:', this.#profileInProgress.interaction);\n this.#profileInProgress = null;\n }\n }\n\n public isProfileActive(): boolean {\n return this.#profileInProgress !== null;\n }\n\n public getCurrentInteraction(): string | null {\n return this.#profileInProgress?.interaction ?? null;\n }\n}\n\n// Interaction constants for common use cases\nexport const USER_INTERACTIONS = {\n ADHOC_KEYS_DROPDOWN: 'adhoc_keys_dropdown',\n ADHOC_VALUES_DROPDOWN: 'adhoc_values_dropdown',\n GROUPBY_DROPDOWN: 'groupby_dropdown',\n} as const;\n"],"names":[],"mappings":"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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { isInteractionProfiler } from '../../behaviors/SceneInteractionProfiler.js';
|
|
2
|
-
|
|
3
|
-
function getInteractionProfiler(sceneObject) {
|
|
4
|
-
let parent = sceneObject;
|
|
5
|
-
while (parent) {
|
|
6
|
-
if (parent.state.$behaviors) {
|
|
7
|
-
for (const behavior of parent.state.$behaviors) {
|
|
8
|
-
if (isInteractionProfiler(behavior)) {
|
|
9
|
-
return behavior;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
parent = parent.parent;
|
|
14
|
-
}
|
|
15
|
-
return void 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { getInteractionProfiler };
|
|
19
|
-
//# sourceMappingURL=getInteractionProfiler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInteractionProfiler.js","sources":["../../../../src/core/sceneGraph/getInteractionProfiler.ts"],"sourcesContent":["import { SceneObject } from '../types';\nimport { SceneInteractionProfiler, isInteractionProfiler } from '../../behaviors/SceneInteractionProfiler';\n\n/**\n * Returns the closest interaction profiler or undefined if none found\n */\nexport function getInteractionProfiler(sceneObject: SceneObject): SceneInteractionProfiler | undefined {\n let parent: SceneObject | undefined = sceneObject;\n\n while (parent) {\n if (parent.state.$behaviors) {\n for (const behavior of parent.state.$behaviors) {\n if (isInteractionProfiler(behavior)) {\n return behavior;\n }\n }\n }\n parent = parent.parent;\n }\n\n return undefined;\n}\n"],"names":[],"mappings":";;AAMO,SAAS,uBAAuB,WAAgE,EAAA;AACrG,EAAA,IAAI,MAAkC,GAAA,WAAA;AAEtC,EAAA,OAAO,MAAQ,EAAA;AACb,IAAI,IAAA,MAAA,CAAO,MAAM,UAAY,EAAA;AAC3B,MAAW,KAAA,MAAA,QAAA,IAAY,MAAO,CAAA,KAAA,CAAM,UAAY,EAAA;AAC9C,QAAI,IAAA,qBAAA,CAAsB,QAAQ,CAAG,EAAA;AACnC,UAAO,OAAA,QAAA;AAAA;AACT;AACF;AAEF,IAAA,MAAA,GAAS,MAAO,CAAA,MAAA;AAAA;AAGlB,EAAO,OAAA,MAAA;AACT;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-CBRfJ-2H.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-COr0P0oM.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-CY85TD5F.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-CeVkPanY.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-CgIzGE5F.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-CqRf9pRc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-Cub9Gl0n.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-D5qs_fc9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-DObtL2WT.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-DXM1LI4B.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-DlUSL8jI.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-Dy2CLUY9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-YMli37Xh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grafana-scenes-n10eQkNF.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|