@k8slens/extensions 5.2.1-git.e5c9c9a4b5.0 → 5.2.3
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/catalog/catalog-category-registry.d.ts +0 -9
- package/dist/src/common/catalog/catalog-entity.d.ts +0 -18
- package/dist/src/common/custom-errors.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-api.d.ts +2 -20
- package/dist/src/extensions/extension-api.js +164 -243
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -9
- package/dist/src/extensions/main-api/k8s-api.d.ts +2 -2
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +2 -2
- package/dist/src/renderer/api/catalog-category-registry.d.ts +0 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +3 -1
- package/dist/src/renderer/components/+add-cluster/add-cluster.d.ts +1 -3
- package/dist/src/renderer/components/+catalog/catalog-menu.d.ts +1 -1
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/common/catalog-entities/__tests__/kubernetes-cluster.test.d.ts +0 -1
- package/dist/src/main/utils/__test__/update-channel.test.d.ts +0 -21
- package/dist/src/main/utils/update-channel.d.ts +0 -21
- package/dist/src/renderer/components/+catalog/__tests__/catalog-add-button.test.d.ts +0 -1
|
@@ -24,7 +24,6 @@ import { LensExtension } from "./lens-extension";
|
|
|
24
24
|
import type { CatalogEntity } from "../common/catalog";
|
|
25
25
|
import type { Disposer } from "../common/utils";
|
|
26
26
|
import { EntityFilter } from "../renderer/api/catalog-entity-registry";
|
|
27
|
-
import { CategoryFilter } from "../renderer/api/catalog-category-registry";
|
|
28
27
|
export declare class LensRendererExtension extends LensExtension {
|
|
29
28
|
globalPages: registries.PageRegistration[];
|
|
30
29
|
clusterPages: registries.PageRegistration[];
|
|
@@ -47,15 +46,9 @@ export declare class LensRendererExtension extends LensExtension {
|
|
|
47
46
|
*/
|
|
48
47
|
isEnabledForCluster(cluster: Cluster): Promise<Boolean>;
|
|
49
48
|
/**
|
|
50
|
-
* Add a filtering function for the catalog
|
|
51
|
-
* @param fn The function which should return a truthy value for those entities which should be
|
|
49
|
+
* Add a filtering function for the catalog. This will be removed if the extension is disabled.
|
|
50
|
+
* @param fn The function which should return a truthy value for those entities which should be kepted
|
|
52
51
|
* @returns A function to clean up the filter
|
|
53
52
|
*/
|
|
54
53
|
addCatalogFilter(fn: EntityFilter): Disposer;
|
|
55
|
-
/**
|
|
56
|
-
* Add a filtering function for the catalog catogries. This will be removed if the extension is disabled.
|
|
57
|
-
* @param fn The function which should return a truthy value for those categories which should be kept.
|
|
58
|
-
* @returns A function to clean up the filter
|
|
59
|
-
*/
|
|
60
|
-
addCatalogCategoryFilter(fn: CategoryFilter): Disposer;
|
|
61
54
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
export { isAllowedResource } from "../../common/utils/allowed-resource";
|
|
22
22
|
export { ResourceStack } from "../../common/k8s/resource-stack";
|
|
23
23
|
export { apiManager } from "../../common/k8s-api/api-manager";
|
|
24
|
-
export { KubeApi, forCluster
|
|
24
|
+
export { KubeApi, forCluster } from "../../common/k8s-api/kube-api";
|
|
25
25
|
export { KubeObject } from "../../common/k8s-api/kube-object";
|
|
26
26
|
export { KubeObjectStore } from "../../common/k8s-api/kube-object.store";
|
|
27
27
|
export { Pod, podsApi, PodsApi } from "../../common/k8s-api/endpoints/pods.api";
|
|
@@ -53,6 +53,6 @@ export { RoleBinding, roleBindingApi } from "../../common/k8s-api/endpoints/role
|
|
|
53
53
|
export { ClusterRole, clusterRoleApi } from "../../common/k8s-api/endpoints/cluster-role.api";
|
|
54
54
|
export { ClusterRoleBinding, clusterRoleBindingApi } from "../../common/k8s-api/endpoints/cluster-role-binding.api";
|
|
55
55
|
export { CustomResourceDefinition, crdApi } from "../../common/k8s-api/endpoints/crd.api";
|
|
56
|
-
export type {
|
|
56
|
+
export type { IKubeApiCluster } from "../../common/k8s-api/kube-api";
|
|
57
57
|
export type { IPodContainer, IPodContainerStatus } from "../../common/k8s-api/endpoints/pods.api";
|
|
58
58
|
export type { ISecretRef } from "../../common/k8s-api/endpoints/secret.api";
|
|
@@ -22,7 +22,7 @@ export { isAllowedResource } from "../../common/utils/allowed-resource";
|
|
|
22
22
|
export { ResourceStack } from "../../common/k8s/resource-stack";
|
|
23
23
|
export { apiManager } from "../../common/k8s-api/api-manager";
|
|
24
24
|
export { KubeObjectStore } from "../../common/k8s-api/kube-object.store";
|
|
25
|
-
export { KubeApi, forCluster
|
|
25
|
+
export { KubeApi, forCluster } from "../../common/k8s-api/kube-api";
|
|
26
26
|
export { KubeObject } from "../../common/k8s-api/kube-object";
|
|
27
27
|
export { Pod, podsApi, PodsApi } from "../../common/k8s-api/endpoints";
|
|
28
28
|
export { Node, nodesApi, NodesApi } from "../../common/k8s-api/endpoints";
|
|
@@ -54,7 +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 type {
|
|
57
|
+
export type { IKubeApiCluster } from "../../common/k8s-api/kube-api";
|
|
58
58
|
export type { IPodContainer, IPodContainerStatus } from "../../common/k8s-api/endpoints";
|
|
59
59
|
export type { ISecretRef } from "../../common/k8s-api/endpoints";
|
|
60
60
|
export type { KubeObjectStatus } from "./kube-object-status";
|
|
@@ -25,7 +25,7 @@ import { Disposer } from "../utils";
|
|
|
25
25
|
export declare type EntityFilter = (entity: CatalogEntity) => any;
|
|
26
26
|
export declare class CatalogEntityRegistry {
|
|
27
27
|
private categoryRegistry;
|
|
28
|
-
|
|
28
|
+
protected activeEntityId: string | undefined;
|
|
29
29
|
protected _entities: import("mobx").ObservableMap<string, CatalogEntity<import("../../common/catalog").CatalogEntityMetadata, import("../../common/catalog").CatalogEntityStatus, import("../../common/catalog").CatalogEntitySpec>>;
|
|
30
30
|
protected filters: import("mobx").ObservableSet<EntityFilter>;
|
|
31
31
|
/**
|
|
@@ -33,6 +33,8 @@ export declare class CatalogEntityRegistry {
|
|
|
33
33
|
*/
|
|
34
34
|
protected rawEntities: (CatalogEntityData & CatalogEntityKindData)[];
|
|
35
35
|
constructor(categoryRegistry: CatalogCategoryRegistry);
|
|
36
|
+
get activeEntity(): CatalogEntity | null;
|
|
37
|
+
set activeEntity(raw: CatalogEntity | string | null);
|
|
36
38
|
init(): void;
|
|
37
39
|
updateItems(items: (CatalogEntityData & CatalogEntityKindData)[]): void;
|
|
38
40
|
protected updateItem(item: (CatalogEntityData & CatalogEntityKindData)): void;
|
|
@@ -30,13 +30,11 @@ export declare class AddCluster extends React.Component {
|
|
|
30
30
|
kubeContexts: import("mobx").ObservableMap<string, Option>;
|
|
31
31
|
customConfig: string;
|
|
32
32
|
isWaiting: boolean;
|
|
33
|
-
isCheckingInput: boolean;
|
|
34
33
|
errorText: string;
|
|
35
34
|
constructor(props: {});
|
|
36
35
|
componentDidMount(): void;
|
|
37
36
|
get allErrors(): string[];
|
|
38
|
-
|
|
39
|
-
refreshContexts: () => void;
|
|
37
|
+
refreshContexts: (() => void) & import("lodash").Cancelable;
|
|
40
38
|
addClusters: () => Promise<void>;
|
|
41
39
|
render(): JSX.Element;
|
|
42
40
|
}
|
|
@@ -80,7 +80,7 @@ interface State {
|
|
|
80
80
|
}
|
|
81
81
|
export declare class Input extends React.Component<InputProps, State> {
|
|
82
82
|
static defaultProps: object;
|
|
83
|
-
input: InputElement;
|
|
83
|
+
input: InputElement | null;
|
|
84
84
|
validators: InputValidator[];
|
|
85
85
|
state: State;
|
|
86
86
|
setValue(value?: string): void;
|
|
@@ -26,5 +26,5 @@ interface Styles extends Partial<Record<SwitchClassKey, string>> {
|
|
|
26
26
|
interface Props extends SwitchProps {
|
|
27
27
|
classes: Styles;
|
|
28
28
|
}
|
|
29
|
-
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "id" | "
|
|
29
|
+
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "id" | "className" | "key" | "style" | "dir" | "form" | "slot" | "title" | "color" | "value" | "type" | "resource" | "prefix" | "defaultValue" | "hidden" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "inputProps" | "action" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
|
|
30
30
|
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.2.
|
|
5
|
+
"version": "5.2.3",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
export declare function nextUpdateChannel(defaultChannel: string, channel: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|