@k8slens/extensions 6.1.1-git.a7ea891458.0 → 6.1.1-git.b193621a68.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 (130) hide show
  1. package/dist/src/common/app-paths/app-paths-channel.d.ts +8 -0
  2. package/dist/src/common/application-update/restart-and-install-update-channel.d.ts +7 -0
  3. package/dist/src/common/fetch/download-binary.injectable.d.ts +8 -0
  4. package/dist/src/common/fetch/download-json.injectable.d.ts +8 -0
  5. package/dist/src/common/fetch/fetch.injectable.d.ts +2 -2
  6. package/dist/src/common/fetch/timeout-controller.d.ts +9 -0
  7. package/dist/src/common/front-end-routing/app-navigation-channel.d.ts +3 -0
  8. package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.d.ts +3 -0
  9. package/dist/src/common/front-end-routing/routes/cluster/config/leases/leases-route.injectable.d.ts +6 -0
  10. package/dist/src/common/front-end-routing/routes/cluster/config/leases/navigate-to-leases.injectable.d.ts +2 -0
  11. package/dist/src/common/fs/exec-file.injectable.d.ts +7 -1
  12. package/dist/src/common/helm/{add-helm-repository-channel.injectable.d.ts → add-helm-repository-channel.d.ts} +6 -3
  13. package/dist/src/common/helm/get-active-helm-repositories-channel.d.ts +9 -0
  14. package/dist/src/common/helm/remove-helm-repository-channel.d.ts +9 -0
  15. package/dist/src/common/k8s-api/endpoints/index.d.ts +1 -0
  16. package/dist/src/common/k8s-api/endpoints/lease.api.d.ts +28 -0
  17. package/dist/src/common/k8s-api/endpoints/lease.api.injectable.d.ts +3 -0
  18. package/dist/src/common/rbac.d.ts +1 -1
  19. package/dist/src/common/root-frame/root-frame-rendered-channel.d.ts +7 -0
  20. package/dist/src/common/user-store/resolved-shell.injectable.d.ts +2 -0
  21. package/dist/src/common/utils/channel/enlist-message-channel-listener-injection-token.d.ts +3 -3
  22. package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +6 -0
  23. package/dist/src/common/utils/channel/message-channel-listener-injection-token.d.ts +24 -6
  24. package/dist/src/common/utils/channel/message-to-channel-injection-token.d.ts +5 -6
  25. package/dist/src/common/utils/channel/request-channel-listener-injection-token.d.ts +8 -6
  26. package/dist/src/common/utils/channel/request-from-channel-injection-token.d.ts +5 -3
  27. package/dist/src/common/utils/disposer.d.ts +2 -1
  28. package/dist/src/common/utils/index.d.ts +0 -1
  29. package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.d.ts +7 -0
  30. package/dist/src/common/utils/sync-box/channel-listener.injectable.d.ts +8 -0
  31. package/dist/src/common/utils/sync-box/channels.d.ts +16 -0
  32. package/dist/src/common/utils/sync-box/handler.injectable.d.ts +5 -0
  33. package/dist/src/common/utils/type-narrowing.d.ts +1 -1
  34. package/dist/src/common/vars/build-semantic-version.injectable.d.ts +1 -1
  35. package/dist/src/extensions/extension-api.js +75 -53
  36. package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.d.ts +8 -0
  37. package/dist/src/features/cluster/delete-dialog/common/delete-channel.d.ts +8 -0
  38. package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.d.ts +8 -0
  39. package/dist/src/features/cluster/delete-dialog/main/clear-as-deleting-channel-listener.injectable.d.ts +5 -0
  40. package/dist/src/features/cluster/delete-dialog/main/delete-channel-listener.injectable.d.ts +5 -0
  41. package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-listener.injectable.d.ts +5 -0
  42. package/dist/src/features/navigation/reload-page/common/channel.d.ts +7 -0
  43. package/dist/src/features/navigation/reload-page/renderer/register-listener.global-override-for-injectable.d.ts +15 -0
  44. package/dist/src/features/navigation/reload-page/renderer/register-listener.injectable.d.ts +5 -0
  45. package/dist/src/main/app-paths/app-paths-request-channel-listener.injectable.d.ts +4 -3
  46. package/dist/src/main/application-update/restart-and-install-update/restart-and-install-update-listener.injectable.d.ts +3 -3
  47. package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -5
  48. package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +1 -1
  49. package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository-channel-listener.injectable.d.ts +3 -3
  50. package/dist/src/main/helm/repositories/get-active-helm-repositories/get-active-helm-repositories-channel-listener.injectable.d.ts +3 -3
  51. package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository-channel-listener.injectable.d.ts +3 -3
  52. package/dist/src/main/{utils/channel/message-to-channel.test.d.ts → shell-session/local-shell-session/techincal.test.d.ts} +0 -0
  53. package/dist/src/main/shell-session/shell-session.d.ts +11 -3
  54. package/dist/src/main/shell-session/spawn-pty.global-override-for-injectable.d.ts +5 -0
  55. package/dist/src/main/shell-session/spawn-pty.injectable.d.ts +11 -0
  56. package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +1 -1
  57. package/dist/src/main/start-main-application/runnables/{root-frame-rendered-channel-listener/root-frame-rendered-channel-listener.injectable.d.ts → root-frame-has-rendered/channel-listener.injectable.d.ts} +3 -3
  58. package/dist/src/main/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
  59. package/dist/src/main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +5 -1
  60. package/dist/src/main/utils/channel/channel-listeners/listener-tokens.d.ts +20 -0
  61. package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +6 -0
  62. package/dist/src/main/utils/channel/channel-listeners/{start-listening-of-channels.injectable.d.ts → start-listening-on-channels.injectable.d.ts} +2 -2
  63. package/dist/src/main/utils/channel/message-to-channel.injectable.d.ts +2 -2
  64. package/dist/src/main/utils/clear-kube-env-vars.d.ts +1 -1
  65. package/dist/src/main/utils/resolve-system-proxy/resolve-system-proxy-channel-responder.injectable.d.ts +3 -3
  66. package/dist/src/main/utils/shell-env/compute-shell-environment.injectable.d.ts +9 -0
  67. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.global-override-for-injectable.d.ts +9 -0
  68. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +7 -0
  69. package/dist/src/main/utils/sync-box/sync-box-initial-value-channel-listener.injectable.d.ts +7 -4
  70. package/dist/src/renderer/{utils/channel/request-from-channel.test.d.ts → components/+config-leases/index.d.ts} +2 -1
  71. package/dist/src/renderer/components/+config-leases/lease-details.d.ts +13 -0
  72. package/dist/src/renderer/components/+config-leases/leases-route-component.injectable.d.ts +13 -0
  73. package/dist/src/renderer/components/+config-leases/leases-sidebar-items.injectable.d.ts +10 -0
  74. package/dist/src/renderer/components/+config-leases/leases.d.ts +11 -0
  75. package/dist/src/renderer/components/+config-leases/store.d.ts +8 -0
  76. package/dist/src/renderer/components/+config-leases/store.injectable.d.ts +3 -0
  77. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +8 -1
  78. package/dist/src/renderer/components/+extensions/attempt-install/{create-temp-files-and-validate/create-temp-files-and-validate.injectable.d.ts → create-temp-files-and-validate.injectable.d.ts} +4 -4
  79. package/dist/src/renderer/components/+extensions/attempt-install/{get-extension-dest-folder/get-extension-dest-folder.injectable.d.ts → get-extension-dest-folder.injectable.d.ts} +1 -1
  80. package/dist/src/renderer/components/+extensions/attempt-install/{unpack-extension/unpack-extension.injectable.d.ts → unpack-extension.injectable.d.ts} +2 -2
  81. package/dist/src/renderer/components/+extensions/attempt-install/validate-package.d.ts +6 -0
  82. package/dist/src/renderer/components/+extensions/{attempt-installs/attempt-installs.injectable.d.ts → attempt-installs.injectable.d.ts} +0 -0
  83. package/dist/src/renderer/components/+extensions/install-on-drop.injectable.d.ts +3 -0
  84. package/dist/src/renderer/components/input/input.d.ts +2 -1
  85. package/dist/src/renderer/components/kube-object-details/kube-object-detail-items/implementations/lease-detail-item.injectable.d.ts +7 -0
  86. package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +1 -0
  87. package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +6 -2
  88. package/dist/src/renderer/navigation/events.d.ts +0 -1
  89. package/dist/src/renderer/navigation/navigation-channel-listener.injectable.d.ts +3 -2
  90. package/dist/src/renderer/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
  91. package/dist/src/renderer/utils/channel/message-to-channel.injectable.d.ts +2 -2
  92. package/dist/src/renderer/utils/channel/request-from-channel.injectable.d.ts +2 -1
  93. package/dist/src/renderer/utils/channel/send-to-main.injectable.d.ts +1 -2
  94. package/dist/src/renderer/utils/resolve-proxy/resolve-system-proxy.injectable.d.ts +1 -1
  95. package/dist/src/test-utils/channel-fakes/override-channels.d.ts +6 -1
  96. package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +6 -1
  97. package/package.json +1 -1
  98. package/dist/src/common/app-paths/app-paths-channel.injectable.d.ts +0 -5
  99. package/dist/src/common/application-update/restart-and-install-update-channel/restart-and-install-update-channel.injectable.d.ts +0 -4
  100. package/dist/src/common/front-end-routing/app-navigation-channel.injectable.d.ts +0 -4
  101. package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.injectable.d.ts +0 -4
  102. package/dist/src/common/helm/get-active-helm-repositories-channel.injectable.d.ts +0 -6
  103. package/dist/src/common/helm/remove-helm-repository-channel.injectable.d.ts +0 -5
  104. package/dist/src/common/root-frame-rendered-channel/root-frame-rendered-channel.injectable.d.ts +0 -4
  105. package/dist/src/common/utils/channel/enlist-request-channel-listener-injection-token.d.ts +0 -4
  106. package/dist/src/common/utils/channel/listening-of-channels.injectable.d.ts +0 -6
  107. package/dist/src/common/utils/channel/message-channel-injection-token.d.ts +0 -10
  108. package/dist/src/common/utils/channel/request-channel-injection-token.d.ts +0 -11
  109. package/dist/src/common/utils/downloadFile.d.ts +0 -18
  110. package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.injectable.d.ts +0 -4
  111. package/dist/src/common/utils/sync-box/sync-box-channel-listener.injectable.d.ts +0 -4
  112. package/dist/src/common/utils/sync-box/sync-box-channel.injectable.d.ts +0 -7
  113. package/dist/src/common/utils/sync-box/sync-box-initial-value-channel.injectable.d.ts +0 -7
  114. package/dist/src/common/utils/tentative-parse-json.d.ts +0 -1
  115. package/dist/src/common/utils/tentative-stringify-json.d.ts +0 -1
  116. package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.injectable.d.ts +0 -5
  117. package/dist/src/features/cluster/delete-dialog/common/delete-channel.injectable.d.ts +0 -5
  118. package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.injectable.d.ts +0 -5
  119. package/dist/src/features/cluster/delete-dialog/main/clear-as-deleteing-channel-handler.injectable.d.ts +0 -5
  120. package/dist/src/features/cluster/delete-dialog/main/delete-channel-handler.injectable.d.ts +0 -5
  121. package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-handler.injectable.d.ts +0 -5
  122. package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +0 -4
  123. package/dist/src/main/utils/shell-env.d.ts +0 -15
  124. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +0 -22
  125. package/dist/src/renderer/components/+extensions/attempt-install/install-request.d.ts +0 -9
  126. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +0 -6
  127. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +0 -5
  128. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +0 -2
  129. package/dist/src/renderer/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +0 -2
  130. package/dist/src/renderer/utils/channel/message-to-channel.test.d.ts +0 -5
@@ -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 { ClusterId } from "../../../../common/cluster-types";
6
+ import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
7
+ export declare type ClearClusterAsDeletingChannel = RequestChannel<ClusterId, void>;
8
+ export declare const clearClusterAsDeletingChannel: ClearClusterAsDeletingChannel;
@@ -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 { ClusterId } from "../../../../common/cluster-types";
6
+ import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
7
+ export declare type DeleteClusterChannel = RequestChannel<ClusterId, void>;
8
+ export declare const deleteClusterChannel: DeleteClusterChannel;
@@ -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 { ClusterId } from "../../../../common/cluster-types";
6
+ import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
7
+ export declare type SetClusterAsDeletingChannel = RequestChannel<ClusterId, void>;
8
+ export declare const setClusterAsDeletingChannel: SetClusterAsDeletingChannel;
@@ -0,0 +1,5 @@
1
+ declare const clearClusterAsDeletingChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../common/clear-as-deleting-channel").ClearClusterAsDeletingChannel;
3
+ handler: (req: string) => void | Promise<void>;
4
+ }, import("../../../../main/utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default clearClusterAsDeletingChannelListenerInjectable;
@@ -0,0 +1,5 @@
1
+ declare const deleteClusterChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../common/delete-channel").DeleteClusterChannel;
3
+ handler: (req: string) => void | Promise<void>;
4
+ }, import("../../../../main/utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default deleteClusterChannelListenerInjectable;
@@ -0,0 +1,5 @@
1
+ declare const setClusterAsDeletingChannelHandlerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../common/set-as-deleting-channel").SetClusterAsDeletingChannel;
3
+ handler: (req: string) => void | Promise<void>;
4
+ }, import("../../../../main/utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default setClusterAsDeletingChannelHandlerInjectable;
@@ -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 { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token";
6
+ export declare type ReloadPageChannel = MessageChannel<void>;
7
+ export declare const reloadPageChannel: ReloadPageChannel;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ declare const _default: {
6
+ injectable: import("@ogre-tools/injectable").Injectable<{
7
+ channel: import("../common/channel").ReloadPageChannel;
8
+ handler: (message: void) => void;
9
+ }, import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
10
+ overridingInstantiate: import("@ogre-tools/injectable").Instantiate<{
11
+ channel: import("../common/channel").ReloadPageChannel;
12
+ handler: (message: void) => void;
13
+ }, void>;
14
+ };
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const reloadPageChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../common/channel").ReloadPageChannel;
3
+ handler: (message: void) => void;
4
+ }, import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
5
+ export default reloadPageChannelListenerInjectable;
@@ -1,4 +1,5 @@
1
- import type { RequestChannelListener } from "../../common/utils/channel/request-channel-listener-injection-token";
2
- import type { AppPathsChannel } from "../../common/app-paths/app-paths-channel.injectable";
3
- declare const appPathsRequestChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<RequestChannelListener<AppPathsChannel>, RequestChannelListener<import("../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
1
+ declare const appPathsRequestChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../../common/app-paths/app-paths-channel").AppPathsChannel;
3
+ handler: (req: void) => import("../../common/app-paths/app-path-injection-token").AppPaths | Promise<import("../../common/app-paths/app-path-injection-token").AppPaths>;
4
+ }, import("../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
4
5
  export default appPathsRequestChannelListenerInjectable;
@@ -1,5 +1,5 @@
1
1
  declare const restartAndInstallUpdateListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../common/application-update/restart-and-install-update-channel/restart-and-install-update-channel.injectable").RestartAndInstallUpdateChannel;
3
- handler: () => void;
4
- }, import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../common/utils/channel/message-channel-injection-token").MessageChannel<any>>, void>;
2
+ channel: import("../../../common/application-update/restart-and-install-update-channel").RestartAndInstallUpdateChannel;
3
+ handler: (message: void) => void;
4
+ }, import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
5
5
  export default restartAndInstallUpdateListenerInjectable;
@@ -1,5 +1,5 @@
1
- declare const setupBuildVersionRequestChannelInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../common/utils/channel/request-channel-injection-token").RequestChannel<void, string>;
3
- handler: () => string;
4
- }, import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
5
- export default setupBuildVersionRequestChannelInjectable;
1
+ declare const buildVersionChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<void, string>;
3
+ handler: (req: void) => string | Promise<string>;
4
+ }, import("../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default buildVersionChannelListenerInjectable;
@@ -1,4 +1,4 @@
1
1
  import type { AsyncResult } from "../../../common/utils/async-result";
2
- export declare type ExecHelm = (args: string[]) => Promise<AsyncResult<string>>;
2
+ export declare type ExecHelm = (args: string[]) => Promise<AsyncResult<string, string>>;
3
3
  declare const execHelmInjectable: import("@ogre-tools/injectable").Injectable<ExecHelm, unknown, void>;
4
4
  export default execHelmInjectable;
@@ -1,5 +1,5 @@
1
1
  declare const addHelmRepositoryChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../../common/helm/add-helm-repository-channel.injectable").AddHelmRepositoryChannel;
3
- handler: (repo: import("../../../../common/helm/helm-repo").HelmRepo) => Promise<import("../../../../common/utils/async-result").AsyncResult<string, string>>;
4
- }, import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
2
+ channel: import("../../../../common/helm/add-helm-repository-channel").AddHelmRepositoryChannel;
3
+ handler: (req: import("../../../../common/helm/helm-repo").HelmRepo) => import("../../../../common/utils/async-result").AsyncResult<string, string> | Promise<import("../../../../common/utils/async-result").AsyncResult<string, string>>;
4
+ }, import("../../../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
5
  export default addHelmRepositoryChannelListenerInjectable;
@@ -1,5 +1,5 @@
1
1
  declare const getActiveHelmRepositoriesChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../../common/helm/get-active-helm-repositories-channel.injectable").GetHelmRepositoriesChannel;
3
- handler: () => Promise<import("../../../../common/utils/async-result").AsyncResult<import("../../../../common/helm/helm-repo").HelmRepo[], string>>;
4
- }, import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
2
+ channel: import("../../../../common/helm/get-active-helm-repositories-channel").GetActiveHelmRepositoriesChannel;
3
+ handler: (req: void) => import("../../../../common/utils/async-result").AsyncResult<import("../../../../common/helm/helm-repo").HelmRepo[], string> | Promise<import("../../../../common/utils/async-result").AsyncResult<import("../../../../common/helm/helm-repo").HelmRepo[], string>>;
4
+ }, import("../../../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
5
  export default getActiveHelmRepositoriesChannelListenerInjectable;
@@ -1,5 +1,5 @@
1
1
  declare const removeHelmRepositoryChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../../common/helm/remove-helm-repository-channel.injectable").RemoveHelmRepositoryChannel;
3
- handler: (repo: import("../../../../common/helm/helm-repo").HelmRepo) => Promise<import("../../../../common/utils/async-result").AsyncResult<string, string>>;
4
- }, import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
2
+ channel: import("../../../../common/helm/remove-helm-repository-channel").RemoveHelmRepositoryChannel;
3
+ handler: (req: import("../../../../common/helm/helm-repo").HelmRepo) => import("../../../../common/utils/async-result").AsyncResult<string, string> | Promise<import("../../../../common/utils/async-result").AsyncResult<string, string>>;
4
+ }, import("../../../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
5
  export default removeHelmRepositoryChannelListenerInjectable;
@@ -5,9 +5,12 @@
5
5
  import type { Cluster } from "../../common/cluster/cluster";
6
6
  import type { Kubectl } from "../kubectl/kubectl";
7
7
  import type WebSocket from "ws";
8
- import * as pty from "node-pty";
8
+ import type * as pty from "node-pty";
9
9
  import { type TerminalMessage } from "../../common/terminal/channels";
10
10
  import type { Logger } from "../../common/logger";
11
+ import type { ComputeShellEnvironment } from "../utils/shell-env/compute-shell-environment.injectable";
12
+ import type { SpawnPty } from "./spawn-pty.injectable";
13
+ import type { InitializableState } from "../../common/initializable-state/create";
11
14
  export declare class ShellOpenError extends Error {
12
15
  constructor(message: string, options?: ErrorOptions);
13
16
  }
@@ -90,6 +93,11 @@ export interface ShellSessionDependencies {
90
93
  readonly isWindows: boolean;
91
94
  readonly isMac: boolean;
92
95
  readonly logger: Logger;
96
+ readonly resolvedShell: string | undefined;
97
+ readonly appName: string;
98
+ readonly buildVersion: InitializableState<string>;
99
+ computeShellEnvironment: ComputeShellEnvironment;
100
+ spawnPty: SpawnPty;
93
101
  }
94
102
  export interface ShellSessionArgs {
95
103
  kubectl: Kubectl;
@@ -115,7 +123,7 @@ export declare abstract class ShellSession {
115
123
  protected readonly websocket: WebSocket;
116
124
  protected readonly cluster: Cluster;
117
125
  protected abstract get cwd(): string | undefined;
118
- protected ensureShellProcess(shell: string, args: string[], env: Record<string, string | undefined>, cwd: string): {
126
+ protected ensureShellProcess(shell: string, args: string[], env: Partial<Record<string, string>>, cwd: string): {
119
127
  shellProcess: pty.IPty;
120
128
  resume: boolean;
121
129
  };
@@ -125,6 +133,6 @@ export declare abstract class ShellSession {
125
133
  protected openShellProcess(shell: string, args: string[], env: Record<string, string | undefined>): Promise<void>;
126
134
  protected getPathEntries(): string[];
127
135
  protected getCachedShellEnv(): Promise<Record<string, string | undefined>>;
128
- protected getShellEnv(): Promise<Record<string, any>>;
136
+ protected getShellEnv(): Promise<Partial<Record<string, string>>>;
129
137
  protected exit(code?: WebSocketCloseEvent): void;
130
138
  }
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ injectable: import("@ogre-tools/injectable").Injectable<import("./spawn-pty.injectable").SpawnPty, unknown, void>;
3
+ overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./spawn-pty.injectable").SpawnPty, void>;
4
+ };
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type { IPty, IPtyForkOptions, IWindowsPtyForkOptions } from "node-pty";
2
+ export declare type WindowsSpawnPtyOptions = Omit<IWindowsPtyForkOptions, "env"> & {
3
+ env?: Partial<Record<string, string>>;
4
+ };
5
+ export declare type UnixSpawnPtyOptions = Omit<IPtyForkOptions, "env"> & {
6
+ env?: Partial<Record<string, string>>;
7
+ };
8
+ export declare type SpawnPtyOptions = UnixSpawnPtyOptions | WindowsSpawnPtyOptions;
9
+ export declare type SpawnPty = (file: string, args: string[], options: SpawnPtyOptions) => IPty;
10
+ declare const spawnPtyInjectable: import("@ogre-tools/injectable").Injectable<SpawnPty, unknown, void>;
11
+ export default spawnPtyInjectable;
@@ -11,7 +11,7 @@ export interface ElectronWindow {
11
11
  export interface SendToViewArgs {
12
12
  channel: string;
13
13
  frameInfo?: ClusterFrameInfo;
14
- data?: unknown[];
14
+ data?: unknown;
15
15
  }
16
16
  export interface LensWindow {
17
17
  id: string;
@@ -1,5 +1,5 @@
1
1
  declare const rootFrameRenderedChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../../common/root-frame-rendered-channel/root-frame-rendered-channel.injectable").RootFrameRenderedChannel;
3
- handler: () => Promise<void>;
4
- }, import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../../common/utils/channel/message-channel-injection-token").MessageChannel<any>>, void>;
2
+ channel: import("../../../../common/root-frame/root-frame-rendered-channel").RootFrameHasRenderedChannel;
3
+ handler: (message: void) => void;
4
+ }, import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
5
5
  export default rootFrameRenderedChannelListenerInjectable;
@@ -1,2 +1,2 @@
1
- declare const enlistMessageChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<(<TChannel extends import("../../../../common/utils/channel/message-channel-injection-token").MessageChannel<any>>({ channel, handler }: import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<TChannel>) => () => void), import("../../../../common/utils/channel/enlist-message-channel-listener-injection-token").EnlistMessageChannelListener, void>;
1
+ declare const enlistMessageChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<({ channel, handler }: import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>) => () => void, import("../../../../common/utils/channel/enlist-message-channel-listener-injection-token").EnlistMessageChannelListener, void>;
2
2
  export default enlistMessageChannelListenerInjectable;
@@ -1,2 +1,6 @@
1
- declare const enlistRequestChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<(<TChannel extends import("../../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>({ channel, handler }: import("../../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<TChannel>) => () => void), import("../../../../common/utils/channel/enlist-request-channel-listener-injection-token").EnlistRequestChannelListener, void>;
1
+ import type { Disposer } from "../../../../common/utils";
2
+ import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
3
+ import type { RequestChannelListener } from "./listener-tokens";
4
+ export declare type EnlistRequestChannelListener = <TChannel extends RequestChannel<unknown, unknown>>(listener: RequestChannelListener<TChannel>) => Disposer;
5
+ declare const enlistRequestChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<EnlistRequestChannelListener, unknown, void>;
2
6
  export default enlistRequestChannelListenerInjectable;
@@ -0,0 +1,20 @@
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 { DiContainerForInjection } from "@ogre-tools/injectable";
6
+ import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
7
+ export declare type RequestChannelHandler<Channel> = Channel extends RequestChannel<infer Request, infer Response> ? (req: Request) => Promise<Response> | Response : never;
8
+ export interface RequestChannelListener<Channel> {
9
+ channel: Channel;
10
+ handler: RequestChannelHandler<Channel>;
11
+ }
12
+ export declare const requestChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<RequestChannelListener<RequestChannel<unknown, unknown>>, void>;
13
+ export interface GetRequestChannelListenerInjectableInfo<Channel extends RequestChannel<Request, Response>, Request, Response> {
14
+ channel: Channel;
15
+ handler: (di: DiContainerForInjection) => RequestChannelHandler<Channel>;
16
+ }
17
+ export declare function getRequestChannelListenerInjectable<Channel extends RequestChannel<Request, Response>, Request, Response>(info: GetRequestChannelListenerInjectableInfo<Channel, Request, Response>): import("@ogre-tools/injectable").Injectable<{
18
+ channel: Channel;
19
+ handler: RequestChannelHandler<Channel>;
20
+ }, RequestChannelListener<RequestChannel<unknown, unknown>>, void>;
@@ -0,0 +1,6 @@
1
+ declare const listeningOnRequestChannelsInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ readonly started: boolean;
3
+ start: () => Promise<void>;
4
+ stop: () => Promise<void>;
5
+ }, unknown, void>;
6
+ export default listeningOnRequestChannelsInjectable;
@@ -1,5 +1,5 @@
1
- declare const startListeningOfChannelsInjectable: import("@ogre-tools/injectable").Injectable<{
1
+ declare const startListeningOnChannelsInjectable: import("@ogre-tools/injectable").Injectable<{
2
2
  id: string;
3
3
  run: () => Promise<void>;
4
4
  }, import("../../../../common/runnable/run-many-for").Runnable<void>, void>;
5
- export default startListeningOfChannelsInjectable;
5
+ export default startListeningOnChannelsInjectable;
@@ -1,3 +1,3 @@
1
- import type { MessageChannel } from "../../../common/utils/channel/message-channel-injection-token";
2
- declare const messageToChannelInjectable: import("@ogre-tools/injectable").Injectable<(channel: MessageChannel<any>, message?: unknown) => void, import("../../../common/utils/channel/message-to-channel-injection-token").MessageToChannel, void>;
1
+ import type { SendMessageToChannel } from "../../../common/utils/channel/message-to-channel-injection-token";
2
+ declare const messageToChannelInjectable: import("@ogre-tools/injectable").Injectable<SendMessageToChannel, SendMessageToChannel, void>;
3
3
  export default messageToChannelInjectable;
@@ -10,4 +10,4 @@
10
10
  * before KUBECONFIG and we only set KUBECONFIG.
11
11
  * @param env The current copy of env
12
12
  */
13
- export declare function clearKubeconfigEnvVars(env: Record<string, any>): Record<string, any>;
13
+ export declare function clearKubeconfigEnvVars(env: Partial<Record<string, string>>): Partial<Record<string, string>>;
@@ -1,5 +1,5 @@
1
1
  declare const resolveSystemProxyChannelResponderInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../common/utils/resolve-system-proxy/resolve-system-proxy-channel.injectable").ResolveSystemProxyChannel;
3
- handler: (url: string) => Promise<string>;
4
- }, import("../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
2
+ channel: import("../../../common/utils/resolve-system-proxy/resolve-system-proxy-channel").ResolveSystemProxyChannel;
3
+ handler: (req: string) => string | Promise<string>;
4
+ }, import("../channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
5
  export default resolveSystemProxyChannelResponderInjectable;
@@ -0,0 +1,9 @@
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 { AsyncResult } from "../../../common/utils/async-result";
6
+ export declare type EnvironmentVariables = Partial<Record<string, string>>;
7
+ export declare type ComputeShellEnvironment = (shell: string) => Promise<AsyncResult<EnvironmentVariables | undefined, string>>;
8
+ declare const computeShellEnvironmentInjectable: import("@ogre-tools/injectable").Injectable<ComputeShellEnvironment, unknown, void>;
9
+ export default computeShellEnvironmentInjectable;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ declare const _default: {
6
+ injectable: import("@ogre-tools/injectable").Injectable<import("./compute-unix-shell-environment.injectable").ComputeUnixShellEnvironment, unknown, void>;
7
+ overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./compute-unix-shell-environment.injectable").ComputeUnixShellEnvironment, void>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { EnvironmentVariables } from "./compute-shell-environment.injectable";
2
+ interface UnixShellEnvOptions {
3
+ signal?: AbortSignal;
4
+ }
5
+ export declare type ComputeUnixShellEnvironment = (shell: string, opts?: UnixShellEnvOptions) => Promise<EnvironmentVariables>;
6
+ declare const computeUnixShellEnvironmentInjectable: import("@ogre-tools/injectable").Injectable<ComputeUnixShellEnvironment, unknown, void>;
7
+ export default computeUnixShellEnvironmentInjectable;
@@ -1,8 +1,11 @@
1
1
  declare const syncBoxInitialValueChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
- channel: import("../../../common/utils/sync-box/sync-box-initial-value-channel.injectable").SyncBoxInitialValueChannel;
3
- handler: () => {
2
+ channel: import("../../../common/utils/sync-box/channels").SyncBoxInitialValueChannel;
3
+ handler: (req: void) => {
4
4
  id: string;
5
5
  value: any;
6
- }[];
7
- }, import("../../../common/utils/channel/request-channel-listener-injection-token").RequestChannelListener<import("../../../common/utils/channel/request-channel-injection-token").RequestChannel<any, any>>, void>;
6
+ }[] | Promise<{
7
+ id: string;
8
+ value: any;
9
+ }[]>;
10
+ }, import("../channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
8
11
  export default syncBoxInitialValueChannelListenerInjectable;
@@ -2,4 +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
- export {};
5
+ export * from "./leases";
6
+ export * from "./lease-details";
@@ -0,0 +1,13 @@
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 "./lease-details.scss";
6
+ import React from "react";
7
+ import type { KubeObjectDetailsProps } from "../kube-object-details";
8
+ import type { Lease } from "../../../common/k8s-api/endpoints";
9
+ export interface LeaseDetailsProps extends KubeObjectDetailsProps<Lease> {
10
+ }
11
+ export declare class LeaseDetails extends React.Component<LeaseDetailsProps> {
12
+ render(): JSX.Element;
13
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare const leasesRouteComponentInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ route: {
4
+ path: string;
5
+ clusterFrame: boolean;
6
+ isEnabled: import("mobx").IComputedValue<boolean>;
7
+ };
8
+ Component: import("react").FunctionComponent<import("./leases").LeaseProps>;
9
+ }, {
10
+ route: import("../../../common/front-end-routing/front-end-route-injection-token").Route<unknown>;
11
+ Component: import("react").ElementType<any>;
12
+ }, void>;
13
+ export default leasesRouteComponentInjectable;
@@ -0,0 +1,10 @@
1
+ declare const leasesSidebarItemsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<{
2
+ id: string;
3
+ parentId: string;
4
+ title: string;
5
+ onClick: () => void;
6
+ isActive: import("mobx").IComputedValue<boolean>;
7
+ isVisible: import("mobx").IComputedValue<boolean>;
8
+ orderNumber: number;
9
+ }[]>, import("mobx").IComputedValue<import("../layout/sidebar-items.injectable").SidebarItemRegistration[]>, void>;
10
+ export default leasesSidebarItemsInjectable;
@@ -0,0 +1,11 @@
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 "./leases.scss";
6
+ import * as React from "react";
7
+ import type { Lease } from "../../../common/k8s-api/endpoints/lease.api";
8
+ import type { KubeObjectDetailsProps } from "../kube-object-details";
9
+ export interface LeaseProps extends KubeObjectDetailsProps<Lease> {
10
+ }
11
+ export declare const Leases: React.FunctionComponent<LeaseProps>;
@@ -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 { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
6
+ import type { Lease, LeaseApi } from "../../../common/k8s-api/endpoints/lease.api";
7
+ export declare class LeaseStore extends KubeObjectStore<Lease, LeaseApi> {
8
+ }
@@ -0,0 +1,3 @@
1
+ import { LeaseStore } from "./store";
2
+ declare const leaseStoreInjectable: import("@ogre-tools/injectable").Injectable<LeaseStore, import("../../../common/k8s-api/kube-object.store").KubeObjectStore<any, any, any>, void>;
3
+ export default leaseStoreInjectable;
@@ -1,2 +1,9 @@
1
- declare const attemptInstallInjectable: import("@ogre-tools/injectable").Injectable<(request: import("./install-request").InstallRequest, d?: import("../../../utils").ExtendableDisposer | undefined) => Promise<void>, unknown, void>;
1
+ /// <reference types="node" />
2
+ import type { Disposer } from "../../../../common/utils";
3
+ export interface InstallRequest {
4
+ fileName: string;
5
+ data: Buffer;
6
+ }
7
+ export declare type AttemptInstall = (request: InstallRequest, cleanup?: Disposer) => Promise<void>;
8
+ declare const attemptInstallInjectable: import("@ogre-tools/injectable").Injectable<AttemptInstall, unknown, void>;
2
9
  export default attemptInstallInjectable;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
- import type { LensExtensionId, LensExtensionManifest } from "../../../../../extensions/lens-extension";
3
- import type { InstallRequest } from "../install-request";
2
+ import type { LensExtensionId, LensExtensionManifest } from "../../../../extensions/lens-extension";
3
+ import type { InstallRequest } from "./attempt-install.injectable";
4
4
  export interface InstallRequestValidated {
5
5
  fileName: string;
6
6
  data: Buffer;
@@ -8,6 +8,6 @@ export interface InstallRequestValidated {
8
8
  manifest: LensExtensionManifest;
9
9
  tempFile: string;
10
10
  }
11
- export declare type CreateTempFilesAndValidate = (req: InstallRequest) => Promise<InstallRequestValidated | null>;
12
- declare const createTempFilesAndValidateInjectable: import("@ogre-tools/injectable").Injectable<({ fileName, dataP, }: InstallRequest) => Promise<InstallRequestValidated | null>, unknown, void>;
11
+ export declare type CreateTempFilesAndValidate = (request: InstallRequest) => Promise<InstallRequestValidated | null>;
12
+ declare const createTempFilesAndValidateInjectable: import("@ogre-tools/injectable").Injectable<CreateTempFilesAndValidate, unknown, void>;
13
13
  export default createTempFilesAndValidateInjectable;
@@ -1,3 +1,3 @@
1
- export declare type GetExtensionDestFolder = (extensionName: string) => string;
1
+ export declare type GetExtensionDestFolder = (name: string) => string;
2
2
  declare const getExtensionDestFolderInjectable: import("@ogre-tools/injectable").Injectable<GetExtensionDestFolder, unknown, void>;
3
3
  export default getExtensionDestFolderInjectable;
@@ -1,5 +1,5 @@
1
- import type { InstallRequestValidated } from "../create-temp-files-and-validate/create-temp-files-and-validate.injectable";
2
- import type { Disposer } from "../../../../utils";
1
+ import type { Disposer } from "../../../../common/utils";
2
+ import type { InstallRequestValidated } from "./create-temp-files-and-validate.injectable";
3
3
  export declare type UnpackExtension = (request: InstallRequestValidated, disposeDownloading?: Disposer) => Promise<void>;
4
4
  declare const unpackExtensionInjectable: import("@ogre-tools/injectable").Injectable<UnpackExtension, unknown, void>;
5
5
  export default unpackExtensionInjectable;
@@ -0,0 +1,6 @@
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 { LensExtensionManifest } from "../../../../extensions/lens-extension";
6
+ export declare function validatePackage(filePath: string): Promise<LensExtensionManifest>;
@@ -0,0 +1,3 @@
1
+ export declare type InstallOnDrop = (files: File[]) => Promise<void>;
2
+ declare const installOnDropInjectable: import("@ogre-tools/injectable").Injectable<InstallOnDrop, unknown, void>;
3
+ export default installOnDropInjectable;
@@ -6,6 +6,7 @@
6
6
  import "./input.scss";
7
7
  import type { DOMAttributes, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
8
8
  import React from "react";
9
+ import type { SingleOrMany } from "../../utils";
9
10
  import type { TooltipProps } from "../tooltip";
10
11
  import * as Validators from "./input_validators";
11
12
  import type { InputValidator, InputValidation, InputValidationResult, SyncValidationMessage } from "./input_validators";
@@ -58,7 +59,7 @@ export declare type InputProps = Omit<InputElementProps, "onChange" | "onSubmit"
58
59
  iconLeft?: IconData;
59
60
  iconRight?: IconData;
60
61
  contentRight?: string | React.ReactNode;
61
- validators?: InputValidator<boolean> | InputValidator<boolean>[];
62
+ validators?: SingleOrMany<InputValidator>;
62
63
  blurOnEnter?: boolean;
63
64
  onChange?(value: string, evt: React.ChangeEvent<InputElement>): void;
64
65
  onSubmit?(value: string, evt: React.KeyboardEvent<InputElement>): void;
@@ -0,0 +1,7 @@
1
+ import { LeaseDetails } from "../../../+config-leases";
2
+ declare const leaseDetailItemInjectable: import("@ogre-tools/injectable").Injectable<{
3
+ Component: typeof LeaseDetails;
4
+ enabled: import("mobx").IComputedValue<boolean>;
5
+ orderNumber: number;
6
+ }, import("../kube-object-detail-item-injection-token").KubeObjectDetailItem, void>;
7
+ export default leaseDetailItemInjectable;
@@ -1,6 +1,7 @@
1
1
  import type { IComputedValue } from "mobx";
2
2
  import type React from "react";
3
3
  export interface StatusBarItem {
4
+ origin?: string;
4
5
  component: React.ComponentType<any>;
5
6
  position: "left" | "right";
6
7
  visible: IComputedValue<boolean>;
@@ -1,9 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import type { IComputedValue } from "mobx";
3
3
  import type { StatusBarItemProps } from "./status-bar-registration";
4
+ interface StatusItem {
5
+ origin?: string;
6
+ component: React.ComponentType<StatusBarItemProps>;
7
+ }
4
8
  export interface StatusBarItems {
5
- right: React.ComponentType<StatusBarItemProps>[];
6
- left: React.ComponentType<StatusBarItemProps>[];
9
+ right: StatusItem[];
10
+ left: StatusItem[];
7
11
  }
8
12
  declare const statusBarItemsInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<StatusBarItems>, unknown, void>;
9
13
  export default statusBarItemsInjectable;
@@ -3,7 +3,6 @@
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
5
  export declare const enum IpcRendererNavigationEvents {
6
- RELOAD_PAGE = "renderer:page-reload",
7
6
  CLUSTER_VIEW_CURRENT_ID = "renderer:cluster-id-of-active-view",
8
7
  NAVIGATE_IN_APP = "renderer:navigate",
9
8
  NAVIGATE_IN_CLUSTER = "renderer:navigate-in-cluster",