From b560a73cdbd44f1e85b4fb6494a2276baa79bc43 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 23 Jun 2022 15:11:39 +0300 Subject: [PATCH] Tweak exports for notifications to provide same API contract Signed-off-by: Janne Savolainen --- src/extensions/renderer-api/components.ts | 3 +++ src/renderer/components/notifications/index.ts | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/extensions/renderer-api/components.ts b/src/extensions/renderer-api/components.ts index 6946a8aa66..83188c7d39 100644 --- a/src/extensions/renderer-api/components.ts +++ b/src/extensions/renderer-api/components.ts @@ -19,6 +19,7 @@ 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"; @@ -133,3 +134,5 @@ 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 09616e28d5..9ae9345244 100644 --- a/src/renderer/components/notifications/index.ts +++ b/src/renderer/components/notifications/index.ts @@ -3,10 +3,5 @@ * 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);