From 87095f13dd2615c095b0c08854710a57741cf589 Mon Sep 17 00:00:00 2001 From: Galen Date: Thu, 12 Dec 2024 15:27:44 -0600 Subject: [PATCH 1/2] chore: expose sceneUtils.setWindowGrafanaSceneContext --- packages/scenes/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/scenes/src/index.ts b/packages/scenes/src/index.ts index 3b2c4a371..a33d9ee79 100644 --- a/packages/scenes/src/index.ts +++ b/packages/scenes/src/index.ts @@ -16,6 +16,7 @@ import { isIntervalVariable, isGroupByVariable, } from './variables/variants/guards'; +import { setWindowGrafanaSceneContext } from './utils/compatibility/setWindowGrafanaSceneContext'; export * from './core/types'; export * from './core/events'; @@ -147,6 +148,9 @@ export const sceneUtils = { isQueryVariable, isTextBoxVariable, isGroupByVariable, + + // Allow apps to sync with timeSrv + setWindowGrafanaSceneContext }; export { SafeSerializableSceneObject } from './utils/SafeSerializableSceneObject'; From 642b35ee35fedf6b7790a61d160d2d2ff6645026 Mon Sep 17 00:00:00 2001 From: Galen Date: Thu, 12 Dec 2024 15:33:18 -0600 Subject: [PATCH 2/2] chore: lint --- packages/scenes/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scenes/src/index.ts b/packages/scenes/src/index.ts index a33d9ee79..688997650 100644 --- a/packages/scenes/src/index.ts +++ b/packages/scenes/src/index.ts @@ -150,7 +150,7 @@ export const sceneUtils = { isGroupByVariable, // Allow apps to sync with timeSrv - setWindowGrafanaSceneContext + setWindowGrafanaSceneContext, }; export { SafeSerializableSceneObject } from './utils/SafeSerializableSceneObject';