@k8slens/extensions 6.0.1-git.af4b74d9bd.0 → 6.0.1-git.bd3f123aef.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/endpoints/horizontal-pod-autoscaler.api.d.ts +42 -17
- package/dist/src/common/k8s-api/endpoints/node.api.d.ts +1 -1
- package/dist/src/common/utils/__tests__/union-env-path.test.d.ts +5 -0
- package/dist/src/common/utils/convertCpu.d.ts +1 -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/tuple.d.ts +3 -2
- package/dist/src/common/utils/union-env-path.d.ts +12 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +6 -0
- package/dist/src/extensions/common-api/utils.d.ts +6 -1
- package/dist/src/extensions/extension-api.js +126 -115
- 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/drawer/drawer-param-toggler.test.d.ts +5 -0
- package/dist/src/renderer/components/table/sorting.d.ts +2 -2
- package/dist/src/renderer/components/tooltip/__mocks__/withTooltip.d.ts +1 -0
- 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
@@ -2,7 +2,7 @@
|
|
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 EnvironmentVariables = Record<string, string
|
5
|
+
export declare type EnvironmentVariables = Partial<Record<string, string>>;
|
6
6
|
/**
|
7
7
|
* Attempts to get the shell environment per the user's existing startup scripts.
|
8
8
|
* If the environment can't be retrieved after 5 seconds an error message is logged.
|
@@ -8,11 +8,14 @@ import type { TabId } from "../dock/store";
|
|
8
8
|
import type { TerminalApi } from "../../../api/terminal-api";
|
9
9
|
import type { ThemeStore } from "../../../themes/store";
|
10
10
|
import type { TerminalConfig } from "../../../../common/user-store/preferences-helpers";
|
11
|
+
import type { OpenLinkInBrowser } from "../../../../common/utils/open-link-in-browser.injectable";
|
11
12
|
export interface TerminalDependencies {
|
12
13
|
readonly spawningPool: HTMLElement;
|
13
14
|
readonly terminalConfig: IComputedValue<TerminalConfig>;
|
14
15
|
readonly terminalCopyOnSelect: IComputedValue<boolean>;
|
15
16
|
readonly themeStore: ThemeStore;
|
17
|
+
readonly isMac: boolean;
|
18
|
+
openLinkInBrowser: OpenLinkInBrowser;
|
16
19
|
}
|
17
20
|
export interface TerminalArguments {
|
18
21
|
tabId: TabId;
|
@@ -44,7 +47,6 @@ export declare class Terminal {
|
|
44
47
|
onClear: () => void;
|
45
48
|
onResize: () => void;
|
46
49
|
onActivate: () => void;
|
47
|
-
onClickLink: (evt: MouseEvent, link: string) => void;
|
48
50
|
onContextMenu: () => void;
|
49
51
|
onSelectionChange: () => void;
|
50
52
|
setFontSize: (fontSize: number) => void;
|
@@ -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
|
-
import type { TableSortCallback } from "./table";
|
6
|
-
export declare function getSorted<T>(rawItems: T[], sortingCallback: TableSortCallback<T> | undefined,
|
5
|
+
import type { TableOrderBy, TableSortCallback } from "./table";
|
6
|
+
export declare function getSorted<T>(rawItems: T[], sortingCallback: TableSortCallback<T> | undefined, orderBy?: TableOrderBy): T[];
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const withTooltip: (Target: any) => ({ tooltip, tooltipOverrideDisabled, ...props }: any) => JSX.Element;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { ForwardedPort } from "./port-forward-item";
|
2
|
+
export declare type OpenPortForward = (portForward: ForwardedPort) => void;
|
3
|
+
declare const openPortForwardInjectable: import("@ogre-tools/injectable").Injectable<OpenPortForward, unknown, void>;
|
4
|
+
export default openPortForwardInjectable;
|
@@ -4,5 +4,4 @@
|
|
4
4
|
*/
|
5
5
|
import type { ForwardedPort } from "./port-forward-item";
|
6
6
|
export declare function portForwardAddress(portForward: ForwardedPort): string;
|
7
|
-
export declare function openPortForward(portForward: ForwardedPort): void;
|
8
7
|
export declare function predictProtocol(name: string | undefined): "http" | "https";
|
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.0.1-git.
|
5
|
+
"version": "6.0.1-git.bd3f123aef.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,17 +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
|
-
/**
|
6
|
-
* Opens a link using the program configured as the default browser
|
7
|
-
* on the target platform. Will reject URLs with a scheme other than
|
8
|
-
* http or https to prevent programs other than the default browser
|
9
|
-
* running.
|
10
|
-
*
|
11
|
-
* @param url The URL to open
|
12
|
-
*/
|
13
|
-
export declare function openBrowser(url: string): Promise<void>;
|
14
|
-
/**
|
15
|
-
* @deprecated use openBrowser
|
16
|
-
*/
|
17
|
-
export declare const openExternal: typeof openBrowser;
|