@k8slens/extensions 5.3.1-git.d73df7fe0d.0 → 5.3.1-git.d775d53078.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +29 -5
- package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/extensions/extension-api.js +163 -45
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/lens-proxy.d.ts +8 -1
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +27 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +4 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
- package/dist/src/renderer/{utils/copyToClipboard.d.ts → components/kube-object-menu/dependencies/hide-details.injectable.d.ts} +4 -7
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +29 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu-container.d.ts +2 -0
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +14 -4
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.injectable.d.ts +5 -0
- package/dist/src/renderer/components/{clipboard/index.d.ts → kube-object-menu/kube-object-menu.test.d.ts} +1 -1
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/{clipboard/clipboard.d.ts → test-utils/renderFor.d.ts} +6 -16
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -54,6 +54,7 @@ export { ClusterRole, clusterRoleApi } from "../../common/k8s-api/endpoints";
|
|
|
54
54
|
export { ClusterRoleBinding, clusterRoleBindingApi } from "../../common/k8s-api/endpoints";
|
|
55
55
|
export { CustomResourceDefinition, crdApi } from "../../common/k8s-api/endpoints";
|
|
56
56
|
export { KubeObjectStatusLevel } from "./kube-object-status";
|
|
57
|
+
export { KubeJsonApi } from "../../common/k8s-api/kube-json-api";
|
|
57
58
|
export type { ILocalKubeApiConfig, IRemoteKubeApiConfig, IKubeApiCluster } from "../../common/k8s-api/kube-api";
|
|
58
59
|
export type { IPodContainer, IPodContainerStatus } from "../../common/k8s-api/endpoints";
|
|
59
60
|
export type { ISecretRef } from "../../common/k8s-api/endpoints";
|
|
@@ -34,7 +34,7 @@ export declare class ClusterManager extends Singleton {
|
|
|
34
34
|
protected updateCatalog(clusters: Cluster[]): void;
|
|
35
35
|
protected updateEntityFromCluster(cluster: Cluster): void;
|
|
36
36
|
protected updateEntityStatus(entity: KubernetesCluster, cluster?: Cluster): void;
|
|
37
|
-
syncClustersFromCatalog(entities: KubernetesCluster[]): void;
|
|
37
|
+
protected syncClustersFromCatalog(entities: KubernetesCluster[]): void;
|
|
38
38
|
protected onNetworkOffline: () => void;
|
|
39
39
|
protected onNetworkOnline: () => void;
|
|
40
40
|
stop(): void;
|
|
@@ -43,9 +43,16 @@ export declare class LensProxy extends Singleton {
|
|
|
43
43
|
protected getClusterForRequest: GetClusterForRequest;
|
|
44
44
|
port: number;
|
|
45
45
|
constructor(router: Router, { shellApiRequest, kubeApiRequest, getClusterForRequest }: LensProxyFunctions);
|
|
46
|
+
/**
|
|
47
|
+
* Starts to listen on an OS provided port. Will reject if the server throws
|
|
48
|
+
* an error.
|
|
49
|
+
*
|
|
50
|
+
* Resolves with the port number that was picked
|
|
51
|
+
*/
|
|
52
|
+
private attemptToListen;
|
|
46
53
|
/**
|
|
47
54
|
* Starts the lens proxy.
|
|
48
|
-
* @resolves After the server is listening
|
|
55
|
+
* @resolves After the server is listening on a good port
|
|
49
56
|
* @rejects if there is an error before that happens
|
|
50
57
|
*/
|
|
51
58
|
listen(): Promise<void>;
|
|
@@ -69,8 +69,6 @@ export declare class TerminalApi extends WebSocketApi<TerminalEvents> {
|
|
|
69
69
|
isReady: boolean;
|
|
70
70
|
constructor(query: TerminalApiQuery);
|
|
71
71
|
connect(): Promise<void>;
|
|
72
|
-
destroy(): void;
|
|
73
|
-
reconnect(): void;
|
|
74
72
|
sendMessage(message: TerminalMessage): void;
|
|
75
73
|
sendTerminalSize(cols: number, rows: number): void;
|
|
76
74
|
protected _onMessage({ data, ...evt }: MessageEvent<ArrayBuffer>): void;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { ApiManager } from "../../../../common/k8s-api/api-manager";
|
|
22
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
23
|
+
declare const apiManagerInjectable: Injectable<ApiManager>;
|
|
24
|
+
export default apiManagerInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import type { Cluster } from "../../../../main/cluster";
|
|
23
|
+
interface Dependencies {
|
|
24
|
+
cluster: Cluster;
|
|
25
|
+
}
|
|
26
|
+
declare const clusterNameInjectable: Injectable<string | undefined, Dependencies>;
|
|
27
|
+
export default clusterNameInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { editResourceTab } from "../../dock/edit-resource.store";
|
|
22
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
23
|
+
declare const editResourceTabInjectable: Injectable<typeof editResourceTab>;
|
|
24
|
+
export default editResourceTabInjectable;
|
|
@@ -18,10 +18,7 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
copiedText: string;
|
|
26
|
-
clearSelection: () => void;
|
|
27
|
-
};
|
|
21
|
+
import { hideDetails } from "../../kube-detail-params";
|
|
22
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
23
|
+
export declare const hideDetailsInjectable: Injectable<typeof hideDetails>;
|
|
24
|
+
export default hideDetailsInjectable;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
22
|
+
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
23
|
+
export interface Dependencies {
|
|
24
|
+
kubeObjectMenuRegistry: KubeObjectMenuRegistry;
|
|
25
|
+
}
|
|
26
|
+
export interface InstantiationParameter {
|
|
27
|
+
kubeObject: KubeObject;
|
|
28
|
+
}
|
|
29
|
+
export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry }: Dependencies, { kubeObject }: InstantiationParameter) => import("react").ComponentType<any>[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { InstantiationParameter, Dependencies, getKubeObjectMenuItems } from "./get-kube-object-menu-items";
|
|
23
|
+
declare const kubeObjectMenuItemsInjectable: Injectable<ReturnType<typeof getKubeObjectMenuItems>, Dependencies, InstantiationParameter>;
|
|
24
|
+
export default kubeObjectMenuItemsInjectable;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
22
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
23
|
+
declare const kubeObjectMenuRegistryInjectable: Injectable<KubeObjectMenuRegistry>;
|
|
24
|
+
export default kubeObjectMenuRegistryInjectable;
|
|
@@ -18,4 +18,5 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type { KubeObjectMenuProps } from "./kube-object-menu";
|
|
22
|
+
export { KubeObjectMenu } from "./kube-object-menu-container";
|
|
@@ -20,13 +20,23 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
22
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
23
|
-
import { MenuActionsProps } from "../menu
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
import { MenuActionsProps } from "../menu";
|
|
24
|
+
import type { ApiManager } from "../../../common/k8s-api/api-manager";
|
|
25
|
+
export interface KubeObjectMenuDependencies<TKubeObject> {
|
|
26
|
+
apiManager: ApiManager;
|
|
27
|
+
kubeObjectMenuItems: React.ElementType[];
|
|
28
|
+
clusterName: string;
|
|
29
|
+
hideDetails: () => void;
|
|
30
|
+
editResourceTab: (kubeObject: TKubeObject) => void;
|
|
31
|
+
}
|
|
32
|
+
export interface KubeObjectMenuProps<TKubeObject> extends MenuActionsProps {
|
|
33
|
+
object: TKubeObject | null | undefined;
|
|
26
34
|
editable?: boolean;
|
|
27
35
|
removable?: boolean;
|
|
28
36
|
}
|
|
29
|
-
export
|
|
37
|
+
export interface KubeObjectMenuPropsAndDependencies<TKubeObject> extends KubeObjectMenuProps<TKubeObject>, KubeObjectMenuDependencies<TKubeObject> {
|
|
38
|
+
}
|
|
39
|
+
export declare class KubeObjectMenu<TKubeObject extends KubeObject> extends React.Component<KubeObjectMenuPropsAndDependencies<TKubeObject>> {
|
|
30
40
|
get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
|
|
31
41
|
get isEditable(): boolean;
|
|
32
42
|
get isRemovable(): boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { KubeObjectMenuDependencies, KubeObjectMenuProps } from "./kube-object-menu";
|
|
2
|
+
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
3
|
+
import { Injectable } from "@ogre-tools/injectable";
|
|
4
|
+
declare const KubeObjectMenuInjectable: Injectable<JSX.Element, KubeObjectMenuDependencies<KubeObject>, KubeObjectMenuProps<KubeObject>>;
|
|
5
|
+
export default KubeObjectMenuInjectable;
|
|
@@ -28,7 +28,6 @@ interface IKubeconfigDialogData {
|
|
|
28
28
|
interface Props extends Partial<DialogProps> {
|
|
29
29
|
}
|
|
30
30
|
export declare class KubeConfigDialog extends React.Component<Props> {
|
|
31
|
-
configTextArea: HTMLTextAreaElement;
|
|
32
31
|
config: string;
|
|
33
32
|
constructor(props: Props);
|
|
34
33
|
static open(data: IKubeconfigDialogData): void;
|
|
@@ -18,20 +18,10 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import "./clipboard.scss";
|
|
22
21
|
import React from "react";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
export declare const defaultProps: Partial<CopyToClipboardProps>;
|
|
30
|
-
export declare class Clipboard extends React.Component<CopyToClipboardProps> {
|
|
31
|
-
static displayName: string;
|
|
32
|
-
static defaultProps: object;
|
|
33
|
-
get rootElem(): HTMLElement;
|
|
34
|
-
get rootReactElem(): React.ReactElement<React.HTMLProps<any>>;
|
|
35
|
-
onClick(evt: React.MouseEvent): void;
|
|
36
|
-
render(): React.ReactElement<React.HTMLProps<any>, string | React.JSXElementConstructor<any>>;
|
|
37
|
-
}
|
|
22
|
+
import { RenderResult } from "@testing-library/react";
|
|
23
|
+
import type { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injectable";
|
|
24
|
+
export declare type DiRender = (ui: React.ReactElement) => RenderResult;
|
|
25
|
+
declare type DiRenderFor = (di: ConfigurableDependencyInjectionContainer) => DiRender;
|
|
26
|
+
export declare const renderFor: DiRenderFor;
|
|
27
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@k8slens/extensions",
|
|
3
3
|
"productName": "OpenLens extensions",
|
|
4
4
|
"description": "OpenLens - Open Source Kubernetes IDE: extensions",
|
|
5
|
-
"version": "5.3.1-git.
|
|
5
|
+
"version": "5.3.1-git.d775d53078.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|