@k8slens/extensions 6.0.1-git.a6dae3632f.0 → 6.0.1-git.d6ca2c2cd7.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/k8s-api/kube-api.d.ts +0 -1
- package/dist/src/common/k8s-api/kube-object.store.d.ts +0 -1
- package/dist/src/common/test-utils/get-global-override.d.ts +4 -0
- package/dist/src/common/utils/__tests__/union-env-path.test.d.ts +5 -0
- package/dist/src/common/utils/abort-controller.d.ts +5 -2
- package/dist/src/common/utils/delay.d.ts +0 -1
- package/dist/src/common/utils/index.d.ts +0 -1
- package/dist/src/common/utils/open-link-in-browser.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/utils/open-link-in-browser.injectable.d.ts +3 -0
- package/dist/src/common/utils/reject-promise.d.ts +0 -1
- package/dist/src/common/utils/union-env-path.d.ts +12 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +6 -1
- package/dist/src/extensions/common-api/utils.d.ts +6 -1
- package/dist/src/extensions/extension-api.js +123 -123
- package/dist/src/main/tray/tray-menu-registration.d.ts +1 -1
- package/dist/src/main/utils/shell-env.d.ts +1 -1
- package/dist/src/renderer/components/dock/terminal/terminal.d.ts +3 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/port-forward/open-port-forward.injectable.d.ts +4 -0
- package/dist/src/renderer/port-forward/port-forward-utils.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/common/utils/openBrowser.d.ts +0 -17
@@ -10,7 +10,6 @@ import type { KubeJsonApiData } from "./kube-json-api";
|
|
10
10
|
import { KubeJsonApi } from "./kube-json-api";
|
11
11
|
import type { Disposer } from "../utils";
|
12
12
|
import type { RequestInit } from "node-fetch";
|
13
|
-
import type AbortController from "abort-controller";
|
14
13
|
import { Agent } from "https";
|
15
14
|
import type { Patch } from "rfc6902";
|
16
15
|
import type { PartialDeep } from "type-fest";
|
@@ -9,7 +9,6 @@ import type { IKubeWatchEvent } from "./kube-watch-event";
|
|
9
9
|
import { ItemStore } from "../item.store";
|
10
10
|
import type { KubeApiQueryParams, KubeApi } from "./kube-api";
|
11
11
|
import type { RequestInit } from "node-fetch";
|
12
|
-
import AbortController from "abort-controller";
|
13
12
|
import type { Patch } from "rfc6902";
|
14
13
|
import type { PartialDeep } from "type-fest";
|
15
14
|
export declare type OnLoadFailure = (error: unknown) => void;
|
@@ -3,6 +3,10 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { Injectable } from "@ogre-tools/injectable";
|
6
|
+
export interface GlobalOverride {
|
7
|
+
injectable: Injectable<any, any, any>;
|
8
|
+
overridingInstantiate: any;
|
9
|
+
}
|
6
10
|
export declare const getGlobalOverride: <T extends Injectable<any, any, any>>(injectable: T, overridingInstantiate: T["instantiate"]) => {
|
7
11
|
injectable: T;
|
8
12
|
overridingInstantiate: T["instantiate"];
|
@@ -2,7 +2,10 @@
|
|
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
|
+
* This is like an `AbortController` but will also abort if the parent aborts,
|
7
|
+
* but won't make the parent abort if this aborts (single direction)
|
8
|
+
*/
|
6
9
|
export declare class WrappedAbortController extends AbortController {
|
7
|
-
constructor(parent?: AbortController);
|
10
|
+
constructor(parent?: AbortController | undefined);
|
8
11
|
}
|
@@ -2,7 +2,6 @@
|
|
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
|
-
import type { AbortController } from "abort-controller";
|
6
5
|
/**
|
7
6
|
* Return a promise that will be resolved after at least `timeout` ms have
|
8
7
|
* passed. If `failFast` is provided then the promise is also resolved if it has
|
@@ -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("./open-link-in-browser.injectable").OpenLinkInBrowser, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./open-link-in-browser.injectable").OpenLinkInBrowser, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -2,7 +2,6 @@
|
|
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
|
-
import type { AbortSignal } from "abort-controller";
|
6
5
|
/**
|
7
6
|
* Creates a new promise that will be rejected when the signal rejects.
|
8
7
|
*
|
@@ -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
|
+
/**
|
6
|
+
* Join all entires with a PATH env var delimated string together
|
7
|
+
* @param PATHs Any number of PATH env variables
|
8
|
+
*
|
9
|
+
* NOTE: This function does not attempt to handle any sort of escape sequences since after testing
|
10
|
+
* it was found that `zsh` (at least on `macOS`) does not when trying to find programs
|
11
|
+
*/
|
12
|
+
export declare function unionPATHs(...PATHs: string[]): string;
|
@@ -12,6 +12,10 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
12
12
|
email: string;
|
13
13
|
};
|
14
14
|
scripts: {
|
15
|
+
"adr:create": string;
|
16
|
+
"adr:change-status": string;
|
17
|
+
"adr:update-readme": string;
|
18
|
+
"adr:list": string;
|
15
19
|
dev: string;
|
16
20
|
"dev-build": string;
|
17
21
|
"debug-build": string;
|
@@ -143,7 +147,6 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
143
147
|
"@sentry/integrations": string;
|
144
148
|
"@side/jest-runtime": string;
|
145
149
|
"@types/circular-dependency-plugin": string;
|
146
|
-
"abort-controller": string;
|
147
150
|
"auto-bind": string;
|
148
151
|
"await-lock": string;
|
149
152
|
byline: string;
|
@@ -208,6 +211,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
208
211
|
"winston-console-format": string;
|
209
212
|
"winston-transport-browserconsole": string;
|
210
213
|
ws: string;
|
214
|
+
"xterm-link-provider": string;
|
211
215
|
};
|
212
216
|
devDependencies: {
|
213
217
|
"@async-fn/jest": string;
|
@@ -278,6 +282,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
278
282
|
"@types/webpack-node-externals": string;
|
279
283
|
"@typescript-eslint/eslint-plugin": string;
|
280
284
|
"@typescript-eslint/parser": string;
|
285
|
+
adr: string;
|
281
286
|
ansi_up: string;
|
282
287
|
"chart.js": string;
|
283
288
|
"circular-dependency-plugin": string;
|
@@ -2,6 +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
|
-
export { Singleton,
|
5
|
+
export { Singleton, getAppVersion } from "../../common/utils";
|
6
6
|
export { prevDefault, stopPropagation } from "../../renderer/utils/prevDefault";
|
7
7
|
export { cssNames } from "../../renderer/utils/cssNames";
|
8
|
+
/**
|
9
|
+
* @deprecated Use {@link openBrowser} instead
|
10
|
+
*/
|
11
|
+
export declare const openExternal: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
|
12
|
+
export declare const openBrowser: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
|