@k8slens/extensions 5.3.1-git.93a60caf40.0 → 5.3.1-git.a5e89b79d6.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/base-store.d.ts +5 -2
- 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/catalog-entities/web-link.d.ts +0 -2
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/common/hotbar-store.d.ts +16 -11
- package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
- package/dist/src/common/hotbar-types.d.ts +5 -2
- 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 +2 -0
- package/dist/src/common/ipc/update-available.ipc.d.ts +2 -0
- package/dist/src/common/k8s-api/api-manager.d.ts +1 -1
- 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 +15 -0
- package/dist/src/common/user-store/user-store.d.ts +3 -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/{registries/command-registry.d.ts → as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api.d.ts} +5 -16
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api.d.ts +24 -0
- package/dist/src/{renderer/utils/copyToClipboard.d.ts → extensions/as-legacy-globals-for-extension-api/as-legacy-global-singleton-for-extension-api.d.ts} +7 -6
- package/dist/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.d.ts +23 -0
- package/dist/src/extensions/extension-api.js +1955 -3336
- 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 +14 -7
- 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/entity-setting-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -5
- package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
- package/dist/src/extensions/renderer-api/components.d.ts +1 -1
- 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/routes/port-forward-route.d.ts +0 -1
- 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/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/bootstrap.d.ts +5 -2
- 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/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
- package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -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/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
- 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 +5 -3
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/renderer/components/{clipboard/index.d.ts → +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/+network-port-forwards/port-forward-menu.d.ts +2 -0
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
- 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-workload-status.d.ts +2 -7
- package/dist/src/renderer/components/+workloads-overview/overview.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -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/activate-entity-command/activate-entity-command.d.ts +1 -9
- 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/{+404 → avatar}/index.d.ts +1 -1
- package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +22 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +3 -2
- package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
- package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
- package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
- package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
- 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/dock.store.d.ts +11 -4
- package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -2
- package/dist/src/renderer/components/drawer/drawer.d.ts +14 -3
- package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
- 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 +4 -1
- package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
- package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
- package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
- package/dist/src/renderer/components/input/input.d.ts +1 -0
- package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -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/notifications/notifications.d.ts +3 -3
- 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/{components/+404/not-found.d.ts → getDi.d.ts} +2 -4
- package/dist/src/renderer/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/renderer/initializers/catalog.d.ts +6 -1
- package/dist/src/renderer/initializers/index.d.ts +1 -2
- 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/navigation/helpers.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
- 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 +6 -4
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
- package/package.json +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-display-label.d.ts +0 -22
- package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
- package/dist/src/renderer/initializers/welcome-menu-registry.d.ts +0 -21
- package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
import React from "react";
|
|
22
22
|
import type { Cluster } from "../../../main/cluster";
|
|
23
23
|
import { IClassName } from "../../utils";
|
|
24
|
-
import type {
|
|
24
|
+
import type { KubeAuthUpdate } from "../../../common/cluster-types";
|
|
25
25
|
interface Props {
|
|
26
26
|
className?: IClassName;
|
|
27
|
-
|
|
27
|
+
cluster: Cluster;
|
|
28
28
|
}
|
|
29
29
|
export declare class ClusterStatus extends React.Component<Props> {
|
|
30
30
|
authOutput: KubeAuthUpdate[];
|
|
31
31
|
isReconnecting: boolean;
|
|
32
32
|
constructor(props: Props);
|
|
33
33
|
get cluster(): Cluster;
|
|
34
|
+
get entity(): import("../../api/catalog-entity").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
|
|
34
35
|
get hasErrors(): boolean;
|
|
35
36
|
componentDidMount(): void;
|
|
36
37
|
reconnect: () => Promise<void>;
|
|
@@ -24,10 +24,4 @@ import type { ClusterId } from "../../../common/cluster-types";
|
|
|
24
24
|
export interface CommandContainerProps {
|
|
25
25
|
clusterId?: ClusterId;
|
|
26
26
|
}
|
|
27
|
-
export declare
|
|
28
|
-
private escHandler;
|
|
29
|
-
private findCommandById;
|
|
30
|
-
private runCommand;
|
|
31
|
-
componentDidMount(): void;
|
|
32
|
-
render(): JSX.Element;
|
|
33
|
-
}
|
|
27
|
+
export declare const CommandContainer: React.FC<CommandContainerProps>;
|
|
@@ -19,16 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
|
|
23
|
-
export declare class CommandDialog extends React.Component {
|
|
24
|
-
menuIsOpen: boolean;
|
|
25
|
-
searchValue: any;
|
|
26
|
-
constructor(props: {});
|
|
27
|
-
get activeEntity(): CatalogEntity | undefined;
|
|
28
|
-
get options(): {
|
|
29
|
-
value: string;
|
|
30
|
-
label: string;
|
|
31
|
-
}[];
|
|
32
|
-
private onChange;
|
|
33
|
-
render(): JSX.Element;
|
|
34
|
-
}
|
|
22
|
+
export declare const CommandDialog: React.FC<{}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import React from "react";
|
|
23
|
+
export declare class CommandOverlay {
|
|
24
|
+
#private;
|
|
25
|
+
get isOpen(): boolean;
|
|
26
|
+
open: (component: React.ReactElement) => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
get component(): React.ReactElement | null;
|
|
29
|
+
}
|
|
30
|
+
declare const commandOverlayInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandOverlay, unknown>, CommandOverlay, unknown>;
|
|
31
|
+
export default commandOverlayInjectable;
|
|
@@ -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
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
import type { CommandContext, CommandRegistration } from "./commands";
|
|
23
|
+
export declare function isKubernetesClusterActive(context: CommandContext): boolean;
|
|
24
|
+
declare const internalCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandRegistration[], unknown>, CommandRegistration[], unknown>;
|
|
25
|
+
export default internalCommandsInjectable;
|
|
@@ -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
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
import { IComputedValue } from "mobx";
|
|
23
|
+
import type { CommandRegistration } from "./commands";
|
|
24
|
+
declare const registeredCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>, IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>;
|
|
25
|
+
export default registeredCommandsInjectable;
|
|
@@ -18,5 +18,12 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
+
import type { Cluster } from "../../main/cluster";
|
|
21
22
|
import type { ClusterContext } from "../../common/k8s-api/cluster-context";
|
|
22
|
-
export declare
|
|
23
|
+
export declare class FrameContext implements ClusterContext {
|
|
24
|
+
cluster: Cluster;
|
|
25
|
+
constructor(cluster: Cluster);
|
|
26
|
+
get allNamespaces(): string[];
|
|
27
|
+
get contextNamespaces(): string[];
|
|
28
|
+
get hasSelectedAll(): boolean;
|
|
29
|
+
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { IReactionOptions } from "mobx";
|
|
22
21
|
export declare type TabId = string;
|
|
23
22
|
export declare enum TabKind {
|
|
24
23
|
TERMINAL = "terminal",
|
|
@@ -78,7 +77,11 @@ export interface DockTabChangeEvent {
|
|
|
78
77
|
tabId: TabId;
|
|
79
78
|
prevTab?: DockTab;
|
|
80
79
|
}
|
|
81
|
-
export interface DockTabChangeEventOptions
|
|
80
|
+
export interface DockTabChangeEventOptions {
|
|
81
|
+
/**
|
|
82
|
+
* apply a callback right after initialization
|
|
83
|
+
*/
|
|
84
|
+
fireImmediately?: boolean;
|
|
82
85
|
/**
|
|
83
86
|
* filter: by dockStore.selectedTab.kind == tabKind
|
|
84
87
|
*/
|
|
@@ -111,8 +114,12 @@ export declare class DockStore implements DockStorageState {
|
|
|
111
114
|
private init;
|
|
112
115
|
get maxHeight(): number;
|
|
113
116
|
protected adjustHeight(): void;
|
|
114
|
-
onResize(callback: () => void,
|
|
115
|
-
|
|
117
|
+
onResize(callback: () => void, opts?: {
|
|
118
|
+
fireImmediately?: boolean;
|
|
119
|
+
}): import("mobx").IReactionDisposer;
|
|
120
|
+
onTabClose(callback: (evt: DockTabCloseEvent) => void, opts?: {
|
|
121
|
+
fireImmediately?: boolean;
|
|
122
|
+
}): import("mobx").IReactionDisposer;
|
|
116
123
|
onTabChange(callback: (evt: DockTabChangeEvent) => void, options?: DockTabChangeEventOptions): import("mobx").IReactionDisposer;
|
|
117
124
|
hasTabs(): boolean;
|
|
118
125
|
open(fullSize?: boolean): void;
|
|
@@ -24,13 +24,12 @@ import { TerminalApi } from "../../api/terminal-api";
|
|
|
24
24
|
export declare class Terminal {
|
|
25
25
|
tabId: TabId;
|
|
26
26
|
protected api: TerminalApi;
|
|
27
|
-
static
|
|
27
|
+
static get spawningPool(): HTMLElement;
|
|
28
28
|
static preloadFonts(): Promise<void>;
|
|
29
29
|
private xterm;
|
|
30
30
|
private readonly fitAddon;
|
|
31
31
|
private scrollPos;
|
|
32
32
|
private disposer;
|
|
33
|
-
protected setTheme(colors: Record<string, string>): void;
|
|
34
33
|
get elem(): HTMLElement;
|
|
35
34
|
get viewport(): Element;
|
|
36
35
|
get isActive(): boolean;
|
|
@@ -21,31 +21,42 @@
|
|
|
21
21
|
import "./drawer.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import { AnimateName } from "../animate";
|
|
24
|
+
export declare type DrawerPosition = "top" | "left" | "right" | "bottom";
|
|
24
25
|
export interface DrawerProps {
|
|
25
26
|
open: boolean;
|
|
26
27
|
title: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* The width or heigh (depending on `position`) of the Drawer.
|
|
30
|
+
*
|
|
31
|
+
* If not set then the Drawer will be resizable.
|
|
32
|
+
*/
|
|
27
33
|
size?: string;
|
|
28
34
|
usePortal?: boolean;
|
|
29
35
|
className?: string | object;
|
|
30
36
|
contentClass?: string | object;
|
|
31
|
-
position?:
|
|
37
|
+
position?: DrawerPosition;
|
|
32
38
|
animation?: AnimateName;
|
|
33
39
|
onClose?: () => void;
|
|
34
40
|
toolbar?: React.ReactNode;
|
|
35
41
|
}
|
|
36
42
|
interface State {
|
|
37
43
|
isCopied: boolean;
|
|
44
|
+
width: number;
|
|
38
45
|
}
|
|
39
|
-
export declare class Drawer extends React.Component<DrawerProps> {
|
|
46
|
+
export declare class Drawer extends React.Component<DrawerProps, State> {
|
|
40
47
|
static defaultProps: object;
|
|
41
48
|
private mouseDownTarget;
|
|
42
49
|
private contentElem;
|
|
43
50
|
private scrollElem;
|
|
44
51
|
private scrollPos;
|
|
45
52
|
private stopListenLocation;
|
|
46
|
-
state:
|
|
53
|
+
state: {
|
|
54
|
+
isCopied: boolean;
|
|
55
|
+
width: number;
|
|
56
|
+
};
|
|
47
57
|
componentDidMount(): void;
|
|
48
58
|
componentWillUnmount(): void;
|
|
59
|
+
resizeWidth: (width: number) => void;
|
|
49
60
|
fixUpTripleClick: (ev: MouseEvent) => void;
|
|
50
61
|
saveScrollPos: () => void;
|
|
51
62
|
restoreScrollPos: () => void;
|
|
@@ -19,9 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
|
|
23
|
-
export declare const uniqueHotbarName: InputValidator;
|
|
24
|
-
export declare class HotbarAddCommand extends React.Component {
|
|
25
|
-
onSubmit: (name: string) => void;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
22
|
+
export declare const HotbarAddCommand: React.FC<{}>;
|
|
@@ -18,13 +18,12 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import React, {
|
|
21
|
+
import React, { HTMLAttributes } from "react";
|
|
22
22
|
import type { CatalogEntity } from "../../../common/catalog";
|
|
23
23
|
import { IClassName } from "../../utils";
|
|
24
|
-
interface Props extends
|
|
24
|
+
interface Props extends HTMLAttributes<HTMLElement> {
|
|
25
25
|
entity: CatalogEntity;
|
|
26
26
|
index: number;
|
|
27
|
-
className?: IClassName;
|
|
28
27
|
errorClass?: IClassName;
|
|
29
28
|
add: (item: CatalogEntity, index: number) => void;
|
|
30
29
|
remove: (uid: string) => void;
|
|
@@ -36,6 +35,7 @@ export declare class HotbarEntityIcon extends React.Component<Props> {
|
|
|
36
35
|
get kindIcon(): JSX.Element;
|
|
37
36
|
get ledIcon(): JSX.Element;
|
|
38
37
|
isActive(item: CatalogEntity): boolean;
|
|
38
|
+
onMenuOpen(): Promise<void>;
|
|
39
39
|
render(): JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export {};
|
|
@@ -18,23 +18,16 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import "./hotbar-icon.scss";
|
|
22
|
-
import { DOMAttributes } from "react";
|
|
23
21
|
import type { CatalogEntityContextMenu } from "../../../common/catalog";
|
|
24
|
-
import {
|
|
25
|
-
export interface
|
|
22
|
+
import { AvatarProps } from "../avatar";
|
|
23
|
+
export interface Props extends AvatarProps {
|
|
26
24
|
uid: string;
|
|
27
|
-
title: string;
|
|
28
25
|
source: string;
|
|
29
|
-
src?: string;
|
|
30
26
|
material?: string;
|
|
31
27
|
onMenuOpen?: () => void;
|
|
32
|
-
className?: IClassName;
|
|
33
28
|
active?: boolean;
|
|
34
29
|
menuItems?: CatalogEntityContextMenu[];
|
|
35
30
|
disabled?: boolean;
|
|
36
|
-
size?: number;
|
|
37
|
-
background?: string;
|
|
38
31
|
tooltip?: string;
|
|
39
32
|
}
|
|
40
|
-
export declare const HotbarIcon: ({ menuItems, size, tooltip, ...props }:
|
|
33
|
+
export declare const HotbarIcon: ({ menuItems, size, tooltip, ...props }: Props) => JSX.Element;
|
|
@@ -28,8 +28,11 @@ interface Props {
|
|
|
28
28
|
className?: IClassName;
|
|
29
29
|
}
|
|
30
30
|
export declare class HotbarMenu extends React.Component<Props> {
|
|
31
|
-
|
|
31
|
+
draggingOver: boolean;
|
|
32
|
+
constructor(props: Props);
|
|
33
|
+
get hotbar(): Required<import("../../../common/hotbar-types").CreateHotbarData>;
|
|
32
34
|
getEntity(item: HotbarItem): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
|
|
35
|
+
onDragStart(): void;
|
|
33
36
|
onDragEnd(result: DropResult): void;
|
|
34
37
|
removeItem(uid: string): void;
|
|
35
38
|
addItem(entity: CatalogEntity, index?: number): void;
|
|
@@ -19,12 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
export declare
|
|
23
|
-
constructor(props: {});
|
|
24
|
-
get options(): {
|
|
25
|
-
value: string;
|
|
26
|
-
label: string;
|
|
27
|
-
}[];
|
|
28
|
-
onChange(id: string): void;
|
|
29
|
-
render(): JSX.Element;
|
|
30
|
-
}
|
|
22
|
+
export declare const HotbarRemoveCommand: React.FC<{}>;
|
|
@@ -19,17 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
export declare
|
|
23
|
-
hotbarId: string;
|
|
24
|
-
hotbarName: string;
|
|
25
|
-
constructor(props: {});
|
|
26
|
-
get options(): {
|
|
27
|
-
value: string;
|
|
28
|
-
label: string;
|
|
29
|
-
}[];
|
|
30
|
-
onSelect: (id: string) => void;
|
|
31
|
-
onSubmit: (name: string) => void;
|
|
32
|
-
renderHotbarList(): JSX.Element;
|
|
33
|
-
renderNameInput(): JSX.Element;
|
|
34
|
-
render(): JSX.Element;
|
|
35
|
-
}
|
|
22
|
+
export declare const HotbarRenameCommand: React.FC<{}>;
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import "./hotbar-selector.scss";
|
|
22
|
+
import React from "react";
|
|
22
23
|
import type { Hotbar } from "../../../common/hotbar-types";
|
|
23
|
-
interface
|
|
24
|
+
export interface HotbarSelectorProps {
|
|
24
25
|
hotbar: Hotbar;
|
|
25
26
|
}
|
|
26
|
-
export declare const HotbarSelector:
|
|
27
|
-
export {};
|
|
27
|
+
export declare const HotbarSelector: React.FC<HotbarSelectorProps>;
|
|
@@ -19,15 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
export declare
|
|
23
|
-
private static addActionId;
|
|
24
|
-
private static removeActionId;
|
|
25
|
-
private static renameActionId;
|
|
26
|
-
constructor(props: {});
|
|
27
|
-
get options(): {
|
|
28
|
-
value: string;
|
|
29
|
-
label: string;
|
|
30
|
-
}[];
|
|
31
|
-
onChange(idOrAction: string): void;
|
|
32
|
-
render(): JSX.Element;
|
|
33
|
-
}
|
|
22
|
+
export declare const HotbarSwitchCommand: React.FC<{}>;
|
|
@@ -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
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
import type { InputValidator } from "../input_validators";
|
|
23
|
+
declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<InputValidator, unknown>, InputValidator, unknown>;
|
|
24
|
+
export default uniqueHotbarNameInjectable;
|
|
@@ -23,6 +23,7 @@ import React from "react";
|
|
|
23
23
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
24
24
|
import { ItemListLayoutProps } from "../item-object-list/item-list-layout";
|
|
25
25
|
import type { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
|
26
|
+
import type { ClusterContext } from "../../../common/k8s-api/cluster-context";
|
|
26
27
|
export interface KubeObjectListLayoutProps<K extends KubeObject> extends ItemListLayoutProps<K> {
|
|
27
28
|
store: KubeObjectStore<K>;
|
|
28
29
|
dependentStores?: KubeObjectStore<KubeObject>[];
|
|
@@ -30,6 +31,7 @@ export interface KubeObjectListLayoutProps<K extends KubeObject> extends ItemLis
|
|
|
30
31
|
}
|
|
31
32
|
export declare class KubeObjectListLayout<K extends KubeObject> extends React.Component<KubeObjectListLayoutProps<K>> {
|
|
32
33
|
static defaultProps: object;
|
|
34
|
+
static clusterContext: ClusterContext;
|
|
33
35
|
constructor(props: KubeObjectListLayoutProps<K>);
|
|
34
36
|
loadErrors: string[];
|
|
35
37
|
get selectedItem(): K;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const apiManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../common/k8s-api/api-manager").ApiManager, unknown>, import("../../../../common/k8s-api/api-manager").ApiManager, unknown>;
|
|
3
|
+
export default apiManagerInjectable;
|
|
@@ -18,8 +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
|
-
|
|
22
|
-
|
|
23
|
-
export
|
|
24
|
-
export declare function getTrayIcon(): string;
|
|
25
|
-
export declare function initTray(windowManager: WindowManager): () => void;
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
declare const clusterNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<string, unknown>, string, unknown>;
|
|
23
|
+
export default clusterNameInjectable;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const clusterInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../main/cluster").Cluster, unknown>, import("../../../../main/cluster").Cluster, unknown>;
|
|
3
|
+
export default clusterInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
* the Software without restriction, including without limitation the rights to
|
|
8
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
* subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
* copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
import { editResourceTab } from "../../dock/edit-resource.store";
|
|
23
|
+
declare const editResourceTabInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof editResourceTab, unknown>, typeof editResourceTab, unknown>;
|
|
24
|
+
export default editResourceTabInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
* the Software without restriction, including without limitation the rights to
|
|
8
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
* subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
* copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
import { hideDetails } from "../../kube-detail-params";
|
|
23
|
+
declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
|
|
24
|
+
export default hideDetailsInjectable;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
22
|
+
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
23
|
+
export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry, kubeObject, }: {
|
|
24
|
+
kubeObjectMenuRegistry: KubeObjectMenuRegistry;
|
|
25
|
+
kubeObject: KubeObject;
|
|
26
|
+
}) => import("react").ComponentType<any>[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
3
|
+
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
4
|
+
declare const kubeObjectMenuItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("react").ComponentType<any>[], {
|
|
5
|
+
kubeObject: KubeObject;
|
|
6
|
+
}>, import("react").ComponentType<any>[], {
|
|
7
|
+
kubeObject: KubeObject;
|
|
8
|
+
}>;
|
|
9
|
+
export default kubeObjectMenuItemsInjectable;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
4
|
+
*
|
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
* the Software without restriction, including without limitation the rights to
|
|
8
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
* subject to the following conditions:
|
|
11
|
+
*
|
|
12
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
* copies or substantial portions of the Software.
|
|
14
|
+
*
|
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
import { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
23
|
+
declare const kubeObjectMenuRegistryInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<KubeObjectMenuRegistry, unknown>, KubeObjectMenuRegistry, unknown>;
|
|
24
|
+
export default kubeObjectMenuRegistryInjectable;
|
|
@@ -18,4 +18,5 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type { KubeObjectMenuProps } from "./kube-object-menu";
|
|
22
|
+
export { KubeObjectMenu } from "./kube-object-menu";
|