From 9c67b650b5548eed63ae8dcc5a2f6a214c6c27a3 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 23 Jun 2022 12:58:43 +0300 Subject: [PATCH] Re-export types for notifications store to revert accidental breaking change Signed-off-by: Janne Savolainen --- src/extensions/renderer-api/components.ts | 3 --- src/renderer/components/notifications/index.ts | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/extensions/renderer-api/components.ts b/src/extensions/renderer-api/components.ts index 83188c7d39..6946a8aa66 100644 --- a/src/extensions/renderer-api/components.ts +++ b/src/extensions/renderer-api/components.ts @@ -19,7 +19,6 @@ import { ConfirmDialog as _ConfirmDialog } from "../../renderer/components/confi import type { ConfirmDialogBooleanParams, ConfirmDialogParams, ConfirmDialogProps } from "../../renderer/components/confirm-dialog"; import openConfirmDialogInjectable from "../../renderer/components/confirm-dialog/open.injectable"; import confirmInjectable from "../../renderer/components/confirm-dialog/confirm.injectable"; -import notificationsStoreInjectable from "../../renderer/components/notifications/notifications-store.injectable"; // layouts export * from "../../renderer/components/layout/main-layout"; @@ -134,5 +133,3 @@ export class TerminalStore { console.warn("TerminalStore.resetInstance() does nothing"); } } - -export const notificationsStore = asLegacyGlobalForExtensionApi(notificationsStoreInjectable); diff --git a/src/renderer/components/notifications/index.ts b/src/renderer/components/notifications/index.ts index 75f37ed5cf..09616e28d5 100644 --- a/src/renderer/components/notifications/index.ts +++ b/src/renderer/components/notifications/index.ts @@ -3,4 +3,10 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ +import { asLegacyGlobalForExtensionApi } from "../../../extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api"; +import notificationsStoreInjectable from "./notifications-store.injectable"; + export * from "./notifications"; +export * from "./notifications.store"; + +export const notificationsStore = asLegacyGlobalForExtensionApi(notificationsStoreInjectable);