mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Revert exposing api to legacy extension API
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
06a0dce612
commit
ebc63091a1
@ -3,12 +3,8 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { StatusBarStatus } from "../../renderer/components/status-bar/current-status.injectable";
|
|
||||||
import type { SetStatusBarStatus } from "../../renderer/components/status-bar/set-status-bar-status.injectable";
|
|
||||||
import setStatusBarStatusInjectable from "../../renderer/components/status-bar/set-status-bar-status.injectable";
|
|
||||||
import activeThemeInjectable from "../../renderer/themes/active.injectable";
|
import activeThemeInjectable from "../../renderer/themes/active.injectable";
|
||||||
import type { LensTheme } from "../../renderer/themes/lens-theme";
|
import type { LensTheme } from "../../renderer/themes/lens-theme";
|
||||||
import { asLegacyGlobalFunctionForExtensionApi } from "../as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api";
|
|
||||||
import { asLegacyGlobalForExtensionApi } from "../as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
import { asLegacyGlobalForExtensionApi } from "../as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
||||||
|
|
||||||
export const activeTheme = asLegacyGlobalForExtensionApi(activeThemeInjectable);
|
export const activeTheme = asLegacyGlobalForExtensionApi(activeThemeInjectable);
|
||||||
@ -20,10 +16,4 @@ export function getActiveTheme() {
|
|||||||
return activeTheme.get();
|
return activeTheme.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
export const setStatusBarStatus = asLegacyGlobalFunctionForExtensionApi(setStatusBarStatusInjectable);
|
export type { LensTheme };
|
||||||
|
|
||||||
export type {
|
|
||||||
LensTheme,
|
|
||||||
StatusBarStatus,
|
|
||||||
SetStatusBarStatus,
|
|
||||||
};
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user