@k8slens/extensions 5.3.1-git.cd2f5094dc.0 → 5.3.1-git.d8dbe51e7a.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 (138) hide show
  1. package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
  2. package/dist/src/common/cluster-types.d.ts +5 -1
  3. package/dist/src/{extensions/registries/menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -6
  4. package/dist/src/{renderer/utils/copyToClipboard.d.ts → common/ipc/extension-loader.ipc.d.ts} +1 -7
  5. package/dist/src/common/ipc/index.d.ts +1 -0
  6. package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
  7. package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
  8. package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
  9. package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
  10. package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
  11. package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
  12. package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
  13. package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
  14. package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
  15. package/dist/src/common/k8s-api/kube-api.d.ts +35 -8
  16. package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
  17. package/dist/src/common/k8s-api/kube-object.d.ts +22 -0
  18. package/dist/src/common/protocol-handler/error.d.ts +3 -3
  19. package/dist/src/common/protocol-handler/router.d.ts +13 -7
  20. package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
  21. package/dist/src/common/user-store/user-store.d.ts +2 -1
  22. package/dist/src/common/utils/index.d.ts +1 -0
  23. package/dist/src/common/utils/promise-exec.d.ts +1 -2
  24. package/dist/src/common/utils/readableStream.d.ts +2 -2
  25. package/dist/src/extensions/extension-api.js +990 -848
  26. package/dist/src/extensions/extension-compatibility.d.ts +3 -1
  27. package/dist/src/extensions/extension-discovery.d.ts +3 -1
  28. package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
  29. package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
  30. package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
  31. package/dist/src/extensions/extensions.injectable.d.ts +3 -0
  32. package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
  33. package/dist/src/extensions/lens-extension.d.ts +2 -1
  34. package/dist/src/extensions/lens-main-extension.d.ts +1 -1
  35. package/dist/src/extensions/lens-renderer-extension.d.ts +6 -3
  36. package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
  37. package/dist/src/extensions/registries/index.d.ts +0 -1
  38. package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
  39. package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
  40. package/dist/src/main/catalog-pusher.d.ts +1 -1
  41. package/dist/src/main/cluster-manager.d.ts +1 -1
  42. package/dist/src/main/getDi.d.ts +22 -0
  43. package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
  44. package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
  45. package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
  46. package/dist/src/main/helm/helm-service.d.ts +2 -2
  47. package/dist/src/main/initializers/index.d.ts +0 -1
  48. package/dist/src/main/initializers/ipc.d.ts +3 -1
  49. package/dist/src/main/lens-proxy.d.ts +8 -1
  50. package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
  51. package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
  52. package/dist/src/main/menu/menu.d.ts +33 -0
  53. package/dist/src/main/protocol-handler/index.d.ts +1 -1
  54. package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +14 -8
  55. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
  56. package/dist/src/main/window-manager.d.ts +3 -0
  57. package/dist/src/renderer/api/terminal-api.d.ts +0 -2
  58. package/dist/src/renderer/bootstrap.d.ts +3 -1
  59. package/dist/src/renderer/cluster-frame.d.ts +2 -1
  60. package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
  61. package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
  62. package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
  63. package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
  64. package/dist/src/renderer/components/+catalog/helpers.d.ts +26 -0
  65. package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +11 -16
  66. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
  67. package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
  68. package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
  69. package/dist/src/{main/menu.d.ts → renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts} +8 -6
  70. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
  71. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
  72. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
  73. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
  74. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
  75. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
  76. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
  77. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
  78. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
  79. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
  80. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
  81. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
  82. package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
  83. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +26 -0
  84. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
  85. package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
  86. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
  87. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
  88. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
  89. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
  90. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
  91. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
  92. package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
  93. package/dist/src/renderer/{protocol-handler/app-handlers.d.ts → components/+extensions/supported-extension-formats.d.ts} +1 -1
  94. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
  95. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
  96. package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
  97. package/dist/src/renderer/components/+network-policies/__tests__/network-policy-details.test.d.ts +21 -0
  98. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
  99. package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
  100. package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
  101. package/dist/src/renderer/components/avatar/__tests__/avatar.test.d.ts +21 -0
  102. package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
  103. package/dist/src/renderer/components/{clipboard → avatar}/index.d.ts +1 -1
  104. package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
  105. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +21 -0
  106. package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
  107. package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
  108. package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
  109. package/dist/src/renderer/components/getDi.d.ts +2 -2
  110. package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
  111. package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
  112. package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +3 -0
  113. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +23 -0
  114. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +3 -0
  115. package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
  116. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
  117. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +26 -0
  118. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +9 -0
  119. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
  120. package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
  121. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
  122. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.test.d.ts +21 -0
  123. package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
  124. package/dist/src/renderer/components/layout/__tests__/topbar-win-linux.test.d.ts +21 -0
  125. package/dist/src/renderer/components/layout/close-button.d.ts +25 -0
  126. package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
  127. package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
  128. package/dist/src/renderer/initializers/index.d.ts +1 -0
  129. package/dist/src/renderer/initializers/ipc.d.ts +2 -1
  130. package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
  131. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +28 -0
  132. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
  133. package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
  134. package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
  135. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
  136. package/dist/src/renderer/root-frame.d.ts +3 -1
  137. package/dist/src/renderer/utils/index.d.ts +0 -1
  138. package/package.json +1 -1
@@ -21,7 +21,6 @@
21
21
  import "./checkbox.scss";
22
22
  import React from "react";
23
23
  export interface CheckboxProps<T = boolean> {
24
- theme?: "dark" | "light";
25
24
  className?: string;
26
25
  label?: React.ReactNode;
27
26
  inline?: boolean;
@@ -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 declare const ActiveHotbarName: () => 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 "./bottom-bar.scss";
22
21
  import React from "react";
23
22
  import { StatusBarRegistration } from "../../../extensions/registries";
24
23
  export declare class BottomBar extends React.Component {
@@ -30,6 +30,7 @@ export interface DialogProps {
30
30
  modal?: boolean;
31
31
  pinned?: boolean;
32
32
  animated?: boolean;
33
+ "data-testid"?: string;
33
34
  }
34
35
  interface DialogState {
35
36
  isOpen: boolean;
@@ -30,7 +30,6 @@ export declare class InstallChart extends Component<Props> {
30
30
  error: string;
31
31
  showNotes: boolean;
32
32
  constructor(props: Props);
33
- get values(): string;
34
33
  get chartData(): IChartInstallData;
35
34
  get tabId(): string;
36
35
  get versions(): string[];
@@ -18,5 +18,5 @@
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 type { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injectable";
22
- export declare const getDi: () => ConfigurableDependencyInjectionContainer;
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ export declare const getDi: () => import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
@@ -18,13 +18,12 @@
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 React, { DOMAttributes } from "react";
21
+ import React, { HTMLAttributes } from "react";
22
22
  import type { CatalogEntity } from "../../../common/catalog";
23
23
  import { IClassName } from "../../utils";
24
- interface Props extends DOMAttributes<HTMLElement> {
24
+ interface Props extends HTMLAttributes<HTMLElement> {
25
25
  entity: CatalogEntity;
26
26
  index: number;
27
- className?: IClassName;
28
27
  errorClass?: IClassName;
29
28
  add: (item: CatalogEntity, index: number) => void;
30
29
  remove: (uid: string) => void;
@@ -36,6 +35,7 @@ export declare class HotbarEntityIcon extends React.Component<Props> {
36
35
  get kindIcon(): JSX.Element;
37
36
  get ledIcon(): JSX.Element;
38
37
  isActive(item: CatalogEntity): boolean;
38
+ onMenuOpen(): Promise<void>;
39
39
  render(): JSX.Element;
40
40
  }
41
41
  export {};
@@ -18,23 +18,16 @@
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 "./hotbar-icon.scss";
22
- import { DOMAttributes } from "react";
23
21
  import type { CatalogEntityContextMenu } from "../../../common/catalog";
24
- import { IClassName } from "../../utils";
25
- export interface HotbarIconProps extends DOMAttributes<HTMLElement> {
22
+ import { AvatarProps } from "../avatar";
23
+ export interface Props extends AvatarProps {
26
24
  uid: string;
27
- title: string;
28
25
  source: string;
29
- src?: string;
30
26
  material?: string;
31
27
  onMenuOpen?: () => void;
32
- className?: IClassName;
33
28
  active?: boolean;
34
29
  menuItems?: CatalogEntityContextMenu[];
35
30
  disabled?: boolean;
36
- size?: number;
37
- background?: string;
38
31
  tooltip?: string;
39
32
  }
40
- export declare const HotbarIcon: ({ menuItems, size, tooltip, ...props }: HotbarIconProps) => JSX.Element;
33
+ export declare const HotbarIcon: ({ menuItems, size, tooltip, ...props }: Props) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const apiManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../common/k8s-api/api-manager").ApiManager, unknown>, import("../../../../common/k8s-api/api-manager").ApiManager, unknown>;
3
+ export default apiManagerInjectable;
@@ -0,0 +1,23 @@
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
+ /// <reference types="@ogre-tools/injectable" />
22
+ declare const clusterNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<string, unknown>, string, unknown>;
23
+ export default clusterNameInjectable;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const clusterInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../main/cluster").Cluster, unknown>, import("../../../../main/cluster").Cluster, unknown>;
3
+ export default clusterInjectable;
@@ -0,0 +1,24 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ /**
3
+ * Copyright (c) 2021 OpenLens Authors
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ * this software and associated documentation files (the "Software"), to deal in
7
+ * the Software without restriction, including without limitation the rights to
8
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ * the Software, and to permit persons to whom the Software is furnished to do so,
10
+ * subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in all
13
+ * copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ */
22
+ import { editResourceTab } from "../../dock/edit-resource.store";
23
+ declare const editResourceTabInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof editResourceTab, unknown>, typeof editResourceTab, unknown>;
24
+ export default editResourceTabInjectable;
@@ -0,0 +1,24 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ /**
3
+ * Copyright (c) 2021 OpenLens Authors
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ * this software and associated documentation files (the "Software"), to deal in
7
+ * the Software without restriction, including without limitation the rights to
8
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ * the Software, and to permit persons to whom the Software is furnished to do so,
10
+ * subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in all
13
+ * copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ */
22
+ import { hideDetails } from "../../kube-detail-params";
23
+ export declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
24
+ export default hideDetailsInjectable;
@@ -0,0 +1,26 @@
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 { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
22
+ import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
23
+ export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry, kubeObject, }: {
24
+ kubeObjectMenuRegistry: KubeObjectMenuRegistry;
25
+ kubeObject: KubeObject;
26
+ }) => import("react").ComponentType<any>[];
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="@ogre-tools/injectable" />
3
+ import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
4
+ declare const kubeObjectMenuItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("react").ComponentType<any>[], {
5
+ kubeObject: KubeObject;
6
+ }>, import("react").ComponentType<any>[], {
7
+ kubeObject: KubeObject;
8
+ }>;
9
+ export default kubeObjectMenuItemsInjectable;
@@ -0,0 +1,24 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ /**
3
+ * Copyright (c) 2021 OpenLens Authors
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ * this software and associated documentation files (the "Software"), to deal in
7
+ * the Software without restriction, including without limitation the rights to
8
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ * the Software, and to permit persons to whom the Software is furnished to do so,
10
+ * subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice shall be included in all
13
+ * copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ */
22
+ import { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
23
+ declare const kubeObjectMenuRegistryInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<KubeObjectMenuRegistry, unknown>, KubeObjectMenuRegistry, unknown>;
24
+ export default kubeObjectMenuRegistryInjectable;
@@ -18,4 +18,5 @@
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 * from "./kube-object-menu";
21
+ export type { KubeObjectMenuProps } from "./kube-object-menu";
22
+ export { KubeObjectMenu } from "./kube-object-menu";
@@ -20,19 +20,10 @@
20
20
  */
21
21
  import React from "react";
22
22
  import type { KubeObject } from "../../../common/k8s-api/kube-object";
23
- import { MenuActionsProps } from "../menu/menu-actions";
24
- export interface KubeObjectMenuProps<T> extends MenuActionsProps {
25
- object: T | null | undefined;
23
+ import { MenuActionsProps } from "../menu";
24
+ export interface KubeObjectMenuProps<TKubeObject extends KubeObject> extends MenuActionsProps {
25
+ object: TKubeObject | null | undefined;
26
26
  editable?: boolean;
27
27
  removable?: boolean;
28
28
  }
29
- export declare class KubeObjectMenu<T extends KubeObject> extends React.Component<KubeObjectMenuProps<T>> {
30
- get store(): import("../../../common/k8s-api/kube-object.store").KubeObjectStore<KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>>;
31
- get isEditable(): boolean;
32
- get isRemovable(): boolean;
33
- update(): Promise<void>;
34
- remove(): Promise<void>;
35
- renderRemoveMessage(): JSX.Element;
36
- getMenuItems(): React.ReactChild[];
37
- render(): JSX.Element;
38
- }
29
+ export declare function KubeObjectMenu<T extends KubeObject>(props: KubeObjectMenuProps<T>): React.ReactElement<any, any>;
@@ -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
+ import "@testing-library/jest-dom/extend-expect";
@@ -28,7 +28,6 @@ interface IKubeconfigDialogData {
28
28
  interface Props extends Partial<DialogProps> {
29
29
  }
30
30
  export declare class KubeConfigDialog extends React.Component<Props> {
31
- configTextArea: HTMLTextAreaElement;
32
31
  config: string;
33
32
  constructor(props: Props);
34
33
  static open(data: IKubeconfigDialogData): void;
@@ -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
+ import "@testing-library/jest-dom/extend-expect";
@@ -0,0 +1,25 @@
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 { HTMLAttributes } from "react";
22
+ interface Props extends HTMLAttributes<HTMLDivElement> {
23
+ }
24
+ export declare function CloseButton(props: Props): JSX.Element;
25
+ export {};
@@ -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" | "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">>;
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" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "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" | "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,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
+ import React from "react";
22
+ import { RenderResult } from "@testing-library/react";
23
+ import type { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injectable";
24
+ export declare type DiRender = (ui: React.ReactElement) => RenderResult;
25
+ declare type DiRenderFor = (di: ConfigurableDependencyInjectionContainer) => DiRender;
26
+ export declare const renderFor: DiRenderFor;
27
+ export {};
@@ -29,3 +29,4 @@ export * from "./registries";
29
29
  export * from "./welcome-menu-registry";
30
30
  export * from "./workloads-overview-detail-registry";
31
31
  export * from "./catalog-category-registry";
32
+ export * from "./status-bar-registry";
@@ -18,4 +18,5 @@
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 declare function initIpcRendererListeners(): void;
21
+ import type { ExtensionLoader } from "../../extensions/extension-loader";
22
+ export declare function initIpcRendererListeners(extensionLoader: ExtensionLoader): void;
@@ -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 declare function initStatusBarRegistry(): void;
@@ -0,0 +1,28 @@
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 { LensProtocolRouterRenderer } from "../lens-protocol-router-renderer/lens-protocol-router-renderer";
22
+ import type { ExtensionInfo } from "../../components/+extensions/attempt-install-by-info/attempt-install-by-info";
23
+ interface Dependencies {
24
+ attemptInstallByInfo: (extensionInfo: ExtensionInfo) => Promise<void>;
25
+ lensProtocolRouterRenderer: LensProtocolRouterRenderer;
26
+ }
27
+ export declare const bindProtocolAddRouteHandlers: ({ attemptInstallByInfo, lensProtocolRouterRenderer }: Dependencies) => () => void;
28
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const bindProtocolAddRouteHandlersInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => void, unknown>, () => void, unknown>;
3
+ export default bindProtocolAddRouteHandlersInjectable;
@@ -18,5 +18,5 @@
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 * from "./router";
22
- export * from "./app-handlers";
21
+ export { LensProtocolRouterRenderer } from "./lens-protocol-router-renderer/lens-protocol-router-renderer";
22
+ export { bindProtocolAddRouteHandlers } from "./bind-protocol-add-route-handlers/bind-protocol-add-route-handlers";
@@ -18,10 +18,17 @@
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 * as proto from "../../common/protocol-handler";
21
+ import * as proto from "../../../common/protocol-handler";
22
+ import type { ExtensionLoader } from "../../../extensions/extension-loader";
23
+ interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
22
26
  export declare class LensProtocolRouterRenderer extends proto.LensProtocolRouter {
27
+ protected dependencies: Dependencies;
28
+ constructor(dependencies: Dependencies);
23
29
  /**
24
30
  * This function is needed to be called early on in the renderers lifetime.
25
31
  */
26
32
  init(): void;
27
33
  }
34
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ import { LensProtocolRouterRenderer } from "./lens-protocol-router-renderer";
3
+ declare const lensProtocolRouterRendererInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<LensProtocolRouterRenderer, unknown>, LensProtocolRouterRenderer, unknown>;
4
+ export default lensProtocolRouterRendererInjectable;
@@ -19,10 +19,12 @@
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 type { ExtensionLoader } from "../extensions/extension-loader";
23
+ import type { LensProtocolRouterRenderer } from "./protocol-handler";
22
24
  export declare class RootFrame extends React.Component {
23
25
  static readonly logPrefix = "[ROOT-FRAME]:";
24
26
  static displayName: string;
25
- static init(rootElem: HTMLElement): Promise<void>;
27
+ static init(rootElem: HTMLElement, extensionLoader: ExtensionLoader, bindProtocolAddRouteHandlers: () => void, lensProtocolRouterRendererInjectable: LensProtocolRouterRenderer): Promise<void>;
26
28
  constructor(props: {});
27
29
  componentDidMount(): void;
28
30
  render(): JSX.Element;
@@ -20,7 +20,6 @@
20
20
  */
21
21
  export * from "../../common/utils";
22
22
  export * from "../../common/event-emitter";
23
- export * from "./copyToClipboard";
24
23
  export * from "./createStorage";
25
24
  export * from "./cssNames";
26
25
  export * from "./cssVar";
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.1-git.cd2f5094dc.0",
5
+ "version": "5.3.1-git.d8dbe51e7a.0",
6
6
  "copyright": "© 2021 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",