mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Do not export clusterModalsInjectionToken to extensions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
136823ce18
commit
aed477845b
@ -5,7 +5,6 @@
|
||||
|
||||
// Extensions-api -> Cluster frame custom modal registration
|
||||
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { IComputedValue } from "mobx";
|
||||
|
||||
export interface ClusterModalRegistration {
|
||||
@ -14,6 +13,3 @@ export interface ClusterModalRegistration {
|
||||
visible?: IComputedValue<boolean>;
|
||||
}
|
||||
|
||||
export const clusterModalsInjectionToken = getInjectionToken<
|
||||
IComputedValue<ClusterModalRegistration[]>
|
||||
>({ id: "cluster-modals-injection-token" });
|
||||
|
||||
@ -7,7 +7,7 @@ import type { RenderResult } from "@testing-library/react";
|
||||
import { computed, runInAction } from "mobx";
|
||||
import React from "react";
|
||||
import type { ClusterModalRegistration } from "../../extensions/registries";
|
||||
import { clusterModalsInjectionToken } from "../../extensions/registries";
|
||||
import { clusterModalsInjectionToken } from "../../renderer/cluster-modals/cluster-modals-injection-token";
|
||||
import type { ApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
|
||||
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
|
||||
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import type { ClusterModalRegistration } from "../../extensions/registries";
|
||||
|
||||
export const clusterModalsInjectionToken = getInjectionToken<
|
||||
IComputedValue<ClusterModalRegistration[]>
|
||||
>({ id: "cluster-modals-injection-token" });
|
||||
@ -8,7 +8,7 @@ import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-f
|
||||
import { flatMap } from "lodash/fp";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import type { ClusterModalRegistration } from "../../extensions/registries";
|
||||
import { clusterModalsInjectionToken } from "../../extensions/registries";
|
||||
import { clusterModalsInjectionToken } from "./cluster-modals-injection-token";
|
||||
|
||||
const clusterModalsInjectable = getInjectable({
|
||||
id: "cluster-modals",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user