@k8slens/extensions 5.6.0-git.21109f36ca.0 → 5.6.0-git.26127fe906.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 (60) 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/input/input.d.ts +11 -11
  26. package/dist/src/renderer/components/input/input_validators.d.ts +43 -22
  27. package/dist/src/renderer/components/input/validators/is-path.injectable.d.ts +1 -1
  28. package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +1 -1
  29. package/dist/src/renderer/components/kube-object-details/kube-object-details-cluster-frame-child-component.injectable.d.ts +7 -0
  30. package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  31. package/dist/src/renderer/components/notifications/notifications-cluster-frame-child-component.injectable.d.ts +13 -0
  32. package/dist/src/renderer/components/notifications/notifications-root-frame-child-component.injectable.d.ts +13 -0
  33. package/dist/src/renderer/components/notifications/notifications.d.ts +9 -6
  34. package/dist/src/renderer/components/notifications/notifications.store.d.ts +5 -0
  35. package/dist/src/renderer/components/notifications/show-checked-error.injectable.d.ts +5 -0
  36. package/dist/src/renderer/components/notifications/show-error-notification.injectable.d.ts +2 -2
  37. package/dist/src/renderer/components/notifications/show-info-notification.injectable.d.ts +2 -2
  38. package/dist/src/renderer/components/notifications/show-short-info.injectable.d.ts +7 -0
  39. package/dist/src/renderer/components/notifications/show-success-notification.injectable.d.ts +2 -2
  40. package/dist/src/renderer/components/status-bar/auto-update-component.d.ts +14 -0
  41. package/dist/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.d.ts +7 -0
  42. package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +8 -0
  43. package/dist/src/renderer/components/status-bar/status-bar-item-registrator.injectable.d.ts +8 -0
  44. package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +8 -1
  45. package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
  46. package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +2 -1
  47. package/dist/src/renderer/frames/cluster-frame/cluster-frame-child-component-injection-token.d.ts +12 -0
  48. package/dist/src/renderer/frames/cluster-frame/cluster-frame-layout-child-component.injectable.d.ts +6 -0
  49. package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +7 -5
  50. package/dist/src/renderer/frames/root-frame/root-frame-child-component-injection-token.d.ts +12 -0
  51. package/dist/src/renderer/frames/root-frame/setup-system-ca.injectable.d.ts +4 -0
  52. package/dist/src/renderer/port-forward/port-forward-dialog-cluster-frame-child-component.injectable.d.ts +7 -0
  53. package/package.json +2 -1
  54. package/dist/src/common/application-update/application-update-status-channel.injectable.d.ts +0 -9
  55. package/dist/src/common/ask-boolean/ask-boolean-answer-channel.injectable.d.ts +0 -7
  56. package/dist/src/common/ask-boolean/ask-boolean-question-channel.injectable.d.ts +0 -9
  57. package/dist/src/main/application-update/check-for-updates/broadcast-change-in-updating-status.injectable.d.ts +0 -3
  58. package/dist/src/renderer/application-update/application-update-status-listener.injectable.d.ts +0 -4
  59. package/dist/src/renderer/ask-boolean/ask-boolean-question-channel-listener.injectable.d.ts +0 -4
  60. 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;
@@ -10,11 +10,11 @@ import type { TooltipProps } from "../tooltip";
10
10
  import * as Validators from "./input_validators";
11
11
  import type { InputValidator, InputValidation, InputValidationResult, SyncValidationMessage } from "./input_validators";
12
12
  declare const asyncInputValidator: typeof Validators.asyncInputValidator, inputValidator: typeof Validators.inputValidator, isAsyncValidator: typeof Validators.isAsyncValidator, unionInputValidatorsAsync: typeof Validators.unionInputValidatorsAsync, InputValidators: {
13
- unionInputValidators(baseValidator: Pick<Validators.InputValidator<false>, "message" | "condition">, ...validators: Validators.InputValidator<false>[]): Validators.InputValidator<false>;
14
- isRequired: Validators.InputValidator<false>;
15
- isEmail: Validators.InputValidator<false>;
16
- isNumber: Validators.InputValidator<false>;
17
- isUrl: Validators.InputValidator<false>;
13
+ unionInputValidators(baseValidator: Pick<Validators.SyncInputValidator, "message" | "condition">, ...validators: Validators.SyncInputValidator[]): Validators.SyncInputValidator;
14
+ isRequired: Validators.SyncInputValidator;
15
+ isEmail: Validators.SyncInputValidator;
16
+ isNumber: Validators.SyncInputValidator;
17
+ isUrl: Validators.SyncInputValidator;
18
18
  isExtensionNameInstallRegex: {
19
19
  isMatch(val: string): boolean;
20
20
  captures(val: string): {
@@ -22,12 +22,12 @@ declare const asyncInputValidator: typeof Validators.asyncInputValidator, inputV
22
22
  version?: string | undefined;
23
23
  } | undefined;
24
24
  };
25
- isExtensionNameInstall: Validators.InputValidator<false>;
26
- isPath: Validators.InputValidator<true>;
27
- minLength: Validators.InputValidator<false>;
28
- maxLength: Validators.InputValidator<false>;
29
- systemName: Validators.InputValidator<false>;
30
- accountId: Validators.InputValidator<false>;
25
+ isExtensionNameInstall: Validators.SyncInputValidator;
26
+ isPath: Validators.AsyncInputValidator;
27
+ minLength: Validators.SyncInputValidator;
28
+ maxLength: Validators.SyncInputValidator;
29
+ systemName: Validators.SyncInputValidator;
30
+ accountId: Validators.SyncInputValidator;
31
31
  };
32
32
  export { InputValidators, asyncInputValidator, inputValidator, isAsyncValidator, unionInputValidatorsAsync, };
33
33
  export type { InputValidator, InputValidation, InputValidationResult, SyncValidationMessage, };
@@ -8,41 +8,62 @@ import type { SetRequired } from "type-fest";
8
8
  export declare type InputValidationResult<IsAsync extends boolean> = IsAsync extends true ? Promise<void> : boolean;
9
9
  export declare type InputValidation<IsAsync extends boolean> = (value: string, props?: InputProps) => InputValidationResult<IsAsync>;
10
10
  export declare type SyncValidationMessage = React.ReactNode | ((value: string, props?: InputProps) => React.ReactNode);
11
- export declare type InputValidator<IsAsync extends boolean = boolean> = {
11
+ /**
12
+ * @deprecated This type is not as type safe as it is possible to specify an async input validator without specifying a `debounce` time.
13
+ *
14
+ * Use {@link asyncInputValidator} or {@link inputValidator} instead to create validators
15
+ */
16
+ export interface LegacyInputValidator {
12
17
  /**
13
18
  * Filters itself based on the input props
14
19
  */
15
20
  condition?: (props: InputProps) => any;
16
- } & (IsAsync extends true ? {
21
+ validate: InputValidation<boolean>;
22
+ message?: SyncValidationMessage;
23
+ debounce?: number;
24
+ }
25
+ export interface AsyncInputValidator {
17
26
  /**
18
- * The validation message maybe either specified from the `message` field (higher priority)
19
- * or if that is not provided then the message will retrived from the rejected with value
27
+ * Filters itself based on the input props
20
28
  */
29
+ condition?: (props: InputProps) => any;
21
30
  validate: InputValidation<true>;
22
31
  message?: SyncValidationMessage;
23
32
  debounce: number;
24
- } : {
33
+ }
34
+ export interface SyncInputValidator {
35
+ /**
36
+ * Filters itself based on the input props
37
+ */
38
+ condition?: (props: InputProps) => any;
25
39
  validate: InputValidation<false>;
26
40
  message: SyncValidationMessage;
27
41
  debounce?: undefined;
28
- });
29
- export declare function isAsyncValidator(validator: InputValidator<boolean>): validator is InputValidator<true>;
30
- export declare function asyncInputValidator(validator: InputValidator<true>): InputValidator<true>;
31
- export declare function inputValidator(validator: InputValidator<false>): InputValidator<false>;
42
+ }
43
+ export declare type InputValidator<IsAsync extends boolean = boolean> = SyncInputValidator | AsyncInputValidator | (IsAsync extends boolean ? LegacyInputValidator : never);
44
+ export declare function isAsyncValidator(validator: InputValidator): validator is AsyncInputValidator;
45
+ /**
46
+ * A helper function to create an {@link AsyncInputValidator}
47
+ */
48
+ export declare function asyncInputValidator(validator: AsyncInputValidator): AsyncInputValidator;
49
+ /**
50
+ * A helper function to create an {@link SyncInputValidator}
51
+ */
52
+ export declare function inputValidator(validator: SyncInputValidator): SyncInputValidator;
32
53
  /**
33
54
  * Create a new input validator from a list of syncronous input validators. Will match as valid if
34
55
  * one of the input validators matches the input
35
56
  */
36
- export declare function unionInputValidators(baseValidator: Pick<InputValidator<false>, "condition" | "message">, ...validators: InputValidator<false>[]): InputValidator<false>;
57
+ export declare function unionInputValidators(baseValidator: Pick<SyncInputValidator, "condition" | "message">, ...validators: SyncInputValidator[]): SyncInputValidator;
37
58
  /**
38
59
  * Create a new input validator from a list of syncronous or async input validators. Will match as
39
60
  * valid if one of the input validators matches the input
40
61
  */
41
- export declare function unionInputValidatorsAsync(baseValidator: SetRequired<Pick<InputValidator<boolean>, "condition" | "message">, "message">, ...validators: InputValidator<boolean>[]): InputValidator<true>;
42
- export declare const isRequired: InputValidator<false>;
43
- export declare const isEmail: InputValidator<false>;
44
- export declare const isNumber: InputValidator<false>;
45
- export declare const isUrl: InputValidator<false>;
62
+ export declare function unionInputValidatorsAsync(baseValidator: SetRequired<Pick<InputValidator, "condition" | "message">, "message">, ...validators: InputValidator[]): AsyncInputValidator;
63
+ export declare const isRequired: SyncInputValidator;
64
+ export declare const isEmail: SyncInputValidator;
65
+ export declare const isNumber: SyncInputValidator;
66
+ export declare const isUrl: SyncInputValidator;
46
67
  /**
47
68
  * NOTE: this cast is needed because of two bugs in the typed regex package
48
69
  * - https://github.com/phenax/typed-regex/issues/6
@@ -55,10 +76,10 @@ export declare const isExtensionNameInstallRegex: {
55
76
  version?: string;
56
77
  };
57
78
  };
58
- export declare const isExtensionNameInstall: InputValidator<false>;
59
- export declare const isPath: InputValidator<true>;
60
- export declare const minLength: InputValidator<false>;
61
- export declare const maxLength: InputValidator<false>;
62
- export declare const systemName: InputValidator<false>;
63
- export declare const accountId: InputValidator<false>;
64
- export declare const conditionalValidators: InputValidator<false>[];
79
+ export declare const isExtensionNameInstall: SyncInputValidator;
80
+ export declare const isPath: AsyncInputValidator;
81
+ export declare const minLength: SyncInputValidator;
82
+ export declare const maxLength: SyncInputValidator;
83
+ export declare const systemName: SyncInputValidator;
84
+ export declare const accountId: SyncInputValidator;
85
+ export declare const conditionalValidators: SyncInputValidator[];
@@ -1,2 +1,2 @@
1
- declare const isPathInjectable: import("@ogre-tools/injectable").Injectable<import("../input_validators").InputValidator<true>, unknown, void>;
1
+ declare const isPathInjectable: import("@ogre-tools/injectable").Injectable<import("../input_validators").AsyncInputValidator, unknown, void>;
2
2
  export default isPathInjectable;
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) OpenLens Authors. All rights reserved.
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
- declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("../input_validators").InputValidator<false>, unknown, void>;
5
+ declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("../input_validators").SyncInputValidator, unknown, void>;
6
6
  export default uniqueHotbarNameInjectable;
@@ -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, "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" | "switchBase" | "thumb" | "focusVisible">>;
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,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.21109f36ca.0",
5
+ "version": "5.6.0-git.26127fe906.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
  }