@k8slens/extensions 5.3.1-git.495e80cd45.0 → 5.3.1-git.4f75acf2b4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/catalog/catalog-entity.d.ts +51 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -7
- package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
- package/dist/src/common/ipc/index.d.ts +1 -0
- package/dist/src/common/ipc/update-available.ipc.d.ts +2 -0
- package/dist/src/common/k8s-api/cluster-context.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +6 -6
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
- package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +58 -30
- package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/common/k8s-api/kube-object.d.ts +25 -2
- package/dist/src/common/k8s-api/kube-object.store.d.ts +11 -7
- package/dist/src/common/k8s-api/kube-watch-api.d.ts +7 -30
- package/dist/src/common/protocol-handler/error.d.ts +3 -3
- package/dist/src/common/protocol-handler/router.d.ts +13 -7
- package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -1
- package/dist/src/common/utils/index.d.ts +1 -0
- package/dist/src/common/utils/promise-exec.d.ts +1 -2
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +1071 -975
- package/dist/src/extensions/extension-compatibility.d.ts +3 -1
- package/dist/src/extensions/extension-discovery.d.ts +3 -1
- package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
- package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
- package/dist/src/extensions/extensions.injectable.d.ts +3 -0
- package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/extensions/lens-extension.d.ts +2 -1
- package/dist/src/extensions/lens-main-extension.d.ts +3 -1
- package/dist/src/extensions/lens-renderer-extension.d.ts +12 -6
- package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -4
- package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
- package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/cluster.d.ts +3 -7
- package/dist/src/main/context-handler.d.ts +8 -1
- package/dist/src/main/getDi.d.ts +22 -0
- package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
- package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
- package/dist/src/main/helm/helm-service.d.ts +2 -2
- package/dist/src/main/initializers/index.d.ts +0 -1
- package/dist/src/main/initializers/ipc.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy.d.ts +5 -7
- package/dist/src/main/kubeconfig-manager.d.ts +16 -4
- package/dist/src/main/lens-proxy.d.ts +8 -1
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
- package/dist/src/main/menu/menu.d.ts +33 -0
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +14 -8
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
- package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
- package/dist/src/main/tray/tray.d.ts +27 -0
- package/dist/src/main/window-manager.d.ts +3 -0
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
- package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/bootstrap.d.ts +3 -1
- package/dist/src/renderer/cluster-frame.d.ts +2 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
- package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
- package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
- package/dist/src/renderer/components/+catalog/helpers.d.ts +26 -0
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
- package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +11 -16
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +28 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
- package/dist/src/{extensions/registries/menu-registry.d.ts → renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts} +5 -6
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
- package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/components/+extensions/install-from-input/install-from-input.d.ts} +8 -17
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
- package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+namespaces/namespace-details.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +1 -1
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/renderer/{initializers/welcome-menu-registry.d.ts → components/+network-policies/__tests__/network-policy-details.test.d.ts} +1 -1
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
- package/dist/src/renderer/components/+nodes/node-details.d.ts +1 -2
- package/dist/src/renderer/components/+nodes/nodes.d.ts +2 -1
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
- package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
- package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
- package/dist/src/renderer/components/+storage-volume-claims/volume-claim-details.d.ts +1 -1
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
- package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-daemonsets/daemonset-details.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-deployments/deployment-details.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-jobs/job-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-overview/overview.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-replicasets/replicaset-details.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-statefulsets/statefulset-details.d.ts +0 -1
- package/dist/src/renderer/components/{layout/__tests__/topbar.test.d.ts → avatar/__tests__/avatar.test.d.ts} +0 -0
- package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
- package/dist/src/renderer/components/{clipboard → avatar}/index.d.ts +1 -1
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +21 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
- package/dist/src/renderer/components/context.d.ts +8 -1
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +14 -3
- package/dist/src/renderer/components/getDi.d.ts +2 -2
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
- package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +3 -0
- package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +2 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +3 -0
- package/dist/src/{main/tray.d.ts → renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts} +3 -5
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +3 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +26 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +9 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.test.d.ts +21 -0
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
- package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar-win-linux.test.d.ts +21 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar.test.d.ts +21 -0
- package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +3 -1
- package/dist/src/renderer/components/switch/__tests__/switch.test.d.ts +21 -0
- package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
- package/dist/src/renderer/components/switch/index.d.ts +1 -0
- package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
- package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
- package/dist/src/renderer/initializers/index.d.ts +1 -1
- package/dist/src/renderer/initializers/ipc.d.ts +2 -1
- package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -1
- package/dist/src/{main/menu.d.ts → renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts} +8 -6
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
- package/dist/src/renderer/root-frame.d.ts +3 -1
- package/dist/src/renderer/theme.store.d.ts +0 -1
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
- package/dist/src/renderer/utils/copyToClipboard.d.ts +0 -27
|
@@ -18,18 +18,23 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import * as proto from "
|
|
21
|
+
import * as proto from "../../../common/protocol-handler";
|
|
22
22
|
import URLParse from "url-parse";
|
|
23
|
-
import type { LensExtension } from "
|
|
24
|
-
import { RouteAttempt } from "
|
|
23
|
+
import type { LensExtension } from "../../../extensions/lens-extension";
|
|
24
|
+
import { RouteAttempt } from "../../../common/protocol-handler";
|
|
25
|
+
import type { ExtensionLoader } from "../../../extensions/extension-loader";
|
|
25
26
|
export interface FallbackHandler {
|
|
26
27
|
(name: string): Promise<boolean>;
|
|
27
28
|
}
|
|
29
|
+
interface Dependencies {
|
|
30
|
+
extensionLoader: ExtensionLoader;
|
|
31
|
+
}
|
|
28
32
|
export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
33
|
+
protected dependencies: Dependencies;
|
|
29
34
|
private missingExtensionHandlers;
|
|
30
35
|
rendererLoaded: boolean;
|
|
31
|
-
protected disposers: import("
|
|
32
|
-
constructor();
|
|
36
|
+
protected disposers: import("../../../common/utils").ExtendableDisposer;
|
|
37
|
+
constructor(dependencies: Dependencies);
|
|
33
38
|
cleanup(): void;
|
|
34
39
|
/**
|
|
35
40
|
* Find the most specific registered handler, if it exists, and invoke it.
|
|
@@ -39,9 +44,9 @@ export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
|
39
44
|
*/
|
|
40
45
|
route(rawUrl: string): Promise<void>;
|
|
41
46
|
protected _executeMissingExtensionHandlers(extensionName: string): Promise<boolean>;
|
|
42
|
-
protected _findMatchingExtensionByName(url: URLParse): Promise<LensExtension | string>;
|
|
43
|
-
protected _routeToInternal(url: URLParse): RouteAttempt;
|
|
44
|
-
protected _routeToExtension(url: URLParse): Promise<RouteAttempt>;
|
|
47
|
+
protected _findMatchingExtensionByName(url: URLParse<Record<string, string>>): Promise<LensExtension | string>;
|
|
48
|
+
protected _routeToInternal(url: URLParse<Record<string, string>>): RouteAttempt;
|
|
49
|
+
protected _routeToExtension(url: URLParse<Record<string, string>>): Promise<RouteAttempt>;
|
|
45
50
|
/**
|
|
46
51
|
* Add a function to the list which will be sequentially called if an extension
|
|
47
52
|
* is not found while routing to the extensions
|
|
@@ -49,3 +54,4 @@ export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
|
49
54
|
*/
|
|
50
55
|
addMissingExtensionHandler(handler: FallbackHandler): void;
|
|
51
56
|
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
import { LensProtocolRouterMain } from "./lens-protocol-router-main";
|
|
3
|
+
declare const lensProtocolRouterMainInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<LensProtocolRouterMain, unknown>, LensProtocolRouterMain, unknown>;
|
|
4
|
+
export default lensProtocolRouterMainInjectable;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const trayItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("./tray-menu-registration").TrayMenuRegistration[]>, unknown>, import("mobx").IComputedValue<import("./tray-menu-registration").TrayMenuRegistration[]>, unknown>;
|
|
3
|
+
export default trayItemsInjectable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { Tray } from "electron";
|
|
22
|
+
import { IComputedValue } from "mobx";
|
|
23
|
+
import type { WindowManager } from "../window-manager";
|
|
24
|
+
import type { TrayMenuRegistration } from "./tray-menu-registration";
|
|
25
|
+
export declare let tray: Tray;
|
|
26
|
+
export declare function getTrayIcon(): string;
|
|
27
|
+
export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>): () => void;
|
|
@@ -23,6 +23,9 @@ import { BrowserWindow } from "electron";
|
|
|
23
23
|
import windowStateKeeper from "electron-window-state";
|
|
24
24
|
import { Singleton } from "../common/utils";
|
|
25
25
|
import { ClusterFrameInfo } from "../common/cluster-frames";
|
|
26
|
+
export declare const enum IpcMainWindowEvents {
|
|
27
|
+
OPEN_CONTEXT_MENU = "window:open-context-menu"
|
|
28
|
+
}
|
|
26
29
|
export interface SendToViewArgs {
|
|
27
30
|
channel: string;
|
|
28
31
|
frameInfo?: ClusterFrameInfo;
|
|
@@ -25,6 +25,10 @@ import { Disposer } from "../utils";
|
|
|
25
25
|
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
|
|
26
26
|
export declare type EntityFilter = (entity: CatalogEntity) => any;
|
|
27
27
|
export declare type CatalogEntityOnBeforeRun = (event: CatalogRunEvent) => void | Promise<void>;
|
|
28
|
+
export declare const catalogEntityRunContext: {
|
|
29
|
+
navigate: (url: string) => void;
|
|
30
|
+
setCommandPaletteContext: (entity?: CatalogEntity) => void;
|
|
31
|
+
};
|
|
28
32
|
export declare class CatalogEntityRegistry {
|
|
29
33
|
private categoryRegistry;
|
|
30
34
|
protected activeEntityId: string | undefined;
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
export { catalogEntityRunContext } from "./catalog-entity-registry";
|
|
22
22
|
export { CatalogCategory, CatalogEntity } from "../../common/catalog";
|
|
23
23
|
export type { CatalogEntityData, CatalogEntityKindData, CatalogEntityActionContext, CatalogEntityAddMenuContext, CatalogEntityAddMenu, CatalogEntityContextMenu, CatalogEntityContextMenuContext, } from "../../common/catalog";
|
|
24
|
-
export declare const catalogEntityRunContext: {
|
|
25
|
-
navigate: (url: string) => void;
|
|
26
|
-
setCommandPaletteContext: (entity?: CatalogEntity) => void;
|
|
27
|
-
};
|
|
@@ -69,8 +69,6 @@ export declare class TerminalApi extends WebSocketApi<TerminalEvents> {
|
|
|
69
69
|
isReady: boolean;
|
|
70
70
|
constructor(query: TerminalApiQuery);
|
|
71
71
|
connect(): Promise<void>;
|
|
72
|
-
destroy(): void;
|
|
73
|
-
reconnect(): void;
|
|
74
72
|
sendMessage(message: TerminalMessage): void;
|
|
75
73
|
sendTerminalSize(cols: number, rows: number): void;
|
|
76
74
|
protected _onMessage({ data, ...evt }: MessageEvent<ArrayBuffer>): void;
|
|
@@ -27,8 +27,10 @@ import * as ReactRouterDom from "react-router-dom";
|
|
|
27
27
|
import * as LensExtensionsCommonApi from "../extensions/common-api";
|
|
28
28
|
import * as LensExtensionsRendererApi from "../extensions/renderer-api";
|
|
29
29
|
import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
|
|
30
|
+
import type { ExtensionLoader } from "../extensions/extension-loader";
|
|
31
|
+
import type { LensProtocolRouterRenderer } from "./protocol-handler";
|
|
30
32
|
declare type AppComponent = React.ComponentType & {
|
|
31
|
-
init(rootElem: HTMLElement): Promise<void>;
|
|
33
|
+
init(rootElem: HTMLElement, extensionLoader: ExtensionLoader, bindProtocolAddRouteHandlers?: () => void, lensProtocolRouterRendererInjectable?: LensProtocolRouterRenderer): Promise<void>;
|
|
32
34
|
};
|
|
33
35
|
export declare function bootstrap(comp: () => Promise<AppComponent>, di: DependencyInjectionContainer): Promise<void>;
|
|
34
36
|
/**
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
+
import type { ExtensionLoader } from "../extensions/extension-loader";
|
|
22
23
|
import { ClusterPageMenuRegistration } from "../extensions/registries";
|
|
23
24
|
import { TabLayoutRoute } from "./components/layout/tab-layout";
|
|
24
25
|
import type { ClusterId } from "../common/cluster-types";
|
|
@@ -27,7 +28,7 @@ export declare class ClusterFrame extends React.Component {
|
|
|
27
28
|
static readonly logPrefix = "[CLUSTER-FRAME]:";
|
|
28
29
|
static displayName: string;
|
|
29
30
|
constructor(props: {});
|
|
30
|
-
static init(rootElem: HTMLElement): Promise<void>;
|
|
31
|
+
static init(rootElem: HTMLElement, extensionLoader: ExtensionLoader): Promise<void>;
|
|
31
32
|
componentDidMount(): void;
|
|
32
33
|
startUrl: string;
|
|
33
34
|
getTabLayoutRoutes(menuItem: ClusterPageMenuRegistration): TabLayoutRoute[];
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { Component } from "react";
|
|
22
22
|
import type { CatalogCategory, CatalogEntity } from "../../../common/catalog";
|
|
23
|
-
import type { CatalogEntityItem } from "./catalog-entity-item";
|
|
24
23
|
interface Props<T extends CatalogEntity> {
|
|
25
|
-
|
|
24
|
+
entity: T;
|
|
26
25
|
hideDetails(): void;
|
|
26
|
+
onRun: () => void;
|
|
27
27
|
}
|
|
28
28
|
export declare class CatalogEntityDetails<T extends CatalogEntity> extends Component<Props<T>> {
|
|
29
29
|
categoryIcon(category: CatalogCategory): JSX.Element;
|
|
30
|
-
renderContent(
|
|
30
|
+
renderContent(entity: T): JSX.Element;
|
|
31
31
|
render(): JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
import React from "react";
|
|
22
22
|
import { MenuActionsProps } from "../menu/menu-actions";
|
|
23
23
|
import type { CatalogEntity, CatalogEntityContextMenu } from "../../api/catalog-entity";
|
|
24
|
-
import type { CatalogEntityItem } from "./catalog-entity-item";
|
|
25
24
|
export interface CatalogEntityDrawerMenuProps<T extends CatalogEntity> extends MenuActionsProps {
|
|
26
|
-
|
|
25
|
+
entity: T;
|
|
27
26
|
}
|
|
28
27
|
export declare class CatalogEntityDrawerMenu<T extends CatalogEntity> extends React.Component<CatalogEntityDrawerMenuProps<T>> {
|
|
29
28
|
private contextMenu;
|
|
@@ -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
|
-
|
|
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():
|
|
32
|
-
get selectedItem():
|
|
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(
|
|
43
|
-
removeFromHotbar(
|
|
44
|
-
onDetails: (
|
|
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: (
|
|
50
|
-
renderName(
|
|
48
|
+
renderItemMenu: (entity: CatalogEntity) => JSX.Element;
|
|
49
|
+
renderName(entity: CatalogEntity): JSX.Element;
|
|
51
50
|
renderList(): JSX.Element;
|
|
52
51
|
render(): JSX.Element;
|
|
53
52
|
}
|
|
@@ -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 React from "react";
|
|
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[];
|
|
@@ -18,20 +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 "
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
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>;
|
|
32
|
+
export {};
|
package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts
ADDED
|
@@ -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 {};
|
package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts
ADDED
|
@@ -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 {};
|
package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts
ADDED
|
@@ -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 {};
|
package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts
ADDED
|
@@ -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
|
-
|
|
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
|
|
22
|
-
|
|
23
|
-
|
|
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;
|
package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts
ADDED
|
@@ -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;
|