@k8slens/extensions 5.3.0-git.277184c572.0 → 5.3.0-git.30170163a6.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/__mocks__/electron.ts +0 -5
- package/dist/integration/helpers/utils.d.ts +1 -1
- package/dist/src/common/app-paths.d.ts +43 -0
- package/dist/src/common/catalog/catalog-entity.d.ts +4 -1
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +9 -1
- package/dist/src/common/catalog-entities/web-link.d.ts +2 -0
- package/dist/src/common/cluster-store.d.ts +0 -1
- package/dist/src/common/hotbar-store.d.ts +5 -0
- package/dist/src/common/hotbar-types.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +16 -32
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +7 -6
- package/dist/src/common/k8s-api/endpoints/secret.api.d.ts +5 -6
- package/dist/src/common/k8s-api/endpoints/service.api.d.ts +1 -1
- package/dist/src/common/k8s-api/json-api.d.ts +2 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +1 -1
- package/dist/src/common/kube-helpers.d.ts +9 -14
- package/dist/src/common/routes/port-forwards.d.ts +1 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +8 -1
- package/dist/src/common/user-store/user-store.d.ts +1 -1
- package/dist/src/common/{custom-errors.d.ts → utils/__tests__/tuple.test.d.ts} +1 -3
- package/dist/src/common/utils/{getPath.d.ts → array.d.ts} +4 -5
- package/dist/src/common/utils/index.d.ts +7 -5
- package/dist/src/common/utils/iter.d.ts +23 -9
- package/dist/src/common/utils/objects.d.ts +27 -0
- package/dist/src/common/utils/sort-compare.d.ts +50 -0
- package/dist/src/common/utils/tuple.d.ts +40 -0
- package/dist/src/extensions/common-api/catalog.d.ts +2 -1
- package/dist/src/extensions/extension-api.js +436 -1959
- package/dist/src/main/cluster.d.ts +0 -1
- package/dist/src/main/helm/helm-chart-manager.d.ts +5 -0
- package/dist/src/main/helm/helm-repo-manager.d.ts +1 -0
- package/dist/src/main/kube-auth-proxy.d.ts +1 -0
- package/dist/src/main/kubectl.d.ts +1 -1
- package/dist/src/main/utils/update-channel.d.ts +6 -0
- package/dist/src/renderer/bootstrap.d.ts +1 -1
- package/dist/src/renderer/components/+add-cluster/add-cluster.d.ts +1 -1
- package/dist/src/renderer/components/+apps-releases/release-menu.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +0 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +0 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-item.d.ts +1 -1
- package/dist/src/renderer/components/+catalog/catalog.d.ts +2 -0
- package/dist/src/renderer/components/+catalog/hotbar-toggle-menu-item.d.ts +27 -0
- package/dist/src/renderer/components/+cluster/cluster-issues.d.ts +0 -1
- package/dist/src/renderer/components/+cluster/cluster-metric-switchers.d.ts +0 -1
- package/dist/src/renderer/components/+cluster/cluster-metrics.d.ts +0 -1
- package/dist/src/renderer/components/+cluster/cluster-overview.d.ts +0 -1
- package/dist/src/renderer/components/+cluster/cluster-pie-charts.d.ts +0 -1
- package/dist/src/renderer/components/+config-maps/config-map-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-pod-disruption-budgets/pod-disruption-budgets-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-resource-quotas/resource-quota-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-secrets/__tests__/secret-details.test.d.ts +21 -0
- package/dist/src/renderer/components/+config-secrets/secret-details.d.ts +5 -4
- package/dist/src/renderer/components/+custom-resources/crd-details.d.ts +1 -1
- package/dist/src/renderer/components/+custom-resources/crd-resource-details.d.ts +2 -2
- package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +1 -2
- package/dist/src/renderer/components/+events/event-details.d.ts +1 -1
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter.d.ts +3 -0
- package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +55 -2
- package/dist/src/renderer/components/+network-endpoints/endpoint-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-port-forwards/port-forward-details.d.ts +33 -0
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +1 -1
- package/dist/src/renderer/components/+network-port-forwards/port-forwards.d.ts +10 -1
- package/dist/src/renderer/components/+network-services/service-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +0 -1
- package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts +9 -8
- package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-pods/pod-details-list.d.ts +0 -3
- package/dist/src/renderer/components/dock/create-resource.store.d.ts +3 -3
- package/dist/src/renderer/components/dock/log-list.d.ts +1 -1
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +1 -1
- package/dist/src/renderer/components/error-boundary/error-boundary.d.ts +13 -3
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +0 -2
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- package/dist/src/renderer/components/input/search-input-url.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-meta/kube-object-meta.d.ts +1 -1
- package/dist/src/renderer/components/layout/setting-layout.d.ts +0 -1
- package/dist/src/renderer/components/layout/sidebar-storage.d.ts +1 -0
- package/dist/src/renderer/components/layout/sidebar.d.ts +3 -1
- package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +1 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/components/table/__tests__/getSorted.test.d.ts +21 -0
- package/dist/src/renderer/components/table/sorting.d.ts +22 -0
- package/dist/src/renderer/components/table/table.d.ts +20 -3
- package/dist/src/renderer/components/virtual-list/virtual-list.d.ts +7 -1
- package/dist/src/renderer/port-forward/index.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +0 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -0
- package/dist/src/renderer/port-forward/port-forward-utils.d.ts +24 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -1
- package/dist/src/renderer/utils/__tests__/converted-name.test.d.ts +21 -0
- package/dist/src/renderer/utils/createStorage.d.ts +2 -3
- package/dist/src/renderer/utils/index.d.ts +9 -10
- package/dist/src/renderer/utils/name-parts.d.ts +27 -0
- package/dist/src/renderer/utils/storageHelper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -25,10 +25,10 @@ export declare class CreateResourceStore extends DockTabStore<string> {
|
|
|
25
25
|
constructor();
|
|
26
26
|
get lensTemplatesFolder(): string;
|
|
27
27
|
get userTemplatesFolder(): string;
|
|
28
|
-
getTemplates(templatesPath: string, defaultGroup: string): Promise<import("lodash").Dictionary<string[]>>;
|
|
29
|
-
groupTemplates(templates: string[], templatesPath: string, defaultGroup: string): import("lodash").Dictionary<string[]>;
|
|
28
|
+
getTemplates(templatesPath: string, defaultGroup: string): Promise<import("lodash").Dictionary<[string, ...string[]]>>;
|
|
29
|
+
groupTemplates(templates: string[], templatesPath: string, defaultGroup: string): import("lodash").Dictionary<[string, ...string[]]>;
|
|
30
30
|
getMergedTemplates(): Promise<{
|
|
31
|
-
[x: string]: string[];
|
|
31
|
+
[x: string]: [string, ...string[]];
|
|
32
32
|
}>;
|
|
33
33
|
watchUserTemplates(callback: () => void): Promise<void>;
|
|
34
34
|
}
|
|
@@ -61,7 +61,7 @@ export declare class LogList extends React.Component<Props> {
|
|
|
61
61
|
scrollToBottom: () => void;
|
|
62
62
|
scrollToItem: (index: number, align: Align) => void;
|
|
63
63
|
onScroll: (props: ListOnScrollProps) => void;
|
|
64
|
-
onScrollDebounced: ((props: ListOnScrollProps) => void
|
|
64
|
+
onScrollDebounced: import("lodash").DebouncedFunc<(props: ListOnScrollProps) => void>;
|
|
65
65
|
/**
|
|
66
66
|
* A function is called by VirtualList for rendering each of the row
|
|
67
67
|
* @param rowIndex index of the log element in logs array
|
|
@@ -43,7 +43,7 @@ export declare class Terminal {
|
|
|
43
43
|
init(): Promise<void>;
|
|
44
44
|
destroy(): void;
|
|
45
45
|
fit: () => void;
|
|
46
|
-
fitLazy: (() => void
|
|
46
|
+
fitLazy: import("lodash").DebouncedFunc<() => void>;
|
|
47
47
|
focus: () => void;
|
|
48
48
|
onApiData: (data: string) => void;
|
|
49
49
|
onData: (data: string) => void;
|
|
@@ -52,7 +52,7 @@ export declare class Drawer extends React.Component<DrawerProps> {
|
|
|
52
52
|
onClickOutside: (evt: MouseEvent) => void;
|
|
53
53
|
onMouseDown: (evt: MouseEvent) => void;
|
|
54
54
|
close: () => void;
|
|
55
|
-
|
|
55
|
+
copyTitle: (title: string) => void;
|
|
56
56
|
render(): JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export {};
|
|
@@ -19,7 +19,17 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import "./error-boundary.scss";
|
|
22
|
-
import React from "react";
|
|
23
|
-
|
|
24
|
-
render(): JSX.Element;
|
|
22
|
+
import React, { ErrorInfo } from "react";
|
|
23
|
+
interface Props {
|
|
25
24
|
}
|
|
25
|
+
interface State {
|
|
26
|
+
error?: Error;
|
|
27
|
+
errorInfo?: ErrorInfo;
|
|
28
|
+
}
|
|
29
|
+
export declare class ErrorBoundary extends React.Component<Props, State> {
|
|
30
|
+
state: State;
|
|
31
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
32
|
+
back: () => void;
|
|
33
|
+
render(): React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -33,11 +33,9 @@ interface Props extends DOMAttributes<HTMLElement> {
|
|
|
33
33
|
export declare class HotbarEntityIcon extends React.Component<Props> {
|
|
34
34
|
private contextMenu;
|
|
35
35
|
constructor(props: Props);
|
|
36
|
-
componentDidMount(): void;
|
|
37
36
|
get kindIcon(): JSX.Element;
|
|
38
37
|
get ledIcon(): JSX.Element;
|
|
39
38
|
isActive(item: CatalogEntity): boolean;
|
|
40
|
-
isPersisted(entity: CatalogEntity): boolean;
|
|
41
39
|
render(): JSX.Element;
|
|
42
40
|
}
|
|
43
41
|
export {};
|
|
@@ -97,7 +97,7 @@ export declare class Input extends React.Component<InputProps, State> {
|
|
|
97
97
|
setDirty(dirty?: boolean): void;
|
|
98
98
|
onFocus(evt: React.FocusEvent<InputElement>): void;
|
|
99
99
|
onBlur(evt: React.FocusEvent<InputElement>): void;
|
|
100
|
-
setDirtyOnChange: (() => void
|
|
100
|
+
setDirtyOnChange: import("lodash").DebouncedFunc<() => void>;
|
|
101
101
|
onChange(evt: React.ChangeEvent<any>): void;
|
|
102
102
|
onKeyDown(evt: React.KeyboardEvent<InputElement>): void;
|
|
103
103
|
get showMaxLenIndicator(): boolean;
|
|
@@ -28,7 +28,7 @@ export interface SearchInputUrlProps extends InputProps {
|
|
|
28
28
|
export declare class SearchInputUrl extends React.Component<SearchInputUrlProps> {
|
|
29
29
|
inputVal: string;
|
|
30
30
|
updateInput: import("mobx").IReactionDisposer;
|
|
31
|
-
updateUrl: ((val: string) => void
|
|
31
|
+
updateUrl: import("lodash").DebouncedFunc<(val: string) => void>;
|
|
32
32
|
setValue: (value: string) => void;
|
|
33
33
|
clear: () => void;
|
|
34
34
|
onChange: (val: string, evt: React.ChangeEvent<any>) => void;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
import
|
|
22
|
+
import { KubeMetaField, KubeObject } from "../../../common/k8s-api/kube-object";
|
|
23
23
|
export interface KubeObjectMetaProps {
|
|
24
24
|
object: KubeObject;
|
|
25
25
|
hideFields?: KubeMetaField[];
|
|
@@ -34,7 +34,6 @@ export interface SettingLayoutProps extends React.DOMAttributes<any> {
|
|
|
34
34
|
*/
|
|
35
35
|
export declare class SettingLayout extends React.Component<SettingLayoutProps> {
|
|
36
36
|
static defaultProps: object;
|
|
37
|
-
back(evt?: React.MouseEvent | KeyboardEvent): void;
|
|
38
37
|
componentDidMount(): Promise<void>;
|
|
39
38
|
componentWillUnmount(): void;
|
|
40
39
|
onEscapeKey: (evt: KeyboardEvent) => void;
|
|
@@ -26,13 +26,15 @@ interface Props {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class Sidebar extends React.Component<Props> {
|
|
28
28
|
static displayName: string;
|
|
29
|
+
private contextMenu;
|
|
30
|
+
constructor(props: Props);
|
|
29
31
|
componentDidMount(): Promise<void>;
|
|
30
32
|
renderCustomResources(): JSX.Element | JSX.Element[];
|
|
31
33
|
renderTreeFromTabRoutes(tabRoutes?: TabLayoutRoute[]): React.ReactNode;
|
|
32
34
|
getTabLayoutRoutes(menu: ClusterPageMenuRegistration): TabLayoutRoute[];
|
|
33
35
|
renderRegisteredMenus(): JSX.Element[];
|
|
34
36
|
renderCluster(): JSX.Element;
|
|
35
|
-
get clusterEntity(): import("
|
|
37
|
+
get clusterEntity(): import("../../../common/catalog").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
|
|
36
38
|
render(): JSX.Element;
|
|
37
39
|
}
|
|
38
40
|
export {};
|
|
@@ -118,7 +118,7 @@ export declare class ResizingAnchor extends React.PureComponent<Props> {
|
|
|
118
118
|
componentWillUnmount(): void;
|
|
119
119
|
onDragInit: (event: React.MouseEvent) => void;
|
|
120
120
|
calculateDelta(from: Position, to: Position): number | false;
|
|
121
|
-
onDrag: (
|
|
121
|
+
onDrag: _.DebouncedFunc<(event: MouseEvent) => void>;
|
|
122
122
|
onDragEnd: () => void;
|
|
123
123
|
render(): JSX.Element;
|
|
124
124
|
}
|
|
@@ -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" | "key" | "id" | "value" | "type" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "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" | "role" | "
|
|
29
|
+
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "key" | "id" | "value" | "type" | "size" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "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" | "role" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { TableSortCallback } from "./table";
|
|
22
|
+
export declare function getSorted<T>(rawItems: T[], sortingCallback: TableSortCallback<T> | undefined, orderByRaw: string): T[];
|
|
@@ -48,9 +48,25 @@ export interface TableProps<Item> extends React.DOMAttributes<HTMLDivElement> {
|
|
|
48
48
|
onSort?: (params: TableSortParams) => void;
|
|
49
49
|
noItems?: React.ReactNode;
|
|
50
50
|
selectedItemId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Use virtual list component to render only visible rows. By default uses a
|
|
53
|
+
* auto sizer to fill available height
|
|
54
|
+
*/
|
|
51
55
|
virtual?: boolean;
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Only used when virtual is true. Sets the virtual list to be a fixed height.
|
|
58
|
+
* Needed when used in contexts that already have a parent component that
|
|
59
|
+
* is `overflow-y: scroll`,
|
|
60
|
+
*/
|
|
61
|
+
virtualHeight?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Row padding in pixels
|
|
64
|
+
*/
|
|
65
|
+
rowPadding?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Row line height in pixels
|
|
68
|
+
*/
|
|
69
|
+
rowLineHeight?: number;
|
|
54
70
|
customRowHeights?: (item: Item, lineHeight: number, paddings: number) => number;
|
|
55
71
|
getTableRow?: (uid: string) => React.ReactElement<TableRowProps>;
|
|
56
72
|
renderRow?: (item: Item) => React.ReactElement<TableRowProps>;
|
|
@@ -61,9 +77,10 @@ export declare class Table<Item> extends React.Component<TableProps<Item>> {
|
|
|
61
77
|
static defaultProps: TableProps<any>;
|
|
62
78
|
constructor(props: TableProps<Item>);
|
|
63
79
|
componentDidMount(): void;
|
|
80
|
+
get isSortable(): boolean;
|
|
64
81
|
get sortParams(): Partial<TableSortParams>;
|
|
65
82
|
renderHead(): React.ReactElement<TableHeadProps, string | React.JSXElementConstructor<any>>;
|
|
66
|
-
getSorted(
|
|
83
|
+
getSorted(rawItems: Item[]): Item[];
|
|
67
84
|
protected onSort({ sortBy, orderBy }: TableSortParams): void;
|
|
68
85
|
sort(colName: TableSortBy): void;
|
|
69
86
|
private getContent;
|
|
@@ -34,6 +34,11 @@ interface Props<T extends ItemObject = any> {
|
|
|
34
34
|
getRow?: (uid: string | number) => React.ReactElement<any>;
|
|
35
35
|
onScroll?: (props: ListOnScrollProps) => void;
|
|
36
36
|
outerRef?: React.Ref<any>;
|
|
37
|
+
/**
|
|
38
|
+
* If specified then AutoSizer will not be used and instead a fixed height
|
|
39
|
+
* virtual list will be rendered
|
|
40
|
+
*/
|
|
41
|
+
fixedHeight?: number;
|
|
37
42
|
}
|
|
38
43
|
interface State {
|
|
39
44
|
overscanCount: number;
|
|
@@ -45,8 +50,9 @@ export declare class VirtualList extends Component<Props, State> {
|
|
|
45
50
|
componentDidMount(): void;
|
|
46
51
|
componentDidUpdate(prevProps: Props): void;
|
|
47
52
|
getItemSize: (index: number) => number;
|
|
48
|
-
scrollToSelectedItem: (() => void
|
|
53
|
+
scrollToSelectedItem: import("lodash").DebouncedFunc<() => void>;
|
|
49
54
|
scrollToItem: (index: number, align: Align) => void;
|
|
55
|
+
renderList(height: number | undefined): JSX.Element;
|
|
50
56
|
render(): JSX.Element;
|
|
51
57
|
}
|
|
52
58
|
export {};
|
|
@@ -26,6 +26,7 @@ export interface ForwardedPort {
|
|
|
26
26
|
name: string;
|
|
27
27
|
port: number;
|
|
28
28
|
forwardPort: number;
|
|
29
|
+
protocol?: string;
|
|
29
30
|
}
|
|
30
31
|
export declare class PortForwardItem implements ItemObject {
|
|
31
32
|
clusterId: string;
|
|
@@ -34,6 +35,7 @@ export declare class PortForwardItem implements ItemObject {
|
|
|
34
35
|
name: string;
|
|
35
36
|
port: number;
|
|
36
37
|
forwardPort: number;
|
|
38
|
+
protocol: string;
|
|
37
39
|
constructor(pf: ForwardedPort);
|
|
38
40
|
getName(): string;
|
|
39
41
|
getNs(): string;
|
|
@@ -42,5 +44,7 @@ export declare class PortForwardItem implements ItemObject {
|
|
|
42
44
|
getKind(): string;
|
|
43
45
|
getPort(): number;
|
|
44
46
|
getForwardPort(): number;
|
|
47
|
+
getProtocol(): string;
|
|
48
|
+
getStatus(): string;
|
|
45
49
|
getSearchFields(): (string | number)[];
|
|
46
50
|
}
|
|
@@ -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 { ForwardedPort } from "./port-forward-item";
|
|
22
|
+
export declare function portForwardAddress(portForward: ForwardedPort): string;
|
|
23
|
+
export declare function openPortForward(portForward: ForwardedPort): void;
|
|
24
|
+
export declare function predictProtocol(name: string): "http" | "https";
|
|
@@ -29,11 +29,11 @@ export declare class PortForwardStore extends ItemStore<PortForwardItem> {
|
|
|
29
29
|
loadAll(): Promise<any>;
|
|
30
30
|
reset(): void;
|
|
31
31
|
removeSelectedItems(): Promise<void[]>;
|
|
32
|
+
getById(id: string): PortForwardItem;
|
|
32
33
|
}
|
|
33
34
|
export declare function addPortForward(portForward: ForwardedPort): Promise<number>;
|
|
34
35
|
export declare function getPortForward(portForward: ForwardedPort): Promise<number>;
|
|
35
36
|
export declare function modifyPortForward(portForward: ForwardedPort, desiredPort: number): Promise<number>;
|
|
36
37
|
export declare function removePortForward(portForward: ForwardedPort): Promise<void>;
|
|
37
38
|
export declare function getPortForwards(): Promise<ForwardedPort[]>;
|
|
38
|
-
export declare function openPortForward(portForward: ForwardedPort): void;
|
|
39
39
|
export declare const portForwardStore: PortForwardStore;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 {};
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
import { StorageHelper } from "./storageHelper";
|
|
22
22
|
/**
|
|
23
23
|
* Creates a helper for saving data under the "key" intended for window.localStorage
|
|
24
|
-
* @param key
|
|
25
|
-
* @param defaultValue
|
|
24
|
+
* @param key The descriptor of the data
|
|
25
|
+
* @param defaultValue The default value of the data, must be JSON serializable
|
|
26
26
|
*/
|
|
27
27
|
export declare function createStorage<T>(key: string, defaultValue: T): StorageHelper<T>;
|
|
28
|
-
export declare function createAppStorage<T>(key: string, defaultValue: T, clusterId?: string | undefined): StorageHelper<T>;
|
|
@@ -19,18 +19,17 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
export * from "../../common/utils";
|
|
22
|
-
export * from "./cssVar";
|
|
23
|
-
export * from "./cssNames";
|
|
24
22
|
export * from "../../common/event-emitter";
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./prevDefault";
|
|
27
|
-
export * from "./storageHelper";
|
|
23
|
+
export * from "./copyToClipboard";
|
|
28
24
|
export * from "./createStorage";
|
|
25
|
+
export * from "./cssNames";
|
|
26
|
+
export * from "./cssVar";
|
|
27
|
+
export * from "./display-booleans";
|
|
29
28
|
export * from "./interval";
|
|
30
|
-
export * from "./
|
|
29
|
+
export * from "./isMiddleClick";
|
|
31
30
|
export * from "./isReactNode";
|
|
32
|
-
export * from "../../common/utils/convertMemory";
|
|
33
|
-
export * from "../../common/utils/convertCpu";
|
|
34
31
|
export * from "./metricUnitsToNumber";
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
32
|
+
export * from "./name-parts";
|
|
33
|
+
export * from "./prevDefault";
|
|
34
|
+
export * from "./saveFile";
|
|
35
|
+
export * from "./storageHelper";
|
|
@@ -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
|
+
/**
|
|
22
|
+
* Split `name` into the parts seperated by one or more of (-, _, or .) and
|
|
23
|
+
* the sections can be converted to numbers will be converted
|
|
24
|
+
* @param name A kube object name
|
|
25
|
+
* @returns The converted parts of the name
|
|
26
|
+
*/
|
|
27
|
+
export declare function getConvertedParts(name: string): (string | number)[];
|
|
@@ -38,6 +38,7 @@ export interface StorageHelperOptions<T> {
|
|
|
38
38
|
export declare class StorageHelper<T> {
|
|
39
39
|
readonly key: string;
|
|
40
40
|
private options;
|
|
41
|
+
static getLocalStoragePath(): Promise<string>;
|
|
41
42
|
static logPrefix: string;
|
|
42
43
|
readonly storage: StorageAdapter<T>;
|
|
43
44
|
private data;
|
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.0-git.
|
|
5
|
+
"version": "5.3.0-git.30170163a6.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|