@k8slens/extensions 6.2.0-git.f4d5097d2f.0 → 6.2.1-git.df99b91d58.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-paths/directory-for-logs.injectable.d.ts +2 -0
- package/dist/src/common/fetch/download-json.injectable.d.ts +1 -2
- package/dist/src/common/fetch/fetch.global-override-for-injectable.d.ts +2 -2
- package/dist/src/common/fetch/fetch.injectable.d.ts +3 -1
- package/dist/src/common/ipc/index.d.ts +0 -1
- package/dist/src/common/k8s-api/__tests__/kube-api-version-detection.test.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/cron-job.api.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +16 -4
- package/dist/src/common/logger/transports.d.ts +6 -0
- package/dist/src/common/logger.d.ts +3 -0
- 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/shell-setting.injectable.d.ts +2 -0
- package/dist/src/common/user-store/user-info.global-override-for-injectable.d.ts +10 -0
- package/dist/src/common/user-store/user-info.injectable.d.ts +3 -0
- package/dist/src/common/user-store/user-store.d.ts +0 -1
- package/dist/src/common/utils/abort-controller.d.ts +1 -0
- 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/extension-api.js +222 -215
- package/dist/src/extensions/extension-loader/extension/extension.injectable.d.ts +6 -1
- package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +2 -1
- package/dist/src/extensions/lens-main-extension.d.ts +2 -2
- 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/features/preferences/common/preferences-route-for-legacy-extensions.injectable.d.ts +6 -0
- package/dist/src/features/preferences/renderer/preferences-route-component-for-legacy-extensions.injectable.d.ts +13 -0
- package/dist/src/features/preferences/urls-of-legacy-extensions.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-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/logger/console-format.d.ts +39 -0
- package/dist/src/main/logger/console-transport.injectable.d.ts +3 -0
- package/dist/src/main/logger/file-transport.injectable.d.ts +3 -0
- package/dist/src/{common/os/home-directory-path.global-override-for-injectable.d.ts → main/logger/level.global-override-for-injectable.d.ts} +2 -2
- package/dist/src/main/logger/level.injectable.d.ts +3 -0
- package/dist/src/main/routes/files/development.injectable.d.ts +4 -0
- package/dist/src/main/routes/files/production.injectable.d.ts +12 -0
- package/dist/src/main/routes/files/static-file-route.injectable.d.ts +3 -0
- package/dist/src/main/shell-session/shell-session.d.ts +2 -1
- package/dist/src/main/start-main-application/runnable-tokens/phases.d.ts +16 -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/show-initial-window.injectable.d.ts +5 -0
- package/dist/src/main/start-main-application/runnables/show-loading.injectable.d.ts +5 -0
- package/dist/src/main/start-main-application/runnables/stop-cluster-manager.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/start-main-application.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/start-reactive-tray-menu-items.injectable.d.ts +1 -1
- package/dist/src/main/tray/reactive-tray-menu-items/stop-reactive-tray-menu-items.injectable.d.ts +1 -1
- package/dist/src/main/tray/tray-menu-item/tray-menu-item-registrator.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/ipc/__tests__/type-enforced-ipc.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/components/+workloads-cronjobs/cron-jobs-route-component.injectable.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-cronjobs/cronjobs.d.ts +1 -3
- package/dist/src/renderer/components/{+workloads-cronjobs/legacy-store.d.ts → icon/icon.test.d.ts} +1 -4
- 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/logger/browser-transport.injectable.d.ts +3 -0
- package/dist/src/renderer/utils/jsonPath.d.ts +3 -1
- package/package.json +1 -1
- package/dist/src/common/ipc/type-enforced-ipc.d.ts +0 -40
- package/dist/src/common/runnable/throw-with-incorrect-hierarchy-for.d.ts +0 -7
- package/dist/src/common/user-store/resolved-shell.injectable.d.ts +0 -2
- package/dist/src/main/routes/static-file-route.injectable.d.ts +0 -3
package/dist/src/renderer/components/+workloads-cronjobs/cron-jobs-route-component.injectable.d.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CronJobs } from "./cronjobs";
|
3
2
|
declare const cronJobsRouteComponentInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
3
|
route: {
|
5
4
|
path: string;
|
6
5
|
clusterFrame: boolean;
|
7
6
|
isEnabled: import("mobx").IComputedValue<boolean>;
|
8
7
|
};
|
9
|
-
Component:
|
8
|
+
Component: import("react").FunctionComponent<{}>;
|
10
9
|
}, {
|
11
10
|
route: import("../../../common/front-end-routing/front-end-route-injection-token").Route<unknown>;
|
12
11
|
Component: import("react").ElementType<any>;
|
package/dist/src/renderer/components/{+workloads-cronjobs/legacy-store.d.ts → icon/icon.test.d.ts}
RENAMED
@@ -2,7 +2,4 @@
|
|
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
|
-
|
6
|
-
* @deprecated use `di.inject(cronJobStoreInjectable)` instead
|
7
|
-
*/
|
8
|
-
export declare const cronJobStore: import("./store").CronJobStore;
|
5
|
+
export {};
|
package/dist/src/renderer/frames/cluster-frame/cluster-frame-component-registrator.injectable.d.ts
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { ExtensionRegistrator } from "../../../extensions/extension-loader/extension-registrator-injection-token";
|
2
|
+
declare const clusterFrameComponentRegistratorInjectable: import("@ogre-tools/injectable").Injectable<ExtensionRegistrator, ExtensionRegistrator, void>;
|
3
|
+
export default clusterFrameComponentRegistratorInjectable;
|
@@ -6,10 +6,11 @@ import React from "react";
|
|
6
6
|
import type { NamespaceStore } from "../../components/+namespaces/store";
|
7
7
|
import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
|
8
8
|
import type { ClusterFrameChildComponent } from "./cluster-frame-child-component-injection-token";
|
9
|
+
import type { IComputedValue } from "mobx";
|
9
10
|
interface Dependencies {
|
10
11
|
namespaceStore: NamespaceStore;
|
11
12
|
subscribeStores: SubscribeStores;
|
12
|
-
childComponents: ClusterFrameChildComponent[]
|
13
|
+
childComponents: IComputedValue<ClusterFrameChildComponent[]>;
|
13
14
|
watchHistoryState: () => () => void;
|
14
15
|
}
|
15
16
|
export declare const NonInjectedClusterFrame: ({ namespaceStore, subscribeStores, childComponents, watchHistoryState, }: Dependencies) => JSX.Element;
|
@@ -9,6 +9,7 @@
|
|
9
9
|
*
|
10
10
|
* Known shorthands:
|
11
11
|
* - Leading `$` is optional (but implied)
|
12
|
+
* - The string `/` can be used without a leading `\` escapement
|
12
13
|
* - The string `\.` is used to denote the "value of '.'" and not "next key"
|
13
14
|
* - The string `-` can be used while not in quotes
|
14
15
|
* - `[]` as shorthand for `[0]`
|
@@ -16,9 +17,10 @@
|
|
16
17
|
* - Allow `...foo` as well as `..foo`
|
17
18
|
*/
|
18
19
|
export declare function convertKubectlJsonPathToNodeJsonPath(jsonPath: string): string;
|
20
|
+
export declare function formatJSONValue(value: unknown): string;
|
19
21
|
/**
|
20
22
|
* This function is a safer version of `JSONPath.value(obj, path)` with untrusted jsonpath strings
|
21
23
|
*
|
22
24
|
* This function will also stringify the value retreived from the object
|
23
25
|
*/
|
24
|
-
export declare function safeJSONPathValue(obj: object, path: string):
|
26
|
+
export declare function safeJSONPathValue(obj: object, path: string): unknown;
|
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": "6.2.
|
5
|
+
"version": "6.2.1-git.df99b91d58.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,40 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
/// <reference types="node" />
|
6
|
-
import type { EventEmitter } from "events";
|
7
|
-
import type { Disposer } from "../utils";
|
8
|
-
export declare type ListenerEvent<EM extends EventEmitter> = Parameters<Parameters<EM["on"]>[1]>[0];
|
9
|
-
export declare type ListVerifier<T extends any[]> = (args: unknown[]) => args is T;
|
10
|
-
export declare type Rest<T> = T extends [any, ...infer R] ? R : [];
|
11
|
-
/**
|
12
|
-
* Adds a listener to `source` that waits for the first IPC message with the correct
|
13
|
-
* argument data is sent.
|
14
|
-
* @param channel The channel to be listened on
|
15
|
-
* @param listener The function for the channel to be called if the args of the correct type
|
16
|
-
* @param verifier The function to be called to verify that the args are the correct type
|
17
|
-
*/
|
18
|
-
export declare function onceCorrect<IPC extends EventEmitter, Listener extends (event: ListenerEvent<IPC>, ...args: any[]) => any>({ source, channel, listener, verifier, }: {
|
19
|
-
source: IPC;
|
20
|
-
channel: string;
|
21
|
-
listener: Listener;
|
22
|
-
verifier: ListVerifier<Rest<Parameters<Listener>>>;
|
23
|
-
}): void;
|
24
|
-
/**
|
25
|
-
* Adds a listener to `source` that checks to verify the arguments before calling the handler.
|
26
|
-
* @param channel The channel to be listened on
|
27
|
-
* @param listener The function for the channel to be called if the args of the correct type
|
28
|
-
* @param verifier The function to be called to verify that the args are the correct type
|
29
|
-
*/
|
30
|
-
export declare function onCorrect<IPC extends EventEmitter, Listener extends (event: ListenerEvent<IPC>, ...args: any[]) => any>({ source, channel, listener, verifier, }: {
|
31
|
-
source: IPC;
|
32
|
-
channel: string;
|
33
|
-
listener: Listener;
|
34
|
-
verifier: ListVerifier<Rest<Parameters<Listener>>>;
|
35
|
-
}): Disposer;
|
36
|
-
export declare function handleCorrect<Handler extends (event: Electron.IpcMainInvokeEvent, ...args: any[]) => any>({ channel, handler, verifier, }: {
|
37
|
-
channel: string;
|
38
|
-
handler: Handler;
|
39
|
-
verifier: ListVerifier<Rest<Parameters<Handler>>>;
|
40
|
-
}): Disposer;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { Runnable } from "./run-many-for";
|
6
|
-
import type { RunnableSync } from "./run-many-sync-for";
|
7
|
-
export declare const throwWithIncorrectHierarchyFor: (injectionTokenId: string, allRunnables: Runnable<any>[] | RunnableSync<any>[]) => (runnable: Runnable<any> | RunnableSync<any>) => void;
|