@grafana/scenes 4.0.4--canary.657.8393255561.0 → 4.0.5--canary.662.8483224466.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 +12 -0
- package/dist/esm/behaviors/LiveNowTimer.js +1 -1
- package/dist/esm/behaviors/LiveNowTimer.js.map +1 -1
- package/dist/esm/components/SceneApp/utils.js.map +1 -1
- package/dist/esm/core/sceneGraph/sceneGraph.js +1 -1
- package/dist/esm/core/sceneGraph/sceneGraph.js.map +1 -1
- package/dist/esm/querying/SceneQueryRunner.js +3 -2
- package/dist/esm/querying/SceneQueryRunner.js.map +1 -1
- package/dist/esm/variables/groupby/GroupByVariable.js.map +1 -1
- package/dist/esm/variables/variants/query/createQueryVariableRunner.js +2 -3
- package/dist/esm/variables/variants/query/createQueryVariableRunner.js.map +1 -1
- package/dist/index.d.ts +27 -25
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -1546,7 +1546,7 @@ function getQueryController(sceneObject) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
parent = parent.parent;
|
|
1548
1548
|
}
|
|
1549
|
-
return
|
|
1549
|
+
return parent;
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
1552
|
class SkipFormattingValue {
|
|
@@ -3032,7 +3032,7 @@ function getPanelPluginNotFound(id) {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
|
|
3034
3034
|
const _LiveNowTimer = class extends SceneObjectBase {
|
|
3035
|
-
constructor(enabled = false) {
|
|
3035
|
+
constructor({ enabled = false }) {
|
|
3036
3036
|
super({ enabled });
|
|
3037
3037
|
this.timerId = void 0;
|
|
3038
3038
|
this._activationHandler = () => {
|
|
@@ -5407,7 +5407,8 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
|
5407
5407
|
request.groupByKeys = this._groupByVar.state.value;
|
|
5408
5408
|
}
|
|
5409
5409
|
request.targets = request.targets.map((query) => {
|
|
5410
|
-
|
|
5410
|
+
var _a;
|
|
5411
|
+
if (!query.datasource || query.datasource.uid !== ds.uid && !((_a = ds.meta) == null ? void 0 : _a.mixed) && runtime.isExpressionReference && !runtime.isExpressionReference(query.datasource)) {
|
|
5411
5412
|
query.datasource = ds.getRef();
|
|
5412
5413
|
}
|
|
5413
5414
|
return query;
|
|
@@ -6581,9 +6582,8 @@ function createQueryVariableRunnerFactory(datasource) {
|
|
|
6581
6582
|
}
|
|
6582
6583
|
let createQueryVariableRunner = createQueryVariableRunnerFactory;
|
|
6583
6584
|
function ensureVariableQueryModelIsADataQuery(variable) {
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
if (typeof query === "string") {
|
|
6585
|
+
const query = variable.state.query;
|
|
6586
|
+
if (!query || typeof query !== "object") {
|
|
6587
6587
|
return { query, refId: `variable-${variable.state.name}` };
|
|
6588
6588
|
}
|
|
6589
6589
|
if (query.refId == null) {
|