@k8slens/extensions 5.3.0-git.b4a4cc6be4.0 → 5.3.0-git.bd7ba9ff43.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-store.d.ts +0 -1
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +7 -6
- 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/routes/port-forwards.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +17 -17
- 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/+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-port-component.d.ts +0 -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/layout/sidebar-storage.d.ts +1 -0
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/components/table/table.d.ts +18 -2
- package/dist/src/renderer/components/virtual-list/virtual-list.d.ts +6 -0
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +0 -1
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -0
- package/package.json +1 -1
|
@@ -18,7 +18,6 @@
|
|
|
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 "./cluster-issues.scss";
|
|
22
21
|
import React from "react";
|
|
23
22
|
import type { ItemObject } from "../../../common/item.store";
|
|
24
23
|
interface Props {
|
|
@@ -18,5 +18,4 @@
|
|
|
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 "./cluster-metric-switchers.scss";
|
|
22
21
|
export declare const ClusterMetricSwitchers: () => JSX.Element;
|
|
@@ -18,7 +18,6 @@
|
|
|
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 "./cluster-overview.scss";
|
|
22
21
|
import React from "react";
|
|
23
22
|
export declare class ClusterOverview extends React.Component {
|
|
24
23
|
private metricPoller;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 "./port-forward-details.scss";
|
|
22
|
+
import React from "react";
|
|
23
|
+
import type { PortForwardItem } from "../../port-forward";
|
|
24
|
+
interface Props {
|
|
25
|
+
portForward: PortForwardItem;
|
|
26
|
+
hideDetails(): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class PortForwardDetails extends React.Component<Props> {
|
|
29
|
+
renderResourceName(): JSX.Element;
|
|
30
|
+
renderContent(): JSX.Element;
|
|
31
|
+
render(): JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -20,9 +20,18 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./port-forwards.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
+
import type { RouteComponentProps } from "react-router-dom";
|
|
23
24
|
import { PortForwardItem } from "../../port-forward";
|
|
24
|
-
|
|
25
|
+
import { PortForwardsRouteParams } from "../../../common/routes";
|
|
26
|
+
interface Props extends RouteComponentProps<PortForwardsRouteParams> {
|
|
27
|
+
}
|
|
28
|
+
export declare class PortForwards extends React.Component<Props> {
|
|
25
29
|
componentDidMount(): void;
|
|
30
|
+
get selectedPortForward(): PortForwardItem;
|
|
31
|
+
onDetails: (item: PortForwardItem) => void;
|
|
32
|
+
showDetails: (item: PortForwardItem) => void;
|
|
33
|
+
hideDetails: () => void;
|
|
26
34
|
renderRemoveDialogMessage(selectedItems: PortForwardItem[]): JSX.Element;
|
|
27
35
|
render(): JSX.Element;
|
|
28
36
|
}
|
|
37
|
+
export {};
|
|
@@ -31,7 +31,6 @@ export declare class ServicePortComponent extends React.Component<Props> {
|
|
|
31
31
|
isPortForwarded: boolean;
|
|
32
32
|
constructor(props: Props);
|
|
33
33
|
componentDidMount(): void;
|
|
34
|
-
init(): void;
|
|
35
34
|
checkExistingPortForwarding(): Promise<void>;
|
|
36
35
|
portForward(): Promise<void>;
|
|
37
36
|
stopPortForward(): Promise<void>;
|
|
@@ -35,7 +35,6 @@ export declare class PodContainerPort extends React.Component<Props> {
|
|
|
35
35
|
isPortForwarded: boolean;
|
|
36
36
|
constructor(props: Props);
|
|
37
37
|
componentDidMount(): void;
|
|
38
|
-
init(): void;
|
|
39
38
|
checkExistingPortForwarding(): Promise<void>;
|
|
40
39
|
portForward(): Promise<void>;
|
|
41
40
|
stopPortForward(): Promise<void>;
|
|
@@ -29,12 +29,9 @@ interface Props extends OptionalProps {
|
|
|
29
29
|
interface OptionalProps {
|
|
30
30
|
maxCpu?: number;
|
|
31
31
|
maxMemory?: number;
|
|
32
|
-
showTitle?: boolean;
|
|
33
32
|
}
|
|
34
33
|
export declare class PodDetailsList extends React.Component<Props> {
|
|
35
|
-
static defaultProps: OptionalProps;
|
|
36
34
|
private metricsWatcher;
|
|
37
|
-
private sortingCallbacks;
|
|
38
35
|
componentDidMount(): void;
|
|
39
36
|
componentWillUnmount(): void;
|
|
40
37
|
renderCpuUsage(id: string, usage: number): string | 0 | JSX.Element;
|
|
@@ -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" | "
|
|
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" | "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" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "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" | "ref" | "role" | "disabled" | "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 {};
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -47,6 +52,7 @@ export declare class VirtualList extends Component<Props, State> {
|
|
|
47
52
|
getItemSize: (index: number) => number;
|
|
48
53
|
scrollToSelectedItem: (() => void) & import("lodash").Cancelable;
|
|
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 {};
|
|
@@ -29,6 +29,7 @@ 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>;
|
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.bd7ba9ff43.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|