@k8slens/extensions 6.2.0-git.487079b61f.0 → 6.2.0-git.5ae60e218c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/app-event-bus/app-event-bus.injectable.d.ts +3 -1
- package/dist/src/common/app-event-bus/emit-event.injectable.d.ts +4 -2
- package/dist/src/common/app-event-bus/event-bus.d.ts +3 -2
- package/dist/src/common/cluster-store/cluster-store.d.ts +3 -1
- package/dist/src/common/event-emitter.d.ts +1 -1
- package/dist/src/common/fs/exec-file.injectable.d.ts +2 -3
- package/dist/src/common/helm/add-helm-repository-channel.d.ts +1 -1
- package/dist/src/common/helm/remove-helm-repository-channel.d.ts +1 -1
- package/dist/src/common/runnable/run-many-for.d.ts +4 -0
- package/dist/src/common/runnable/run-many-sync-for.d.ts +11 -3
- package/dist/src/common/user-store/user-store.d.ts +2 -0
- package/dist/src/common/utils/async-result.d.ts +5 -2
- package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +1 -5
- package/dist/src/common/utils/get-startable-stoppable.d.ts +7 -7
- package/dist/src/extensions/common-api/event-bus.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +96 -52
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -0
- package/dist/src/features/application-menu/main/application-menu-reactivity.injectable.d.ts +1 -5
- package/dist/src/features/application-menu/main/stop-application-menu.injectable.d.ts +1 -1
- package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.global-override-for-injectable.d.ts +2 -10
- package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/periodical-check-for-updates.injectable.d.ts +1 -5
- package/dist/src/features/application-update/child-features/periodical-checking-of-updates/main/stop-checking-for-updates.injectable.d.ts +1 -1
- package/dist/src/features/application-update/main/watch-if-update-should-happen-on-quit/stop-watching-if-update-should-happen-on-quit.injectable.d.ts +1 -1
- package/dist/src/features/application-update/main/watch-if-update-should-happen-on-quit/watch-if-update-should-happen-on-quit.injectable.d.ts +1 -5
- package/dist/src/features/cluster/legacy-extension-adding-cluster-frame-components.test.d.ts +1 -0
- package/dist/src/main/app-paths/setup-app-paths.injectable.d.ts +1 -1
- package/dist/src/main/catalog-sync-to-renderer/catalog-sync-to-renderer.injectable.d.ts +1 -5
- package/dist/src/main/catalog-sync-to-renderer/stop-catalog-sync.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/features/sync-theme-from-operating-system.injectable.d.ts +1 -5
- package/dist/src/main/electron-app/runnables/clean-up-deep-linking.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/dock-visibility/hide-dock-for-last-closed-window.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/enforce-single-application-instance.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/setup-application-name.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.d.ts +5 -1
- package/dist/src/main/electron-app/runnables/setup-runnables-after-window-is-opened.injectable.d.ts +1 -1
- package/dist/src/main/electron-app/runnables/setup-runnables-before-closing-of-application.injectable.d.ts +1 -1
- package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +5 -1
- package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository-channel-listener.injectable.d.ts +1 -1
- package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository.injectable.d.ts +1 -2
- package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository-channel-listener.injectable.d.ts +1 -1
- package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository.injectable.d.ts +2 -1
- package/dist/src/main/lens-proxy/lens-proxy.d.ts +4 -0
- package/dist/src/main/resource-applier/create-resource-applier.injectable.d.ts +5 -0
- package/dist/src/main/{resource-applier.d.ts → resource-applier/resource-applier.d.ts} +19 -4
- package/dist/src/main/shell-session/shell-session.d.ts +4 -0
- package/dist/src/main/start-main-application/runnables/clean-up-shell-sessions.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/emit-close-to-event-bus.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/flag-renderer/flag-renderer-as-not-loaded.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/kube-config-sync/stop-kube-config-sync.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/sentry/setup.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/setup-hardware-acceleration.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/setup-immer.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/setup-mobx.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/setup-proxy-env.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/stop-cluster-manager.injectable.d.ts +1 -1
- package/dist/src/main/theme/broadcast-theme-change/broadcast-theme-change.injectable.d.ts +1 -5
- package/dist/src/main/theme/broadcast-theme-change/stop-broadcasting-theme-change.injectable.d.ts +1 -1
- package/dist/src/main/theme/sync-theme-from-os/stop-syncing-theme-from-operating-system.injectable.d.ts +1 -1
- package/dist/src/main/tray/electron-tray/stop-tray.injectable.d.ts +2 -2
- package/dist/src/main/tray/menu-icon/reactive.injectable.d.ts +1 -5
- package/dist/src/main/tray/menu-icon/stop-reactivity.injectable.d.ts +1 -1
- package/dist/src/main/tray/reactive-tray-menu-items/reactive-tray-menu-items.injectable.d.ts +1 -5
- package/dist/src/main/tray/reactive-tray-menu-items/stop-reactive-tray-menu-items.injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +1 -5
- package/dist/src/main/utils/channel/channel-listeners/start-listening-on-channels.injectable.d.ts +1 -1
- package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +3 -2
- package/dist/src/{common/__tests__/event-bus.test.d.ts → main/utils/shell-env/compute-unix-shell-environment.test.d.ts} +0 -0
- package/dist/src/main/utils/shell-env/env.injectable.d.ts +3 -0
- package/dist/src/main/utils/shell-env/execPath.injectable.d.ts +2 -0
- package/dist/src/renderer/frames/cluster-frame/cluster-frame-component-registrator.injectable.d.ts +3 -0
- package/dist/src/renderer/frames/cluster-frame/cluster-frame.d.ts +2 -1
- package/dist/src/renderer/frames/cluster-frame/init-cluster-frame/init-cluster-frame.d.ts +3 -3
- package/dist/src/renderer/utils/jsonPath.d.ts +3 -1
- package/package.json +1 -1
- package/dist/src/common/app-event-bus/app-event-bus.global-override-for-injectable.d.ts +0 -5
- package/dist/src/common/runnable/throw-with-incorrect-hierarchy-for.d.ts +0 -7
@@ -1,2 +1,4 @@
|
|
1
|
-
|
1
|
+
import { EventEmitter } from "../event-emitter";
|
2
|
+
import type { AppEvent } from "./event-bus";
|
3
|
+
declare const appEventBusInjectable: import("@ogre-tools/injectable").Injectable<EventEmitter<[AppEvent]>, unknown, void>;
|
2
4
|
export default appEventBusInjectable;
|
@@ -1,2 +1,4 @@
|
|
1
|
-
|
2
|
-
export
|
1
|
+
import type { AppEvent } from "./event-bus";
|
2
|
+
export declare type EmitAppEvent = (event: AppEvent) => void;
|
3
|
+
declare const emitAppEventInjectable: import("@ogre-tools/injectable").Injectable<EmitAppEvent, unknown, void>;
|
4
|
+
export default emitAppEventInjectable;
|
@@ -2,11 +2,12 @@
|
|
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
|
-
|
5
|
+
/**
|
6
|
+
* Data for telemetry
|
7
|
+
*/
|
6
8
|
export interface AppEvent {
|
7
9
|
name: string;
|
8
10
|
action: string;
|
9
11
|
destination?: string;
|
10
12
|
params?: Record<string, any>;
|
11
13
|
}
|
12
|
-
export declare const appEventBus: EventEmitter<[AppEvent]>;
|
@@ -7,15 +7,17 @@ import { Cluster } from "../cluster/cluster";
|
|
7
7
|
import type { ClusterModel, ClusterId } from "../cluster-types";
|
8
8
|
import type { CreateCluster } from "../cluster/create-cluster-injection-token";
|
9
9
|
import type { ReadClusterConfigSync } from "./read-cluster-config.injectable";
|
10
|
+
import type { EmitAppEvent } from "../app-event-bus/emit-event.injectable";
|
10
11
|
export interface ClusterStoreModel {
|
11
12
|
clusters?: ClusterModel[];
|
12
13
|
}
|
13
14
|
interface Dependencies {
|
14
15
|
createCluster: CreateCluster;
|
15
16
|
readClusterConfigSync: ReadClusterConfigSync;
|
17
|
+
emitAppEvent: EmitAppEvent;
|
16
18
|
}
|
17
19
|
export declare class ClusterStore extends BaseStore<ClusterStoreModel> {
|
18
|
-
private dependencies;
|
20
|
+
private readonly dependencies;
|
19
21
|
readonly displayName = "ClusterStore";
|
20
22
|
clusters: import("mobx").ObservableMap<string, Cluster>;
|
21
23
|
protected disposer: import("../utils").ExtendableDisposer;
|
@@ -12,6 +12,6 @@ export declare class EventEmitter<D extends [...any[]]> {
|
|
12
12
|
addListener(callback: Callback<D>, options?: Options): void;
|
13
13
|
removeListener(callback: Callback<D>): void;
|
14
14
|
removeAllListeners(): void;
|
15
|
-
emit
|
15
|
+
emit(...data: D): void;
|
16
16
|
}
|
17
17
|
export {};
|
@@ -1,10 +1,9 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import type { ExecFileOptions } from "child_process";
|
2
|
+
import type { ExecFileException, ExecFileOptions } from "child_process";
|
3
3
|
import type { AsyncResult } from "../utils/async-result";
|
4
4
|
export interface ExecFile {
|
5
|
-
(filePath: string, args: string[], options
|
5
|
+
(filePath: string, args: string[], options?: ExecFileOptions): Promise<AsyncResult<string, ExecFileException & {
|
6
6
|
stderr: string;
|
7
|
-
error: Error;
|
8
7
|
}>>;
|
9
8
|
}
|
10
9
|
declare const execFileInjectable: import("@ogre-tools/injectable").Injectable<ExecFile, unknown, void>;
|
@@ -5,5 +5,5 @@
|
|
5
5
|
import type { HelmRepo } from "./helm-repo";
|
6
6
|
import type { AsyncResult } from "../utils/async-result";
|
7
7
|
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
8
|
-
export declare type AddHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<string>>;
|
8
|
+
export declare type AddHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<void, string>>;
|
9
9
|
export declare const addHelmRepositoryChannel: AddHelmRepositoryChannel;
|
@@ -5,5 +5,5 @@
|
|
5
5
|
import type { AsyncResult } from "../utils/async-result";
|
6
6
|
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
7
7
|
import type { HelmRepo } from "./helm-repo";
|
8
|
-
export declare type RemoveHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<
|
8
|
+
export declare type RemoveHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<void, string>>;
|
9
9
|
export declare const removeHelmRepositoryChannel: RemoveHelmRepositoryChannel;
|
@@ -1,3 +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
|
+
*/
|
1
5
|
import type { DiContainerForInjection, InjectionToken } from "@ogre-tools/injectable";
|
2
6
|
export interface Runnable<TParameter = void> {
|
3
7
|
id: string;
|
@@ -1,11 +1,19 @@
|
|
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 type { DiContainerForInjection, InjectionToken } from "@ogre-tools/injectable";
|
2
|
-
import type { Runnable } from "./run-many-for";
|
3
6
|
export interface RunnableSync<TParameter = void> {
|
4
7
|
id: string;
|
5
8
|
run: RunSync<TParameter>;
|
6
9
|
runAfter?: RunnableSync<TParameter>;
|
7
10
|
}
|
8
|
-
|
9
|
-
|
11
|
+
/**
|
12
|
+
* NOTE: this is the worse of two evils. This makes sure that `RunnableSync` always is sync.
|
13
|
+
* If the return type is `void` instead then async functions (those return `Promise<T>`) can
|
14
|
+
* coerce to it.
|
15
|
+
*/
|
16
|
+
declare type RunSync<Param> = (parameter: Param) => undefined;
|
17
|
+
export declare type RunManySync = <Param>(injectionToken: InjectionToken<RunnableSync<Param>, void>) => RunSync<Param>;
|
10
18
|
export declare function runManySyncFor(di: DiContainerForInjection): RunManySync;
|
11
19
|
export {};
|
@@ -5,6 +5,7 @@
|
|
5
5
|
import { BaseStore } from "../base-store";
|
6
6
|
import { DESCRIPTORS } from "./preferences-helpers";
|
7
7
|
import type { UserPreferencesModel, StoreType } from "./preferences-helpers";
|
8
|
+
import type { EmitAppEvent } from "../app-event-bus/emit-event.injectable";
|
8
9
|
import type { SelectedUpdateChannel } from "../../features/application-update/common/selected-update-channel/selected-update-channel.injectable";
|
9
10
|
export interface UserStoreModel {
|
10
11
|
lastSeenAppVersion: string;
|
@@ -12,6 +13,7 @@ export interface UserStoreModel {
|
|
12
13
|
}
|
13
14
|
interface Dependencies {
|
14
15
|
readonly selectedUpdateChannel: SelectedUpdateChannel;
|
16
|
+
emitAppEvent: EmitAppEvent;
|
15
17
|
}
|
16
18
|
export declare class UserStore extends BaseStore<UserStoreModel> {
|
17
19
|
private readonly dependencies;
|
@@ -2,10 +2,13 @@
|
|
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 declare type AsyncResult<Response, Error = string> = {
|
5
|
+
export declare type AsyncResult<Response, Error = string> = (Response extends void ? {
|
6
|
+
callWasSuccessful: true;
|
7
|
+
response?: undefined;
|
8
|
+
} : {
|
6
9
|
callWasSuccessful: true;
|
7
10
|
response: Response;
|
8
|
-
} | {
|
11
|
+
}) | {
|
9
12
|
callWasSuccessful: false;
|
10
13
|
error: Error;
|
11
14
|
};
|
@@ -1,6 +1,2 @@
|
|
1
|
-
declare const listeningOnMessageChannelsInjectable: import("@ogre-tools/injectable").Injectable<
|
2
|
-
readonly started: boolean;
|
3
|
-
start: () => Promise<void>;
|
4
|
-
stop: () => Promise<void>;
|
5
|
-
}, unknown, void>;
|
1
|
+
declare const listeningOnMessageChannelsInjectable: import("@ogre-tools/injectable").Injectable<import("../get-startable-stoppable").StartableStoppable, unknown, void>;
|
6
2
|
export default listeningOnMessageChannelsInjectable;
|
@@ -2,11 +2,11 @@
|
|
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 type Stopper = () =>
|
6
|
-
declare type Starter = () =>
|
7
|
-
export
|
5
|
+
export declare type Stopper = () => void;
|
6
|
+
export declare type Starter = () => Stopper;
|
7
|
+
export interface StartableStoppable {
|
8
8
|
readonly started: boolean;
|
9
|
-
start: () =>
|
10
|
-
stop: () =>
|
11
|
-
}
|
12
|
-
export
|
9
|
+
start: () => void;
|
10
|
+
stop: () => void;
|
11
|
+
}
|
12
|
+
export declare function getStartableStoppable(id: string, startAndGetStopper: Starter): StartableStoppable;
|
@@ -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
|
-
export { appEventBus } from "../../common/app-event-bus/event-bus";
|
6
5
|
export type { AppEvent } from "../../common/app-event-bus/event-bus";
|
6
|
+
export declare const appEventBus: import("../../common/event-emitter").EventEmitter<[import("../../common/app-event-bus/event-bus").AppEvent]>;
|