From 3d5e7fd7e5703e532c6ed11cc4850e76b253bde0 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 13:31:57 +0100 Subject: [PATCH] [v11.0.x] Dashboard scenes: Export isExpressionReference to be accessible from scenes (#86299) Dashboard scenes: Export isExpressionReference to be accessible from scenes (#85228) Export isExpressionRef to be accessible from scenes (cherry picked from commit b7156ef2c2f3a82c957e782250680c4291cdb95a) Co-authored-by: Oscar Kilhed --- packages/grafana-runtime/src/index.ts | 1 + packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-runtime/src/index.ts b/packages/grafana-runtime/src/index.ts index 4061ac76f2f..f5fc864e640 100644 --- a/packages/grafana-runtime/src/index.ts +++ b/packages/grafana-runtime/src/index.ts @@ -17,6 +17,7 @@ export { type HealthCheckResultDetails, HealthStatus, type StreamOptionsProvider, + isExpressionReference, } from './utils/DataSourceWithBackend'; export { toDataQueryResponse, diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 74f76dbb7c8..f867d1762cf 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -43,7 +43,7 @@ export const ExpressionDatasourceRef = Object.freeze({ }); /** - * @internal + * @public */ export function isExpressionReference(ref?: DataSourceRef | string | null): boolean { if (!ref) {