@grafana/scenes 5.8.0--canary.854.10181837975.0 → 5.9.0--canary.334.10407518520.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/esm/components/layout/grid/SceneGridLayoutRenderer.js +13 -8
  3. package/dist/esm/components/layout/grid/SceneGridLayoutRenderer.js.map +1 -1
  4. package/dist/esm/core/sceneGraph/sceneGraph.js +5 -0
  5. package/dist/esm/core/sceneGraph/sceneGraph.js.map +1 -1
  6. package/dist/esm/querying/SceneQueryRunner.js +30 -18
  7. package/dist/esm/querying/SceneQueryRunner.js.map +1 -1
  8. package/dist/esm/querying/layers/annotations/AnnotationsDataLayer.js +2 -2
  9. package/dist/esm/querying/layers/annotations/AnnotationsDataLayer.js.map +1 -1
  10. package/dist/esm/querying/layers/annotations/standardAnnotationQuery.js +2 -2
  11. package/dist/esm/querying/layers/annotations/standardAnnotationQuery.js.map +1 -1
  12. package/dist/esm/services/useUrlSync.js +2 -1
  13. package/dist/esm/services/useUrlSync.js.map +1 -1
  14. package/dist/esm/variables/adhoc/AdHocFilterRenderer.js +2 -4
  15. package/dist/esm/variables/adhoc/AdHocFilterRenderer.js.map +1 -1
  16. package/dist/esm/variables/adhoc/AdHocFiltersVariable.js +2 -2
  17. package/dist/esm/variables/adhoc/AdHocFiltersVariable.js.map +1 -1
  18. package/dist/esm/variables/groupby/GroupByVariable.js +2 -2
  19. package/dist/esm/variables/groupby/GroupByVariable.js.map +1 -1
  20. package/dist/esm/variables/types.js.map +1 -1
  21. package/dist/esm/variables/variants/MultiValueVariable.js +5 -0
  22. package/dist/esm/variables/variants/MultiValueVariable.js.map +1 -1
  23. package/dist/esm/variables/variants/query/QueryVariable.js +3 -3
  24. package/dist/esm/variables/variants/query/QueryVariable.js.map +1 -1
  25. package/dist/index.d.ts +8 -1
  26. package/dist/index.js +3820 -3823
  27. package/dist/index.js.map +1 -1
  28. package/package.json +2 -2
  29. package/dist/esm/utils/wrapInSafeSerializableSceneObject.js +0 -30
  30. package/dist/esm/utils/wrapInSafeSerializableSceneObject.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/scenes",
3
- "version": "5.8.0--canary.854.10181837975.0",
3
+ "version": "5.9.0--canary.334.10407518520.0",
4
4
  "description": "Grafana framework for building dynamic dashboards",
5
5
  "author": "Grafana Labs",
6
6
  "license": "AGPL-3.0-only",
@@ -113,5 +113,5 @@
113
113
  "prettier --write"
114
114
  ]
115
115
  },
116
- "gitHead": "83c19b99850e8511549dfc204a20cb1109ab20ca"
116
+ "gitHead": "37fdab6148eb64050a077b5b307ad403cd93602c"
117
117
  }
@@ -1,30 +0,0 @@
1
- import { config } from '@grafana/runtime';
2
- import { SafeSerializableSceneObject } from './SafeSerializableSceneObject.js';
3
-
4
- function shouldWrapInSafeSerializableSceneObject(grafanaVersion) {
5
- const pattern = /^(\d+)\.(\d+)\.(\d+)/;
6
- const match = grafanaVersion.match(pattern);
7
- if (!match) {
8
- return false;
9
- }
10
- const major = parseInt(match[1], 10);
11
- const minor = parseInt(match[2], 10);
12
- const patch = parseInt(match[3], 10);
13
- if (major === 11) {
14
- return minor === 0 && patch >= 3 || minor === 1 && patch >= 2 || minor > 1;
15
- }
16
- if (major === 10) {
17
- return minor === 4 && patch >= 7 || minor >= 5;
18
- }
19
- return major > 11;
20
- }
21
- function wrapInSafeSerializableSceneObject(sceneObject) {
22
- const version = config.buildInfo.version;
23
- if (shouldWrapInSafeSerializableSceneObject(version)) {
24
- return new SafeSerializableSceneObject(sceneObject);
25
- }
26
- return { value: sceneObject, text: "__sceneObject" };
27
- }
28
-
29
- export { shouldWrapInSafeSerializableSceneObject, wrapInSafeSerializableSceneObject };
30
- //# sourceMappingURL=wrapInSafeSerializableSceneObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrapInSafeSerializableSceneObject.js","sources":["../../../src/utils/wrapInSafeSerializableSceneObject.ts"],"sourcesContent":["import { config } from '@grafana/runtime';\nimport { SceneObject } from '../core/types';\nimport { SafeSerializableSceneObject } from './SafeSerializableSceneObject';\nimport { ScopedVar } from '@grafana/data';\n\nexport function shouldWrapInSafeSerializableSceneObject(grafanaVersion: string): boolean {\n const pattern = /^(\\d+)\\.(\\d+)\\.(\\d+)/;\n const match = grafanaVersion.match(pattern);\n\n if (!match) {\n return false;\n }\n\n const major = parseInt(match[1], 10);\n const minor = parseInt(match[2], 10);\n const patch = parseInt(match[3], 10);\n\n if (major === 11) {\n return (minor === 0 && patch >= 3) || (minor === 1 && patch >= 2) || minor > 1;\n }\n\n if (major === 10) {\n return (minor === 4 && patch >= 7) || minor >= 5;\n }\n\n return major > 11; // Assuming versions greater than 11 are also supported.\n}\n\nexport function wrapInSafeSerializableSceneObject(sceneObject: SceneObject): ScopedVar {\n const version = config.buildInfo.version;\n\n if (shouldWrapInSafeSerializableSceneObject(version)) {\n return new SafeSerializableSceneObject(sceneObject);\n }\n\n return { value: sceneObject, text: '__sceneObject' };\n}\n"],"names":[],"mappings":";;;AAKO,SAAS,wCAAwC,cAAiC,EAAA;AACvF,EAAA,MAAM,OAAU,GAAA,sBAAA,CAAA;AAChB,EAAM,MAAA,KAAA,GAAQ,cAAe,CAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAE1C,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAO,OAAA,KAAA,CAAA;AAAA,GACT;AAEA,EAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,KAAM,CAAA,CAAA,CAAA,EAAI,EAAE,CAAA,CAAA;AACnC,EAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,KAAM,CAAA,CAAA,CAAA,EAAI,EAAE,CAAA,CAAA;AACnC,EAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,KAAM,CAAA,CAAA,CAAA,EAAI,EAAE,CAAA,CAAA;AAEnC,EAAA,IAAI,UAAU,EAAI,EAAA;AAChB,IAAQ,OAAA,KAAA,KAAU,KAAK,KAAS,IAAA,CAAA,IAA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