@k8slens/extensions 5.6.0-git.657119b22b.0 → 5.6.0-git.6d484a45e5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/src/behaviours/status-bar/status-bar-items-originating-from-extensions.test.d.ts +1 -0
  2. package/dist/src/common/application-update/discovered-update-version/discovered-update-version.injectable.d.ts +4 -2
  3. package/dist/src/common/application-update/progress-of-update-download/progress-of-update-download.injectable.d.ts +4 -1
  4. package/dist/src/common/application-update/update-is-being-downloaded/update-is-being-downloaded.injectable.d.ts +3 -1
  5. package/dist/src/common/application-update/updates-are-being-discovered/updates-are-being-discovered.injectable.d.ts +3 -1
  6. package/dist/src/common/k8s-api/endpoints/helm-charts.api.d.ts +2 -1
  7. package/dist/src/common/test-utils/use-fake-time.d.ts +2 -0
  8. package/dist/src/common/utils/reactive-now/reactive-now.d.ts +1 -0
  9. package/dist/src/common/utils/reactive-now/reactive-now.test.d.ts +1 -0
  10. package/dist/src/extensions/extension-api.js +80 -14
  11. package/dist/src/renderer/components/+helm-charts/get-char-details.injectable.d.ts +4 -0
  12. package/dist/src/renderer/components/+helm-charts/helm-chart-details.test.d.ts +5 -0
  13. package/dist/src/renderer/components/+helm-charts/icon.d.ts +10 -0
  14. package/dist/src/renderer/components/+workloads-cronjobs/cron-job-trigger-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  15. package/dist/src/renderer/components/+workloads-deployments/scale/deployment-scale-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  16. package/dist/src/renderer/components/+workloads-replicasets/scale-dialog/replicaset-scale-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  17. package/dist/src/renderer/components/+workloads-statefulsets/scale/statefulset-scale-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  18. package/dist/src/renderer/components/cluster-manager/cluster-manager-root-frame-child-component.injectable.d.ts +6 -0
  19. package/dist/src/renderer/components/command-palette/command-container-cluster-frame-child-component.injectable.d.ts +7 -0
  20. package/dist/src/renderer/components/command-palette/command-container-root-frame-child-component.injectable.d.ts +7 -0
  21. package/dist/src/renderer/components/confirm-dialog/confirm-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  22. package/dist/src/renderer/components/confirm-dialog/confirm-dialog-root-frame-child-component.injectable.d.ts +7 -0
  23. package/dist/src/renderer/components/delete-cluster-dialog/delete-cluster-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  24. package/dist/src/renderer/components/dock/install-chart/create-install-chart-tab.injectable.d.ts +2 -1
  25. package/dist/src/renderer/components/kube-object-details/kube-object-details-cluster-frame-child-component.injectable.d.ts +7 -0
  26. package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  27. package/dist/src/renderer/components/notifications/notifications-cluster-frame-child-component.injectable.d.ts +13 -0
  28. package/dist/src/renderer/components/notifications/notifications-root-frame-child-component.injectable.d.ts +13 -0
  29. package/dist/src/renderer/components/notifications/notifications.d.ts +9 -6
  30. package/dist/src/renderer/components/notifications/notifications.store.d.ts +5 -0
  31. package/dist/src/renderer/components/notifications/show-checked-error.injectable.d.ts +5 -0
  32. package/dist/src/renderer/components/notifications/show-error-notification.injectable.d.ts +2 -2
  33. package/dist/src/renderer/components/notifications/show-info-notification.injectable.d.ts +2 -2
  34. package/dist/src/renderer/components/notifications/show-short-info.injectable.d.ts +7 -0
  35. package/dist/src/renderer/components/notifications/show-success-notification.injectable.d.ts +2 -2
  36. package/dist/src/renderer/components/status-bar/auto-update-component.d.ts +14 -0
  37. package/dist/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.d.ts +7 -0
  38. package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +8 -0
  39. package/dist/src/renderer/components/status-bar/status-bar-item-registrator.injectable.d.ts +8 -0
  40. package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +8 -1
  41. package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
  42. package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +2 -1
  43. package/dist/src/renderer/components/virtual-list/virtual-list.test.d.ts +5 -0
  44. package/dist/src/renderer/frames/cluster-frame/cluster-frame-child-component-injection-token.d.ts +12 -0
  45. package/dist/src/renderer/frames/cluster-frame/cluster-frame-layout-child-component.injectable.d.ts +6 -0
  46. package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +7 -5
  47. package/dist/src/renderer/frames/root-frame/root-frame-child-component-injection-token.d.ts +12 -0
  48. package/dist/src/renderer/frames/root-frame/setup-system-ca.injectable.d.ts +4 -0
  49. package/dist/src/renderer/port-forward/port-forward-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  50. package/package.json +2 -1
  51. package/dist/src/common/application-update/application-update-status-channel.injectable.d.ts +0 -9
  52. package/dist/src/main/application-update/check-for-updates/broadcast-change-in-updating-status.injectable.d.ts +0 -3
  53. package/dist/src/main/start-main-application/runnables/setup-runnables-for-after-root-frame-is-ready.injectable.d.ts +0 -4
  54. package/dist/src/renderer/application-update/application-update-status-listener.injectable.d.ts +0 -4
  55. package/dist/src/renderer/components/status-bar/registered-status-bar-items.injectable.d.ts +0 -13
@@ -0,0 +1,4 @@
1
+ import type { GetChartDetailsOptions, IHelmChartDetails } from "../../../common/k8s-api/endpoints/helm-charts.api";
2
+ export declare type GetChartDetails = (repo: string, name: string, opts?: GetChartDetailsOptions) => Promise<IHelmChartDetails>;
3
+ declare const getChartDetailsInjectable: import("@ogre-tools/injectable").Injectable<GetChartDetails, unknown, void>;
4
+ export default getChartDetailsInjectable;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { HelmChart } from "../../../common/k8s-api/endpoints/helm-charts.api";
6
+ export interface HelmChartIconProps {
7
+ className?: string;
8
+ chart: HelmChart;
9
+ }
10
+ export declare const HelmChartIcon: ({ chart, className, }: HelmChartIconProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CronJobTriggerDialog } from "./cronjob-trigger-dialog";
2
+ declare const cronJobTriggerDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: typeof CronJobTriggerDialog;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default cronJobTriggerDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const deploymentScaleDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./dialog").DeploymentScaleDialogProps>;
6
+ }, import("../../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default deploymentScaleDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const replicasetScaleDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./dialog").ReplicaSetScaleDialogProps>;
6
+ }, import("../../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default replicasetScaleDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const statefulsetScaleDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./dialog").StatefulSetScaleDialogProps>;
6
+ }, import("../../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default statefulsetScaleDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,6 @@
1
+ declare const clusterManagerRootFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ id: string;
3
+ shouldRender: import("mobx").IComputedValue<boolean>;
4
+ Component: () => JSX.Element;
5
+ }, import("../../frames/root-frame/root-frame-child-component-injection-token").RootFrameChildComponent, void>;
6
+ export default clusterManagerRootFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const commandContainerClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<{}>;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default commandContainerClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const commandContainerRootFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<{}>;
6
+ }, import("../../frames/root-frame/root-frame-child-component-injection-token").RootFrameChildComponent, void>;
7
+ export default commandContainerRootFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const confirmDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./confirm-dialog").ConfirmDialogProps>;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default confirmDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const confirmDialogRootFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./confirm-dialog").ConfirmDialogProps>;
6
+ }, import("../../frames/root-frame/root-frame-child-component-injection-token").RootFrameChildComponent, void>;
7
+ export default confirmDialogRootFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const deleteClusterDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<{}>;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default deleteClusterDialogClusterFrameChildComponentInjectable;
@@ -1,4 +1,5 @@
1
1
  import type { HelmChart } from "../../../../common/k8s-api/endpoints/helm-charts.api";
2
- import type { DockTabCreate, DockTabCreateSpecific } from "../dock/store";
2
+ import type { DockTab, DockTabCreate, DockTabCreateSpecific } from "../dock/store";
3
+ export declare type CreateInstallChartTab = (chart: HelmChart, tabParams?: DockTabCreateSpecific) => DockTab;
3
4
  declare const createInstallChartTabInjectable: import("@ogre-tools/injectable").Injectable<(chart: HelmChart, tabParams?: DockTabCreateSpecific) => Required<DockTabCreate>, unknown, void>;
4
5
  export default createInstallChartTabInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const kubeObjectDetailsClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<{}>;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default kubeObjectDetailsClusterFrameChildComponentInjectable;
@@ -0,0 +1,7 @@
1
+ import { KubeConfigDialog } from "./kubeconfig-dialog";
2
+ declare const kubeconfigDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: typeof KubeConfigDialog;
6
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default kubeconfigDialogClusterFrameChildComponentInjectable;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare const notificationsClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FC<{}> & {
6
+ ok: import("./notifications").ShowNotification;
7
+ checkedError: import("./show-checked-error.injectable").ShowCheckedErrorNotification;
8
+ error: import("./notifications").ShowNotification;
9
+ shortInfo: import("./notifications").ShowNotification;
10
+ info: import("./notifications").ShowNotification;
11
+ };
12
+ }, import("../../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
13
+ export default notificationsClusterFrameChildComponentInjectable;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare const notificationsRootFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FC<{}> & {
6
+ ok: import("./notifications").ShowNotification;
7
+ checkedError: import("./show-checked-error.injectable").ShowCheckedErrorNotification;
8
+ error: import("./notifications").ShowNotification;
9
+ shortInfo: import("./notifications").ShowNotification;
10
+ info: import("./notifications").ShowNotification;
11
+ };
12
+ }, import("../../frames/root-frame/root-frame-child-component-injection-token").RootFrameChildComponent, void>;
13
+ export default notificationsRootFrameChildComponentInjectable;
@@ -4,11 +4,14 @@
4
4
  */
5
5
  import "./notifications.scss";
6
6
  import React from "react";
7
- import type { Notification, NotificationMessage } from "./notifications.store";
7
+ import type { Disposer } from "../../utils";
8
+ import type { CreateNotificationOptions, NotificationMessage } from "./notifications.store";
9
+ import type { ShowCheckedErrorNotification } from "./show-checked-error.injectable";
10
+ export declare type ShowNotification = (message: NotificationMessage, opts?: CreateNotificationOptions) => Disposer;
8
11
  export declare const Notifications: React.FC<{}> & {
9
- ok: (message: NotificationMessage) => () => void;
10
- checkedError: (message: unknown, fallback: string, customOpts?: Partial<Omit<Notification, "message">>) => () => void;
11
- error: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void;
12
- shortInfo: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void;
13
- info: (message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void;
12
+ ok: ShowNotification;
13
+ checkedError: ShowCheckedErrorNotification;
14
+ error: ShowNotification;
15
+ shortInfo: ShowNotification;
16
+ info: ShowNotification;
14
17
  };
@@ -11,6 +11,11 @@ export declare enum NotificationStatus {
11
11
  ERROR = "error",
12
12
  INFO = "info"
13
13
  }
14
+ export interface CreateNotificationOptions {
15
+ id?: NotificationId;
16
+ timeout?: number;
17
+ onClose?(): void;
18
+ }
14
19
  export interface Notification {
15
20
  id?: NotificationId;
16
21
  message: NotificationMessage;
@@ -0,0 +1,5 @@
1
+ import type { Disposer } from "../../utils";
2
+ import type { CreateNotificationOptions } from "./notifications.store";
3
+ export declare type ShowCheckedErrorNotification = (message: unknown, fallback: string, opts?: CreateNotificationOptions) => Disposer;
4
+ declare const showCheckedErrorNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowCheckedErrorNotification, unknown, void>;
5
+ export default showCheckedErrorNotificationInjectable;
@@ -1,3 +1,3 @@
1
- import type { NotificationMessage, Notification } from "./notifications.store";
2
- declare const showErrorNotificationInjectable: import("@ogre-tools/injectable").Injectable<(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void, unknown, void>;
1
+ import type { ShowNotification } from "./notifications";
2
+ declare const showErrorNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowNotification, unknown, void>;
3
3
  export default showErrorNotificationInjectable;
@@ -1,3 +1,3 @@
1
- import type { NotificationMessage, Notification } from "./notifications.store";
2
- declare const showInfoNotificationInjectable: import("@ogre-tools/injectable").Injectable<(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void, unknown, void>;
1
+ import type { ShowNotification } from "./notifications";
2
+ declare const showInfoNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowNotification, unknown, void>;
3
3
  export default showInfoNotificationInjectable;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { ShowNotification } from "./notifications";
6
+ declare const showShortInfoNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowNotification, unknown, void>;
7
+ export default showShortInfoNotificationInjectable;
@@ -1,3 +1,3 @@
1
- import type { NotificationMessage, Notification } from "./notifications.store";
2
- declare const showSuccessNotificationInjectable: import("@ogre-tools/injectable").Injectable<(message: NotificationMessage, customOpts?: Partial<Omit<Notification, "message">>) => () => void, unknown, void>;
1
+ import type { ShowNotification } from "./notifications";
2
+ declare const showSuccessNotificationInjectable: import("@ogre-tools/injectable").Injectable<ShowNotification, unknown, void>;
3
3
  export default showSuccessNotificationInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { ProgressOfUpdateDownload } from "../../../common/application-update/progress-of-update-download/progress-of-update-download.injectable";
3
+ import type { DiscoveredUpdateVersion } from "../../../common/application-update/discovered-update-version/discovered-update-version.injectable";
4
+ import type { UpdateIsBeingDownloaded } from "../../../common/application-update/update-is-being-downloaded/update-is-being-downloaded.injectable";
5
+ import type { UpdatesAreBeingDiscovered } from "../../../common/application-update/updates-are-being-discovered/updates-are-being-discovered.injectable";
6
+ interface Dependencies {
7
+ progressOfUpdateDownload: ProgressOfUpdateDownload;
8
+ discoveredVersionState: DiscoveredUpdateVersion;
9
+ downloadingUpdateState: UpdateIsBeingDownloaded;
10
+ checkingForUpdatesState: UpdatesAreBeingDiscovered;
11
+ }
12
+ export declare const NonInjectedAutoUpdateComponent: ({ progressOfUpdateDownload, discoveredVersionState, downloadingUpdateState, checkingForUpdatesState, }: Dependencies) => JSX.Element;
13
+ export declare const AutoUpdateComponent: React.FunctionComponent<{}>;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const autoUpdateStatusBarItemInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ component: import("react").FunctionComponent<{}>;
4
+ position: "left";
5
+ visible: import("mobx").IComputedValue<boolean>;
6
+ }, import("./status-bar-item-injection-token").StatusBarItem, void>;
7
+ export default autoUpdateStatusBarItemInjectable;
@@ -0,0 +1,8 @@
1
+ import type { IComputedValue } from "mobx";
2
+ import type React from "react";
3
+ export interface StatusBarItem {
4
+ component: React.ComponentType<any>;
5
+ position: "left" | "right";
6
+ visible: IComputedValue<boolean>;
7
+ }
8
+ export declare const statusBarItemInjectionToken: import("@ogre-tools/injectable").InjectionToken<StatusBarItem, void>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { Injectable } from "@ogre-tools/injectable";
6
+ import type { StatusBarItem } from "./status-bar-item-injection-token";
7
+ declare const statusBarItemRegistratorInjectable: Injectable<(extension: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => Injectable<StatusBarItem, StatusBarItem, void>[], (extension: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => Injectable<any, any, any>[], void>;
8
+ export default statusBarItemRegistratorInjectable;
@@ -1,2 +1,9 @@
1
- declare const statusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("./status-bar-registration").StatusBarRegistration[]>, unknown, void>;
1
+ /// <reference types="react" />
2
+ import type { IComputedValue } from "mobx";
3
+ import type { StatusBarItemProps } from "./status-bar-registration";
4
+ export interface StatusBarItems {
5
+ right: React.ComponentType<StatusBarItemProps>[];
6
+ left: React.ComponentType<StatusBarItemProps>[];
7
+ }
8
+ declare const statusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<StatusBarItems>, unknown, void>;
2
9
  export default statusBarItemsInjectable;
@@ -13,5 +13,5 @@ export interface SwitcherProps extends SwitchProps {
13
13
  /**
14
14
  * @deprecated Use <Switch/> instead from "../switch.tsx".
15
15
  */
16
- export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "key" | "value" | "id" | "name" | "className" | "form" | "slot" | "style" | "title" | "size" | "ref" | "action" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
16
+ export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "key" | "value" | "className" | "form" | "slot" | "style" | "title" | "size" | "ref" | "action" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
17
17
  export {};
@@ -8,4 +8,5 @@ import type { ApplicationBuilder } from "./get-application-builder";
8
8
  export declare class TestExtension extends LensRendererExtension {
9
9
  }
10
10
  export declare type FakeExtensionData = SetRequired<Partial<LensRendererExtension>, "id" | "name">;
11
- export declare const getRendererExtensionFakeFor: (builder: ApplicationBuilder) => ({ id, name, ...rest }: FakeExtensionData) => TestExtension;
11
+ export declare type GetRendererExtensionFake = (fakeExtensionData: FakeExtensionData) => TestExtension;
12
+ export declare const getRendererExtensionFakeFor: (builder: ApplicationBuilder) => GetRendererExtensionFake;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /// <reference types="react" />
6
+ import type { IComputedValue } from "mobx";
7
+ export interface ClusterFrameChildComponent {
8
+ id: string;
9
+ Component: React.ElementType;
10
+ shouldRender: IComputedValue<boolean>;
11
+ }
12
+ export declare const clusterFrameChildComponentInjectionToken: import("@ogre-tools/injectable").InjectionToken<ClusterFrameChildComponent, void>;
@@ -0,0 +1,6 @@
1
+ declare const clusterFrameLayoutChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ id: string;
3
+ shouldRender: import("mobx").IComputedValue<boolean>;
4
+ Component: () => JSX.Element;
5
+ }, import("./cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
6
+ export default clusterFrameLayoutChildComponentInjectable;
@@ -1,15 +1,17 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
1
5
  import React from "react";
2
- import type { IComputedValue } from "mobx";
3
6
  import type { NamespaceStore } from "../../components/+namespaces/store";
4
7
  import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
8
+ import type { ClusterFrameChildComponent } from "./cluster-frame-child-component-injection-token";
5
9
  interface Dependencies {
6
10
  namespaceStore: NamespaceStore;
7
- currentRouteComponent: IComputedValue<React.ElementType<{}> | undefined>;
8
- startUrl: IComputedValue<string>;
9
11
  subscribeStores: SubscribeStores;
10
- currentPath: IComputedValue<string>;
12
+ childComponents: ClusterFrameChildComponent[];
11
13
  watchHistoryState: () => () => void;
12
14
  }
13
- export declare const NonInjectedClusterFrame: ({ namespaceStore, currentRouteComponent, startUrl, subscribeStores, currentPath, watchHistoryState, }: Dependencies) => JSX.Element;
15
+ export declare const NonInjectedClusterFrame: ({ namespaceStore, subscribeStores, childComponents, watchHistoryState, }: Dependencies) => JSX.Element;
14
16
  export declare const ClusterFrame: React.FunctionComponent<{}>;
15
17
  export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /// <reference types="react" />
6
+ import type { IComputedValue } from "mobx";
7
+ export interface RootFrameChildComponent {
8
+ id: string;
9
+ Component: React.ElementType;
10
+ shouldRender: IComputedValue<boolean>;
11
+ }
12
+ export declare const rootFrameChildComponentInjectionToken: import("@ogre-tools/injectable").InjectionToken<RootFrameChildComponent, void>;
@@ -0,0 +1,4 @@
1
+ declare const setupSystemCaInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ run: () => Promise<void>;
3
+ }, import("../../../common/runnable/run-many-for").Runnable<void>, void>;
4
+ export default setupSystemCaInjectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const portForwardDialogClusterFrameChildComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ id: string;
4
+ shouldRender: import("mobx").IComputedValue<boolean>;
5
+ Component: import("react").FunctionComponent<import("./port-forward-dialog").PortForwardDialogProps>;
6
+ }, import("../frames/cluster-frame/cluster-frame-child-component-injection-token").ClusterFrameChildComponent, void>;
7
+ export default portForwardDialogClusterFrameChildComponentInjectable;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@k8slens/extensions",
3
3
  "productName": "OpenLens extensions",
4
4
  "description": "OpenLens - Open Source Kubernetes IDE: extensions",
5
- "version": "5.6.0-git.657119b22b.0",
5
+ "version": "5.6.0-git.6d484a45e5.0",
6
6
  "copyright": "© 2022 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",
@@ -25,6 +25,7 @@
25
25
  "conf": "^7.0.1",
26
26
  "mobx": "^6.5.0",
27
27
  "mobx-react": "^7.3.0",
28
+ "react-select": "^5.3.2",
28
29
  "typed-emitter": "^1.3.1"
29
30
  }
30
31
  }
@@ -1,9 +0,0 @@
1
- import type { MessageChannel } from "../utils/channel/message-channel-injection-token";
2
- export declare type ApplicationUpdateStatusEventId = "checking-for-updates" | "no-updates-available" | "download-for-update-started" | "download-for-update-failed";
3
- export declare type ApplicationUpdateStatusChannelMessage = {
4
- eventId: ApplicationUpdateStatusEventId;
5
- version?: string;
6
- };
7
- export declare type ApplicationUpdateStatusChannel = MessageChannel<ApplicationUpdateStatusChannelMessage>;
8
- declare const applicationUpdateStatusChannelInjectable: import("@ogre-tools/injectable").Injectable<ApplicationUpdateStatusChannel, MessageChannel<any>, void>;
9
- export default applicationUpdateStatusChannelInjectable;
@@ -1,3 +0,0 @@
1
- import type { ApplicationUpdateStatusChannelMessage } from "../../../common/application-update/application-update-status-channel.injectable";
2
- declare const broadcastChangeInUpdatingStatusInjectable: import("@ogre-tools/injectable").Injectable<(data: ApplicationUpdateStatusChannelMessage) => void, unknown, void>;
3
- export default broadcastChangeInUpdatingStatusInjectable;
@@ -1,4 +0,0 @@
1
- declare const setupRunnablesForAfterRootFrameIsReadyInjectable: import("@ogre-tools/injectable").Injectable<{
2
- run: () => void;
3
- }, import("../../../common/runnable/run-many-for").Runnable<void>, void>;
4
- export default setupRunnablesForAfterRootFrameIsReadyInjectable;
@@ -1,4 +0,0 @@
1
- import type { ApplicationUpdateStatusChannel } from "../../common/application-update/application-update-status-channel.injectable";
2
- import type { MessageChannelListener } from "../../common/utils/channel/message-channel-listener-injection-token";
3
- declare const applicationUpdateStatusListenerInjectable: import("@ogre-tools/injectable").Injectable<MessageChannelListener<ApplicationUpdateStatusChannel>, MessageChannelListener<import("../../common/utils/channel/message-channel-injection-token").MessageChannel<any>>, void>;
4
- export default applicationUpdateStatusListenerInjectable;
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) OpenLens Authors. All rights reserved.
3
- * Licensed under MIT License. See LICENSE in root directory for more information.
4
- */
5
- import React from "react";
6
- import type { IComputedValue } from "mobx";
7
- import type { StatusBarItemProps } from "./status-bar-registration";
8
- export interface RegisteredStatusBarItems {
9
- right: React.ComponentType<StatusBarItemProps>[];
10
- left: React.ComponentType<StatusBarItemProps>[];
11
- }
12
- declare const registeredStatusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<RegisteredStatusBarItems>, unknown, void>;
13
- export default registeredStatusBarItemsInjectable;