@k8slens/extensions 5.3.1-git.f61563c99f.0 → 5.3.1-git.f7f27a8304.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 (173) hide show
  1. package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
  2. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
  3. package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
  4. package/dist/src/common/cluster-types.d.ts +5 -1
  5. package/dist/src/common/hotbar-store.d.ts +16 -11
  6. package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
  7. package/dist/src/common/hotbar-types.d.ts +5 -2
  8. package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -7
  9. package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
  10. package/dist/src/common/ipc/index.d.ts +2 -0
  11. package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
  12. package/dist/src/common/protocol-handler/router.d.ts +8 -2
  13. package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
  14. package/dist/src/common/user-store/user-store.d.ts +2 -1
  15. package/dist/src/common/utils/index.d.ts +1 -0
  16. package/dist/src/common/utils/promise-exec.d.ts +1 -2
  17. package/dist/src/common/utils/readableStream.d.ts +2 -2
  18. package/dist/src/common/vars.d.ts +1 -0
  19. package/dist/src/extensions/extension-api.js +1256 -991
  20. package/dist/src/extensions/extension-compatibility.d.ts +3 -1
  21. package/dist/src/extensions/extension-discovery.d.ts +3 -1
  22. package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
  23. package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
  24. package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
  25. package/dist/src/extensions/extensions.injectable.d.ts +3 -0
  26. package/dist/src/{renderer/components → extensions}/getDiForUnitTesting.d.ts +0 -0
  27. package/dist/src/extensions/lens-extension.d.ts +2 -1
  28. package/dist/src/extensions/lens-main-extension.d.ts +3 -1
  29. package/dist/src/extensions/lens-renderer-extension.d.ts +14 -7
  30. package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
  31. package/dist/src/extensions/registries/base-registry.d.ts +1 -1
  32. package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
  33. package/dist/src/extensions/registries/index.d.ts +0 -5
  34. package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
  35. package/dist/src/main/catalog-pusher.d.ts +1 -1
  36. package/dist/src/main/cluster-manager.d.ts +1 -1
  37. package/dist/src/{renderer/components/hotbar/hotbar-display-label.d.ts → main/getDi.d.ts} +2 -2
  38. package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
  39. package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
  40. package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
  41. package/dist/src/main/helm/helm-service.d.ts +2 -2
  42. package/dist/src/main/initializers/index.d.ts +0 -1
  43. package/dist/src/main/initializers/ipc.d.ts +3 -1
  44. package/dist/src/main/lens-proxy.d.ts +8 -1
  45. package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
  46. package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
  47. package/dist/src/main/menu/menu.d.ts +33 -0
  48. package/dist/src/main/protocol-handler/index.d.ts +1 -1
  49. package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +11 -5
  50. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
  51. package/dist/src/main/routes/port-forward-route.d.ts +0 -1
  52. package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
  53. package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
  54. package/dist/src/main/{tray.d.ts → tray/tray.d.ts} +4 -2
  55. package/dist/src/main/window-manager.d.ts +3 -0
  56. package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
  57. package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
  58. package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
  59. package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
  60. package/dist/src/renderer/bootstrap.d.ts +3 -1
  61. package/dist/src/renderer/cluster-frame.d.ts +2 -1
  62. package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
  63. package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
  64. package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
  65. package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
  66. package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
  67. package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
  68. package/dist/src/{extensions/registries/command-registry.d.ts → renderer/components/+extensions/attempt-install/attempt-install.d.ts} +11 -15
  69. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
  70. package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
  71. package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
  72. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +28 -0
  73. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
  74. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
  75. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
  76. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
  77. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
  78. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
  79. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
  80. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
  81. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
  82. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
  83. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
  84. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
  85. package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
  86. package/dist/src/{extensions/registries/menu-registry.d.ts → renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts} +5 -6
  87. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
  88. package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
  89. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
  90. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
  91. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
  92. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
  93. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
  94. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
  95. package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
  96. package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
  97. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
  98. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
  99. package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
  100. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +5 -2
  101. package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
  102. package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
  103. package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
  104. package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
  105. package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
  106. package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
  107. package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
  108. package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
  109. package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
  110. package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
  111. package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
  112. package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
  113. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +2 -1
  114. package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
  115. package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
  116. package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
  117. package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
  118. package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
  119. package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
  120. package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
  121. package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
  122. package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
  123. package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
  124. package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
  125. package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
  126. package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
  127. package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
  128. package/dist/src/renderer/components/input/input.d.ts +1 -0
  129. package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -0
  130. package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +2 -23
  131. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +2 -6
  132. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +2 -3
  133. package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +2 -2
  134. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +2 -2
  135. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +2 -5
  136. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +8 -23
  137. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +2 -2
  138. package/dist/src/renderer/components/kube-object-menu/index.d.ts +1 -1
  139. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +2 -21
  140. package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
  141. package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
  142. package/dist/src/renderer/components/layout/{__tests__/topbar.test.d.ts → top-bar/top-bar-win-linux.test.d.ts} +0 -0
  143. package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
  144. package/dist/src/renderer/{initializers/command-registry.d.ts → components/layout/top-bar/top-bar.test.d.ts} +1 -1
  145. package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
  146. package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
  147. package/dist/src/renderer/{initializers/welcome-menu-registry.d.ts → components/switch/__tests__/switch.test.d.ts} +1 -1
  148. package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
  149. package/dist/src/renderer/components/switch/index.d.ts +1 -0
  150. package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
  151. package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
  152. package/dist/src/renderer/getDi.d.ts +22 -0
  153. package/dist/src/renderer/{components/getDi.d.ts → getDiForUnitTesting.d.ts} +2 -2
  154. package/dist/src/renderer/initializers/catalog.d.ts +6 -1
  155. package/dist/src/renderer/initializers/index.d.ts +0 -2
  156. package/dist/src/renderer/initializers/ipc.d.ts +2 -1
  157. package/dist/src/renderer/navigation/helpers.d.ts +1 -1
  158. package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
  159. package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
  160. package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
  161. package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
  162. package/dist/src/{main/menu.d.ts → renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts} +8 -6
  163. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
  164. package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
  165. package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
  166. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
  167. package/dist/src/renderer/root-frame.d.ts +3 -1
  168. package/dist/src/renderer/theme.store.d.ts +0 -1
  169. package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
  170. package/package.json +1 -1
  171. package/dist/src/renderer/components/kube-object-menu/kube-object-menu-container.d.ts +0 -2
  172. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.injectable.d.ts +0 -5
  173. package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
@@ -22,14 +22,14 @@ import { CatalogEntityRegistry } from "../../api/catalog-entity-registry";
22
22
  import type { CatalogEntity } from "../../api/catalog-entity";
23
23
  import { ItemStore } from "../../../common/item.store";
24
24
  import { CatalogCategory } from "../../../common/catalog";
25
- import { CatalogEntityItem } from "./catalog-entity-item";
26
- export declare class CatalogEntityStore extends ItemStore<CatalogEntityItem<CatalogEntity>> {
25
+ export declare class CatalogEntityStore extends ItemStore<CatalogEntity> {
27
26
  private registry;
28
27
  constructor(registry?: CatalogEntityRegistry);
29
28
  activeCategory?: CatalogCategory;
30
29
  selectedItemId?: string;
31
- get entities(): CatalogEntityItem<CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>[];
32
- get selectedItem(): CatalogEntityItem<CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
30
+ get entities(): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>[];
31
+ get selectedItem(): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
33
32
  watch(): import("../../../common/utils").ExtendableDisposer;
34
33
  loadAll(): Promise<any>;
34
+ onRun(entity: CatalogEntity): void;
35
35
  }
@@ -20,7 +20,6 @@
20
20
  */
21
21
  import React from "react";
22
22
  import { CatalogEntityStore } from "./catalog-entity.store";
23
- import type { CatalogEntityItem } from "./catalog-entity-item";
24
23
  import type { CatalogEntityContextMenu } from "../../api/catalog-entity";
25
24
  import { CatalogEntity } from "../../../common/catalog";
26
25
  import type { RouteComponentProps } from "react-router";
@@ -39,15 +38,15 @@ export declare class Catalog extends React.Component<Props> {
39
38
  };
40
39
  get routeActiveTab(): string;
41
40
  componentDidMount(): Promise<void>;
42
- addToHotbar(item: CatalogEntityItem<CatalogEntity>): void;
43
- removeFromHotbar(item: CatalogEntityItem<CatalogEntity>): void;
44
- onDetails: (item: CatalogEntityItem<CatalogEntity>) => void;
41
+ addToHotbar(entity: CatalogEntity): void;
42
+ removeFromHotbar(entity: CatalogEntity): void;
43
+ onDetails: (entity: CatalogEntity) => void;
45
44
  onMenuItemClick(menuItem: CatalogEntityContextMenu): void;
46
45
  get categories(): import("../../api/catalog-entity").CatalogCategory[];
47
46
  onTabChange: (tabId: string | null) => void;
48
47
  renderNavigation(): JSX.Element;
49
- renderItemMenu: (item: CatalogEntityItem<CatalogEntity>) => JSX.Element;
50
- renderName(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
48
+ renderItemMenu: (entity: CatalogEntity) => JSX.Element;
49
+ renderName(entity: CatalogEntity): JSX.Element;
51
50
  renderList(): JSX.Element;
52
51
  render(): JSX.Element;
53
52
  }
@@ -19,10 +19,8 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class CommandOverlay {
23
- #private;
24
- static get isOpen(): boolean;
25
- static open(component: React.ReactElement): void;
26
- static close(): void;
27
- static get component(): React.ReactElement | null;
28
- }
22
+ import type { CatalogEntity } from "../../api/catalog-entity";
23
+ /**
24
+ * @param entity The entity to render badge labels for
25
+ */
26
+ export declare function getLabelBadges(entity: CatalogEntity, onClick?: (evt: React.MouseEvent<any, MouseEvent>) => void): JSX.Element[];
@@ -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 customResourceDefinitionsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../../../common/k8s-api/endpoints").CustomResourceDefinition[]>, unknown>, import("mobx").IComputedValue<import("../../../common/k8s-api/endpoints").CustomResourceDefinition[]>, unknown>;
23
+ export default customResourceDefinitionsInjectable;
@@ -18,19 +18,15 @@
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 { BaseRegistry } from "./base-registry";
22
- import type { LensExtension } from "../lens-extension";
23
- import type { CatalogEntity } from "../../common/catalog";
24
- export interface CommandContext {
25
- entity?: CatalogEntity;
26
- }
27
- export interface CommandRegistration {
28
- id: string;
29
- title: string;
30
- scope: "entity" | "global";
31
- action: (context: CommandContext) => void;
32
- isActive?: (context: CommandContext) => boolean;
33
- }
34
- export declare class CommandRegistry extends BaseRegistry<CommandRegistration> {
35
- add(items: CommandRegistration | CommandRegistration[], extension?: LensExtension): () => void;
21
+ import { Disposer, ExtendableDisposer } from "../../../../common/utils";
22
+ import type { ExtensionLoader } from "../../../../extensions/extension-loader";
23
+ import type { LensExtensionId } from "../../../../extensions/lens-extension";
24
+ import { InstallRequestValidated } from "./create-temp-files-and-validate/create-temp-files-and-validate";
25
+ import type { InstallRequest } from "./install-request";
26
+ interface Dependencies {
27
+ extensionLoader: ExtensionLoader;
28
+ uninstallExtension: (id: LensExtensionId) => Promise<boolean>;
29
+ unpackExtension: (request: InstallRequestValidated, disposeDownloading: Disposer) => Promise<void>;
36
30
  }
31
+ export declare const attemptInstall: ({ extensionLoader, uninstallExtension, unpackExtension }: Dependencies) => (request: InstallRequest, d?: ExtendableDisposer) => Promise<void>;
32
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const attemptInstallInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(request: import("./install-request").InstallRequest, d?: import("../../../utils").ExtendableDisposer) => Promise<void>, unknown>, (request: import("./install-request").InstallRequest, d?: import("../../../utils").ExtendableDisposer) => Promise<void>, unknown>;
3
+ export default attemptInstallInjectable;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import type { LensExtensionId, LensExtensionManifest } from "../../../../../extensions/lens-extension";
3
+ import type { InstallRequest } from "../install-request";
4
+ export interface InstallRequestValidated {
5
+ fileName: string;
6
+ data: Buffer;
7
+ id: LensExtensionId;
8
+ manifest: LensExtensionManifest;
9
+ tempFile: string;
10
+ }
11
+ export declare function createTempFilesAndValidate({ fileName, dataP, }: InstallRequest): Promise<InstallRequestValidated | null>;
@@ -0,0 +1 @@
1
+ export declare const getExtensionDestFolder: (name: string) => string;
@@ -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 { InstallRequestValidated } from "../create-temp-files-and-validate/create-temp-files-and-validate";
22
+ import { Disposer } from "../../../../../common/utils";
23
+ import type { ExtensionLoader } from "../../../../../extensions/extension-loader";
24
+ interface Dependencies {
25
+ extensionLoader: ExtensionLoader;
26
+ }
27
+ export declare const unpackExtension: ({ extensionLoader }: Dependencies) => (request: InstallRequestValidated, disposeDownloading?: Disposer) => Promise<void>;
28
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const unpackExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(request: import("../create-temp-files-and-validate/create-temp-files-and-validate").InstallRequestValidated, disposeDownloading?: import("../../../../utils").Disposer) => Promise<void>, unknown>, (request: import("../create-temp-files-and-validate/create-temp-files-and-validate").InstallRequestValidated, disposeDownloading?: import("../../../../utils").Disposer) => Promise<void>, unknown>;
3
+ export default unpackExtensionInjectable;
@@ -0,0 +1,22 @@
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 { LensExtensionManifest } from "../../../../../extensions/lens-extension";
22
+ export declare const validatePackage: (filePath: string) => Promise<LensExtensionManifest>;
@@ -0,0 +1,13 @@
1
+ import { ExtendableDisposer } from "../../../../common/utils";
2
+ import type { InstallRequest } from "../attempt-install/install-request";
3
+ export interface ExtensionInfo {
4
+ name: string;
5
+ version?: string;
6
+ requireConfirmation?: boolean;
7
+ }
8
+ interface Dependencies {
9
+ attemptInstall: (request: InstallRequest, d: ExtendableDisposer) => Promise<void>;
10
+ getBaseRegistryUrl: () => Promise<string>;
11
+ }
12
+ export declare const attemptInstallByInfo: ({ attemptInstall, getBaseRegistryUrl }: Dependencies) => ({ name, version, requireConfirmation, }: ExtensionInfo) => Promise<void>;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const attemptInstallByInfoInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<({ name, version, requireConfirmation, }: import("./attempt-install-by-info").ExtensionInfo) => Promise<void>, unknown>, ({ name, version, requireConfirmation, }: import("./attempt-install-by-info").ExtensionInfo) => Promise<void>, unknown>;
3
+ export default attemptInstallByInfoInjectable;
@@ -0,0 +1,6 @@
1
+ import type { InstallRequest } from "../attempt-install/install-request";
2
+ interface Dependencies {
3
+ attemptInstall: (request: InstallRequest) => Promise<void>;
4
+ }
5
+ export declare const attemptInstalls: ({ attemptInstall }: Dependencies) => (filePaths: string[]) => Promise<void>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const attemptInstallsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(filePaths: string[]) => Promise<void>, unknown>, (filePaths: string[]) => Promise<void>, unknown>;
3
+ export default attemptInstallsInjectable;
@@ -0,0 +1,7 @@
1
+ import type { InstalledExtension } from "../../../../extensions/extension-discovery";
2
+ import type { LensExtensionId } from "../../../../extensions/lens-extension";
3
+ interface Dependencies {
4
+ uninstallExtension: (id: LensExtensionId) => Promise<boolean>;
5
+ }
6
+ export declare const confirmUninstallExtension: ({ uninstallExtension }: Dependencies) => (extension: InstalledExtension) => Promise<void>;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const confirmUninstallExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(extension: import("../../../../extensions/extension-discovery").InstalledExtension) => Promise<void>, unknown>, (extension: import("../../../../extensions/extension-discovery").InstalledExtension) => Promise<void>, unknown>;
3
+ export default confirmUninstallExtensionInjectable;
@@ -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 type { LensExtensionId } from "../../../../extensions/lens-extension";
22
+ import type { ExtensionLoader } from "../../../../extensions/extension-loader";
23
+ interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const disableExtension: ({ extensionLoader }: Dependencies) => (id: LensExtensionId) => void;
27
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const disableExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(id: string) => void, unknown>, (id: string) => void, unknown>;
3
+ export default disableExtensionInjectable;
@@ -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 type { LensExtensionId } from "../../../../extensions/lens-extension";
22
+ import type { ExtensionLoader } from "../../../../extensions/extension-loader";
23
+ interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const enableExtension: ({ extensionLoader }: Dependencies) => (id: LensExtensionId) => void;
27
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const enableExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(id: string) => void, unknown>, (id: string) => void, unknown>;
3
+ export default enableExtensionInjectable;
@@ -20,18 +20,4 @@
20
20
  */
21
21
  import "./extensions.scss";
22
22
  import React from "react";
23
- interface ExtensionInfo {
24
- name: string;
25
- version?: string;
26
- requireConfirmation?: boolean;
27
- }
28
- export declare function attemptInstallByInfo({ name, version, requireConfirmation }: ExtensionInfo): Promise<void>;
29
- interface Props {
30
- }
31
- export declare class Extensions extends React.Component<Props> {
32
- installPath: string;
33
- constructor(props: Props);
34
- componentDidMount(): void;
35
- render(): JSX.Element;
36
- }
37
- export {};
23
+ export declare const Extensions: React.FC<{}>;
@@ -18,10 +18,9 @@
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 { MenuItemConstructorOptions } from "electron";
22
- import { BaseRegistry } from "./base-registry";
23
- export interface MenuRegistration extends MenuItemConstructorOptions {
24
- parentId: string;
25
- }
26
- export declare class MenuRegistry extends BaseRegistry<MenuRegistration> {
21
+ import { ExtensionRegistry } from "../../../../common/user-store/preferences-helpers";
22
+ interface Dependencies {
23
+ getRegistryUrlPreference: () => ExtensionRegistry;
27
24
  }
25
+ export declare const getBaseRegistryUrl: ({ getRegistryUrlPreference }: Dependencies) => () => Promise<string>;
26
+ export {};
@@ -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 getBaseRegistryUrlInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => Promise<string>, unknown>, () => Promise<string>, unknown>;
23
+ export default getBaseRegistryUrlInjectable;
@@ -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 getMessageFromError(error: any): string;
@@ -0,0 +1,29 @@
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 { ExtendableDisposer } from "../../../../common/utils";
22
+ import type { InstallRequest } from "../attempt-install/install-request";
23
+ import type { ExtensionInfo } from "../attempt-install-by-info/attempt-install-by-info";
24
+ interface Dependencies {
25
+ attemptInstall: (request: InstallRequest, disposer?: ExtendableDisposer) => Promise<void>;
26
+ attemptInstallByInfo: (extensionInfo: ExtensionInfo) => Promise<void>;
27
+ }
28
+ export declare const installFromInput: ({ attemptInstall, attemptInstallByInfo }: Dependencies) => (input: string) => Promise<void>;
29
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installFromInputInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(input: string) => Promise<void>, unknown>, (input: string) => Promise<void>, unknown>;
3
+ export default installFromInputInjectable;
@@ -0,0 +1,5 @@
1
+ interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installFromSelectFileDialog: ({ attemptInstalls }: Dependencies) => () => Promise<void>;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installFromSelectFileDialogInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => Promise<void>, unknown>, () => Promise<void>, unknown>;
3
+ export default installFromSelectFileDialogInjectable;
@@ -0,0 +1,5 @@
1
+ interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installOnDrop: ({ attemptInstalls }: Dependencies) => (files: File[]) => Promise<void>;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const installOnDropInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(files: File[]) => Promise<void>, unknown>, (files: File[]) => Promise<void>, unknown>;
3
+ export default installOnDropInjectable;
@@ -0,0 +1,2 @@
1
+ /// <reference types="node" />
2
+ export declare const readFileNotify: (filePath: string, showError?: boolean) => Promise<Buffer | null>;
@@ -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 supportedExtensionFormats: string[];
@@ -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 type { ExtensionLoader } from "../../../../extensions/extension-loader";
22
+ import { LensExtensionId } from "../../../../extensions/lens-extension";
23
+ interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const uninstallExtension: ({ extensionLoader }: Dependencies) => (extensionId: LensExtensionId) => Promise<boolean>;
27
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const uninstallExtensionInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<(extensionId: string) => Promise<boolean>, unknown>, (extensionId: string) => Promise<boolean>, unknown>;
3
+ export default uninstallExtensionInjectable;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const userExtensionsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../../../../extensions/extension-discovery").InstalledExtension[]>, unknown>, import("mobx").IComputedValue<import("../../../../extensions/extension-discovery").InstalledExtension[]>, unknown>;
3
+ export default userExtensionsInjectable;
@@ -19,13 +19,16 @@
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 { IPolicyIpBlock, IPolicySelector, NetworkPolicy, NetworkPolicyPeer, NetworkPolicyPort } from "../../../common/k8s-api/endpoints/network-policy.api";
22
+ import { IPolicyIpBlock, NetworkPolicy, NetworkPolicyPeer, NetworkPolicyPort } from "../../../common/k8s-api/endpoints/network-policy.api";
23
23
  import type { KubeObjectDetailsProps } from "../kube-object-details";
24
+ import type { LabelMatchExpression, LabelSelector } from "../../../common/k8s-api/kube-object";
24
25
  interface Props extends KubeObjectDetailsProps<NetworkPolicy> {
25
26
  }
26
27
  export declare class NetworkPolicyDetails extends React.Component<Props> {
27
28
  renderIPolicyIpBlock(ipBlock: IPolicyIpBlock | undefined): JSX.Element;
28
- renderIPolicySelector(name: string, selector: IPolicySelector | undefined): JSX.Element;
29
+ renderMatchLabels(matchLabels: Record<string, string | undefined> | undefined): JSX.Element[];
30
+ renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined): JSX.Element[];
31
+ renderIPolicySelector(name: string, selector: LabelSelector | undefined): JSX.Element;
29
32
  renderNetworkPolicyPeers(name: string, peers: NetworkPolicyPeer[] | undefined): JSX.Element;
30
33
  renderNetworkPolicyPorts(ports: NetworkPolicyPort[] | undefined): JSX.Element;
31
34
  render(): JSX.Element;
@@ -27,6 +27,8 @@ interface Props extends MenuActionsProps {
27
27
  }
28
28
  export declare class PortForwardMenu extends React.Component<Props> {
29
29
  remove(): void;
30
+ private startPortForwarding;
31
+ renderStartStopMenuItem(): JSX.Element;
30
32
  renderContent(): JSX.Element;
31
33
  render(): JSX.Element;
32
34
  }
@@ -29,6 +29,7 @@ export declare class ServicePortComponent extends React.Component<Props> {
29
29
  waiting: boolean;
30
30
  forwardPort: number;
31
31
  isPortForwarded: boolean;
32
+ isActive: boolean;
32
33
  constructor(props: Props);
33
34
  componentDidMount(): void;
34
35
  checkExistingPortForwarding(): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import type { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
2
+ interface ExtensionSettingsProps {
3
+ setting: RegisteredAppPreference;
4
+ size: "small" | "normal";
5
+ }
6
+ export declare function ExtensionSettings({ setting, size }: ExtensionSettingsProps): JSX.Element;
7
+ export {};
@@ -20,11 +20,9 @@
20
20
  */
21
21
  import "./preferences.scss";
22
22
  import React from "react";
23
- import { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
24
23
  export declare class Preferences extends React.Component {
25
24
  historyLength: number | undefined;
26
25
  constructor(props: {});
27
26
  renderNavigation(): JSX.Element;
28
27
  render(): JSX.Element;
29
28
  }
30
- export declare function ExtensionSettings({ title, id, components: { Hint, Input } }: RegisteredAppPreference): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const welcomeBannerItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("./welcome-banner-registration").WelcomeBannerRegistration[]>, unknown>, import("mobx").IComputedValue<import("./welcome-banner-registration").WelcomeBannerRegistration[]>, unknown>;
3
+ export default welcomeBannerItemsInjectable;