@k8slens/extensions 5.3.1-git.6e543961ac.0 → 5.3.1-git.71175a0ae1.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 (113) hide show
  1. package/dist/src/common/cluster-types.d.ts +5 -1
  2. package/dist/src/{extensions/registries/menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -6
  3. package/dist/src/{renderer/utils/copyToClipboard.d.ts → common/ipc/extension-loader.ipc.d.ts} +1 -7
  4. package/dist/src/common/ipc/index.d.ts +1 -0
  5. package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
  6. package/dist/src/common/k8s-api/kube-api.d.ts +29 -5
  7. package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
  8. package/dist/src/common/protocol-handler/error.d.ts +3 -3
  9. package/dist/src/common/protocol-handler/router.d.ts +13 -7
  10. package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
  11. package/dist/src/common/user-store/user-store.d.ts +2 -1
  12. package/dist/src/common/utils/index.d.ts +1 -0
  13. package/dist/src/common/utils/promise-exec.d.ts +1 -2
  14. package/dist/src/common/utils/readableStream.d.ts +2 -2
  15. package/dist/src/extensions/extension-api.js +181 -75
  16. package/dist/src/extensions/extension-compatibility.d.ts +3 -1
  17. package/dist/src/extensions/extension-discovery.d.ts +3 -1
  18. package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
  19. package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +24 -0
  20. package/dist/src/{renderer/components/clipboard → extensions/extension-loader}/index.d.ts +1 -1
  21. package/dist/src/extensions/extensions.injectable.d.ts +28 -0
  22. package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
  23. package/dist/src/extensions/lens-extension.d.ts +2 -1
  24. package/dist/src/extensions/lens-main-extension.d.ts +1 -1
  25. package/dist/src/extensions/lens-renderer-extension.d.ts +6 -3
  26. package/dist/src/extensions/registries/index.d.ts +0 -1
  27. package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
  28. package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
  29. package/dist/src/main/catalog-pusher.d.ts +1 -1
  30. package/dist/src/main/cluster-manager.d.ts +1 -1
  31. package/dist/src/main/getDi.d.ts +22 -0
  32. package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
  33. package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
  34. package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
  35. package/dist/src/main/helm/helm-service.d.ts +2 -2
  36. package/dist/src/main/initializers/index.d.ts +0 -1
  37. package/dist/src/main/initializers/ipc.d.ts +3 -1
  38. package/dist/src/main/lens-proxy.d.ts +8 -1
  39. package/dist/src/main/menu/electron-menu-items.injectable.d.ts +28 -0
  40. package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
  41. package/dist/src/main/menu/menu.d.ts +33 -0
  42. package/dist/src/main/protocol-handler/index.d.ts +1 -1
  43. package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +13 -8
  44. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +25 -0
  45. package/dist/src/main/window-manager.d.ts +3 -0
  46. package/dist/src/renderer/api/terminal-api.d.ts +0 -2
  47. package/dist/src/renderer/bootstrap.d.ts +3 -1
  48. package/dist/src/renderer/cluster-frame.d.ts +2 -1
  49. package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +10 -16
  50. package/dist/src/{main/menu.d.ts → renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts} +6 -6
  51. package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
  52. package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
  53. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +27 -0
  54. package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +26 -0
  55. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
  56. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +12 -0
  57. package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +24 -0
  58. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +5 -0
  59. package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +24 -0
  60. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +6 -0
  61. package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +25 -0
  62. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +26 -0
  63. package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +25 -0
  64. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +26 -0
  65. package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +25 -0
  66. package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
  67. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +25 -0
  68. package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +24 -0
  69. package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
  70. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +28 -0
  71. package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +24 -0
  72. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +4 -0
  73. package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +24 -0
  74. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +4 -0
  75. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +24 -0
  76. package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
  77. package/dist/src/renderer/{protocol-handler/app-handlers.d.ts → components/+extensions/supported-extension-formats.d.ts} +1 -1
  78. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +26 -0
  79. package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +25 -0
  80. package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +28 -0
  81. package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +5 -2
  82. package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
  83. package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
  84. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +21 -0
  85. package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
  86. package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
  87. package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
  88. package/dist/src/renderer/components/getDi.d.ts +2 -2
  89. package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +24 -0
  90. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +27 -0
  91. package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +4 -0
  92. package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
  93. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
  94. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +29 -0
  95. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +24 -0
  96. package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
  97. package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
  98. package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
  99. package/dist/src/{main/initializers/registries.d.ts → renderer/components/kube-object-menu/kube-object-menu.test.d.ts} +1 -1
  100. package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
  101. package/dist/src/renderer/components/layout/__tests__/topbar-win-linux.test.d.ts +21 -0
  102. package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
  103. package/dist/src/renderer/initializers/index.d.ts +1 -0
  104. package/dist/src/renderer/initializers/ipc.d.ts +2 -1
  105. package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
  106. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +27 -0
  107. package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +24 -0
  108. package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
  109. package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +7 -1
  110. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +25 -0
  111. package/dist/src/renderer/root-frame.d.ts +3 -1
  112. package/dist/src/renderer/utils/index.d.ts +0 -1
  113. package/package.json +1 -1
@@ -18,20 +18,14 @@
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 "./clipboard.scss";
22
- import React from "react";
23
- export interface CopyToClipboardProps {
24
- resetSelection?: boolean;
25
- showNotification?: boolean;
26
- cssSelectorLimit?: string;
27
- getNotificationMessage?(copiedText: string): React.ReactNode;
28
- }
29
- export declare const defaultProps: Partial<CopyToClipboardProps>;
30
- export declare class Clipboard extends React.Component<CopyToClipboardProps> {
31
- static displayName: string;
32
- static defaultProps: object;
33
- get rootElem(): HTMLElement;
34
- get rootReactElem(): React.ReactElement<React.HTMLProps<any>>;
35
- onClick(evt: React.MouseEvent): void;
36
- render(): React.ReactElement<React.HTMLProps<any>, string | React.JSXElementConstructor<any>>;
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
+ export interface Dependencies {
27
+ extensionLoader: ExtensionLoader;
28
+ uninstallExtension: (id: LensExtensionId) => Promise<boolean>;
29
+ unpackExtension: (request: InstallRequestValidated, disposeDownloading: Disposer) => Promise<void>;
37
30
  }
31
+ export declare const attemptInstall: ({ extensionLoader, uninstallExtension, unpackExtension }: Dependencies) => (request: InstallRequest, d?: ExtendableDisposer) => Promise<void>;
@@ -18,9 +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 { BrowserWindow } from "electron";
22
- import type { WindowManager } from "./window-manager";
23
- export declare type MenuTopId = "mac" | "file" | "edit" | "view" | "help";
24
- export declare function initMenu(windowManager: WindowManager): import("mobx").IReactionDisposer;
25
- export declare function showAbout(browserWindow: BrowserWindow): void;
26
- export declare function buildMenu(windowManager: WindowManager): void;
21
+ import type { Injectable } from "@ogre-tools/injectable";
22
+ import type { ExtendableDisposer } from "../../../../common/utils";
23
+ import type { Dependencies } from "./attempt-install";
24
+ import type { InstallRequest } from "./install-request";
25
+ declare const attemptInstallInjectable: Injectable<(request: InstallRequest, d?: ExtendableDisposer) => Promise<void>, Dependencies>;
26
+ 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,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 { 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
+ export interface Dependencies {
25
+ extensionLoader: ExtensionLoader;
26
+ }
27
+ export declare const unpackExtension: ({ extensionLoader }: Dependencies) => (request: InstallRequestValidated, disposeDownloading?: Disposer) => Promise<void>;
@@ -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 { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./unpack-extension";
23
+ import type { InstallRequestValidated } from "../create-temp-files-and-validate/create-temp-files-and-validate";
24
+ import type { Disposer } from "../../../../../common/utils";
25
+ declare const unpackExtensionInjectable: Injectable<(request: InstallRequestValidated, disposeDownloading?: Disposer) => Promise<void>, Dependencies>;
26
+ 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,12 @@
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
+ export 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>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import { ExtensionInfo } from "./attempt-install-by-info";
23
+ declare const attemptInstallByInfoInjectable: Injectable<(extensionInfo: ExtensionInfo) => Promise<void>, {}>;
24
+ export default attemptInstallByInfoInjectable;
@@ -0,0 +1,5 @@
1
+ import type { InstallRequest } from "../attempt-install/install-request";
2
+ export interface Dependencies {
3
+ attemptInstall: (request: InstallRequest) => Promise<void>;
4
+ }
5
+ export declare const attemptInstalls: ({ attemptInstall }: Dependencies) => (filePaths: string[]) => Promise<void>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./attempt-installs";
23
+ declare const attemptInstallsInjectable: Injectable<(filePaths: string[]) => Promise<void>, Dependencies>;
24
+ export default attemptInstallsInjectable;
@@ -0,0 +1,6 @@
1
+ import type { InstalledExtension } from "../../../../extensions/extension-discovery";
2
+ import type { LensExtensionId } from "../../../../extensions/lens-extension";
3
+ export interface Dependencies {
4
+ uninstallExtension: (id: LensExtensionId) => Promise<void>;
5
+ }
6
+ export declare const confirmUninstallExtension: ({ uninstallExtension }: Dependencies) => (extension: InstalledExtension) => Promise<void>;
@@ -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 type { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./confirm-uninstall-extension";
23
+ import type { InstalledExtension } from "../../../../extensions/extension-discovery";
24
+ declare const confirmUninstallExtensionInjectable: Injectable<(extension: InstalledExtension) => Promise<void>, Dependencies>;
25
+ export default confirmUninstallExtensionInjectable;
@@ -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 { LensExtensionId } from "../../../../extensions/lens-extension";
22
+ import type { ExtensionLoader } from "../../../../extensions/extension-loader";
23
+ export interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const disableExtension: ({ extensionLoader }: Dependencies) => (id: LensExtensionId) => void;
@@ -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 type { Injectable } from "@ogre-tools/injectable";
22
+ import type { LensExtensionId } from "../../../../extensions/lens-extension";
23
+ import { Dependencies } from "./disable-extension";
24
+ declare const disableExtensionInjectable: Injectable<(id: LensExtensionId) => void, Dependencies>;
25
+ export default disableExtensionInjectable;
@@ -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 { LensExtensionId } from "../../../../extensions/lens-extension";
22
+ import type { ExtensionLoader } from "../../../../extensions/extension-loader";
23
+ export interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const enableExtension: ({ extensionLoader }: Dependencies) => (id: LensExtensionId) => void;
@@ -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 type { Injectable } from "@ogre-tools/injectable";
22
+ import type { LensExtensionId } from "../../../../extensions/lens-extension";
23
+ import { Dependencies } from "./enable-extension";
24
+ declare const enableExtensionInjectable: Injectable<(id: LensExtensionId) => void, Dependencies>;
25
+ 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<{}>;
@@ -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 { ExtensionRegistry } from "../../../../common/user-store/preferences-helpers";
22
+ export interface Dependencies {
23
+ getRegistryUrlPreference: () => ExtensionRegistry;
24
+ }
25
+ export declare const getBaseRegistryUrl: ({ getRegistryUrlPreference }: Dependencies) => () => Promise<string>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./get-base-registry-url";
23
+ declare const getBaseRegistryUrlInjectable: Injectable<() => Promise<string>, Dependencies>;
24
+ 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,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 { 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
+ export 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>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import type { Dependencies } from "./install-from-input";
23
+ declare const installFromInputInjectable: Injectable<(input: string) => Promise<void>, Dependencies>;
24
+ export default installFromInputInjectable;
@@ -0,0 +1,4 @@
1
+ export interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installFromSelectFileDialog: ({ attemptInstalls }: Dependencies) => () => Promise<void>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./install-from-select-file-dialog";
23
+ declare const installFromSelectFileDialogInjectable: Injectable<() => Promise<void>, Dependencies>;
24
+ export default installFromSelectFileDialogInjectable;
@@ -0,0 +1,4 @@
1
+ export interface Dependencies {
2
+ attemptInstalls: (filePaths: string[]) => Promise<void>;
3
+ }
4
+ export declare const installOnDrop: ({ attemptInstalls }: Dependencies) => (files: File[]) => Promise<void>;
@@ -0,0 +1,24 @@
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 { Injectable } from "@ogre-tools/injectable";
22
+ import { Dependencies } from "./install-on-drop";
23
+ declare const installOnDropInjectable: Injectable<(files: File[]) => Promise<void>, Dependencies>;
24
+ export default installOnDropInjectable;
@@ -0,0 +1,2 @@
1
+ /// <reference types="node" />
2
+ export declare const readFileNotify: (filePath: string, showError?: boolean) => Promise<Buffer | null>;
@@ -18,4 +18,4 @@
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 bindProtocolAddRouteHandlers(): void;
21
+ export declare const supportedExtensionFormats: string[];
@@ -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 { ExtensionLoader } from "../../../../extensions/extension-loader";
22
+ import { LensExtensionId } from "../../../../extensions/lens-extension";
23
+ export interface Dependencies {
24
+ extensionLoader: ExtensionLoader;
25
+ }
26
+ export declare const uninstallExtension: ({ extensionLoader }: Dependencies) => (extensionId: LensExtensionId) => Promise<boolean>;