@k8slens/extensions 5.3.0-git.b2b3c44695.0 → 5.3.0-git.c0c0b3ae11.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/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/k8s-api/endpoints/crd.api.d.ts +24 -8
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +25 -44
- package/dist/src/common/k8s-api/endpoints/secret.api.d.ts +5 -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/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 +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -0
- package/dist/src/common/utils/array.d.ts +30 -0
- package/dist/src/common/utils/index.d.ts +2 -1
- package/dist/src/common/utils/iter.d.ts +23 -9
- package/dist/src/common/utils/sort-compare.d.ts +50 -0
- package/dist/src/extensions/common-api/catalog.d.ts +2 -1
- package/dist/src/extensions/extension-api.js +1125 -1084
- 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/kubectl.d.ts +1 -1
- package/dist/src/main/utils/update-channel.d.ts +6 -0
- package/dist/src/renderer/components/+apps-helm-charts/helm-chart-details.d.ts +1 -1
- package/dist/src/renderer/components/+apps-releases/release-details.d.ts +2 -1
- 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/+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/{common/custom-errors.d.ts → renderer/components/+config-secrets/__tests__/secret-details.test.d.ts} +1 -3
- 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/+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-forwards.d.ts +10 -1
- package/dist/src/renderer/components/+network-services/service-details.d.ts +1 -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-details-list.d.ts +0 -3
- package/dist/src/renderer/components/__tests__/nodes.api.test.d.ts +21 -0
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +0 -2
- 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.d.ts +3 -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 +6 -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 +1 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -0
- package/dist/src/renderer/utils/__tests__/converted-name.test.d.ts +21 -0
- package/dist/src/renderer/utils/index.d.ts +9 -10
- package/dist/src/renderer/utils/name-parts.d.ts +27 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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 {};
|
|
@@ -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)[];
|
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.c0c0b3ae11.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|