@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
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* A strict N-tuple of type T
|
|
23
|
+
*/
|
|
24
|
+
export declare type Tuple<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : never;
|
|
25
|
+
declare type _TupleOf<T, N extends number, R extends unknown[]> = R["length"] extends N ? R : _TupleOf<T, N, [T, ...R]>;
|
|
26
|
+
/**
|
|
27
|
+
* Iterates over `sources` yielding full tuples until one of the tuple arrays
|
|
28
|
+
* is empty. Then it returns a tuple with the rest of each of tuples
|
|
29
|
+
* @param sources The source arrays
|
|
30
|
+
* @yields A tuple of the next element from each of the sources
|
|
31
|
+
* @returns The tuple of all the sources as soon as at least one of the sources is exausted
|
|
32
|
+
*/
|
|
33
|
+
export declare function zip<T, N extends number>(...sources: Tuple<T[], N>): Iterator<Tuple<T, N>, Tuple<T[], N>>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a `length` tuple filled with copies of `value`
|
|
36
|
+
* @param length The size of the tuple
|
|
37
|
+
* @param value The value for each of the tuple entries
|
|
38
|
+
*/
|
|
39
|
+
export declare function filled<T, L extends number>(length: L, value: T): Tuple<T, L>;
|
|
40
|
+
export {};
|
|
@@ -18,5 +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
|
-
export
|
|
21
|
+
export { KubernetesCluster, kubernetesClusterCategory, GeneralEntity, WebLink, } from "../../common/catalog-entities";
|
|
22
|
+
export type { KubernetesClusterPrometheusMetrics, KubernetesClusterSpec, KubernetesClusterMetadata, WebLinkSpec, WebLinkStatus, WebLinkStatusPhase, KubernetesClusterStatusPhase, KubernetesClusterStatus, } from "../../common/catalog-entities";
|
|
22
23
|
export * from "../../common/catalog/catalog-entity";
|