@k8slens/extensions 5.3.0-git.b9cee0cbc7.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.
Files changed (66) hide show
  1. package/dist/src/common/catalog/catalog-entity.d.ts +4 -1
  2. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +9 -1
  3. package/dist/src/common/catalog-entities/web-link.d.ts +2 -0
  4. package/dist/src/common/cluster-store.d.ts +0 -1
  5. package/dist/src/common/hotbar-store.d.ts +5 -0
  6. package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +25 -44
  7. package/dist/src/common/k8s-api/endpoints/secret.api.d.ts +5 -6
  8. package/dist/src/common/k8s-api/json-api.d.ts +2 -0
  9. package/dist/src/common/k8s-api/kube-api.d.ts +1 -1
  10. package/dist/src/common/kube-helpers.d.ts +9 -14
  11. package/dist/src/common/routes/port-forwards.d.ts +1 -0
  12. package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
  13. package/dist/src/common/user-store/user-store.d.ts +2 -0
  14. package/dist/src/common/utils/array.d.ts +30 -0
  15. package/dist/src/common/utils/index.d.ts +2 -1
  16. package/dist/src/common/utils/iter.d.ts +23 -9
  17. package/dist/src/common/utils/sort-compare.d.ts +50 -0
  18. package/dist/src/extensions/common-api/catalog.d.ts +2 -1
  19. package/dist/src/extensions/extension-api.js +1124 -1083
  20. package/dist/src/main/cluster.d.ts +0 -1
  21. package/dist/src/main/helm/helm-chart-manager.d.ts +5 -0
  22. package/dist/src/main/helm/helm-repo-manager.d.ts +1 -0
  23. package/dist/src/main/kubectl.d.ts +1 -1
  24. package/dist/src/main/utils/update-channel.d.ts +6 -0
  25. package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +0 -1
  26. package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +0 -1
  27. package/dist/src/renderer/components/+catalog/catalog-entity-item.d.ts +1 -1
  28. package/dist/src/renderer/components/+catalog/catalog.d.ts +2 -0
  29. package/dist/src/renderer/components/+catalog/hotbar-toggle-menu-item.d.ts +27 -0
  30. package/dist/src/renderer/components/+config-maps/config-map-details.d.ts +1 -1
  31. package/dist/src/renderer/components/+config-pod-disruption-budgets/pod-disruption-budgets-details.d.ts +1 -1
  32. package/dist/src/renderer/components/+config-resource-quotas/resource-quota-details.d.ts +1 -1
  33. package/dist/src/{common/custom-errors.d.ts → renderer/components/+config-secrets/__tests__/secret-details.test.d.ts} +1 -3
  34. package/dist/src/renderer/components/+config-secrets/secret-details.d.ts +5 -4
  35. package/dist/src/renderer/components/+custom-resources/crd-details.d.ts +1 -1
  36. package/dist/src/renderer/components/+custom-resources/crd-resource-details.d.ts +2 -2
  37. package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +1 -2
  38. package/dist/src/renderer/components/+events/event-details.d.ts +1 -1
  39. package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
  40. package/dist/src/renderer/components/+network-endpoints/endpoint-details.d.ts +1 -1
  41. package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
  42. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +1 -1
  43. package/dist/src/renderer/components/+network-port-forwards/port-forward-details.d.ts +33 -0
  44. package/dist/src/renderer/components/+network-port-forwards/port-forwards.d.ts +10 -1
  45. package/dist/src/renderer/components/+network-services/service-details.d.ts +1 -1
  46. package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts +9 -8
  47. package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
  48. package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
  49. package/dist/src/renderer/components/+workloads-pods/pod-details-list.d.ts +0 -3
  50. package/dist/src/renderer/components/__tests__/nodes.api.test.d.ts +21 -0
  51. package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +0 -2
  52. package/dist/src/renderer/components/kube-object-meta/kube-object-meta.d.ts +1 -1
  53. package/dist/src/renderer/components/layout/setting-layout.d.ts +0 -1
  54. package/dist/src/renderer/components/layout/sidebar.d.ts +3 -1
  55. package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
  56. package/dist/src/renderer/components/table/__tests__/getSorted.test.d.ts +21 -0
  57. package/dist/src/renderer/components/table/sorting.d.ts +22 -0
  58. package/dist/src/renderer/components/table/table.d.ts +20 -3
  59. package/dist/src/renderer/components/virtual-list/virtual-list.d.ts +6 -0
  60. package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +0 -1
  61. package/dist/src/renderer/port-forward/port-forward-item.d.ts +1 -0
  62. package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -0
  63. package/dist/src/renderer/utils/__tests__/converted-name.test.d.ts +21 -0
  64. package/dist/src/renderer/utils/index.d.ts +9 -10
  65. package/dist/src/renderer/utils/name-parts.d.ts +27 -0
  66. package/package.json +1 -1
@@ -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 {};
@@ -28,7 +28,6 @@ interface PortForwardDialogOpenOptions {
28
28
  openInBrowser: boolean;
29
29
  }
30
30
  export declare class PortForwardDialog extends Component<Props> {
31
- ready: boolean;
32
31
  currentPort: number;
33
32
  desiredPort: number;
34
33
  constructor(props: Props);
@@ -42,5 +42,6 @@ export declare class PortForwardItem implements ItemObject {
42
42
  getKind(): string;
43
43
  getPort(): number;
44
44
  getForwardPort(): number;
45
+ getStatus(): string;
45
46
  getSearchFields(): (string | number)[];
46
47
  }
@@ -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 "./saveFile";
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 "./copyToClipboard";
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 "./display-booleans";
36
- export * from "./isMiddleClick";
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.b9cee0cbc7.0",
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",